/* =====================================================================
   Porterville Barbershop — Website Rescue Demo
   Aesthetic: warm editorial heritage. Bone paper, charcoal ink, a brass
   metallic thread, Fraunces display serif + Manrope sans. Each shop gets
   its own deep accent (ember / forest / steel) via [data-accent].
   Mobile-first; desktop enhancements layered on top.
   ===================================================================== */

/* ---- Tokens --------------------------------------------------------- */
:root {
  color-scheme: only light;
  supported-color-schemes: light;
  --paper: #f2ebdd;
  --paper-2: #eae0cd;
  --card: #fbf7ee;
  --ink: #1d1812;
  --ink-soft: #4b4338;
  --muted: #837767;
  --line: rgba(29, 24, 18, 0.14);
  --line-2: rgba(29, 24, 18, 0.08);
  --brass: #ad8543;
  --brass-2: #c8a262;

  /* per-shop accent (default = ember) */
  --accent: #b14e2a;
  --accent-2: #d0673a;
  --accent-ink: #fbf7ee;
  --accent-tint: rgba(177, 78, 42, 0.08);

  --shadow-sm: 0 2px 10px rgba(29, 24, 18, 0.06);
  --shadow: 0 18px 50px rgba(29, 24, 18, 0.12);
  --shadow-lg: 0 30px 80px rgba(29, 24, 18, 0.18);
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

[data-accent="forest"] {
  --accent: #2f5d4f;
  --accent-2: #3d7867;
  --accent-tint: rgba(47, 93, 79, 0.09);
}
[data-accent="steel"] {
  --accent: #335068;
  --accent-2: #466b8a;
  --accent-tint: rgba(51, 80, 104, 0.09);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: only light;
    supported-color-schemes: light;
    --paper: #f2ebdd;
    --paper-2: #eae0cd;
    --card: #fbf7ee;
    --ink: #1d1812;
    --ink-soft: #4b4338;
    --muted: #837767;
    --line: rgba(29, 24, 18, 0.14);
    --line-2: rgba(29, 24, 18, 0.08);
    --brass: #ad8543;
    --brass-2: #c8a262;
    --accent-ink: #fbf7ee;
  }
  html,
  body {
    background-color: #f2ebdd;
    color: #1d1812;
  }
}

/* Guard against mobile browsers that auto-style native controls in dark mode. */
input,
textarea,
select,
button {
  color-scheme: only light;
}

/* ---- Reset ---------------------------------------------------------- */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: only light;
  background-color: var(--paper);
}
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: none;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  padding-bottom: 0;
}
/* subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
ol, ul, dl { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 200;
}
.skip-link:focus { left: 12px; }

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

/* ---- Display type --------------------------------------------------- */
.hero-title, .section-title, .rating-big, .service-num,
.why-num, .frame-tag, .hours-big {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
}

/* ---- Barber-pole accent -------------------------------------------- */
.pole {
  background-image: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 6px,
    var(--paper) 6px 12px,
    var(--brass) 12px 18px,
    var(--paper) 18px 24px
  );
  background-size: 200% 200%;
  animation: pole 9s linear infinite;
}
@keyframes pole {
  to { background-position: 0 -48px; }
}

/* ---- Buttons -------------------------------------------------------- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn b { font-weight: 800; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.ico { width: 19px; height: 19px; flex: none; }

.btn-primary { --bg: var(--accent); --fg: var(--accent-ink); box-shadow: 0 14px 30px var(--accent-tint); }
.btn-primary:hover { --bg: var(--accent-2); box-shadow: var(--shadow); }
.btn-call { --bg: var(--ink); --fg: var(--paper); }
.btn-call:hover { box-shadow: var(--shadow); }
.btn-outline {
  --bg: transparent;
  --fg: var(--ink);
  border-color: var(--line);
  background: rgba(251, 247, 238, 0.6);
}
.btn-outline:hover { border-color: var(--ink); background: var(--card); }
.btn-quiet { --bg: transparent; --fg: var(--muted); padding: 14px 16px; }
.btn-quiet:hover { --fg: var(--ink); transform: none; }
.btn-sm { padding: 11px 17px; font-size: 14px; }
.btn-wide { width: 100%; }

/* ---- Demo bar (hidden in client view) ------------------------------ */
.demo-bar {
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
}
.demo-bar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 10px clamp(16px, 4vw, 40px);
}
.demo-flag { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: 0.02em; }
.demo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 var(--accent-2);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(208, 103, 58, 0.6); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(208, 103, 58, 0); }
}
.demo-switch { display: inline-flex; gap: 6px; margin-left: auto; }
.demo-switch button {
  font: inherit;
  color: rgba(242, 235, 221, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.demo-switch button:hover { color: var(--paper); border-color: rgba(255,255,255,0.3); }
.demo-switch button.is-active {
  color: var(--ink);
  background: var(--brass-2);
  border-color: var(--brass-2);
  font-weight: 700;
}
.demo-clientlink { color: var(--brass-2); font-weight: 700; white-space: nowrap; }
.demo-clientlink:hover { color: var(--paper); }

body.client-mode .demo-only { display: none !important; }

/* ---- Header --------------------------------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(242, 235, 221, 0.82);
  border-bottom: 1px solid var(--line-2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  position: relative;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-sm);
  flex: none;
}
.brand-mark .pole { position: absolute; inset: 0; opacity: 0.9; }
.brand-mark b {
  position: relative;
  font-family: "Fraunces", serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--paper);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.brand-text b { display: block; font-family: "Fraunces", serif; font-size: 17px; font-weight: 600; line-height: 1.1; }
.brand-text small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.head-nav { display: none; gap: 26px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.head-nav a { position: relative; padding: 4px 0; }
.head-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.22s var(--ease);
}
.head-nav a:hover { color: var(--ink); }
.head-nav a:hover::after { transform: scaleX(1); }

/* ---- Layout helpers ------------------------------------------------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(52px, 8vw, 96px) clamp(16px, 4vw, 40px);
}
.section-tint {
  max-width: none;
  background: var(--paper-2);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.section-tint > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.kicker::before {
  content: ""; width: 26px; height: 2px; background: var(--brass); border-radius: 2px;
}
.section-title { font-size: clamp(28px, 5vw, 44px); line-height: 1.05; }
.section-lede { margin-top: 14px; color: var(--ink-soft); font-size: clamp(15px, 2vw, 18px); max-width: 56ch; }
.fineprint { margin-top: 26px; font-size: 13.5px; color: var(--muted); }
.fineprint a { color: var(--accent); font-weight: 700; }

/* ---- Hero ----------------------------------------------------------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) clamp(16px, 4vw, 40px) clamp(20px, 3vw, 36px);
}
.hero-grid { display: grid; gap: clamp(28px, 4vw, 52px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--ink-soft); text-transform: uppercase;
  margin: 0 0 18px;
}
.pole-sm { width: 22px; height: 10px; border-radius: 3px; display: inline-block; }
.hero-title {
  font-size: clamp(38px, 8.5vw, 68px);
  line-height: 1.0;
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.hero-sub { margin-top: 20px; font-size: clamp(16px, 2.4vw, 20px); color: var(--ink-soft); max-width: 48ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-cta .btn { padding: 16px 24px; font-size: 16px; }

.trust {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(18px, 5vw, 40px);
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  width: fit-content;
}
.trust-item dt { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.trust-item dd { display: flex; align-items: center; gap: 8px; }
.trust-num { font-family: "Fraunces", serif; font-size: clamp(24px, 4vw, 32px); font-weight: 600; line-height: 1; }

/* Hero card */
.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  align-self: start;
}
.card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(120% 100% at 80% 0%, var(--accent-tint), transparent 60%),
    repeating-linear-gradient(135deg, rgba(29,24,18,0.04) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, var(--paper-2), var(--paper));
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
}
.card-photo::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  pointer-events: none;
}
.card-photo-tag {
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--muted); text-transform: uppercase;
}
.card-badge {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink); color: var(--paper);
  padding: 7px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.card-foot { padding: 18px 20px; display: grid; gap: 14px; }
.card-note { font-size: 14.5px; color: var(--ink-soft); }
.card-addr {
  display: flex; flex-direction: column;
  padding-top: 14px; border-top: 1px solid var(--line-2);
  font-weight: 700;
}
.card-addr small { font-weight: 500; color: var(--muted); margin-top: 2px; }
.card-addr:hover { color: var(--accent); }

/* ---- Stars ---------------------------------------------------------- */
.stars { display: inline-flex; gap: 2px; }
.stars .star svg { width: 16px; height: 16px; display: block; }
.stars .star path { fill: var(--line); }
.stars .star.is-full path, .stars .star.is-half path { fill: var(--brass); }
.stars .star.is-half path { opacity: 0.55; }
.stars-lg .star svg { width: 22px; height: 22px; }
.card-badge .stars .star path,
.review-stars .star path { fill: var(--brass-2); }

/* ---- Marquee -------------------------------------------------------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  padding: 13px 0;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
  font-family: "Fraunces", serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
  animation: marquee 26s linear infinite;
  padding-left: 22px;
}
.marquee-track .dot { color: var(--brass-2); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---- Services ------------------------------------------------------- */
.services { display: grid; gap: 4px; }
.service {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 22px 6px;
  border-top: 1px solid var(--line);
  transition: padding-left 0.25s var(--ease);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service:hover { padding-left: 14px; }
.service-num { font-size: 18px; font-weight: 600; color: var(--accent); width: 2ch; }
.service-title { font-size: clamp(19px, 3vw, 24px); font-weight: 700; }
.service-desc { margin-top: 5px; color: var(--ink-soft); font-size: 15.5px; max-width: 52ch; }

/* ---- Gallery -------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 2vw, 18px);
}
.frame {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.frame:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.frame-inner {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  gap: 12px;
  align-content: center;
  background:
    radial-gradient(110% 90% at 50% 0%, var(--accent-tint), transparent 65%),
    repeating-linear-gradient(45deg, rgba(29,24,18,0.035) 0 12px, transparent 12px 24px),
    var(--paper-2);
}
.frame-icon { width: 34px; height: 34px; color: var(--accent); opacity: 0.85; }
.frame-tag {
  font-size: 14px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.01em;
}
.frame-cap {
  padding: 11px 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line-2);
}

/* ---- Reviews -------------------------------------------------------- */
.reviews-head {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(26px, 4vw, 40px);
  padding-bottom: clamp(24px, 4vw, 36px);
  border-bottom: 1px solid var(--line);
}
.rating-block {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 6px 16px;
  width: fit-content;
}
.rating-big {
  grid-row: span 2;
  font-size: clamp(54px, 12vw, 84px);
  font-weight: 600;
  line-height: 0.85;
  color: var(--accent);
}
.rating-meta { font-size: 15px; color: var(--ink-soft); font-weight: 600; }
.rating-meta b { font-weight: 800; }
.rating-link { grid-column: 2; font-size: 14px; font-weight: 700; color: var(--accent); }
.rating-link:hover { text-decoration: underline; }

.reviews { display: grid; gap: clamp(12px, 2vw, 18px); }
.review {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.review-stars { margin-bottom: 12px; }
.review-text { font-family: "Fraunces", serif; font-size: clamp(17px, 2.4vw, 21px); line-height: 1.45; font-weight: 500; }
.review-by { margin-top: 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

/* ---- Booking / request ---------------------------------------------- */
.book-grid { display: grid; gap: clamp(26px, 4vw, 48px); }
.book-copy .btn { margin-top: 22px; }
.book-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 30px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.optional { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field textarea { resize: vertical; min-height: 56px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.form-actions { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; }
.form-status {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  padding: 14px 16px;
  background: var(--accent-tint);
  border: 1px solid var(--accent);
  border-radius: 12px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
}
.form-fine { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.is-sent .form-fine { display: none; }

/* ---- Visit: map + hours --------------------------------------------- */
.visit-grid { display: grid; gap: clamp(18px, 3vw, 28px); }
.map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 280px;
  background: var(--paper-2);
}
.map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
  padding: 24px;
  color: var(--ink-soft);
}
.map-fallback strong { font-family: "Fraunces", serif; font-size: 20px; }
.map-wrap iframe {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  display: block;
}
.visit-info { display: grid; gap: 16px; }
.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.info-title { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.info-addr { font-size: 17px; font-weight: 600; line-height: 1.5; margin-bottom: 18px; }
.info-hours .hours-big { font-family: "Fraunces", serif; font-size: clamp(28px, 5vw, 38px); font-weight: 600; color: var(--accent); }
.hours-note { font-size: 14px; color: var(--ink-soft); margin: 10px 0 18px; }

/* ---- Why (pitch) ---------------------------------------------------- */
.section-pitch {
  position: relative;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.why-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.why-num {
  display: block;
  font-size: 26px;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 12px;
}
.why-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 7px; }
.why-card p { font-size: 15px; color: var(--ink-soft); }
.pitch-foot {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  font-size: 15.5px;
}
.pitch-foot a { color: var(--brass-2); font-weight: 700; }
.pitch-foot a:hover { color: var(--paper); }

/* ---- Footer --------------------------------------------------------- */
.site-foot {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(36px, 5vw, 56px) clamp(16px, 4vw, 40px) calc(28px + env(safe-area-inset-bottom));
  margin-top: clamp(20px, 4vw, 40px);
}
.foot-main {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand .brand-mark { background: rgba(255,255,255,0.08); }
.foot-brand b { font-family: "Fraunces", serif; font-size: 19px; display: block; }
.foot-brand small { color: rgba(242,235,221,0.62); font-size: 13px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-weight: 600; }
.foot-links a:hover { color: var(--brass-2); }
.foot-credit {
  max-width: var(--maxw);
  margin: 22px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(242,235,221,0.6);
}
.foot-credit b,
.foot-credit a { color: var(--brass-2); font-weight: 700; }
.foot-credit a:hover { color: var(--paper); text-decoration: underline; }

/* ---- Sticky mobile call bar ----------------------------------------- */
.call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(242, 235, 221, 0.9);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(120%);
  transition: transform 0.3s var(--ease);
}
.call-bar.is-show { transform: translateY(0); }
.call-bar-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
}
.call-bar-dir { flex: 0 0 auto; background: var(--card); border: 1px solid var(--line); color: var(--ink); padding: 14px 18px; }
.call-bar-call { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px var(--accent-tint); }
.call-bar-call b { font-weight: 800; }

/* ---- Reveal animation ----------------------------------------------- */
/* Sales-demo reliability: content must be visible even if IntersectionObserver
   is delayed, blocked, or a phone/browser screenshots before scroll events. */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.frame.reveal { transition-delay: calc(var(--i, 0) * 40ms); }

/* ===================================================================== *
   RESPONSIVE — tablet & up
   ===================================================================== */
@media (min-width: 680px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .rating-block { grid-template-columns: auto auto; }
  .call-bar { display: none; }
  body { padding-bottom: 0; }
}

@media (min-width: 900px) {
  .head-nav { display: flex; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  .hero-card { align-self: center; }
  .book-grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
  .book-copy { position: sticky; top: 92px; }
  .visit-grid { grid-template-columns: 1.4fr 1fr; align-items: stretch; }
  .map-wrap { min-height: 100%; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-head { grid-template-columns: 1fr auto; align-items: end; }
}

/* mobile: leave room so sticky bar never covers content */
@media (max-width: 679px) {
  body { padding-bottom: 84px; }
}

/* ---- Reduced motion ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .pole { animation: none; }
}
