/*
Theme Name: Reserve
Theme URI: https://reservesd.com
Author: The Reserve
Author URI: https://reservesd.com
Description: Custom block theme for The Reserve, La Mesa. Heraldic-luxe direction, V5 sketch. WCAG 2.2 AA target per the 2026-04-30 ADA settlement.
Version: 0.13.2
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.0
License: Proprietary
License URI: https://reservesd.com
Text Domain: reserve
Tags: full-site-editing, block-theme, custom-colors, custom-menu
*/

:root {
  --bg: var(--wp--preset--color--bg);
  --bg-deep: var(--wp--preset--color--bg-deep);
  --bg-elevated: var(--wp--preset--color--bg-elevated);
  --paper: var(--wp--preset--color--paper);
  --paper-deep: var(--wp--preset--color--paper-deep);
  --ink: var(--wp--preset--color--ink);
  --ink-dim: var(--wp--preset--color--ink-dim);
  --cream: var(--wp--preset--color--cream);
  --text: var(--wp--preset--color--text);
  --text-dim: var(--wp--preset--color--text-dim);
  --gold: var(--wp--preset--color--gold);
  --gold-deep: var(--wp--preset--color--gold-deep);
  --gold-glow: rgba(207, 155, 2, 0.14);
  --rule-dark: rgba(207, 155, 2, 0.22);
  --rule-light: rgba(26, 22, 18, 0.12);
  --status-error-text: #ffd1c5;
  --status-error-bg: rgba(217, 50, 50, 0.12);
  --status-error-border: rgba(217, 50, 50, 0.5);
  --display: var(--wp--preset--font-family--display);
  --body: var(--wp--preset--font-family--body);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 17px; scroll-behavior: smooth; }
@media (max-width: 640px) { html { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern", "liga";
  position: relative;
}

a { color: var(--gold); text-decoration: none; transition: color 180ms cubic-bezier(0.4,0,0.2,1); }
a:hover { color: var(--cream); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

button, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; cursor: pointer; border: 0; background: none; color: inherit;
  padding: 1.2rem 2.4rem; min-height: 52px; min-width: 52px;
  letter-spacing: 0.18em; text-transform: uppercase;
  font-size: 0.82rem; font-weight: 600;
  transition: all 220ms cubic-bezier(0.4,0,0.2,1);
  font-family: var(--body);
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: var(--cream); color: var(--bg); }
.btn-ghost { color: var(--cream); border: 1px solid var(--rule-dark); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost-ink { color: var(--ink); border: 1px solid var(--rule-light); }
.btn-ghost-ink:hover { border-color: var(--ink); color: var(--ink); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn .arrow { display: inline-block; margin-left: 0.6rem; transition: transform 220ms cubic-bezier(0.4,0,0.2,1); }
.btn:hover .arrow { transform: translateX(4px); }

.text-link {
  display: inline-flex; align-items: center; gap: 0.7rem;
  min-height: 52px;
  padding-inline: 0.25rem;
  font-family: var(--body); font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream);
  position: relative;
}
.text-link::after {
  content: ""; position: absolute; left: 0.25rem; right: 0.25rem; bottom: 12px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 220ms cubic-bezier(0.4,0,0.2,1);
}
.text-link:hover { color: var(--gold); }
.text-link:hover::after { transform: scaleX(1); }
.text-link .arrow { display: inline-block; transition: transform 220ms cubic-bezier(0.4,0,0.2,1); }
.text-link:hover .arrow { transform: translateX(4px); }
.text-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--bg); padding: 0.75rem 1.25rem;
  font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.82rem;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; }

.reserve-container { max-width: 1320px; margin-inline: auto; padding-inline: clamp(1.5rem, 5vw, 4.5rem); }

/* ---------- header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  padding-block: 1.5rem;
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 2rem;
}
@media (max-width: 760px) {
  .header-inner { grid-template-columns: 1fr; text-align: center; gap: 0.85rem; }
}
.wordmark { display: inline-flex; align-items: center; justify-self: start; min-height: 44px; }
.wordmark-img { height: 44px; width: auto; display: block; }
@media (max-width: 760px) { .wordmark { justify-self: center; } .wordmark-img { height: 36px; } }
.wordmark:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.status {
  font-family: var(--body); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--cream); font-weight: 500;
  justify-self: center;
}
.status::before {
  content: ""; display: block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-glow);
}
.site-nav { justify-self: end; }
@media (max-width: 760px) { .site-nav { justify-self: center; } }
.site-nav ul { list-style: none; display: flex; gap: clamp(1rem, 2vw, 1.75rem); }
.site-nav a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding-inline: 0.35rem;
  color: var(--cream); font-size: 0.78rem; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 500; font-family: var(--body);
}
.site-nav a:hover { color: var(--gold); }

/* ---------- editorial type primitives ---------- */
.eyebrow {
  font-family: var(--body); font-weight: 600;
  font-size: 0.74rem; letter-spacing: 0.36em;
  color: var(--gold); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.85rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--gold);
}
.section--paper .eyebrow { color: var(--gold-deep); }
.section--paper .eyebrow::before { background: var(--gold-deep); }

.display {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1.02;
  color: var(--cream);
}
.section--paper .display { color: var(--ink); }
.section .display { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.section .display-italic { font-size: clamp(1.05rem, 1.7vw, 1.35rem); }
.display-italic {
  display: block;
  font-family: var(--body); font-style: italic; font-weight: 400;
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
  color: var(--text);
  margin-top: clamp(0.85rem, 1.5vw, 1.4rem);
  max-width: 28ch;
}
.section--paper .display-italic { color: var(--ink-dim); }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(640px, 92vh, 880px);
  display: grid;
  overflow: hidden;
  background-color: var(--bg-deep);
  color: var(--cream);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  display: block;
  overflow: hidden;
}
.hero-bg img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform-origin: center center;
  animation: kenburns 28s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(10, 10, 10, 0.62) 0%,
    rgba(10, 10, 10, 0.48) 35%,
    rgba(10, 10, 10, 0.88) 78%,
    var(--bg) 100%);
  pointer-events: none;
}
@keyframes kenburns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.5%, 0.8%, 0); }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background-image: image-set(
    url('assets/images/pattern-monograms.webp') type('image/webp'),
    url('assets/images/pattern-monograms.png') type('image/png')
  );
  background-repeat: repeat;
  background-size: 240px auto;
  background-position: center;
  opacity: 0.06;
  mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 65%, transparent 95%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 65%, transparent 95%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 3;
  align-self: end;
  width: 100%;
  padding-block: clamp(7rem, 14vh, 10rem) clamp(8rem, 16vh, 12rem);
}
.hero-eyebrow { margin-bottom: clamp(1.5rem, 3vh, 2.25rem); }
.hero h1.display { max-width: 14ch; }
.hero-actions {
  display: flex; gap: clamp(1.25rem, 2.5vw, 2rem); flex-wrap: wrap;
  align-items: center;
  margin-top: clamp(2.25rem, 4vh, 3rem);
}
.hero-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  background: linear-gradient(180deg, transparent 0%, rgba(10,10,10,0.9) 35%, rgba(10,10,10,0.95) 100%);
  padding-block: 1.75rem;
}
.hero-meta-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  font-family: var(--body); font-weight: 500;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cream);
}
.hero-meta-item { display: inline-flex; align-items: center; gap: 0.75rem; }
.hero-meta-item .key {
  color: var(--gold); font-family: var(--display); font-weight: 500;
  letter-spacing: 0.28em; font-size: 0.72rem;
}
.hero-meta-item a { color: var(--cream); }
.hero-meta-item a:hover { color: var(--gold); }

/* ---------- section primitives ---------- */
.section {
  padding-block: clamp(5.5rem, 13vh, 10rem);
  position: relative;
}
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper-deep { background: var(--paper-deep); color: var(--ink); border-top: 1px solid var(--rule-light); }
.section--paper .display-italic,
.section--paper p { color: var(--ink-dim); }
.section--dark { background: var(--bg); }
.section--dark-deep { background: var(--bg-deep); }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.about-photo {
  aspect-ratio: 4 / 3;
  width: 100%; max-width: 100%;
  min-width: 0;
  background: var(--ink);
  overflow: hidden;
  position: relative;
}
.about-photo img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 40% center;
}
.about-photo::after {
  content: ""; position: absolute; inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--rule-light);
}
.about-copy {
  display: flex; flex-direction: column;
  justify-content: center;
  padding-block: clamp(0rem, 2vw, 1.5rem);
}
.about-copy .display { letter-spacing: 0.05em; }
.about-body {
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  line-height: 1.65;
  color: var(--ink-dim);
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 38ch;
}
.about-body p + p { margin-top: 1.1rem; }

/* ---------- find us ---------- */
.find-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(1.5rem, 3vw, 3.25rem);
  align-items: center;
}
.find-grid > * { min-width: 0; }
@media (max-width: 880px) { .find-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.find-copy { display: flex; flex-direction: column; justify-content: center; }
.find-list {
  list-style: none;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--rule-light);
}
.find-list li {
  padding-block: clamp(1rem, 1.8vw, 1.35rem);
  border-bottom: 1px solid var(--rule-light);
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
}
.find-list .key {
  font-family: var(--display); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-deep);
}
.find-list .val {
  font-family: var(--body); font-weight: 500;
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  color: var(--ink);
}
.find-list .val a { color: var(--ink); border-bottom: 1px solid var(--rule-light); padding-bottom: 1px; }
.find-list .val a:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.map-frame {
  aspect-ratio: 4 / 3;
  width: 100%; max-width: 100%;
  background:
    radial-gradient(circle at 32% 58%, rgba(207, 155, 2, 0.12), transparent 55%),
    repeating-linear-gradient(45deg, rgba(26, 22, 18, 0.05) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(-45deg, rgba(26, 22, 18, 0.04) 0 1px, transparent 1px 28px),
    var(--paper-deep);
  border: 1px solid var(--rule-light);
  position: relative;
  display: grid; place-items: end start;
  padding: 1.5rem;
  font-family: var(--display); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-dim);
}
.map-frame::after {
  content: ""; position: absolute;
  top: 56%; left: 32%;
  width: 16px; height: 16px;
  background: var(--gold); border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(207, 155, 2, 0.22), 0 0 0 14px rgba(207, 155, 2, 0.08);
}

/* ---------- faq ---------- */
.faq-head {
  max-width: 30ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.faq-head .display { letter-spacing: 0.05em; }
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  border-top: 1px solid var(--rule-dark);
}
.faq-item { border-bottom: 1px solid var(--rule-dark); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.faq-item summary:hover .faq-q,
.faq-item summary:focus-visible .faq-q { color: var(--gold); }
.faq-q {
  font-family: var(--body); font-weight: 500;
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.4;
  margin: 0;
  color: var(--cream);
  text-transform: none;
  letter-spacing: 0;
  transition: color 180ms cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-chevron {
  width: 14px; height: 14px;
  position: relative;
  flex-shrink: 0;
}
.faq-chevron::before,
.faq-chevron::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-chevron::before {
  top: 50%; left: 0; right: 0;
  height: 1.5px;
  transform: translateY(-50%);
}
.faq-chevron::after {
  left: 50%; top: 0; bottom: 0;
  width: 1.5px;
  transform: translateX(-50%);
}
.faq-item[open] .faq-chevron::after {
  transform: translateX(-50%) scaleY(0);
}
.faq-a {
  padding: 0 0 1.5rem 0;
  color: var(--text-dim);
  max-width: 64ch;
  font-size: 1rem;
  line-height: 1.65;
}
.faq-a p { margin: 0; }
.faq-a p + p { margin-top: 0.85em; }

/* ---------- loyalty ---------- */
.loyalty { position: relative; overflow: hidden; }
.loyalty::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: image-set(
    url('assets/images/pattern-monograms.webp') type('image/webp'),
    url('assets/images/pattern-monograms.png') type('image/png')
  );
  background-repeat: repeat;
  background-size: 200px auto;
  background-position: center;
  opacity: 0.10;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 35%, transparent 85%);
  pointer-events: none;
}
.loyalty .reserve-container { position: relative; z-index: 1; }
.loyalty-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 880px) { .loyalty-grid { grid-template-columns: 1fr; } }
.loyalty-copy .display { font-size: clamp(2rem, 4vw, 3.2rem); }
.loyalty-lede { color: var(--text-dim); margin-top: 1.2rem; max-width: 36ch; }

.loyalty-form { display: flex; flex-direction: column; gap: 1.25rem; }
.loyalty-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}
@media (max-width: 560px) { .loyalty-form-grid { grid-template-columns: 1fr; } }

.loyalty-form .field { display: flex; flex-direction: column; gap: 0.35rem; }
.loyalty-form label {
  font-family: var(--display); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}
.loyalty-form input[type="text"],
.loyalty-form input[type="email"],
.loyalty-form input[type="tel"] {
  font-family: var(--body); font-size: 1rem; color: var(--cream);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--rule-dark);
  border-radius: 6px;
  padding: 0.8rem 0.95rem;
  min-height: 44px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.loyalty-form input::placeholder { color: rgba(255,255,255,0.35); }
.loyalty-form input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
  background: rgba(255,255,255,0.07);
}

.loyalty-form .hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; height: 0; width: 0; }

.loyalty-consent { display: flex; flex-direction: column; gap: 0.6rem; }
.loyalty-consent .checkbox {
  display: flex; gap: 0.7rem; align-items: flex-start;
  font-family: var(--body); font-size: 0.92rem; line-height: 1.5;
  color: var(--cream);
  cursor: pointer;
}
.loyalty-consent .checkbox input {
  margin-top: 0.2rem; min-width: 18px; min-height: 18px;
  accent-color: var(--gold);
}
.loyalty-terms summary {
  font-family: var(--display); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  cursor: pointer; padding: 0.4rem 0; user-select: none;
}
.loyalty-terms summary:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.loyalty-terms p {
  color: var(--text-dim); font-size: 0.88rem; line-height: 1.55;
  margin-top: 0.5rem; max-width: 62ch;
}
.loyalty-terms a { color: var(--gold); text-decoration: underline; }

.loyalty-submit { align-self: flex-start; margin-top: 0.4rem; }
.loyalty-submit[disabled] { opacity: 0.6; cursor: progress; }

.loyalty-status:empty { display: none; }
.loyalty-status {
  font-family: var(--body); font-size: 0.95rem; line-height: 1.5;
  padding: 0.75rem 1rem; border-radius: 6px;
  margin-top: 0.4rem;
}
.loyalty-status[data-kind="error"] {
  color: var(--status-error-text);
  background: var(--status-error-bg);
  border: 1px solid var(--status-error-border);
}
.loyalty-status[data-kind="success"] {
  color: var(--ink);
  background: var(--gold);
  border: 1px solid var(--gold);
}

/* ---------- closer ---------- */
.closer {
  position: relative; overflow: hidden;
  padding-block: clamp(7rem, 16vh, 12rem);
  text-align: center;
}
.closer::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: image-set(
    url('assets/images/pattern-monograms.webp') type('image/webp'),
    url('assets/images/pattern-monograms.png') type('image/png')
  );
  background-repeat: repeat;
  background-size: 260px auto;
  opacity: 0.16;
  mask-image: radial-gradient(ellipse 65% 80% at 50% 50%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 65% 80% at 50% 50%, black 30%, transparent 90%);
  pointer-events: none;
}
.closer::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(207, 155, 2, 0.10), transparent 70%);
  pointer-events: none;
}
.closer-inner { position: relative; z-index: 1; }
.closer .eyebrow { justify-content: center; margin-bottom: 1.5rem; }
.closer .eyebrow::after {
  content: ""; width: 28px; height: 1px; background: var(--gold);
}
.closer .display { margin-inline: auto; max-width: 16ch; }
.closer .display-italic { margin-inline: auto; max-width: 36ch; }
.closer-action {
  margin-top: clamp(2.5rem, 5vh, 4rem);
  display: inline-flex; align-items: center; gap: 1.25rem;
  flex-wrap: wrap; justify-content: center;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule-dark);
  padding-block: clamp(4rem, 8vh, 6rem) 2.25rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  background: var(--bg-deep);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(2.5rem, 5vh, 3.5rem);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h2 {
  font-family: var(--body); font-weight: 600;
  font-size: 0.74rem; letter-spacing: 0.28em;
  color: var(--gold); text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-grid p, .footer-grid li { line-height: 1.7; }
.footer-grid ul { list-style: none; }
.footer-grid a { color: var(--text-dim); }
.footer-grid a:hover { color: var(--gold); }
.footer-meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-dark);
  font-family: var(--body); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim);
}
.footer-meta .license { color: var(--gold); }

/* ---------- header palette inversion on paper-bg pages ---------- */
/* The .site-header is position:absolute; on dark-hero pages (home) its
   white wordmark + cream nav read fine, but on interior pages where the
   first section is .section--paper, those elements would vanish into the
   cream background. Detect that case and swap the wordmark image to the
   dark variant + flip nav/status to ink. CSS :has() is supported in all
   current evergreen browsers. */
body:has(main > .section--paper:first-child) .wordmark-img {
  content: url('/wp-content/themes/reserve/assets/images/wordmark-dark.webp');
}
body:has(main > .section--paper:first-child) .status,
body:has(main > .section--paper:first-child) .site-nav a {
  color: var(--ink);
}
body:has(main > .section--paper:first-child) .site-nav a:hover {
  color: var(--gold-deep);
}
body:has(main > .section--paper:first-child) .status::before {
  background: var(--gold-deep);
  box-shadow: 0 0 0 4px rgba(207, 155, 2, 0.18);
}

/* ---------- interior page content (paper bg) ---------- */
.page-content {
  padding-block: clamp(7rem, 14vh, 11rem);
}
.page-content .reserve-container {
  display: flex;
  justify-content: center;
}
.page-content__inner {
  max-width: 720px;
  width: 100%;
}
.page-content .eyebrow {
  margin-bottom: 1.25rem;
}
.page-content .display {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  margin-bottom: 2.5rem;
  color: var(--ink);
}
.page-body {
  font-family: var(--body);
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--ink-dim);
}
.page-body > * + * { margin-top: 1.4em; }
.page-body h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 2.8em;
  margin-bottom: 0.6em;
}
.page-body h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-top: 2em;
  margin-bottom: 0.5em;
}
.page-body p { color: var(--ink-dim); }
.page-body p strong { color: var(--ink); font-weight: 600; }
.page-body a:not(.btn):not(.text-link) {
  color: var(--gold-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.page-body a:not(.btn):not(.text-link):hover { color: var(--ink); }
.page-body .text-link { color: var(--ink); }
.page-body .text-link:hover { color: var(--gold-deep); }
.page-body ul {
  list-style: none;
  padding-left: 0;
}
.page-body ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-top: 0.7em;
}
.page-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.55rem;
  height: 1px;
  background: var(--gold-deep);
}
.page-lede {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 2.5em;
}
.page-contact {
  background: rgba(26, 22, 18, 0.04);
  border-left: 2px solid var(--gold-deep);
  padding: 1.25rem 1.5rem;
  line-height: 1.85;
}
.page-meta {
  margin-top: 3em;
  padding-top: 1.5em;
  border-top: 1px solid var(--rule-light);
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* ---------- find us page specifics ---------- */
.find-actions {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  flex-wrap: wrap;
  align-items: center;
  margin-block: 2em 2.5em;
}
.find-map {
  margin-block: 0.5em 2em;
}
.map-embed {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 2px;
  box-shadow: 0 1px 0 var(--rule-light), 0 12px 32px -16px rgba(26, 22, 18, 0.18);
}
.find-hours {
  list-style: none;
  padding-left: 0;
  border-top: 1px solid var(--rule-light);
  margin-top: 0.5em;
}
.find-hours li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--rule-light);
  margin-top: 0;
}
.find-hours li::before { content: none; }
.find-hours li strong {
  font-family: var(--body);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}
.find-hours li span {
  font-family: var(--body);
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}

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

/* ---------- age gate ---------- */
html.age-gating { overflow: hidden; }
.age-gate {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.age-gate-backdrop {
  position: fixed; inset: 0;
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.age-gate-card {
  position: relative; z-index: 1;
  background: var(--paper-deep); color: var(--ink);
  padding: clamp(2rem, 4vw, 2.8rem);
  max-width: 460px; width: 100%;
  border: 1px solid var(--rule-light);
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.age-gate-logo {
  display: block; margin: 0 auto 1.4rem;
  height: 36px; width: auto;
}
.age-gate-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink); margin-bottom: 0.6rem;
}
.age-gate-body {
  font-family: var(--body); font-size: 1rem; line-height: 1.5;
  color: var(--ink-dim); margin: 0 auto 1.6rem;
  max-width: 36ch;
}
.age-gate-actions { display: flex; justify-content: center; margin-bottom: 1.1rem; }
.age-gate-confirm { min-height: 48px; min-width: 220px; }
.age-gate-decline {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-dim);
  font-family: var(--display); font-weight: 500;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 4px;
  padding: 0.6rem 1rem;
  min-height: 44px; min-width: 44px;
}
.age-gate-decline:hover { color: var(--ink); }
.age-gate-decline:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; color: var(--ink); }

@media (max-width: 480px) {
  .age-gate-card { padding: 1.8rem 1.4rem; }
}

/* screen-reader-only utility (WP convention; needed by the aggregate link) */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ─── reviews section (paper) ──────────────────────────────────────── */
.reviews-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.reviews-head { text-align: center; max-width: 56rem; margin: 0 auto 3rem; }
.reviews-head .display { letter-spacing: 0.02em; }
.reviews-head .display-italic { margin-inline: auto; }

/* aggregate widget */
.reviews-aggregate {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.5rem; margin: 0 auto 3.5rem; padding: 2rem 2.5rem;
  background: var(--paper-deep); border: 1px solid var(--rule-light);
  border-radius: 4px; max-width: 28rem; position: relative;
}
.aggregate-rating {
  font-family: var(--display), serif;
  font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1;
  color: var(--gold-deep); font-weight: 600;
}
.aggregate-stars { display: inline-flex; gap: 2px; }
.aggregate-stars .star { width: 22px; height: 22px; fill: var(--gold-deep); }
.aggregate-count { color: var(--ink-dim); margin: 0.25rem 0 0.5rem; font-size: 0.95rem; }
.aggregate-link {
  color: var(--ink); border-bottom: 1px solid var(--gold-deep);
  padding: 4px 2px; min-height: 24px; display: inline-flex; align-items: center; gap: 0.25rem;
}
.aggregate-link:hover { color: var(--gold-deep); }
.aggregate-link:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; }
.aggregate-link .arrow { transition: transform 180ms ease; }
.aggregate-link:hover .arrow { transform: translateX(2px); }

.google-attribution {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.75rem; font-size: 0.78rem; color: var(--ink-dim);
  letter-spacing: 0.04em;
}
.google-attribution .google-g { width: 14px; height: 14px; flex-shrink: 0; }

/* card grid */
.reviews-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .reviews-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .reviews-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

.review-card {
  margin: 0; padding: 1.75rem 1.5rem;
  background: var(--paper-deep); border: 1px solid var(--rule-light);
  border-radius: 4px; display: flex; flex-direction: column; gap: 1rem;
  height: 100%;
}
.review-stars { display: inline-flex; gap: 2px; }
.review-stars .star { width: 16px; height: 16px; fill: var(--gold-deep); }

.review-quote {
  margin: 0; padding: 0; border: 0;
  font-family: var(--body), sans-serif;
  font-size: 1rem; line-height: 1.55; color: var(--ink);
  font-style: normal; quotes: none;
}
.review-quote::before, .review-quote::after { content: none; }

.review-attribution {
  color: var(--ink-dim); font-size: 0.9rem; letter-spacing: 0.02em;
  margin-top: auto;
}

.review-source {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; color: var(--ink-dim); letter-spacing: 0.03em;
  padding-top: 0.75rem; border-top: 1px solid var(--rule-light);
}
.review-source .google-g { width: 12px; height: 12px; flex-shrink: 0; }

/* aggregate-hidden state: when no aggregate widget renders, grid sits closer to the head */
.reviews-section .reviews-head + .reviews-grid { margin-top: 0; }
