/* Calibrated Custom Fitness — brand style sheet v1 */
:root {
  --green: #669a3d;
  --green-dark: #4f7a2c;
  --charcoal: #414141;
  --sage: #a9c68f;
  --mist: #f2f6ec;
  --paper: #f6f7f4;
  --white: #ffffff;
  --line: #d8dbd3;
  --display: "Saira Stencil One", sans-serif;
  --heading: Oswald, sans-serif;
  --body: Barlow, sans-serif;
  --header-h: 84px;
  --shadow: 0 12px 40px rgba(65, 65, 65, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  text-wrap: pretty;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--charcoal); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.wrap-wide { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }

.kicker {
  font-family: var(--heading);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 10px;
}
.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  color: var(--green);
  margin: 0 0 16px;
}
.heading {
  font-family: var(--heading);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
  line-height: 1.15;
}
h1.heading { font-size: clamp(28px, 4vw, 40px); }
h2.heading { font-size: clamp(22px, 3vw, 32px); }
h3.heading { font-size: 18px; }
.lede { font-size: 20px; max-width: 40rem; margin: 0 0 24px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 28px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: var(--white);
  font-family: var(--body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--green-dark); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  box-shadow: inset 0 0 0 2px var(--charcoal);
}
.btn-ghost:hover { background: var(--charcoal); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 6px solid var(--green);
}
.site-header .bar { position: relative; }
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { width: 210px; height: auto; }
.logo-mark { display: none; width: 44px; height: 44px; border-radius: 10px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer;
  padding: 10px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--charcoal); position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--charcoal);
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--green); }
.nav .btn { letter-spacing: 0; text-transform: none; font-family: var(--body); }
.header-actions { display: none; align-items: center; gap: 8px; flex-shrink: 0; }
.call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--mist);
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}
.call-btn:hover { background: var(--sage); color: var(--charcoal); }

@media (max-width: 800px) {
  .site-header .bar { gap: 8px; }
  .nav-toggle { display: block; flex-shrink: 0; }
  .header-actions { display: flex; }
  .header-actions .btn {
    white-space: nowrap;
    padding: 8px 12px;
    min-height: 40px;
    font-size: 16px;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 6px solid var(--green);
    padding: 8px 20px 24px;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { display: none; }
  .logo { flex: 0 0 auto; }
  .logo img { width: 160px; min-width: 160px; }
}

/* Hero */
.hero {
  background: var(--mist);
  padding: 72px 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: end;
}
.hero-copy { padding-bottom: 72px; }
.hero-photo {
  margin: 0;
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}
.band {
  background: var(--charcoal);
  color: var(--sage);
  overflow: hidden;
  padding: 14px 0;
}
.band p {
  font-family: var(--heading);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 14px;
  margin: 0;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.band-track { display: flex; width: max-content; }
.band-track span { padding-right: 48px; }

/* Sections */
.section { padding: 96px 0; }
.section-mist { background: var(--mist); }
.section-paper { background: var(--paper); }
.section-char { background: var(--charcoal); color: var(--white); }
.section-char .heading { color: var(--white); }
.section-char .kicker { color: var(--sage); }
.section-head { max-width: 40rem; margin-bottom: 40px; }
.section-head.center,
.center { text-align: center; margin-left: auto; margin-right: auto; }

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  padding: 32px 28px;
  border-top: 6px solid var(--green);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 16px; }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li {
  padding: 8px 0 8px 18px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.card li:last-child { border-bottom: 0; }
.card li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 8px; height: 8px;
  background: var(--green);
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.team-grid .person { width: calc(20% - 13px); min-width: 140px; }
.person {
  text-decoration: none;
  color: inherit;
  display: block;
}
.person img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  background: var(--sage);
}
.person h3 { margin: 14px 0 2px; font-size: 16px; }
.person p { font-size: 15px; color: var(--green-dark); margin: 0; }
.person:hover h3 { color: var(--green); }

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.quote {
  padding: 28px;
  border-left: 4px solid var(--green);
  background: var(--mist);
  color: var(--charcoal);
}
.quote-green { background: var(--green); color: var(--white); border-left-color: var(--charcoal); }
.quote-char { background: var(--charcoal); color: var(--white); border-left-color: var(--green); }
.quote blockquote {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.5;
}
.quote blockquote::before { content: "“"; font-family: var(--display); font-size: 40px; line-height: 0.8; display: block; margin-bottom: 12px; color: var(--green); }
.quote-green blockquote::before,
.quote-char blockquote::before { color: var(--sage); }
.quote cite {
  font-style: normal;
  font-weight: 600;
}

/* Reviews (filled by scripts/sync_reviews.py) */
.review-summary { margin: 28px 0 0; font-size: 18px; line-height: 1.5; }
.section-head .review-summary { margin: 0 0 24px; }
.stars { color: #e7a924; letter-spacing: 2px; margin-right: 6px; }
.review-list { columns: 3 320px; column-gap: 24px; }
.review {
  break-inside: avoid;
  margin: 0 0 24px;
  padding: 24px;
  background: var(--mist);
  border-left: 4px solid var(--green);
  color: var(--charcoal);
}
.review figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 12px; }
.review cite { font-style: normal; font-weight: 600; }
.review-meta { font-size: 14px; color: #666; }
.review blockquote { margin: 0; font-size: 16px; line-height: 1.55; }
.review blockquote p { margin: 0 0 10px; }
.review blockquote p:last-child { margin-bottom: 0; }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* Team bios */
.bio {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.bio .copy { max-width: 70ch; }
.bio:last-child { border-bottom: 0; }
.bio img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  background: var(--mist);
}
.certs {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.certs li {
  background: var(--mist);
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 500;
}

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 36px 20px 0;
  font-family: var(--heading);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 16px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 18px;
  color: var(--green);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 24px; max-width: 46rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}
.facts { display: grid; gap: 20px; }
.facts div {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-family: var(--heading);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--green);
  margin-bottom: 4px;
}
.facts dd { margin: 0; }
.facts a { color: var(--charcoal); text-decoration: none; }
.facts a:hover { color: var(--green); }

/* Forms */
.form { display: grid; gap: 16px; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend, .form label { display: block; font-size: 16px; font-weight: 500; }
.form .req { font-weight: 400; opacity: 0.65; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form input[type=text],
.form input[type=email],
.form input[type=tel],
.form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid #b7b9b2;
  border-radius: 0;
}
.form textarea { min-height: 120px; resize: vertical; }
.form [aria-invalid=true] { border-color: #b3261e; }
.checks { display: grid; gap: 8px; margin-top: 8px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 400; }
.form .btn { justify-self: start; }
.status:empty { display: none; }
.status { margin: 0; }
.status-error { color: #b3261e; }
.status-ok { color: var(--green-dark); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

dialog.consult {
  width: min(560px, 92vw);
  max-height: 90vh;
  overflow: auto;
  padding: 40px 32px 32px;
  border: 0;
  background: var(--white);
  color: var(--charcoal);
  box-shadow: var(--shadow);
}
dialog.consult::backdrop { background: rgba(65, 65, 65, 0.55); }
.consult-close {
  position: absolute;
  top: 10px; right: 12px;
  background: none; border: 0;
  font-size: 32px; line-height: 1;
  cursor: pointer; color: var(--charcoal);
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr 1.1fr 1.2fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer .logo { display: inline-block; margin-bottom: 16px; }
.site-footer .logo img { width: 200px; height: auto; background: none; padding: 0; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--sage); }
.footer-brand p { margin: 0 0 16px; }
.footer-tagline {
  font-size: 16px;
  line-height: 1.5;
  max-width: 18rem;
}
.footer-label {
  font-family: var(--heading);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--sage);
  margin: 0 0 12px;
}
.footer-visit .footer-label + .footer-label,
.footer-visit p + .footer-label { margin-top: 20px; }
.footer-visit p { margin: 0 0 8px; }
.footer-nav {
  display: grid;
  gap: 10px;
}
.footer-nav a {
  font-family: var(--heading);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
}
.social { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0 0; }
.footer-map {
  position: relative;
  width: 100%;
  height: 240px;
  background: #2d2d2d;
  border-radius: 8px;
  overflow: hidden;
}
.footer-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.footer-directions { margin: 10px 0 0; font-size: 14px; }
.footer-directions a { text-decoration: underline; text-underline-offset: 3px; }
.legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}
.legal a { color: inherit; text-decoration: none; }
.legal a:hover { color: var(--sage); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 16px; }
.legal-nav a { text-decoration: underline; text-underline-offset: 3px; }
.credit { font-size: 14px; }
.credit a { text-decoration: underline; text-underline-offset: 3px; }

/* 404 */
.page-404 { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .hero-grid,
  .cards-3,
  .quotes,
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid .person { width: calc(33.33% - 12px); }
  .bio { grid-template-columns: 220px 1fr; }
  .hero-photo img { aspect-ratio: 4 / 3; max-height: 420px; }
}
@media (max-width: 700px) {
  .wrap, .wrap-wide { width: calc(100% - 32px); }
  .section { padding: 64px 0; }
  .hero { padding-top: 32px; }
  .hero-copy { padding-bottom: 32px; }
  .team-grid .person { width: calc(50% - 8px); }
  .bio { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; }
  .bio .copy { max-width: 70ch; }
  .name-row { grid-template-columns: 1fr; }
  .logo img { width: 160px; min-width: 160px; }
  .cards-3 { gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-map { height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band p, .band-track { animation: none; }
}
