/*
 * The Coaching Sanctuary v4.0 — Front Page Styles
 * Loaded only on the homepage. No inline <style> in the template.
 */

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position:    relative;
  min-height:  100svh;
  display:     flex;
  align-items: center;
  overflow:    hidden;
  isolation:   isolate;
}

.hero-bg {
  position: absolute;
  inset:    0;
  z-index:  0;
}

.hero-bg-img {
  width:          100%;
  height:         100%;
  object-fit:     cover;
  object-position: 60% center;
  filter:         brightness(.72) contrast(1.06);
  will-change:    transform;
  transition:     transform 10s cubic-bezier(.25,.46,.45,.94);
}
.hero:hover .hero-bg-img { transform: scale(1.025); }

.hero-overlay {
  position:   absolute;
  inset:      0;
  background:
    linear-gradient(110deg, rgba(10,10,11,.96) 0%, rgba(10,10,11,.55) 45%, rgba(10,10,11,.08) 100%),
    linear-gradient(to bottom, rgba(10,10,11,.04) 0%, rgba(10,10,11,.5) 65%, rgba(10,10,11,1) 100%);
}
.hero-overlay::after {
  content:    '';
  position:   absolute;
  top:        15%;
  left:       0;
  width:      55%;
  height:     65%;
  background: radial-gradient(ellipse at 15% 55%, rgba(201,168,76,.08) 0%, transparent 65%);
  pointer-events: none;
}

/* Badge */
.hero-badge-embed {
  position: absolute;
  top:      4.5rem;
  right:    clamp(1rem, 4vw, 3rem);
  z-index:  10;
}
.hero-badge-embed img {
  width:      96px;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(201,168,76,.18);
  transition: box-shadow .3s;
}
.hero-badge-embed img:hover { box-shadow: 0 0 32px rgba(201,168,76,.35); }
.badge-name {
  text-align:     center;
  font-family:    var(--font-caps);
  font-size:      .45rem;
  letter-spacing: .12em;
  color:          var(--text-muted);
  margin-top:     5px;
  text-transform: uppercase;
}
.badge-name a { color: var(--gold); text-decoration: none; }

/* Hero content */
.hero-content {
  position:   relative;
  z-index:    2;
  max-width:  var(--max-w);
  margin:     0 auto;
  padding:    clamp(5rem, 12vh, 8rem) clamp(1.5rem, 5vw, 4rem);
  width:      100%;
}
.hero-content-inner { max-width: 600px; }

.hero-eyebrow {
  margin-bottom: 1.5rem;
  opacity:       0;
  animation:     heroFadeUp .9s .15s var(--ease) forwards;
}

.hero-content h1 {
  font-size:     clamp(2.6rem, 6.5vw, 5rem);
  font-weight:   300;
  line-height:   1.08;
  letter-spacing: -.02em;
  color:         var(--text-primary);
  margin-bottom: 1.5rem;
  opacity:       0;
  animation:     heroFadeUp .9s .3s var(--ease) forwards;
}
.hero-content h1 em {
  font-style: italic;
  color:      var(--gold-light);
  display:    block;
}

.hero-sub {
  font-family:   var(--font-display);
  font-size:     clamp(1rem, 1.5vw, 1.15rem);
  line-height:   1.9;
  color:         var(--text-secondary);
  max-width:     52ch;
  margin-bottom: 2.5rem;
  opacity:       0;
  animation:     heroFadeUp .9s .45s var(--ease) forwards;
}

.hero-ctas {
  display:       flex;
  gap:           1rem;
  flex-wrap:     wrap;
  margin-bottom: 3rem;
  opacity:       0;
  animation:     heroFadeUp .9s .6s var(--ease) forwards;
}

.hero-scroll {
  display:        flex;
  align-items:    center;
  gap:            .7rem;
  font-family:    var(--font-caps);
  font-size:      .45rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color:          var(--text-muted);
  opacity:        0;
  animation:      heroFadeUp .9s .8s var(--ease) forwards;
}
.hero-scroll-line {
  width:      40px;
  height:     1px;
  background: linear-gradient(to right, rgba(201,168,76,.7), transparent);
  animation:  scrollPulse 2.5s ease-in-out infinite;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleX(.7); }
  50%       { opacity: 1;  transform: scaleX(1); }
}

/* Stats strip */
.hero-stats {
  position:   absolute;
  bottom:     0; left: 0; right: 0;
  z-index:    3;
  border-top: 1px solid var(--gold-border);
  background: rgba(10,10,11,.84);
  backdrop-filter: blur(16px);
}
.hero-stats-inner {
  max-width:    var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
  display:      flex;
}
.hero-stat {
  flex:         1;
  padding:      1.25rem 1rem;
  text-align:   center;
  border-right: 1px solid var(--gold-border);
}
.hero-stat:last-child { border-right: none; }
.stat-n {
  display:       block;
  font-family:   var(--font-display);
  font-size:     clamp(1.4rem, 2.5vw, 2rem);
  font-weight:   300;
  color:         var(--gold);
  line-height:   1;
  margin-bottom: .3rem;
}
.stat-l {
  display:        block;
  font-family:    var(--font-caps);
  font-size:      .45rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color:          var(--text-muted);
}

/* ── AUTHORITY STRIP ────────────────────────────────────── */
.authority-strip {
  background:    var(--ink-soft);
  border-top:    1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
  padding-block: 1.5rem;
  overflow:      hidden;
}
.authority-inner {
  display:     flex;
  align-items: center;
  gap:         2rem;
}
.authority-label {
  font-family:    var(--font-caps);
  font-size:      .48rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color:          var(--text-muted);
  white-space:    nowrap;
  flex-shrink:    0;
}
.authority-divider {
  width:      1px;
  height:     22px;
  background: var(--gold-border);
  flex-shrink: 0;
}
.authority-scroll {
  display:          flex;
  align-items:      center;
  gap:              2rem;
  flex-wrap:        nowrap;
  overflow-x:       auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width:  none;
  padding-bottom:   2px;
}
.authority-scroll::-webkit-scrollbar { display: none; }
.authority-item {
  font-family: var(--font-display);
  font-size:   .9rem;
  font-style:  italic;
  color:       var(--text-muted);
  white-space: nowrap;
  text-decoration: none;
  transition:  color var(--dur-fast);
}
.authority-item:hover { color: var(--gold); text-decoration: none; }
.authority-sep { color: var(--gold-border); font-size: .65rem; flex-shrink: 0; user-select: none; }

/* ── METHOD SECTION ─────────────────────────────────────── */
.method-section { text-align: center; }
.method-intro { max-width: 680px; margin-inline: auto; }
.method-intro h2 { margin-top: .875rem; }
.method-lead {
  font-family:   var(--font-display);
  font-size:     1.05rem;
  font-style:    italic;
  line-height:   1.85;
  color:         var(--text-secondary);
  max-width:     58ch;
  margin-inline: auto;
}
.pillars-heading {
  margin-bottom: 1.5rem;
  font-size:     1.15rem;
  color:         var(--text-muted);
  font-family:   var(--font-body);
  font-weight:   400;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size:     .7rem;
}
.method-cta { margin-top: 2.5rem; }

/* ── TESTIMONIALS ───────────────────────────────────────── */
.testimonial-section {
  padding-block: var(--section-v);
  background:    var(--ink-mid);
  border-top:    1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
  position:      relative;
  overflow:      hidden;
}
.testimonial-section::before {
  content:     '"';
  position:    absolute;
  top:         -2rem;
  left:        2rem;
  font-family: var(--font-display);
  font-size:   18rem;
  color:       rgba(201,168,76,.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.testimonial-section .container { margin-bottom: 3rem; }
.testimonials-grid {
  max-width:             var(--max-w);
  margin-inline:         auto;
  padding-inline:        clamp(1.5rem, 5vw, 3rem);
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   1px;
  background:            var(--gold-border);
  border:                1px solid var(--gold-border);
}
.testimonial {
  background: var(--ink-mid);
  padding:    2.5rem 2rem;
  transition: background var(--dur-base);
}
.testimonial:hover { background: var(--ink-raised); }
.t-mark {
  display:       block;
  font-family:   var(--font-display);
  font-size:     3rem;
  color:         var(--gold);
  opacity:       .2;
  line-height:   .7;
  margin-bottom: 1.25rem;
}
.t-text {
  font-family:   var(--font-display);
  font-size:     1rem;
  font-style:    italic;
  line-height:   1.9;
  color:         var(--text-primary);
  margin-bottom: 1.5rem;
}
.t-attr {
  font-family:    var(--font-caps);
  font-size:      .52rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color:          var(--gold);
  opacity:        .6;
  margin:         0;
}

/* ── SPLITS (coaching + memoir) ─────────────────────────── */
.splits-section { padding-block: 0; }
.split {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   1px;
  background:            var(--gold-border);
  border:                1px solid var(--gold-border);
}
.split + .split { margin-top: 1px; }
.split-main {
  background: var(--ink-mid);
  padding:    clamp(2.5rem, 5vw, 4rem);
}
.split-aside {
  background:  var(--ink-panel);
  padding:     clamp(2.5rem, 5vw, 4rem);
  display:     flex;
  align-items: center;
}
.split-aside blockquote {
  border-left: 2px solid var(--gold-border);
  padding-left: 2rem;
  margin:       0;
  font-family:  var(--font-display);
  font-size:    clamp(1rem, 1.8vw, 1.2rem);
  font-style:   italic;
  line-height:  1.85;
  color:        var(--text-primary);
}
.split-aside cite {
  display:        block;
  margin-top:     1.25rem;
  font-family:    var(--font-caps);
  font-size:      .52rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color:          var(--gold);
  opacity:        .65;
  font-style:     normal;
}

/* ── OFFERS ─────────────────────────────────────────────── */
.offers-section { background: var(--ink); }
.offers-header  { text-align: center; margin-bottom: 3rem; }
.offers-sub {
  font-family: var(--font-display);
  font-size:   1rem;
  font-style:  italic;
  color:       var(--text-muted);
  max-width:   52ch;
  margin-inline: auto;
  margin-top:  .75rem;
}
.offers-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   1px;
  background:            var(--gold-border);
  border:                1px solid var(--gold-border);
  max-width:             var(--max-w);
  margin-inline:         auto;
  padding-inline:        clamp(1.5rem, 5vw, 3rem);
}
.offer-card {
  background:      var(--ink-mid);
  padding:         2.5rem 2rem;
  display:         flex;
  flex-direction:  column;
  position:        relative;
  overflow:        hidden;
  transition:      background var(--dur-base);
}
.offer-card::before {
  content:          '';
  position:         absolute;
  top:              0; left: 0; right: 0;
  height:           2px;
  background:       linear-gradient(90deg, var(--gold), var(--teal));
  transform:        scaleX(0);
  transform-origin: left;
  transition:       transform .5s var(--ease);
}
.offer-card:hover { background: var(--ink-raised); }
.offer-card:hover::before { transform: scaleX(1); }
.offer-card--featured { border-color: var(--gold); }
.offer-card--featured::before { transform: scaleX(1); opacity: .5; }

.offer-n {
  font-family:    var(--font-caps);
  font-size:      .46rem;
  letter-spacing: .25em;
  color:          var(--gold);
  opacity:        .4;
  text-transform: uppercase;
  margin-bottom:  1rem;
  display:        block;
}
.offer-card h3 {
  font-family:   var(--font-display);
  font-size:     1.3rem;
  color:         var(--text-primary);
  margin-bottom: .875rem;
  font-weight:   400;
}
.offer-card p {
  font-size:   .9rem;
  line-height: 1.8;
  color:       var(--text-secondary);
  flex:        1;
}
.offer-footer {
  display:         flex;
  align-items:     flex-end;
  justify-content: space-between;
  margin-top:      1.5rem;
  padding-top:     1rem;
  border-top:      1px solid var(--gold-border);
  gap:             .5rem;
}
.offer-price {
  display:       block;
  font-family:   var(--font-display);
  font-size:     1.6rem;
  font-weight:   300;
  color:         var(--gold);
  line-height:   1;
  margin-bottom: .25rem;
}
.offer-price-sub {
  font-size:   1rem;
  color:       var(--text-muted);
  font-family: var(--font-caps);
  font-size:   .6rem;
  letter-spacing: .1em;
}
.offer-meta {
  font-family:    var(--font-caps);
  font-size:      .46rem;
  letter-spacing: .14em;
  color:          var(--text-muted);
  text-transform: uppercase;
}
.offers-note {
  text-align:  center;
  margin-top:  2rem;
  font-family: var(--font-display);
  font-style:  italic;
  color:       var(--text-muted);
  font-size:   .92rem;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
}
.offers-note a { color: var(--gold); }

/* ── START HERE BAND ────────────────────────────────────── */
.start-here-band {
  padding-block: var(--section-v);
  background:    linear-gradient(135deg, rgba(15,187,207,.05) 0%, transparent 60%),
                 var(--ink-soft);
  border-top:    1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
  text-align:    center;
}
.start-here-band h2 {
  font-size:   clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
}
.start-here-band p {
  font-family:   var(--font-display);
  font-size:     1rem;
  font-style:    italic;
  color:         var(--text-secondary);
  max-width:     52ch;
  margin-inline: auto;
  margin-bottom: 2rem;
  line-height:   1.9;
}

/* ── EDITORIAL GATEWAY ──────────────────────────────────── */
.editorial-gateway {
  background:  var(--ink-soft);
  border-top:  1px solid var(--gold-border);
  padding-block: var(--section-v);
}
.editorial-gateway .container { text-align: center; margin-bottom: 2.5rem; }
.gateway-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   1px;
  background:            var(--gold-border);
  border:                1px solid var(--gold-border);
  max-width:             var(--max-w);
  margin-inline:         auto;
  padding-inline:        clamp(1.5rem, 5vw, 3rem);
}
.gateway-item {
  background:  var(--ink-mid);
  padding:     1.75rem 1.25rem;
  text-align:  center;
  overflow:    hidden;
  transition:  background var(--dur-base);
}
.gateway-item:hover { background: var(--ink-raised); }
.gateway-item::after {
  content:          '';
  display:          block;
  height:           1px;
  background:       var(--gold);
  transform:        scaleX(0);
  transform-origin: center;
  transition:       transform .35s var(--ease);
  margin-top:       .75rem;
}
.gateway-item:hover::after { transform: scaleX(.6); }
.gateway-item a {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  gap:             .5rem;
  font-family:     var(--font-display);
  font-size:       .95rem;
  font-style:      italic;
  color:           var(--text-secondary);
  text-decoration: none;
  transition:      color var(--dur-fast);
}
.gateway-item a:hover { color: var(--gold); text-decoration: none; }
.gateway-arrow {
  font-family:    var(--font-caps);
  font-size:      .46rem;
  letter-spacing: .14em;
  color:          var(--gold);
  opacity:        0;
  transform:      translateY(4px);
  transition:     opacity .25s, transform .25s;
}
.gateway-item:hover .gateway-arrow { opacity: .7; transform: none; }

/* ── FINAL CTA ──────────────────────────────────────────── */
.final-cta {
  padding-block: var(--section-v);
  background:    var(--ink);
  position:      relative;
  overflow:      hidden;
  text-align:    center;
}
.final-cta::before {
  content:     'SANCTUARY';
  position:    absolute;
  top:         50%;
  left:        50%;
  transform:   translate(-50%, -50%);
  font-family: var(--font-display);
  font-size:   clamp(4rem, 16vw, 14rem);
  font-weight: 700;
  letter-spacing: .3em;
  color:       rgba(201,168,76,.022);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.final-cta-inner {
  max-width:  680px;
  margin:     0 auto;
  padding:    0 clamp(1.25rem, 5vw, 3rem);
  position:   relative;
  z-index:    1;
}
.final-cta h2 {
  font-size:     clamp(2rem, 4.5vw, 3.2rem);
  font-weight:   300;
  margin-bottom: 1.25rem;
  line-height:   1.2;
}
.final-cta p {
  font-family:   var(--font-display);
  font-size:     1.05rem;
  font-style:    italic;
  line-height:   1.9;
  color:         var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width:     52ch;
  margin-inline: auto;
}
.final-cta .btn-row { justify-content: center; }

/* ── HOMEPAGE RESPONSIVE ────────────────────────────────── */
@media (max-width: 1024px) {
  .offers-grid       { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .gateway-grid      { grid-template-columns: repeat(2, 1fr); }
  .split             { grid-template-columns: 1fr; }
  .split-aside       { display: none; } /* keep focus on copy at tablet */
}

@media (max-width: 720px) {
  .hero-stats      { display: none; }
  .hero-badge-embed { top: .75rem; right: .75rem; }
  .hero-badge-embed img { width: 70px; }
  .authority-inner { flex-wrap: wrap; gap: 1rem; }
  .offers-grid     { grid-template-columns: 1fr; }
  .gateway-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .gateway-grid    { grid-template-columns: 1fr; }
  .hero-ctas       { flex-direction: column; }
  .hero-ctas a     { text-align: center; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero-content h1,
  .hero-sub,
  .hero-ctas,
  .hero-scroll {
    animation: none !important;
    opacity:   1 !important;
    transform: none !important;
  }
  .hero-bg-img, .hero-scroll-line {
    transition: none !important;
    animation:  none !important;
  }
}
