/* ==========================================================================
   PERFORMANCE MARKETING PAGE STYLESHEET
   Follows Web Development & SEO Page Design System & Aesthetics
   ========================================================================== */

/* Header Override for Performance Marketing Page */
.site-sticky-header.perf-page-header {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  background: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 180, 0, 0.2) !important;
  z-index: 9990 !important;
  padding: 15px 0 !important;
}

/* ==========================================================================
   1. HERO SECTION (100vh)
   ========================================================================== */
.perf-hero-section {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: #000000;
  text-align: center;
  box-sizing: border-box;
  padding: 60px 0;
}

.perf-hero-inner {
  max-width: 1050px;
  margin: 0 auto;
  width: 100%;
}

.perf-hero-tagline {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #ffb400;
  text-transform: capitalize !important;
  letter-spacing: 1px;
  margin-bottom: 24px;
  display: inline-block;
}

.perf-hero-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 80px;
  font-weight: 400;
  line-height: 85px;
  color: #f0eee9 !important;
  letter-spacing: -2px;
  margin-bottom: 30px;
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
}

.perf-hero-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(240, 238, 233, 0.85);
  max-width: 900px;
  margin: 0 auto 35px;
}

.perf-hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

/* ==========================================================================
   2. SECTION 2: PROBLEM / VALUE PROP
   ========================================================================== */
.perf-matters-section {
  padding: 90px 0;
  background-color: #050505;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
}

.perf-matters-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.perf-matters-img-box {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.perf-matters-img-box img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  object-fit: cover;
  border: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   3. SECTION 3: SERVICES (PAID ADVERTISING PLATFORMS)
   ========================================================================== */
.perf-services-section {
  padding: 100px 0;
  background-color: #000000;
}

.perf-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.perf-service-card {
  background: #0d0d0d;
  border: 1px solid #202020;
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 6px;
  overflow: hidden;
}

.perf-service-card:hover {
  transform: translateY(-8px);
  background: #131313;
  border-color: rgba(255, 180, 0, 0.55);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 180, 0, 0.08);
}

/* Glass-style Yellowish Icon */
.perf-card-icon-wrap {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(255, 180, 0, 0.2) 0%, rgba(255, 180, 0, 0.04) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 180, 0, 0.4);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffb400;
  font-size: 32px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px -4px rgba(255, 180, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.35);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.perf-card-icon-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transition: left 0.6s ease;
}

.perf-service-card:hover .perf-card-icon-wrap {
  transform: scale(1.08) rotate(-2deg);
  border-color: rgba(255, 180, 0, 0.85);
  box-shadow: 0 14px 35px rgba(255, 180, 0, 0.45), inset 0 1px 3px rgba(255, 255, 255, 0.5);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 180, 0, 0.35) 0%, rgba(255, 180, 0, 0.12) 100%);
}

.perf-service-card:hover .perf-card-icon-wrap::before {
  left: 100%;
}

.perf-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #f0eee9;
  margin-bottom: 14px;
}

.perf-card-desc {
  font-size: 15px;
  color: rgba(240, 238, 233, 0.75);
  line-height: 1.65;
  margin-bottom: 0;
  transition: color 0.3s ease;
}

.perf-service-card:hover .perf-card-desc {
  color: rgba(240, 238, 233, 0.95);
}

/* Suitable content: hidden in normal view, smoothly revealed on hover */
.perf-card-suitable {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(14px);
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease,
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              margin-top 0.35s ease,
              padding-top 0.35s ease;
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid transparent;
  background: transparent;
  font-size: 14px;
  color: #ffb400;
  line-height: 1.55;
  letter-spacing: 0.2px;
}

.perf-service-card:hover .perf-card-suitable {
  max-height: 140px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 180, 0, 0.25);
}

@media (hover: none) {
  .perf-card-suitable {
    max-height: none !important;
    opacity: 1 !important;
    transform: none !important;
    margin-top: 18px !important;
    padding-top: 14px !important;
    border-top: 1px solid rgba(255, 180, 0, 0.2) !important;
  }
}

/* Center-aligned Services CTA */
.perf-services-cta-wrap {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: 50px !important;
  text-align: center !important;
}

.perf-services-cta-wrap .btn-consult-primary {
  margin: 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ==========================================================================
   4. SECTION 4: MY APPROACH (WORK PROCESS TIMELINE)
   ========================================================================== */
.perf-approach-section {
  padding: 100px 0;
  background-color: #050505;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  position: relative;
  clear: both;
}

.perf-approach-section .how-label {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #ffb400;
  letter-spacing: 0.5px;
  text-transform: capitalize !important;
  margin-bottom: 14px;
  display: block;
}

/* 5-Step Timeline Specific Sizing & Container Height */
.how-timeline.how-card-5-col {
  position: relative;
  width: 100%;
  min-height: 1000px;
}

.how-card-5-col .how-card-1 { left: 0; top: 0; }
.how-card-5-col .how-card-2 { right: 2%; top: 200px; }
.how-card-5-col .how-card-3 { left: 5%; top: 400px; }
.how-card-5-col .how-card-4 { right: 0; top: 600px; }
.how-card-5-col .how-card-5 { left: 5%; top: 800px; }

/* ==========================================================================
   5. SECTION 5: BEYOND RUNNING ADS (CONVERSION JOURNEY)
   ========================================================================== */
.perf-journey-section {
  padding: 100px 0;
  background-color: #000000;
}

.perf-pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 45px;
}

.perf-pillar-card {
  background: #111111;
  border: 1px solid #222222;
  padding: 30px 22px;
  border-radius: 4px;
  transition: all 0.35s ease;
}

.perf-pillar-card:hover {
  transform: translateY(-5px);
  border-color: #ffb400;
}

.perf-pillar-num {
  font-size: 13px;
  font-weight: 600;
  color: #ffb400;
  margin-bottom: 12px;
  display: block;
}

.perf-pillar-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.perf-pillar-desc {
  font-size: 14px;
  color: rgba(240, 238, 233, 0.7);
  line-height: 1.55;
}

.perf-journey-takeaway {
  margin-top: 45px;
  padding: 24px 30px;
  background: #0d0d0d;
  border-left: 3px solid #ffb400;
  font-size: 16px;
  color: #f0eee9;
  line-height: 1.6;
}

/* ==========================================================================
   6. SECTION 6: PERFORMANCE MEASUREMENT (METRICS & DATA)
   ========================================================================== */
.perf-metrics-section {
  padding: 100px 0;
  background-color: #050505;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
}

.perf-metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 45px 0 35px;
}

.perf-metric-card {
  background: #151515;
  border: 1px solid rgba(240, 238, 233, 0.08);
  padding: 32px 24px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}

.perf-metric-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 180, 0, 0.4);
  background: #181713;
}

.perf-metric-code {
  font-size: 22px;
  font-weight: 700;
  color: #ffb400;
  margin-bottom: 12px;
  font-family: 'Poppins', sans-serif;
}

.perf-metric-desc {
  font-size: 14px;
  color: rgba(240, 238, 233, 0.75);
  line-height: 1.6;
}

/* ==========================================================================
   7. SECTION 7: WHO I CAN HELP
   ========================================================================== */
.perf-help-section {
  padding: 100px 0;
  background-color: #000000;
  border-bottom: 1px solid #1a1a1a;
}

.perf-help-header {
  max-width: 1050px;
  margin: 0 auto 55px auto;
  text-align: center;
}

.perf-help-title-80 {
  font-family: 'Poppins', sans-serif;
  font-size: 80px;
  font-weight: 400;
  line-height: 85px;
  color: #f0eee9;
  letter-spacing: -2px;
  text-align: center;
  margin: 0 auto;
}

.perf-help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 45px;
}

.perf-help-card {
  background: #111111;
  border: 1px solid #222222;
  padding: 36px 30px;
  border-radius: 4px;
  transition: all 0.35s ease;
}

.perf-help-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 180, 0, 0.5);
}

.perf-help-icon {
  font-size: 26px;
  color: #ffb400;
  margin-bottom: 20px;
}

.perf-help-title {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.perf-help-desc {
  font-size: 15px;
  color: rgba(240, 238, 233, 0.75);
  line-height: 1.65;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .how-timeline.how-card-5-col {
    min-height: 1240px !important;
  }
  .how-card-5-col .how-card-1 { left: 0; top: 0; }
  .how-card-5-col .how-card-2 { right: 0; top: 240px; }
  .how-card-5-col .how-card-3 { left: 0; top: 480px; }
  .how-card-5-col .how-card-4 { right: 0; top: 720px; }
  .how-card-5-col .how-card-5 { left: 0; top: 960px; }
}

@media (max-width: 1024px) {
  .perf-hero-heading {
    font-size: 56px;
    line-height: 62px;
  }
  .perf-help-title-80 {
    font-size: 54px;
    line-height: 60px;
    letter-spacing: -1px;
  }
  .perf-services-grid, .perf-help-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .perf-pillars-grid, .perf-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .how-timeline.how-card-5-col {
    min-height: 0 !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
  .how-card-5-col .how-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: calc(100% - 20px) !important;
    margin-left: 20px !important;
  }
  .perf-hero-heading {
    font-size: 36px;
    line-height: 1.25;
    letter-spacing: -1px;
  }
  .perf-help-title-80 {
    font-size: 32px !important;
    line-height: 1.25 !important;
    letter-spacing: -1px !important;
  }
  .perf-hero-desc {
    font-size: 15px;
  }
  .perf-hero-cta-row {
    flex-direction: column;
    gap: 12px;
  }
  .perf-matters-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .perf-services-grid, .perf-help-grid, .perf-pillars-grid, .perf-metrics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
