/* JFit Connect — site styles. Design language carried over from
   go.jfitconnect.com/find-a-trainer.html so the site and the landing pages match. */
:root{
  --cream:#F7F4EF; --cream-2:#EFEAE1; --ink:#181818; --ink-2:#3A3A3A;
  --muted:#6B6B6B; --orange:#F34526; --line:#E2DED6; --white:#fff;
  --serif:"Playfair Display",Georgia,"Times New Roman",serif;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Helvetica,Arial,sans-serif;
  --wrap:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--sans);
  font-size:17px;line-height:1.65;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}
.serif{font-family:var(--serif);font-weight:700;letter-spacing:-.4px;line-height:1.08}
h1{font-family:var(--serif);font-weight:700;letter-spacing:-1px;line-height:1.05;
  font-size:clamp(38px,5.6vw,68px);margin:0 0 18px}
h2{font-family:var(--serif);font-weight:700;letter-spacing:-.6px;line-height:1.1;
  font-size:clamp(28px,3.6vw,44px);margin:0 0 14px}
h3{font-size:18px;margin:0 0 8px;font-weight:650}
p{margin:0 0 14px}
.lead{font-size:clamp(17px,1.5vw,19px);color:var(--ink-2);max-width:56ch}
.eyebrow{font-size:12px;letter-spacing:2.2px;text-transform:uppercase;
  color:var(--muted);margin:0 0 14px;font-weight:600}
.accent{color:var(--orange)}
.btn{display:inline-block;padding:14px 26px;border-radius:999px;text-decoration:none;
  font-weight:650;font-size:15px;transition:transform .15s ease,opacity .15s ease}
.btn:hover{transform:translateY(-1px);opacity:.93}
.btn-primary{background:var(--orange);color:#fff}
.btn-dark{background:var(--ink);color:#fff}
.btn-ghost{border:1.5px solid var(--ink);color:var(--ink)}
.btn-light{background:#fff;color:var(--ink)}

/* header */
header.site{position:sticky;top:0;z-index:50;background:rgba(247,244,239,.92);
  backdrop-filter:saturate(1.6) blur(10px);border-bottom:1px solid var(--line);
  transition:background .35s ease,border-color .35s ease,backdrop-filter .35s ease}

/* On the homepage the header floats over the hero photo until the first fold is
   passed, then fades into the standard cream bar. .has-hero is set on <body> by
   head(); .scrolled is toggled by the scroll listener in _partials.py.
   Inner pages have no hero image, so they keep the solid bar at all times. */
body.has-hero header.site{position:fixed;left:0;right:0;
  background:transparent;border-bottom-color:transparent;backdrop-filter:none}
body.has-hero header.site.scrolled{background:rgba(247,244,239,.92);
  border-bottom-color:var(--line);backdrop-filter:saturate(1.6) blur(10px)}
/* The hero sits under the fixed header, so it pays for the header's height. */
/* Fit the whole hero in the first view: the fixed header sits over it, so the
   section is sized to the viewport rather than to a fixed padding stack. */
body.has-hero .hero{min-height:100svh;display:flex;align-items:center}
body.has-hero .hero .inner{padding-top:clamp(96px,13vh,150px)}
header.site .bar{display:flex;align-items:center;justify-content:space-between;
  gap:20px;padding:13px 24px;max-width:var(--wrap);margin:0 auto}
header.site img.logo{height:30px;width:auto}
nav.main{display:flex;gap:26px;align-items:center}
nav.main a{text-decoration:none;font-size:15px;color:var(--ink-2);font-weight:550}
nav.main a:hover{color:var(--orange)}
.navtoggle{display:none;background:none;border:0;font-size:24px;cursor:pointer;padding:4px 8px}

/* hero — full-bleed photo background, centred type.
   The photo's top 40% is bright flat sky (luminance ~205-217, sd ~9), so the
   headline is INK on light, not white on dark. Below 40% the skyline and the
   subjects begin, which is where the gradient takes over and dissolves the
   photo into the tinted section that follows. */
.hero{position:relative;overflow:hidden;background:var(--cream-2)}
/* Over the bright sky the nav stays ink; a soft scrim guarantees contrast for
   the logo and links regardless of what the photo does up there. */
body.has-hero header.site:not(.scrolled)::before{content:"";position:absolute;
  inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(to bottom,rgba(247,244,239,.60),rgba(247,244,239,0))}
.hero-bg{position:absolute;inset:0;background-image:url('../img/hero-bg.jpg');
  background-size:cover;
  /* anchor to the top: the quiet sky we write on lives in the upper third,
     and `center` would push it out of frame on a short viewport. */
  background-position:center top;background-repeat:no-repeat}
/* Two stacked washes: a light veil over the sky so ink type always clears
   contrast even if the photo is ever swapped, then the merge to --cream-2. */
.hero-bg::after{content:"";position:absolute;inset:0;
  background:
    linear-gradient(to bottom,
      rgba(247,244,239,.34) 0%,
      rgba(247,244,239,.22) 34%,
      rgba(247,244,239,.10) 54%,
      rgba(247,244,239,0)   72%),
    linear-gradient(to bottom,
      rgba(239,234,225,0)   52%,
      rgba(239,234,225,.62) 76%,
      rgba(239,234,225,.93) 90%,
      var(--cream-2)        100%)}
.hero .inner{position:relative;z-index:2;max-width:760px;margin:0 auto;
  text-align:center;padding:clamp(28px,5vh,56px) 24px clamp(70px,13vh,140px)}
/* A soft plate under the copy only. The photo's centre-left carries the subjects,
   so a full-width veil would flatten them; this lifts just the text column. */
.hero .inner::before{content:"";position:absolute;z-index:-1;
  /* Full-bleed on purpose. A fixed-width plate leaves a hard vertical cut where
     the box clips an ellipse that is still partly opaque (seam was at x=248 and
     its mirror). Spanning the whole viewport means the gradient alone does the
     fading and there are no box edges to see. */
  left:50%;transform:translateX(-50%);top:-140px;
  width:100vw;height:calc(100% + 140px);
  background:radial-gradient(ellipse 46% 52% at 50% 44%,
    rgba(247,244,239,.92) 0%,
    rgba(247,244,239,.86) 34%,
    rgba(247,244,239,.62) 56%,
    rgba(247,244,239,.30) 74%,
    rgba(247,244,239,.08) 90%,
    rgba(247,244,239,0)   100%);
  pointer-events:none}
.hero .inner .lead{margin-left:auto;margin-right:auto}
.hero .cta-row{justify-content:center}
.hero .stores{justify-content:center}
.hero .hero-facts{color:var(--ink-2)}

.hero .disciplines{margin:16px 0 18px;color:var(--ink-2);font-size:15.5px;
  font-weight:600;letter-spacing:.2px}
.hero .h1-balance{max-width:16ch;margin-left:auto;margin-right:auto;
  font-size:clamp(34px,4.6vw,56px);text-wrap:balance}
.hero .disciplines{display:flex;flex-wrap:wrap;justify-content:center;
  align-items:center;gap:0 4px}
.hero .disciplines span{white-space:nowrap}
.hero .disciplines i{font-style:normal;color:var(--orange);margin:0 5px}

.pills{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 22px}
.pill{background:#fff;border:1px solid var(--line);border-radius:999px;
  padding:7px 15px;font-size:13.5px;font-weight:600}
.cta-row{display:flex;gap:18px;flex-wrap:wrap;align-items:center}
.hero-facts{color:var(--muted);font-size:15px;margin:14px 0 18px;letter-spacing:.1px}
.hero-link{text-decoration:none;font-weight:600;font-size:15px;color:var(--ink);
  border-bottom:1.5px solid var(--orange);padding-bottom:2px}
.hero-link:hover{color:var(--orange)}
.stores{display:flex;gap:10px;margin-top:18px;align-items:center}
.stores img{height:42px;width:auto}

/* sections */
section{padding:74px 0}
section.tint{background:var(--cream-2)}
section.dark{background:var(--ink);color:#F2EFE9}
section.dark h2,section.dark h3{color:#fff}
section.dark .lead,section.dark p{color:#CFC9C0}
section.dark .eyebrow{color:#8E877D}

.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:34px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:center}
.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px}
section.dark .card{background:#232323;border-color:#333}
.num{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;
  border-radius:50%;background:var(--orange);color:#fff;font-weight:700;font-size:14px;margin-bottom:12px}
.step-n{font-family:var(--serif);font-size:15px;color:var(--orange);font-weight:700;margin-bottom:6px}
.tick{color:var(--orange);font-weight:700;margin-right:8px}
.sec-img{border-radius:16px;overflow:hidden;box-shadow:0 14px 40px rgba(0,0,0,.11);
  aspect-ratio:4/3}
.sec-img img{width:100%;height:100%;object-fit:cover}

/* disciplines */
.disc{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:32px}
.disc a{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px;
  text-decoration:none;display:block;transition:border-color .15s ease,transform .15s ease}
.disc a:hover{border-color:var(--orange);transform:translateY(-2px)}
.disc h3{margin-bottom:6px}
.disc p{font-size:14.5px;color:var(--muted);margin:0}

/* cta band */
.band{position:relative;min-height:460px;display:flex;align-items:center;
  background-size:cover;
  /* anchor near the top: `center` crops the subject's head off when the band is
     shorter than the image's 16:9 ratio. */
  background-position:center 22%;color:#fff}
.band::after{content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(10,14,20,.90) 0%,rgba(10,14,20,.72) 42%,rgba(10,14,20,.15) 100%)}
.band .inner{position:relative;z-index:2;max-width:var(--wrap);margin:0 auto;padding:60px 24px;max-width:640px;margin-left:max(24px,calc((100vw - var(--wrap))/2 + 24px))}
.band h2{color:#fff}
.band p{color:#DDD8D1}

/* faq */
details{border-bottom:1px solid var(--line);padding:16px 0}
details summary{cursor:pointer;font-weight:600;font-size:17px;list-style:none;
  display:flex;justify-content:space-between;gap:16px;align-items:center}
details summary::-webkit-details-marker{display:none}
details summary::after{content:"+";color:var(--orange);font-size:22px;font-weight:400}
details[open] summary::after{content:"–"}
details p{margin:12px 0 0;color:var(--ink-2);max-width:72ch}

/* footer */
footer.site{background:var(--ink);color:#B9B3AA;padding:54px 0 28px;font-size:14.5px}
footer.site a{color:#B9B3AA;text-decoration:none}
footer.site a:hover{color:#fff}
footer.site img.logo{height:30px;margin-bottom:14px}
.fgrid{display:grid;grid-template-columns:2fr 1fr 1fr 1.2fr;gap:34px}
.fgrid h4{color:#fff;font-size:14px;margin:0 0 12px;letter-spacing:.3px}
/* social row — only channels we actually post to */
.social{display:flex;gap:12px;margin-top:16px}
.social a{display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.18);
  color:#B9B3AA;transition:color .15s,border-color .15s,background .15s}
.social a:hover{color:#fff;border-color:rgba(255,255,255,.45);background:rgba(255,255,255,.08)}
.fgrid ul{list-style:none;padding:0;margin:0}
.fgrid li{margin-bottom:9px}
.fbot{border-top:1px solid #2E2E2E;margin-top:34px;padding-top:18px;
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:13px;color:#8E877D}

@media (max-width:900px){
  .disc{grid-template-columns:repeat(2,1fr)}
  .hero .inner{padding:44px 20px 150px}
  /* 16:9 cover on a tall narrow viewport crops hard; bias left so the
     coaching pair stays in frame rather than showing only sky and paving. */
  .hero-bg{background-position:38% top}
  .hero .disciplines{font-size:14px;gap:0 2px}
  .hero .disciplines i{margin:0 3px}
  .hero .inner::before{width:150%;height:calc(100% - 90px);
    background:radial-gradient(ellipse 72% 56% at 50% 40%,
      rgba(247,244,239,.90) 0%,
      rgba(247,244,239,.76) 46%,
      rgba(247,244,239,.30) 74%,
      rgba(247,244,239,0)   100%)}
  .grid3,.disc{grid-template-columns:1fr}
  .grid2{grid-template-columns:1fr;gap:26px}
  .fgrid{grid-template-columns:1fr 1fr}
  nav.main{display:none}
  nav.main.open{display:flex;position:absolute;top:100%;left:0;right:0;background:var(--cream);
    flex-direction:column;gap:0;padding:8px 24px 18px;border-bottom:1px solid var(--line)}
  nav.main.open a{padding:11px 0;border-bottom:1px solid var(--line)}
  .navtoggle{display:block}
  header.site .bar{position:relative}
  .band .inner{margin-left:0;padding:44px 24px}
  section{padding:54px 0}
}
