/* ==========================================================================
   Barber shop template: styles
   Colors are CSS variables; js/main.js overwrites them from config.js.
   You shouldn't need to edit this file to reskin a shop.
   ========================================================================== */

:root {
  --accent: #A51C24;
  --accent-hover: #8A161D;
  --accent-on-dark: #E0565E;
  --dark: #141414;
  --dark-soft: #1E1E1E;
  --light: #F7F4EF;
  --light-soft: #EDE8E0;
  --white: #FFFFFF;

  --text: #1A1A1A;
  --text-muted: #5A554E;          /* 6.6:1 on --light */
  --text-on-dark: #F7F4EF;
  --muted-on-dark: #B5B0A8;       /* 8.5:1 on --dark */
  --line: rgba(20, 20, 20, .12);
  --line-on-dark: rgba(247, 244, 239, .14);

  --font-display: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 4px;
  --radius-lg: 8px;
  --header-h: 64px;
  --mobile-bar-h: 64px;
  --gutter: 20px;
  --section-y: clamp(64px, 10vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--light);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; margin: 0; text-transform: uppercase; letter-spacing: .01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.section-dark :focus-visible, .site-header :focus-visible, .hero :focus-visible,
.site-footer :focus-visible, .mobile-bar :focus-visible, .lightbox :focus-visible { outline-color: var(--accent-on-dark); }

.sr-only { position: absolute !important; 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: -100px; z-index: 100; background: var(--white); color: var(--dark); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }

/* Placeholders like [PRICE] are flagged so they're obvious in a pitch. */
.placeholder { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .85em; letter-spacing: 0; padding: 0 .35em; border: 1px dashed currentColor; border-radius: 3px; opacity: .75; white-space: nowrap; }

/* --------------------------------------------------------------- Buttons */
.btn {
  --btn-bg: transparent; --btn-fg: inherit; --btn-border: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-border);
  border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-accent { --btn-bg: var(--accent); --btn-fg: var(--white); --btn-border: var(--accent); }
.btn-accent:hover { --btn-bg: var(--accent-hover); --btn-border: var(--accent-hover); }
.btn-dark { --btn-bg: var(--dark); --btn-fg: var(--light); --btn-border: var(--dark); }
.btn-dark:hover { --btn-bg: #000; }
.btn-outline { --btn-fg: var(--dark); --btn-border: rgba(20,20,20,.35); }
.btn-outline:hover { --btn-border: var(--dark); }
.btn-ghost-light { --btn-fg: var(--white); --btn-border: rgba(255,255,255,.55); --btn-bg: rgba(20,20,20,.25); }
.btn-ghost-light:hover { --btn-border: var(--white); --btn-bg: rgba(255,255,255,.1); }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 20, 20, .94);
  color: var(--text-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(20, 20, 20, .82); backdrop-filter: saturate(140%) blur(10px); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  border: 1.5px solid var(--accent-on-dark); border-radius: 50%;
  font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .06em; color: var(--white);
}
.brand-name { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.site-nav ul { display: flex; gap: 4px; }
.site-nav a { display: block; padding: 10px 12px; font-size: .9rem; font-weight: 500; color: var(--muted-on-dark); text-decoration: none; transition: color .2s; }
.site-nav a:hover { color: var(--white); }
.header-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; color: var(--white); cursor: pointer; place-items: center; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--dark); border-bottom: 1px solid var(--line-on-dark);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px var(--gutter) 20px; }
  .site-nav a { padding: 14px 0; font-size: 1.05rem; color: var(--text-on-dark); border-bottom: 1px solid var(--line-on-dark); }
}
@media (max-width: 379px) { .brand-name { display: none; } }

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88svh, 820px);
  display: flex; align-items: flex-end;
  background: var(--dark); color: var(--white);
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
/* Legibility scrim (a plain shade, darker at the bottom where the text sits) */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,.45) 0%, rgba(20,20,20,.55) 45%, rgba(20,20,20,.92) 100%);
}
.hero-content { padding-top: 96px; padding-bottom: clamp(48px, 9vw, 104px); }
/* Hero text is filled in by JS; keep it invisible until then so it doesn't jump (layout shift). */
.js:not(.is-ready) .hero-content { visibility: hidden; }
.hero-title { font-size: clamp(2.75rem, 11vw, 6rem); line-height: .96; max-width: 13ch; margin: 14px 0 20px; text-wrap: balance; }
.hero-sub { font-size: clamp(1.02rem, 2.4vw, 1.2rem); max-width: 40rem; color: rgba(255,255,255,.88); margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .hero-actions .btn { width: 100%; } }

.status-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 12px; margin-bottom: 22px;
  background: rgba(20,20,20,.6); border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  font-size: .85rem; font-weight: 500; color: var(--white);
}
.status-badge[hidden] { display: none; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #9A958D; }
.status-badge.is-open .status-dot { background: #4ADE80; box-shadow: 0 0 0 4px rgba(74,222,128,.18); }
.status-badge.is-closed .status-dot { background: var(--accent-on-dark); }
.status-badge strong { font-weight: 600; }

.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.eyebrow-light { color: var(--accent-on-dark); }
.hero .eyebrow { color: rgba(255,255,255,.8); }

/* ---------------------------------------------------------- Rating strip */
.rating-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.rating-strip .container { display: flex; justify-content: center; }
.rating-link {
  display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px 12px;
  padding: 20px 8px; min-height: 68px; text-decoration: none; font-weight: 500; text-align: center;
}
.rating-link:hover .rating-text { text-decoration: underline; text-underline-offset: 3px; }
.rating-stars { color: var(--accent); letter-spacing: 2px; font-size: 1.05rem; }
.rating-text strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-right: 2px; }
.rating-text .sep { color: var(--text-muted); margin: 0 6px; }

/* -------------------------------------------------------------- Sections */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--light-soft); }
.section-dark { background: var(--dark); color: var(--text-on-dark); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-title { font-size: clamp(2.1rem, 6vw, 3.5rem); }

/* ---------------------------------------------------------------- About */
.about-grid { display: grid; gap: 24px; }
.about-body { font-size: 1.1rem; color: var(--text-muted); max-width: 38rem; }
.about-body p:first-child { color: var(--text); font-size: 1.2rem; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: end; }
}

/* -------------------------------------------------------------- Barbers */
.barber-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .barber-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .barber-grid { grid-template-columns: repeat(3, 1fr); } }

.barber-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.barber-photo { position: relative; aspect-ratio: 4 / 3; background: var(--dark); overflow: hidden; }
.barber-photo img { width: 100%; height: 100%; object-fit: cover; }
.barber-monogram {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px),
    var(--dark);
}
.barber-monogram span {
  font-family: var(--font-display); font-weight: 600; font-size: 6rem; line-height: 1;
  color: var(--light); opacity: .92;
}
.barber-monogram small {
  position: absolute; bottom: 14px; left: 0; right: 0; text-align: center;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-on-dark);
}
.barber-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.barber-name { font-size: 2rem; }
.barber-role { color: var(--accent); font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin: 6px 0 14px; }
.barber-bio { color: var(--text-muted); margin-bottom: 16px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.tag-list li { font-size: .78rem; font-weight: 500; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); }

.price-menu { margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.price-menu h4 { margin: 0 0 8px; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.price-row { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; font-size: .95rem; }
.price-row dt { flex: none; max-width: 70%; }
.price-row::after { content: none; }
.price-dots { flex: 1; border-bottom: 1px dotted rgba(20,20,20,.3); transform: translateY(-4px); min-width: 12px; }
.price-row dd { margin: 0; flex: none; font-weight: 600; }

.pricing-note {
  margin-top: 32px; text-align: center; font-family: var(--font-display); font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem;
}
.pricing-note::before { content: ""; display: block; width: 40px; height: 2px; background: var(--accent); margin: 0 auto 16px; }

/* ------------------------------------------------------------- Services */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-on-dark); border: 1px solid var(--line-on-dark); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 960px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
.service-item { background: var(--dark); padding: 24px 18px; }
.service-item .icon { width: 34px; height: 34px; stroke-width: 1.4; color: var(--accent-on-dark); margin-bottom: 16px; }
.service-item h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-item p { color: var(--muted-on-dark); font-size: .875rem; line-height: 1.55; }
@media (min-width: 600px) {
  .service-item { padding: 36px 30px; }
  .service-item .icon { width: 40px; height: 40px; margin-bottom: 22px; }
  .service-item h3 { font-size: 1.4rem; }
  .service-item p { font-size: .95rem; }
}

/* -------------------------------------------------------------- Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.gallery-grid li:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-grid li.sm-2 { grid-column: span 2; }
.gallery-grid li.sm-2 .gallery-btn { aspect-ratio: 2 / 1; }
@media (min-width: 768px) {
  .gallery-grid li.sm-2 { grid-column: auto; }
  .gallery-grid li.sm-2 .gallery-btn { aspect-ratio: 1; }
  .gallery-grid li.lg-2 { grid-column: span 2; }
  .gallery-grid li.lg-2 .gallery-btn { aspect-ratio: 2 / 1; }
  .gallery-grid li.lg-4 { grid-column: span 4; }
  .gallery-grid li.lg-4 .gallery-btn { aspect-ratio: 4 / 1; }
}
.gallery-btn {
  display: block; width: 100%; height: 100%; aspect-ratio: 1; padding: 0; border: 0; cursor: zoom-in;
  background: var(--light-soft); border-radius: var(--radius); overflow: hidden; position: relative;
}
.gallery-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gallery-btn:hover img { transform: scale(1.04); }
}

.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10,10,10,.96); color: var(--white);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(10,10,10,.96); }
.lightbox-figure { margin: 0; padding: 64px 16px; max-width: 1200px; width: 100%; display: grid; justify-items: center; gap: 14px; }
.lightbox-figure img { max-height: calc(100svh - 160px); width: auto; max-width: 100%; object-fit: contain; border-radius: var(--radius); }
.lightbox-figure figcaption { color: var(--muted-on-dark); font-size: .9rem; text-align: center; }
.lightbox-btn {
  position: fixed; display: grid; place-items: center; width: 48px; height: 48px;
  background: rgba(255,255,255,.08); color: var(--white); border: 1px solid rgba(255,255,255,.18); border-radius: 50%; cursor: pointer;
}
.lightbox-btn:hover { background: rgba(255,255,255,.18); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 599px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: 20px; transform: none; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
}

/* --------------------------------------------------------- Hours & map */
.hours-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .hours-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; } }
.hours-table { width: 100%; border-collapse: collapse; margin: 28px 0 28px; font-size: 1rem; }
.hours-table th, .hours-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours-table td { text-align: right; font-variant-numeric: tabular-nums; }
.hours-table tr.is-today { background: var(--white); }
.hours-table tr.is-today th { font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.hours-table tr.is-today td { font-weight: 600; }
.today-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: var(--white); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; }
.closed { color: var(--text-muted); }
.address-block { font-size: 1.1rem; margin-bottom: 22px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-actions .btn { flex: 1 1 170px; }
@media (min-width: 900px) { .inline-actions .btn { flex: 0 0 auto; } }
.map-wrap { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--light); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ------------------------------------------------------------------ FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; font-weight: 600; font-size: 1.08rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: currentColor; transition: transform .25s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-answer { padding: 0 4px 24px; color: var(--text-muted); max-width: 44rem; }

/* -------------------------------------------------------------- Contact */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.contact-lead { color: var(--muted-on-dark); font-size: 1.08rem; margin: 20px 0 28px; max-width: 30rem; }
.contact-links li + li { border-top: 1px solid var(--line-on-dark); }
.contact-links a { display: flex; align-items: center; gap: 14px; padding: 16px 0; text-decoration: none; font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-links a .icon { color: var(--accent-on-dark); }
.contact-links a:hover span { text-decoration: underline; text-underline-offset: 3px; }

.contact-form { background: var(--dark-soft); border: 1px solid var(--line-on-dark); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 36px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-on-dark); }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; min-height: 48px;
  background: var(--dark); color: var(--white);
  border: 1px solid rgba(247,244,239,.28); border-radius: var(--radius);
  font: inherit; font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-on-dark); box-shadow: 0 0 0 3px rgba(224,86,94,.25); }
.hp-field { position: absolute; left: -9999px; }
.form-status { margin: 14px 0 0; font-size: .95rem; min-height: 1.5em; color: var(--muted-on-dark); }
.form-status.is-success { color: #86EFAC; }
.form-status.is-error { color: #FCA5A5; }

/* --------------------------------------------------------------- Footer */
.site-footer { background: #0D0D0D; color: var(--muted-on-dark); padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line-on-dark); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: 1.3rem; color: var(--white); margin-bottom: 8px; }
.footer-label { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-on-dark); margin-bottom: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.social-links { display: flex; gap: 16px; margin-top: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; font-size: .85rem; }

/* ------------------------------------------------------ Mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 767px) {
  /* Room for the fixed bar, painted in the footer's color */
  .site-footer { padding-bottom: calc(28px + var(--mobile-bar-h) + env(safe-area-inset-bottom)); }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(20,20,20,.96); border-top: 1px solid var(--line-on-dark);
  }
  .mobile-bar-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
    border-radius: var(--radius); text-decoration: none; font-weight: 600;
    color: var(--white); border: 1.5px solid rgba(255,255,255,.35);
  }
  .mobile-bar-call { background: var(--accent); border-color: var(--accent); }
  /* The header Call button duplicates the bar on phones */
  .header-actions .btn { display: none; }
}

/* ------------------------------------------------------------ Animation */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js.is-ready .hero-content > * { animation: rise .8s var(--ease) both; }
  .js.is-ready .hero-content > :nth-child(2) { animation-delay: .05s; }
  .js.is-ready .hero-content > :nth-child(3) { animation-delay: .1s; }
  .js.is-ready .hero-content > :nth-child(4) { animation-delay: .18s; }
  .js.is-ready .hero-content > :nth-child(5) { animation-delay: .26s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.noscript { position: fixed; bottom: 0; left: 0; right: 0; padding: 12px; background: var(--accent); color: var(--white); text-align: center; z-index: 99; }

/* ------------------------------------------------------------ Thanks page */
.thanks { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--dark); color: var(--text-on-dark); padding: 40px var(--gutter); }
.thanks h1 { font-size: clamp(2.5rem, 8vw, 4rem); margin-bottom: 16px; }
.thanks p { color: var(--muted-on-dark); margin-bottom: 28px; }
