/* ===========================================================
   Austin Personal Training — stylesheet
   Aesthetic: premium, editorial, calm. Forest green + bronze.
   =========================================================== */

:root {
  --ink: #1c211d;          /* near-black green */
  --surface: #f6f3ec;      /* warm off-white */
  --surface-2: # ece7db;   /* slightly deeper card surface */
  --brand: #2f4739;        /* deep forest green (logo) */
  --brand-deep: #1f3027;
  --accent: #a9794a;       /* bronze (nods to trophies) */
  --accent-soft: #c79a6b;
  --muted: #6c6b62;
  --line: rgba(28,33,29,.12);
  --maxw: 1180px;
  --radius: 16px;
  --shadow: 0 18px 50px -22px rgba(28,33,29,.45);
  --ease: cubic-bezier(.22,.61,.36,1);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
}

/* fix typo guard: surface-2 fallback */
:root { --surface-2: #ece7db; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  font-size: 1.0625rem;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

img, video { max-width: 100%; height: auto; display: block; }
/* Safety net: media that fills a sized box must crop, never stretch */
.hero__media video, .hero__media img,
.gallery__main img, .gallery__main video,
.gallery__side img, .gallery__side video,
.member__photo img, .video-feature video { object-fit: cover; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 460;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--accent); display: inline-block;
}

.section { padding-block: clamp(64px, 9vw, 130px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: 15px 28px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: all .35s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #f4f1e8; }
.btn--primary:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--surface); transform: translateY(-2px); }
.btn--light { background: #f4f1e8; color: var(--brand-deep); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--lg { padding: 18px 36px; font-size: 1.05rem; }

/* Header "book now" button: bronze, readable on both transparent and solid header */
.btn--booknow { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--booknow:hover { background: #966840; border-color: #966840; transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(246,243,236,.92);
  backdrop-filter: blur(12px);
  padding-block: 12px;
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: baseline; gap: .55rem; font-family: var(--serif); }
.brand__mark { font-size: 1.5rem; font-weight: 600; letter-spacing: .04em; color: var(--brand); }
.brand__sub { font-family: var(--sans); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.site-header:not(.scrolled) .brand__mark { color: #f4f1e8; }
.site-header:not(.scrolled) .brand__sub { color: rgba(244,241,232,.8); }
/* When hero is light or on inner pages, header uses dark text by default via .header--solid */
.header--solid { position: sticky; background: rgba(246,243,236,.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.header--solid .brand__mark { color: var(--brand); }
.header--solid .brand__sub { color: var(--muted); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__links { display: flex; gap: 26px; list-style: none; }
.nav__links a { font-size: .95rem; font-weight: 500; position: relative; padding-block: 4px; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px;
  background: var(--accent); transition: width .35s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.site-header:not(.scrolled):not(.header--solid) .nav__links a { color: #f4f1e8; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 22px; position: relative; }
.nav__toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: .3s var(--ease); }
.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 10px; }
.nav__toggle span:nth-child(3) { top: 20px; }
.site-header:not(.scrolled):not(.header--solid) .nav__toggle { color: #f4f1e8; }
.site-header.scrolled .nav__toggle, .header--solid .nav__toggle { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #f4f1e8; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,33,29,.55) 0%, rgba(28,33,29,.25) 40%, rgba(28,33,29,.85) 100%);
}
.hero__inner { padding-bottom: clamp(56px, 8vw, 110px); padding-top: 140px; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); max-width: 16ch; margin-block: 18px 22px; }
.hero h1 em { font-style: italic; color: var(--accent-soft); }
.hero__lede { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 46ch; color: rgba(244,241,232,.9); margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll { position: absolute; right: clamp(20px,4vw,48px); bottom: 40px; writing-mode: vertical-rl; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; opacity: .8; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--brand-deep); color: #e9e4d6; }
.trustbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; padding-block: 34px; }
.trustbar .num { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); color: #fff; display: block; line-height: 1; }
.trustbar .lbl { font-size: .82rem; letter-spacing: .04em; color: rgba(233,228,214,.75); margin-top: 8px; display: block; }

/* ---------- Section heading ---------- */
.sec-head { max-width: 60ch; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-top: 16px; }
.sec-head p { color: var(--muted); margin-top: 16px; font-size: 1.1rem; max-width: 52ch; }

/* ---------- Intro / split ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media { position: relative; }
.split__media img, .split__media video { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; object-fit: cover; display: block; }
.split__media .badge {
  position: absolute; bottom: -22px; left: -22px; background: var(--accent); color: #fff;
  font-family: var(--serif); padding: 18px 24px; border-radius: 12px; line-height: 1.1; box-shadow: var(--shadow);
}
.split__media .badge b { font-size: 1.9rem; display: block; }
.split__media .badge span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--sans); }
.prose p { margin-top: 18px; color: #3a3f39; }
.prose p:first-child { margin-top: 0; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__num { font-family: var(--serif); font-size: 1rem; color: var(--accent); }
.card h3 { font-size: 1.55rem; margin: 14px 0 12px; }
.card ul { list-style: none; margin-top: 16px; }
.card li { padding-left: 26px; position: relative; margin-top: 10px; color: #3a3f39; font-size: .98rem; }
.card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 2px; background: var(--accent); }
.card__tag { display: inline-block; margin-top: 18px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); font-weight: 600; }

/* ---------- Feature pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font-size: .9rem; font-weight: 500; background: var(--surface); }
.pill::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 700; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.gallery__main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery__main img, .gallery__main video { width: 100%; height: 100%; object-fit: cover; }
.gallery__side { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.gallery__side figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.gallery__side img, .gallery__side video { width: 100%; height: 100%; object-fit: cover; }

/* dark feature band */
.band { background: var(--brand); color: #eef0e9; }
.band .sec-head h2 { color: #fff; }
.band .sec-head p { color: rgba(238,240,233,.78); }
.band .pill { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #eef0e9; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 130px 1fr; }
.member__photo { background: var(--surface-2); position: relative; min-height: 100%; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__photo .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 2.4rem; color: var(--accent); }
.member__body { padding: 26px 26px 28px; }
.member__body h3 { font-size: 1.4rem; }
.member__role { color: var(--accent); font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin-top: 4px; }
.member__body p { color: #3a3f39; margin-top: 12px; font-size: .96rem; }
.member__hours { margin-top: 14px; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- Testimonials placeholder ---------- */
.quote { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.3; max-width: 24ch; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--surface); text-align: center; }
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; margin-inline: auto; }
.cta-band p { color: rgba(246,243,236,.75); margin: 18px auto 30px; max-width: 44ch; }
.cta-band .hero__cta { justify-content: center; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-info h3 { font-size: 1.3rem; margin-bottom: 6px; }
.contact-info .row { display: flex; gap: 14px; align-items: flex-start; padding-block: 18px; border-bottom: 1px solid var(--line); }
.contact-info .row svg { flex: none; margin-top: 3px; color: var(--accent); }
.contact-info .row a, .contact-info .row span { font-size: 1.05rem; }
.contact-info .label { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 2px; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 8px; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47,71,57,.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .9rem; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 8px; }
.form__status { margin-top: 16px; font-weight: 600; }
.form__status.ok { color: var(--brand); }
.form__status.err { color: #b4422e; }
.form .btn { width: 100%; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-deep); color: #d9d4c6; padding-block: 64px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--accent-soft); margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand__mark { color: #fff; }
.footer-soc { display: flex; gap: 14px; margin-top: 16px; }
.footer-soc a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: grid; place-items: center; transition: .3s var(--ease); }
.footer-soc a:hover { background: var(--accent); border-color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: rgba(217,212,198,.7); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--brand); color: #f4f1e8; padding-top: 130px; padding-bottom: clamp(40px,6vw,72px); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 18ch; margin-top: 14px; }
.page-hero p { color: rgba(244,241,232,.82); max-width: 50ch; margin-top: 16px; font-size: 1.12rem; }

/* Meet Tracy portrait hero */
.page-hero--portrait { padding-bottom: clamp(48px,7vw,84px); }
.page-hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px,5vw,64px); align-items: center; }
.page-hero__photo img { width: 100%; max-width: 420px; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); margin-left: auto; display: block; }
@media (max-width: 760px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__photo img { margin: 8px 0 0; max-width: 320px; }
}

/* ---------- Video pieces ---------- */
.video-feature { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-feature video { width: 100%; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trustbar__grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); flex-direction: column;
    background: var(--brand-deep); padding: 110px 32px 40px; gap: 22px; transform: translateX(100%);
    transition: transform .4s var(--ease); box-shadow: var(--shadow); z-index: 90;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { color: #f4f1e8 !important; font-size: 1.15rem; }
  .nav__toggle { display: block; z-index: 95; }
  .nav { gap: 0; }
  .nav .btn--header { display: none; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 560px) {
  .member { grid-template-columns: 1fr; }
  .member__photo { min-height: 220px; }
  .footer-grid { grid-template-columns: 1fr; }
  .split__media .badge { left: 12px; bottom: 12px; }
}
