/* ============================================================
   ADVISORY PROGRAMS PAGE
   ============================================================ */

/* ---------- HERO ---------- */
.adv-hero {
  display: grid;
  grid-template-columns: 52% 48%;
  height: 100vh;
  min-height: 640px;
  background: #0d0d0d;
  overflow: hidden;
}
.adv-hero-image {
  position: relative;
  overflow: hidden;
}
.adv-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.adv-hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 50%, #0d0d0d 100%);
}
.adv-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(48px, 5vw, 80px) clamp(48px, 5vw, 80px) clamp(100px, 12vh, 140px) clamp(24px, 3vw, 48px);
  background: #0d0d0d;
}
.adv-eyebrow {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 300;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: #D4A853;
  margin-bottom: 28px;
}
.adv-hero-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(40px, 4.2vw, 60px);
  font-weight: 200;
  letter-spacing: 0.08em;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 2px 0;
}
.adv-hero-sig {
  display: block;
  max-width: 420px;
  height: auto;
  margin: -110px auto 0;
}

/* ---------- CREDIBILITY LOGOS BAR ---------- */
.adv-logos-bar {
  background: #0d0d0d;
  padding: 36px clamp(24px, 5vw, 80px);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.adv-logos-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 32px;
}
.adv-logo-item {
  height: 44px;
  width: auto;
  filter: invert(1);
  opacity: 0.72;
  flex-shrink: 0;
}
.adv-logo-item:hover {
  opacity: 0.9;
  transition: opacity 0.2s;
}

/* ---------- PROGRAM SECTIONS ---------- */
.adv-program {
  padding: clamp(80px, 10vw, 130px) 0;
}
.adv-program--light {
  background: #faf7f2;
}
.adv-program--dark {
  background: #0d0d0d;
}
.adv-program-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 100px);
  align-items: center;
}
.adv-program-inner--flip .adv-program-image {
  order: 2;
}
.adv-program-inner--flip .adv-program-text {
  order: 1;
}
.adv-program-image img {
  width: 100%;
  height: clamp(400px, 50vw, 580px);
  object-fit: cover;
  display: block;
}
.adv-program-label {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #D4A853;
  margin-bottom: 18px;
}
.adv-program-label--light {
  color: #D4A853;
}
.adv-program-heading {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 200;
  letter-spacing: 0.12em;
  color: #0d0d0d;
  margin: 0 0 28px 0;
  line-height: 1.1;
}
.adv-program-heading--light {
  color: #fff;
}
.adv-program-body {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.85;
  color: rgba(0,0,0,0.75);
  margin: 0 0 20px 0;
}
.adv-program-body--light {
  color: rgba(255,255,255,0.8);
}
.adv-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 16px 40px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.adv-btn--dark {
  background: #0d0d0d;
  color: #fff;
  border: 2px solid #0d0d0d;
}
.adv-btn--dark:hover {
  background: transparent;
  color: #0d0d0d;
}
.adv-btn--gold {
  background: #D4A853;
  color: #0d0d0d;
  border: 2px solid #D4A853;
}
.adv-btn--gold:hover {
  background: transparent;
  color: #D4A853;
}

/* ---------- BEST FOR ---------- */
.adv-best-for {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-left: 3px solid #D4A853;
  padding-left: 16px;
  margin: 0 0 28px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: rgba(0,0,0,0.72);
}
.adv-best-for--light {
  color: rgba(255,255,255,0.8);
}
.adv-best-for-label {
  flex-shrink: 0;
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #D4A853;
}

/* ---------- TESTIMONIALS TICKER ---------- */
.adv-testimonials {
  background: #0d0d0d;
  padding: clamp(80px, 8vw, 120px) 0;
  overflow: hidden;
}
.adv-testimonials-header {
  text-align: center;
  padding: 0 24px;
  margin-bottom: 60px;
}
.adv-eyebrow-sm {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #D4A853;
  margin-bottom: 16px;
}
.adv-testimonials-heading {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(40px, 2.8vw, 46px);
  font-weight: 200;
  letter-spacing: 0.06em;
  line-height: 1.45;
  color: #fff;
  margin: 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.adv-ticker-wrap {
  overflow: hidden;
  width: 100%;
  cursor: default;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.adv-ticker-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: advScroll 50s linear infinite;
  padding: 0 14px;
}
@keyframes advScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.adv-tcard {
  flex-shrink: 0;
  width: 340px;
  background: #1a1a1a;
  padding: 32px 28px;
  border-top: 3px solid #D4A853;
}
.adv-tcard-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.adv-tcard-photo {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  max-width: 52px;
  max-height: 52px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.adv-tcard-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 3px 0;
}
.adv-tcard-role {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin: 0;
}
.adv-tcard-stars {
  color: #D4A853;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.adv-tcard-quote {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
  margin: 0;
}

/* ---------- SIGNATURE ---------- */
.adv-signature {
  background: #faf7f2;
  padding: clamp(80px, 10vw, 120px) 0;
}
.adv-signature-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 0 clamp(24px, 5vw, 60px);
}
.adv-signature-closing {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.8;
  color: rgba(0,0,0,0.72);
  margin: 0 0 48px 0;
}
.adv-signature-img {
  display: block;
  max-width: 220px;
  height: auto;
  margin: 0 auto 20px;
  filter: invert(1);
}
.adv-signature-name {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(16px, 1.3vw, 18px);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  margin: 0;
}

/* ---------- REVEAL ANIMATIONS ---------- */
.adv-reveal,
.adv-reveal-left,
.adv-reveal-right {
  opacity: 0;
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.adv-reveal         { transform: translateY(24px); }
.adv-reveal-left    { transform: translateX(-32px); }
.adv-reveal-right   { transform: translateX(32px); }
.adv-reveal.visible,
.adv-reveal-left.visible,
.adv-reveal-right.visible {
  opacity: 1;
  transform: none;
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
  /* Hero: stack image on top, text below */
  .adv-hero {
    grid-template-columns: 1fr;
    grid-template-rows: 52vw auto;
    height: auto;
    min-height: unset;
  }
  .adv-hero-image {
    height: 52vw;
    min-height: 220px;
  }
  .adv-hero-fade {
    background: linear-gradient(to bottom, transparent 40%, #0d0d0d 90%);
  }
  .adv-hero-text {
    justify-content: flex-start;
    padding: 32px 28px 56px;
  }
  .adv-hero-sig {
    max-width: 260px;
    margin: -70px auto 0;
  }

  /* Programs */
  .adv-program-inner,
  .adv-program-inner--flip {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .adv-program-inner--flip .adv-program-image,
  .adv-program-inner--flip .adv-program-text {
    order: unset;
  }
  .adv-program-image img {
    height: 280px;
  }
  .adv-tcard {
    width: 290px;
  }
}

@media (max-width: 480px) {
  /* Hero — taller image row, text row sized by content */
  .adv-hero {
    grid-template-columns: 1fr !important;
    grid-template-rows: 105vw auto !important;
    height: auto !important;
    min-height: unset !important;
  }
  .adv-hero-image {
    height: 105vw !important;
    min-height: 380px;
    width: 100%;
  }
  .adv-hero-fade {
    background: linear-gradient(to bottom, transparent 60%, #0d0d0d 96%);
  }
  .adv-hero-text {
    padding: 36px 20px 48px;
  }
  .adv-hero-sig {
    max-width: 200px;
    margin: -50px auto 0;
  }
  /* "ADVISORY" eyebrow — full letterforms visible, breathing room */
  .adv-eyebrow {
    font-size: 13px;
    letter-spacing: 0.32em;
    line-height: 1.6;
    padding-top: 6px;
    margin-bottom: 20px;
    display: inline-block;
  }
  /* Disable the slide-in reveal transform on mobile so eyebrow can't be caught mid-animation looking clipped */
  .adv-reveal,
  .adv-reveal-left,
  .adv-reveal-right {
    opacity: 1;
    transform: none;
  }

  /* Programs — force image FIRST on every program (incl. flip variant) so all three programs flow identically: image > label > heading > body > button */
  .adv-program-inner--flip .adv-program-image { order: 1; }
  .adv-program-inner--flip .adv-program-text  { order: 2; }

  /* Bigger gap between programs so each reads as a distinct program, not one continuous page */
  .adv-program {
    padding: 70px 0;
    border-top: 1px solid rgba(212, 168, 83, 0.25);
  }
  .adv-program:first-of-type {
    border-top: none;
  }
  /* Numbered program label so all three programs read as a sequence */
  #club28    .adv-program-label::before { content: "01 / "; opacity: 0.55; }
  #nextlevel .adv-program-label::before { content: "02 / "; opacity: 0.55; }
  #elite     .adv-program-label::before { content: "03 / "; opacity: 0.55; }

  /* Press logos — keep only Success, Worth, Entrepreneur on mobile (single row) */
  .adv-logos-inner > picture:nth-child(3),
  .adv-logos-inner > picture:nth-child(4),
  .adv-logos-inner > picture:nth-child(5),
  .adv-logos-inner > picture:nth-child(7),
  .adv-logos-inner > picture:nth-child(8) {
    display: none;
  }
  .adv-logos-inner {
    flex-wrap: nowrap;
    justify-content: space-around;
  }

  /* Hero & section headlines — scale down so they fit narrow viewports */
  .adv-hero-title {
    font-size: clamp(22px, 5.8vw, 27px);
    letter-spacing: 0.02em;
    line-height: 1.18;
  }
  .adv-program-heading {
    font-size: clamp(26px, 6.8vw, 32px);
    letter-spacing: 0.04em;
    margin-bottom: 20px;
  }

  /* Logos band — constrain width so wide marks don't overflow */
  .adv-logos-bar {
    padding: 24px 16px;
  }
  .adv-logos-inner {
    gap: 14px 18px;
    justify-content: center;
  }
  .adv-logo-item {
    height: 26px;
    max-width: 100px;
    object-fit: contain;
  }

  /* Tier card */
  .adv-tcard {
    width: 100%;
    max-width: 320px;
  }

  /* Testimonials section heading scales down on mobile */
  .adv-testimonials-heading {
    font-size: clamp(20px, 5.4vw, 26px);
    line-height: 1.35;
    letter-spacing: 0.02em;
  }

  /* Testimonial marquee — convert to static vertical stack on mobile */
  .adv-ticker-wrap {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .adv-ticker-track {
    flex-direction: column;
    width: 100%;
    animation: none;
    padding: 0;
    gap: 16px;
  }
  .adv-ticker-track .adv-tcard {
    width: 100%;
    max-width: 100%;
  }
  /* Hide loop-duplicate cards on mobile so the stack shows each testimonial only once */
  .adv-tcard--loopdupe {
    display: none;
  }
}

@media (max-width: 768px) and (min-width: 481px) {
  /* Tablet / large phone landscape */
  .adv-hero-title {
    font-size: clamp(30px, 5.2vw, 40px);
  }
  .adv-program-heading {
    font-size: clamp(34px, 5.5vw, 44px);
  }
  .adv-logo-item {
    height: 32px;
    max-width: 130px;
    object-fit: contain;
  }
}
