/* QUAKE Gym & Pilates — site styles
   One stylesheet for every page. Colours and type live in :root. */

:root {
  --ink: #0f100f;
  --ink-2: #171917;
  --ink-3: #222422;
  --chalk: #f4f2ed;
  --paper: #fbfaf7;
  --stone: #e7e3db;
  --text: #141514;
  --muted: #5c5b56;
  --muted-on-dark: #a8a9a2;
  --line: #d8d4ca;
  --line-dark: #2f312e;
  --accent: #d4ef4f;      /* lime, taken from the studio's bands; use on dark backgrounds or as a button fill */
  --accent-ink: #0f100f;

  --radius: 8px;
  --radius-lg: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 10vw, 128px);
  --header-h: 68px;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-underline-offset: 0.18em; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-stretch: 106%; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.section--light :focus-visible,
.section--stone :focus-visible { outline-color: var(--ink); }

.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;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 10px 14px; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Draft markers (remove before launch) ---------- */

.todo {
  background: #fff3a8;
  color: #3a3200;
  padding: 0 0.25em;
  border-radius: 3px;
  font-style: normal;
}
.section--dark .todo { background: #4a4410; color: #fff6b8; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 50px;
  padding: 0.8em 1.35em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #e2f77a; }

.btn--dark { background: var(--ink); color: var(--chalk); }
.btn--dark:hover { background: var(--ink-3); }

.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover { background: rgba(255,255,255,.08); }
.section--light .btn--ghost:hover, .section--stone .btn--ghost:hover { background: rgba(0,0,0,.05); }

.btn--sm { min-height: 42px; padding: 0.6em 1.05em; font-size: 0.95rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 700; text-decoration: none;
}
.link-arrow svg { width: 1em; height: 1em; transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 16, 15, 0.94);
  color: var(--chalk);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}
.brand-mark { width: 38px; height: auto; color: currentColor; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-weight: 900;
  font-stretch: 125%;
  font-size: 1.32rem;
  letter-spacing: 0.01em;
}
.brand-sub {
  margin-top: 3px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.nav { display: flex; align-items: center; gap: 22px; }
.nav ul { display: flex; gap: 22px; list-style: none; }
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted-on-dark);
  transition: color .15s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--chalk); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
}
.lang-switch svg { width: 14px; height: 14px; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  margin-right: -8px;
  border: 0; border-radius: var(--radius);
  background: transparent; color: inherit;
  cursor: pointer;
}
.menu-toggle svg { width: 26px; height: 26px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-cta { display: none !important; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a {
    display: block;
    padding: 15px 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--chalk);
    border-bottom: 1px solid var(--line-dark);
  }
  .nav .lang-switch { align-self: flex-start; margin-top: 18px; }
  .nav-cta { display: flex !important; margin-top: 18px; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); }
.section--light { background: var(--paper); color: var(--text); }
.section--stone { background: var(--stone); color: var(--text); }
.section--dark { background: var(--ink); color: var(--chalk); }
.section--dark-2 { background: var(--ink-2); color: var(--chalk); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.section--dark .section-head p, .section--dark-2 .section-head p { color: var(--muted-on-dark); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  background: currentColor;
}
.section--dark .eyebrow, .section--dark-2 .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--accent); }

/* ---------- Photos & placeholders ---------- */

.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink-3);
  aspect-ratio: 4 / 3;
  margin: 0;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--portrait { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 16 / 10; }
.photo--square { aspect-ratio: 1 / 1; }

/* Placeholder until real QUAKE photos are added. Replace the whole <figure> with an <img> version. */
.photo--placeholder {
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #2a2c29, #161816);
  color: #c9cac3;
}
.photo--placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px; height: 40px;
  opacity: .22;
  background: currentColor;
  -webkit-mask: url("/assets/img/mark.svg") center / contain no-repeat;
          mask: url("/assets/img/mark.svg") center / contain no-repeat;
}
.photo--placeholder figcaption {
  position: relative;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
}
.photo--placeholder figcaption::before {
  content: "◻ ";
  color: var(--accent);
}

/* ---------- Hero ---------- */

.hero {
  background: var(--ink);
  color: var(--chalk);
  padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 112px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin-bottom: 0.4em; }
.hero h1 .accent { color: var(--accent); }
.hero-lead {
  max-width: 34em;
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: #d6d7d0;
  margin-bottom: 30px;
}
.hero .btn-row { margin-bottom: 34px; }

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  font-size: 0.92rem;
  color: var(--muted-on-dark);
}
.trust-line li { display: inline-flex; align-items: center; gap: 8px; }
.trust-line svg { width: 16px; height: 16px; color: var(--accent); }
.trust-line strong { color: var(--chalk); font-weight: 700; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .photo { aspect-ratio: 4 / 3; }
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
.service-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}
.service-card--main { background: var(--ink); color: var(--chalk); border-color: var(--ink); }
.service-card .photo { border-radius: 0; }
.service-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 3vw, 36px);
  flex: 1;
}
.service-body p { color: var(--muted); }
.service-card--main .service-body p { color: #c9cac3; }
.service-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.service-card:not(.service-card--main) .photo { aspect-ratio: 1 / 1; }
@media (max-width: 860px) { .service-card:not(.service-card--main) .photo { aspect-ratio: 16 / 10; } }
.service-card h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.service-card .btn-row { margin-top: auto; padding-top: 8px; align-items: center; gap: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 500;
}
.service-card--main .chips li, .section--dark .chips li { border-color: var(--line-dark); color: #dcddd6; }

@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Feature list (Why QUAKE) ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  list-style: none;
}
.feature { padding-top: 22px; border-top: 2px solid var(--ink); }
.section--dark .feature { border-top-color: var(--accent); }
.feature svg { width: 28px; height: 28px; margin-bottom: 16px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
.feature p { color: var(--muted); font-size: 1rem; }
.section--dark .feature p { color: var(--muted-on-dark); }

@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- Steps (How to start) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
}
.section--light .step, .section--stone .step { background: var(--paper); border-color: var(--line); }
.step-num {
  display: block;
  margin-bottom: 26px;
  font-size: 2.6rem;
  font-weight: 900;
  font-stretch: 125%;
  line-height: 1;
  color: var(--accent);
}
.section--light .step-num, .section--stone .step-num { color: var(--ink); }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted-on-dark); font-size: 1rem; }
.section--light .step p, .section--stone .step p { color: var(--muted); }
.steps-cta { margin-top: 32px; }

@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Coaches ---------- */

.coaches { display: grid; gap: clamp(20px, 3vw, 28px); }
.coach {
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
}
.coach .photo { border-radius: var(--radius); }
.coach-body { padding: 10px 10px 10px 0; max-width: 40em; }
.coach-role {
  margin: -4px 0 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.coach-body > p { color: var(--muted); }
.coach-facts {
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.coach-facts div { display: grid; gap: 2px; align-content: start; }
.coach-facts dt { font-weight: 700; }
.coach-facts dd { margin: 0; color: var(--muted); }

@media (max-width: 700px) {
  .coach { grid-template-columns: 1fr; }
  .coach .photo { aspect-ratio: 1 / 1; }
  .coach-body { padding: 0 4px 6px; }
  .coach-facts { grid-template-columns: 1fr; }
}

/* ---------- Studio gallery ---------- */

.studio-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.studio-intro .section-head { margin-bottom: 0; }
.studio-intro > p { color: var(--muted-on-dark); font-size: 1.05rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(140px, 17vw, 230px);
  gap: 14px;
}
.gallery .photo { aspect-ratio: auto; height: 100%; }
.gallery .g-a { grid-column: span 2; grid-row: span 2; }
.gallery .g-b { grid-column: span 2; }
.gallery .g-c, .gallery .g-d { grid-column: span 1; }
.gallery .g-e { grid-column: span 2; }
.gallery .g-f { grid-column: span 2; }

@media (max-width: 760px) {
  .studio-intro { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 10px; }
  .gallery .g-a { grid-column: span 2; grid-row: span 2; }
  .gallery .g-b, .gallery .g-e, .gallery .g-f { grid-column: span 2; }
}

/* ---------- Reviews ---------- */

.reviews {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
}
.rating-card, .review-card {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--ink-3);
  border: 1px solid var(--line-dark);
}
.rating-card { display: flex; flex-direction: column; gap: 18px; }
.rating-score {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(3.5rem, 7vw, 5rem);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 1;
}
.stars { display: inline-flex; gap: 3px; color: var(--accent); }
.stars svg { width: 20px; height: 20px; }
.rating-card p { color: var(--muted-on-dark); }
.rating-card .chips li { font-size: 0.85rem; }
.rating-card .btn { align-self: flex-start; margin-top: auto; }

.review-card { display: flex; flex-direction: column; gap: 22px; margin: 0; }
.review-card blockquote {
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.5;
  font-weight: 500;
  color: var(--chalk);
}
.review-card blockquote p { margin-bottom: 0.9em; }
.review-card figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: auto;
  font-size: 0.92rem;
  color: var(--muted-on-dark);
}
.review-card figcaption strong { color: var(--chalk); }

.reviews-more { grid-column: 1 / -1; }

@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 24px); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 0 24px; color: var(--muted); max-width: 40em; }

@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-layout .section-head { position: static; }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: stretch;
}
.contact-list { display: grid; gap: 22px; list-style: none; margin-bottom: 32px; }
.contact-list li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; }
.contact-list svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.contact-list .label {
  display: block;
  margin-bottom: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.hours { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 18px; }
.hours dt { color: #d6d7d0; }
.hours dd { margin: 0; }

.map {
  min-height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-3);
  border: 1px solid var(--line-dark);
}
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; filter: grayscale(1) contrast(1.05); }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Service pages ---------- */

.page-hero {
  background: var(--ink);
  color: var(--chalk);
  padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 26px;
  font-size: 0.88rem;
  color: var(--muted-on-dark);
}
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--chalk); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.split--top { align-items: start; }
.prose { max-width: 38em; }
.prose p, .prose li { color: var(--muted); }
.section--dark .prose p, .section--dark .prose li { color: var(--muted-on-dark); }
.prose h2 { margin-bottom: 0.45em; }
.prose h3 { margin-top: 1.6em; }

.check-list { display: grid; gap: 12px; list-style: none; margin: 18px 0 0; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.check-list svg { width: 20px; height: 20px; margin-top: 3px; color: var(--ink); }
.section--dark .check-list svg { color: var(--accent); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
}
.card {
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
}
.section--light .card { background: #fff; }
.section--dark .card { background: var(--ink-2); border-color: var(--line-dark); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); font-size: 1rem; }
.section--dark .card p { color: var(--muted-on-dark); }

@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.compare-col {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper);
}
.compare-col--quake { background: var(--ink); color: var(--chalk); border-color: var(--ink); }
.compare-col h3 { font-size: 1.15rem; margin-bottom: 18px; }
.compare-col ul { display: grid; gap: 12px; list-style: none; }
.compare-col li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--muted); }
.compare-col--quake li { color: #d6d7d0; }
.compare-col svg { width: 18px; height: 18px; margin-top: 4px; }
.compare-col--quake svg { color: var(--accent); }

@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }

.cta-band {
  background: var(--ink);
  color: var(--chalk);
  padding-block: clamp(56px, 8vw, 96px);
}
.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}
.cta-band h2 { margin: 0 0 0.25em; }
.cta-band p { color: var(--muted-on-dark); margin: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink-2);
  color: var(--muted-on-dark);
  padding-block: 56px 32px;
  font-size: 0.95rem;
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 44px;
}
.site-footer .brand { color: var(--chalk); margin-bottom: 16px; }
.site-footer h2 {
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk);
}
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--chalk); text-decoration: underline; }
.site-footer address { font-style: normal; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
}

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile contact bar ---------- */

.mobile-bar { display: none; }

@media (max-width: 760px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(15, 16, 15, 0.96);
    border-top: 1px solid var(--line-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .mobile-bar .btn { min-height: 52px; }
  .mobile-bar .btn--ghost { color: var(--chalk); padding-inline: 1.1em; }
}

/* ---------- 404 ---------- */

.not-found { min-height: 60vh; display: grid; align-content: center; }

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

/* Reviews on a light section */
.section--light .rating-card,
.section--light .review-card { background: #fff; border-color: var(--line); }
.section--light .rating-card p,
.section--light .review-card figcaption { color: var(--muted); }
.section--light .review-card blockquote,
.section--light .review-card figcaption strong { color: var(--text); }
.section--light .stars { color: var(--ink); }
.section--light .rating-card .chips li { border-color: var(--line); color: var(--text); }

address { font-style: normal; }

/* Compare columns and cards on dark sections */
.section--dark .compare-col { background: var(--ink-2); border-color: var(--line-dark); color: var(--chalk); }
.section--dark .compare-col li { color: var(--muted-on-dark); }
.section--dark .compare-col--quake { background: var(--ink-3); border-color: var(--accent); }
.section--dark .compare-col--quake li { color: #e4e5de; }
.card .photo { margin-bottom: 22px; }
.footer-contact { margin-top: 10px; }
