/* ============================================================
   HOMEPAGE + RICH SECTION COMPONENTS
   Loaded after styles.css
   ============================================================ */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: clamp(640px, 96vh, 980px);
  display: flex; align-items: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: -10%; z-index: -2; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; will-change: transform; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(15,26,46,.92) 0%, rgba(15,26,46,.72) 36%, rgba(15,26,46,.4) 66%, rgba(15,26,46,.5) 100%),
    linear-gradient(to top, rgba(15,26,46,.7) 0%, transparent 30%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; opacity: .5; mix-blend-mode: overlay;
  background:
    radial-gradient(circle at 18% 30%, rgba(201,168,76,.22), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(37,57,95,.5), transparent 55%);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
@keyframes heroDrift { to { transform: translate3d(2%, -2%, 0) scale(1.06); } }

.hero-inner { padding-block: clamp(80px, 14vh, 160px); max-width: 880px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--gold-light); }
.hero .eyebrow::before { background: var(--gold-light); }
.hero-sub { margin-top: var(--s5); font-size: clamp(1.05rem, 1.7vw, 1.32rem); line-height: 1.6; color: var(--on-navy); max-width: 58ch; }
.hero-cta { margin-top: var(--s7); display: flex; gap: var(--s4); flex-wrap: wrap; align-items: center; }
.hero-trust { margin-top: var(--s7); display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; }
.hero-trust .rating-chip { color: #fff; }
.hero-trust .rating-chip strong { color: var(--gold-light); font-size: 1.1rem; }
.hero-trust .vline { width: 1px; height: 36px; background: rgba(255,255,255,.22); }
.hero-trust small { color: var(--on-navy-soft); font-family: var(--label); letter-spacing: .03em; }

.hero-word { display: inline-block; overflow: hidden; }
.hero-word span { display: inline-block; transform: translateY(110%); animation: heroRise .9s var(--ease-out) forwards; }
@keyframes heroRise { to { transform: translateY(0); } }
.hero h1 .hero-word:nth-child(1) span { animation-delay: .1s; }
.hero h1 .hero-word:nth-child(2) span { animation-delay: .2s; }
.hero h1 .hero-word:nth-child(3) span { animation-delay: .3s; }
.hero h1 .hero-word:nth-child(4) span { animation-delay: .4s; }
.hero h1 .hero-word:nth-child(5) span { animation-delay: .5s; }
.hero h1 .hero-word:nth-child(6) span { animation-delay: .6s; }

.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: var(--on-navy-soft); font-family: var(--label); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint .line { width: 1px; height: 40px; background: linear-gradient(var(--gold-light), transparent); animation: scrollPulse 2s ease-in-out infinite; transform-origin: top; }
@keyframes scrollPulse { 0%,100% { transform: scaleY(.4); opacity:.4; } 50% { transform: scaleY(1); opacity:1; } }
@media (max-width: 640px) { .scroll-hint { display: none; } }

/* ---------- TRUST MARQUEE ---------- */
.trustbar { background: var(--navy); border-block: 1px solid var(--line-navy); padding-block: var(--s4); overflow: hidden; }
.marquee { display: flex; gap: var(--s8); width: max-content; animation: marquee 38s linear infinite; }
.trustbar:hover .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item { display: inline-flex; align-items: center; gap: 12px; color: var(--on-navy); font-family: var(--label); font-size: .92rem; letter-spacing: .04em; white-space: nowrap; }
.marquee-item svg { width: 19px; height: 19px; color: var(--gold-light); flex-shrink: 0; }
.marquee-item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ---------- CONCIERGE INTRO ---------- */
.concierge-intro { position: relative; overflow: hidden; }
.concierge-intro::before { content: ""; position: absolute; top: -30%; left: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(201,168,76,.1), transparent 65%); pointer-events: none; }
.ci-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px,6vw,88px); align-items: center; position: relative; }
.ci-badge { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px; background: rgba(201,168,76,.12); border: 1px solid var(--line-navy); font-family: var(--label); font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.ci-badge svg { width: 15px; height: 15px; }
.ci-compare { display: grid; gap: 14px; }
.ci-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ci-cell { padding: 20px 22px; border-radius: var(--radius); }
.ci-cell.std { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.ci-cell.wim { background: linear-gradient(160deg, rgba(201,168,76,.16), rgba(201,168,76,.06)); border: 1px solid var(--line-navy); }
.ci-cell .ci-lab { font-family: var(--label); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.ci-cell.std .ci-lab { color: var(--on-navy-soft); }
.ci-cell.wim .ci-lab { color: var(--gold-light); }
.ci-cell .ci-val { font-family: var(--display); font-size: 1.25rem; color: #fff; line-height: 1.2; }
.ci-cell.std .ci-val { color: var(--on-navy); }
@media (max-width: 860px) { .ci-grid { grid-template-columns: 1fr; } }

/* ---------- WHERE DOES IT HURT (BODY MAP) ---------- */
.bodymap-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px,5vw,72px); align-items: center; }
.bodymap-stage { position: relative; display: grid; place-items: center; min-height: 520px; }
.bodymap-stage .glow { position: absolute; width: 70%; height: 70%; background: radial-gradient(circle, rgba(201,168,76,.16), transparent 70%); border-radius: 50%; }
.body-svg { width: min(330px, 80%); height: auto; position: relative; z-index: 2; }
.body-silhouette { fill: var(--navy); opacity: .92; }
.hotspot { cursor: pointer; }
.hotspot .pulse { fill: var(--gold); opacity: .9; transform-box: fill-box; transform-origin: center; }
.hotspot .ring { fill: none; stroke: var(--gold); stroke-width: 2; opacity: .5; transform-box: fill-box; transform-origin: center; animation: hsPulse 2.4s ease-out infinite; }
@keyframes hsPulse { 0% { transform: scale(.8); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
.hotspot:hover .pulse, .hotspot.active .pulse { fill: var(--gold-light); }
.hotspot.active .core { stroke: #fff; stroke-width: 2.5; }
.hotspot .core { fill: var(--gold); stroke: rgba(255,255,255,.6); stroke-width: 1.5; transition: fill var(--fast); }

.bodymap-panel { }
.bm-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: var(--s5); }
.bm-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 15px 18px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
  font-family: var(--label); font-weight: 600; font-size: .95rem; color: var(--navy);
  transition: all var(--fast) var(--ease); cursor: pointer; text-align: left; width: 100%;
}
.bm-chip svg { width: 17px; height: 17px; color: var(--gold-deep); opacity: 0; transform: translateX(-6px); transition: all var(--med) var(--ease); }
.bm-chip:hover, .bm-chip.active { border-color: var(--gold); background: linear-gradient(var(--white),var(--ivory)); transform: translateX(4px); box-shadow: var(--sh-2); }
.bm-chip:hover svg, .bm-chip.active svg { opacity: 1; transform: none; }
.bm-detail { margin-top: var(--s5); padding: var(--s5); background: var(--navy); border-radius: var(--radius-lg); color: var(--on-navy); min-height: 120px; }
.bm-detail h4 { color: #fff; margin-bottom: 8px; }
.bm-detail p { font-size: .95rem; color: var(--on-navy); }
.bm-detail .text-link { margin-top: var(--s4); }
@media (max-width: 860px) { .bodymap-wrap { grid-template-columns: 1fr; } .bodymap-stage { min-height: 380px; order: -1; } .bm-list { grid-template-columns: 1fr 1fr; } }

/* ---------- TREATMENT CARDS ---------- */
.tcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.tcard { display: flex; flex-direction: column; }
.tcard .tcard-ico { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(150deg, var(--navy), var(--navy-soft)); display: grid; place-items: center; color: var(--gold-light); margin-bottom: var(--s5); transition: transform var(--med) var(--ease); }
.tcard:hover .tcard-ico { transform: rotate(-6deg) scale(1.08); }
.tcard .tcard-ico svg { width: 26px; height: 26px; }
.tcard h3 { font-size: 1.45rem; }
.tcard p { font-size: .95rem; color: var(--ink-soft); margin-top: 10px; flex-grow: 1; }
.tcard .text-link { margin-top: var(--s5); }
.tcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transform: scaleX(0); transform-origin: left; transition: transform var(--med) var(--ease); }
.tcard:hover::before { transform: scaleX(1); }
@media (max-width: 900px) { .tcards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tcards { grid-template-columns: 1fr; } }

/* ---------- PROVIDER AUTHORITY ---------- */
.provider { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px,5vw,80px); align-items: center; }
.provider-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--sh-3); aspect-ratio: 4/5; background: linear-gradient(160deg, var(--navy), var(--navy-deep)); }
.provider-photo img { width: 100%; height: 100%; object-fit: cover; }
.provider-photo .frame { position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.25); border-radius: calc(var(--radius-lg) - 8px); pointer-events: none; }
.provider-badge { position: absolute; bottom: 22px; left: 22px; right: 22px; background: rgba(15,26,46,.82); backdrop-filter: blur(8px); border: 1px solid var(--line-navy); border-radius: var(--radius); padding: 16px 20px; color: #fff; }
.provider-badge .pb-name { font-family: var(--display); font-size: 1.4rem; }
.provider-badge .pb-role { font-family: var(--label); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); margin-top: 3px; }
.provider blockquote { font-family: var(--display); font-size: clamp(1.4rem,2.4vw,2rem); font-style: italic; line-height: 1.35; color: var(--navy); margin: var(--s5) 0; }
.provider-sign { font-family: var(--display); font-size: 1.6rem; color: var(--gold-deep); }
@media (max-width: 820px) { .provider { grid-template-columns: 1fr; } .provider-photo { max-width: 440px; } }

/* ---------- PROCESS TIMELINE ---------- */
.process { position: relative; }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s4); position: relative; counter-reset: step; }
.process-grid::before { content: ""; position: absolute; top: 32px; left: 8%; right: 8%; height: 1.5px; background: repeating-linear-gradient(90deg, var(--line-navy) 0 8px, transparent 8px 16px); }
.pstep { position: relative; text-align: center; }
.pstep .pnum { width: 64px; height: 64px; margin: 0 auto var(--s4); border-radius: 50%; background: var(--white); border: 1.5px solid var(--line-navy); display: grid; place-items: center; font-family: var(--display); font-size: 1.5rem; color: var(--gold-deep); position: relative; z-index: 2; transition: all var(--med) var(--ease); }
.bg-navy .pstep .pnum, .bg-navy-deep .pstep .pnum { background: var(--navy); }
.pstep:hover .pnum { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--sh-gold); }
.pstep h4 { font-size: 1.15rem; }
.bg-navy .pstep h4 { color: #fff; }
.pstep p { font-size: .88rem; color: var(--ink-soft); margin: 8px auto 0; max-width: 24ch; }
.bg-navy .pstep p { color: var(--on-navy-soft); }
@media (max-width: 880px) { .process-grid { grid-template-columns: 1fr 1fr; gap: var(--s6); } .process-grid::before { display: none; } }
@media (max-width: 460px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- REVIEWS ---------- */
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s5); flex-wrap: wrap; }
.review-track { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s5); }
.review-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s6); display: flex; flex-direction: column; gap: var(--s4); transition: transform var(--med) var(--ease), box-shadow var(--med); }
.review-card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }
.review-card .stars { margin-bottom: 0; }
.review-card blockquote { font-size: 1.02rem; line-height: 1.6; color: var(--ink); font-family: var(--body); }
.review-card .rv-author { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: var(--s4); border-top: 1px solid var(--line); }
.rv-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(150deg, var(--navy), var(--navy-soft)); color: var(--gold-light); display: grid; place-items: center; font-family: var(--display); font-size: 1.1rem; flex-shrink: 0; }
.rv-meta b { display: block; font-family: var(--label); font-size: .9rem; color: var(--navy); }
.rv-meta span { font-size: .78rem; color: var(--ink-faint); }
@media (max-width: 900px) { .review-track { grid-template-columns: 1fr; } }

/* ---------- LIFESTYLE ---------- */
.life-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.life-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.life-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.life-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(15,26,46,.92), rgba(15,26,46,.25) 55%, rgba(15,26,46,.1)); }
.life-card:hover img { transform: scale(1.07); }
.life-card .life-body { padding: var(--s5); }
.life-card h4 { color: #fff; font-size: 1.35rem; }
.life-card p { font-size: .86rem; color: var(--on-navy); margin-top: 6px; }
.life-card .life-tag { font-family: var(--label); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); }
@media (max-width: 900px) { .life-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .life-grid { grid-template-columns: 1fr; } }

/* ---------- STATS STRIP ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--s5); }
.stat { text-align: center; padding: var(--s5); }
.stat .kicker-num { display: block; }
.stat p { font-family: var(--label); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-navy-soft); margin: 10px auto 0; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; gap: var(--s6); } }

/* ---------- FINAL CTA ---------- */
.final-cta { position: relative; overflow: hidden; text-align: center; }
.final-cta::before, .final-cta::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; }
.final-cta::before { background: radial-gradient(circle, rgba(201,168,76,.18), transparent 70%); top: -180px; left: -100px; }
.final-cta::after { background: radial-gradient(circle, rgba(37,57,95,.6), transparent 70%); bottom: -200px; right: -120px; }
.final-cta .inner { position: relative; z-index: 2; max-width: 760px; margin-inline: auto; }
.final-cta h2 { color: #fff; }
.final-cta p { color: var(--on-navy); margin: var(--s5) auto var(--s6); }
.final-cta .hero-cta { justify-content: center; }

/* ---------- PRICING TEASER ---------- */
.access-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s5); }
.access-card { padding: var(--s6); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); }
.access-card .ac-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--ivory); display: grid; place-items: center; color: var(--gold-deep); margin-bottom: var(--s4); }
.access-card .ac-ico svg { width: 24px; height: 24px; }
.access-card h4 { font-size: 1.2rem; }
.access-card p { font-size: .92rem; color: var(--ink-soft); margin-top: 8px; }
@media (max-width: 820px) { .access-grid { grid-template-columns: 1fr; } }

/* ---------- PARALLAX COASTAL BANDS ---------- */
.parallax-band { position: relative; overflow: hidden; min-height: clamp(420px, 62vh, 640px); display: grid; place-items: center; color: #fff; isolation: isolate; }
.parallax-band .pb-img { position: absolute; inset: -18% 0; width: 100%; height: 136%; object-fit: cover; z-index: -2; will-change: transform; }
.parallax-band .pb-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(15,26,46,.82), rgba(15,26,46,.5) 55%, rgba(201,168,76,.12)); }
.parallax-band.tint-deep .pb-overlay { background: linear-gradient(180deg, rgba(15,26,46,.55), rgba(15,26,46,.78)); }
.pb-content { position: relative; z-index: 2; text-align: center; max-width: 880px; padding-inline: var(--gutter); }
.pb-content .eyebrow { color: var(--gold-light); }
.pb-content .eyebrow::before { background: var(--gold-light); }
.pb-quote { font-family: var(--display); font-style: italic; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.18; color: #fff; }
.pb-quote .gold { color: var(--gold-light); }
.pb-sub { margin-top: var(--s5); font-size: clamp(1rem,1.5vw,1.2rem); color: var(--on-navy); }
.pb-content .hero-cta { justify-content: center; margin-top: var(--s6); }

/* Final CTA optional photo background */
.final-cta.has-bg .cta-bg { position: absolute; top: -12%; left: -12%; width: 124%; max-width: none; height: 124%; z-index: 0; object-fit: cover; object-position: center; opacity: .28; will-change: transform; }
.final-cta.has-bg::before, .final-cta.has-bg::after { z-index: 1; }
/* Center the form action row within centered CTA sections */
.final-cta .af-actions { justify-content: center; }

/* Provider photo now uses a real image */
.provider-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Lifestyle: ensure photo cards crop nicely */
.life-card { background: var(--navy); }
.life-card img { object-position: center; }
