/* ============================================================
   Adaptive Movement & Performance
   THEME COLORS — Crimson & Gold (the site's chosen theme).
   build_deploy.py swaps it out for each theme; keep every colour here.
   ============================================================ */
/* Theme: Crimson & Gold */
:root {
  --brand: #af0c3a;
  --brand-rgb: 175, 12, 58;
  --brand-dark: #8a0a2e;
  --on-brand: #ffffff;
  --brand-ink: #af0c3a;
  --accent: #f2c230;
  --accent-rgb: 242, 194, 48;
  --ink: #0e1012;
  --ink-rgb: 14, 16, 18;
  --ink-2: #16191c;
  --ink-3: #1f2327;
  --line: #2c3136;
  --text: #f2f3f4;
  --muted: #a7a9ab;
  --light-bg: #f4f4f2;
  --light-text: #16191c;
  --light-muted: #5b6168;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.05;
  font-weight: 600;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .85rem;
  color: var(--accent);
  margin-bottom: 14px;
}
.accent { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 620px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .08em;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 6px;
  border: 2px solid var(--brand);
  background: var(--brand); color: var(--on-brand);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn-outline:hover { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(var(--ink-rgb), .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--brand);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #fff;
  letter-spacing: .04em;
}
.logo img { height: 44px; width: auto; }
.logo-text { font-family: var(--font-display); text-transform: uppercase; line-height: 1.05; font-size: .95rem; letter-spacing: .06em; }
.logo-text small { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .14em; }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .92rem;
  color: var(--muted); transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }
.nav-links .btn { color: var(--on-brand); padding: 11px 20px; font-size: .9rem; }
.nav-links .btn.active { box-shadow: none; padding-bottom: 11px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px auto; transition: .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 120px 0 110px;
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(var(--brand-rgb), .45), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, transparent 0 38px, rgba(255,255,255,.025) 38px 40px);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; }
.hero h1 .accent { display: block; }
.hero-card {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px;
}
.hero-card h3 { margin-bottom: 18px; }
.hero-card ul { list-style: none; display: grid; gap: 14px; }
.hero-card li { display: flex; gap: 12px; color: var(--muted); }
.hero-card li::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 9px; background: var(--accent); border-radius: 2px; }

.page-hero { padding: 90px 0 70px; background: radial-gradient(ellipse 50% 80% at 90% 0%, rgba(var(--brand-rgb), .4), transparent 70%), var(--ink-2); border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-top: 18px; }

/* ---------- Stats strip ---------- */
.stats { background: var(--brand); color: var(--on-brand); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 20px; text-align: center; border-right: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.stat span { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; opacity: .9; }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
.section-alt { background: var(--ink-2); }
.section-light { background: var(--light-bg); color: var(--light-text); }
.section-light .lead, .section-light p { color: var(--light-muted); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin: 16px auto 0; }
.section-head .lead { margin-top: 16px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.card {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--brand); transform: translateY(-4px); }
.card .icon {
  width: 52px; height: 52px; border-radius: 8px; margin-bottom: 22px;
  display: grid; place-items: center;
  background: rgba(var(--accent-rgb), .12); color: var(--accent);
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); }
.card .more { display: inline-block; margin-top: 18px; color: var(--accent); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; }

/* ---------- Method steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { border-top: 3px solid var(--light-text); padding-top: 22px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-size: 2.6rem; color: var(--brand-ink); line-height: 1; display: block; margin-bottom: 10px;
}
.step h3 { margin-bottom: 8px; }

/* ---------- Photo placeholders ---------- */
.photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, rgba(var(--brand-rgb), .55), transparent 60%),
    repeating-linear-gradient(45deg, var(--ink-3) 0 14px, var(--ink-2) 14px 28px);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.photo.wide { aspect-ratio: 16 / 10; }
.photo span {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: .85rem;
  background: rgba(14,16,18,.8); color: var(--muted); padding: 8px 14px; border-radius: 4px;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Testimonials ---------- */
.quote { background: var(--ink-3); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 32px; }
.quote p { font-size: 1.05rem; color: var(--text); margin-bottom: 20px; }
.quote cite { font-style: normal; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .88rem; color: var(--muted); }
.quote cite strong { color: var(--accent); font-weight: 500; }

/* ---------- Program detail ---------- */
.program { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.program:last-child { border-bottom: 0; }
.program:nth-child(even) .photo { order: 2; }
.program h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 16px; }
.program p { color: var(--muted); margin-bottom: 20px; }
.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.checklist li { position: relative; padding-left: 26px; color: var(--text); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.tag { display: inline-block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; margin: 0 6px 14px 0; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { background: #fff; border: 1px solid #e0e0dc; border-radius: var(--radius); padding: 38px 32px; display: flex; flex-direction: column; }
.price-card.featured { background: var(--ink); color: var(--text); border-color: var(--brand); box-shadow: 0 20px 50px rgba(0,0,0,.18); position: relative; }
.price-card.featured p, .price-card.featured li { color: var(--muted); }
.price-card .badge { position: absolute; top: -13px; left: 32px; background: var(--brand); color: var(--on-brand); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; padding: 5px 12px; border-radius: 4px; }
.price { font-family: var(--font-display); font-size: 3rem; line-height: 1; margin: 18px 0 6px; }
.price small { font-size: 1rem; color: var(--light-muted); }
.price-card.featured .price small { color: var(--muted); }
.price-card ul { list-style: none; margin: 24px 0 30px; display: grid; gap: 10px; flex: 1; }
.price-card li { padding-left: 24px; position: relative; color: var(--light-muted); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price-card .btn { justify-content: center; }
.price-card:not(.featured) .btn-outline { color: var(--light-text); border-color: #cfcfca; }
.price-card:not(.featured) .btn-outline:hover { color: var(--brand-ink); border-color: var(--brand-ink); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.15rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 12px; }

/* ---------- About ---------- */
.creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.creds span { background: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; font-size: .9rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.values h3 { color: var(--light-text); margin-bottom: 10px; }
.values h3::before { content: ""; display: block; width: 40px; height: 4px; background: var(--brand); margin-bottom: 16px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
.form { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 7px; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-family: var(--font-display); }
.form input, .form select, .form textarea {
  font: inherit; font-family: var(--font-body); font-size: 1rem; text-transform: none; letter-spacing: 0;
  background: var(--ink); color: var(--text);
  border: 1px solid var(--line); border-radius: 6px; padding: 13px 14px;
  width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); }
.form textarea { min-height: 130px; resize: vertical; }
.form .btn { justify-content: center; }
.hidden { display: none; }

.info-block { border-bottom: 1px solid var(--line); padding: 22px 0; }
.info-block:first-child { padding-top: 0; }
.info-block h4 { color: var(--accent); font-size: .95rem; letter-spacing: .12em; margin-bottom: 6px; }
.info-block p { color: var(--muted); }
.hours { width: 100%; border-collapse: collapse; color: var(--muted); }
.hours td { padding: 4px 0; }
.hours td:last-child { text-align: right; color: var(--text); }
.map { margin-top: 26px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--on-brand); padding: 80px 0;
}
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band p { opacity: .9; margin-top: 10px; font-size: 1.1rem; }
.cta-band .btn { background: var(--ink); border-color: var(--ink); color: var(--text); }
.cta-band .btn:hover { background: #000; border-color: #000; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); border-top: 1px solid var(--line); padding: 70px 0 30px; color: var(--muted); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.site-footer h4 { color: var(--text); font-size: .95rem; letter-spacing: .12em; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--accent); }
.footer-about p { margin-top: 18px; max-width: 300px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; transition: border-color .2s, color .2s; }
.socials a:hover { border-color: var(--brand); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .grid-2, .program, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .program:nth-child(even) .photo { order: 0; }
  .grid-3, .pricing, .values { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .price-card.featured { order: -1; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line);
    padding: 10px 24px 24px;
    transform: translateY(-120%); transition: transform .3s ease;
  }
  .nav-open .nav-links { transform: none; }
  .nav-links li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a.active { box-shadow: none; color: var(--accent); padding-bottom: 14px; }
  .nav-links li:last-child a { border: 0; margin-top: 16px; justify-content: center; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  section { padding: 70px 0; }
  .hero { padding: 80px 0 70px; }
  .stats .container { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
  .steps, .checklist, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .form { padding: 26px 20px; }
  .btn-row .btn { width: 100%; justify-content: center; }
}

/* ---------- On light sections, use the readable brand shade for accents ---------- */
.section-light .eyebrow, .section-light .accent { color: var(--brand-ink); }
.price-card:not(.featured) li::before { color: var(--brand-ink); }

/* ---------- Logo badge ---------- */
.logo img.logo-badge { height: 58px; width: 58px; border-radius: 50%; }
.site-footer .logo img.logo-badge { height: 72px; width: 72px; }
