/* =========================================================
   Western Dollar Pawn Shop — style.css
   Mayagüez, Puerto Rico · casa de empeño + cambio de cheques
   Mobile is the base. Every wider layout is a min-width
   enhancement. No max-width media queries anywhere.
   ========================================================= */

/* ===== Self-hosted webfonts (OFL, no external requests) =====
   Cormorant Infant, Jost and Courier Prime are the pawn-vaultrow template's
   own typefaces. The template loaded them from the Google Fonts CDN; here they
   are served from css/fonts/ so the page makes zero external requests. */
@font-face {
  font-family: 'Cormorant Infant';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/cormorant-infant-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/jost-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/courier-prime-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Custom properties — pawn-vaultrow template palette, unchanged ===== */
:root {
  --onyx: #121411;
  --onyx-elevated: #1a1d17;
  --velvet: #1E3A2F;
  --velvet-deep: #14291F;
  --velvet-text: #14291F;
  --brass: #C2A15C;
  --brass-bright: #E4CE8F;
  --brass-text: #6E5527;
  --paper: #F2EDE2;
  --linework: #2C312B;

  --text-on-dark: #EDE7D8;
  --text-on-dark-muted: #B9B3A2;
  --text-on-paper: #201D14;
  --text-on-paper-muted: #5b5645;

  --font-display: 'Cormorant Infant', 'Georgia', serif;
  --font-body: 'Jost', 'Inter', system-ui, sans-serif;
  --font-mono: 'Courier Prime', 'Courier New', monospace;

  --container-w: 1180px;
  --space-section: clamp(3.75rem, 9vw, 7rem);
  --radius: 12px;
  --tap: 44px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  /* Anchor smoothing is done in JS (and gated on prefers-reduced-motion) so
     that programmatic scrollIntoView calls hit a stationary target. */
}
body {
  background: var(--onyx);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.62;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  /* clear the fixed contact bar on phones */
  padding-bottom: 4.75rem;
}
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select { font: inherit; }
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== Typography ===== */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--text-on-dark);
}
h1 {
  font-size: clamp(2.1rem, 7vw, 5.2rem);
  margin: 0.5rem 0 0.9rem;
}
h2 {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  margin-bottom: 1rem;
}
h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-on-dark);
}
p { color: var(--text-on-dark-muted); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.85rem;
}
.section-lede {
  max-width: 52ch;
  font-size: 1.02rem;
  margin-bottom: 2.5rem;
}

/* ===== Skip link ===== */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 300;
  background: var(--brass);
  color: var(--onyx);
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; top: 0; }

/* ===== Focus ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: var(--tap);
  padding: 0.8rem 1.4rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.015em;
  text-align: center;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s, color 0.22s, border-color 0.22s;
}
.btn-gold {
  background: linear-gradient(150deg, var(--brass-bright), var(--brass) 62%, var(--brass-text));
  color: #201a0c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 12px 26px -12px rgba(194, 161, 92, 0.75);
}
.btn-outline {
  border-color: rgba(237, 231, 216, 0.45);
  color: var(--text-on-dark);
}
.btn-outline:hover {
  border-color: var(--brass);
  color: var(--brass);
}
.btn-lg { min-height: 52px; padding: 0.95rem 1.6rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(18, 20, 17, 0.94);
  border-bottom: 1px solid rgba(194, 161, 92, 0.22);
  transition: background 0.3s, border-color 0.3s;
}
.site-header.is-scrolled { background: var(--onyx); border-bottom-color: rgba(194, 161, 92, 0.4); }
.site-header.is-nav-open { background: var(--onyx); }

.header-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
/* The nav overlay is a child of the header, so the brand and the controls need
   to sit above it or the close button becomes untappable while the menu is open. */
.brand {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  flex-shrink: 1;
  min-width: 0;
  position: relative;
  z-index: 160;
}
.brand-logo {
  height: 34px;
  width: auto;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  position: relative;
  z-index: 160;
}

/* Language toggle — real control, ≥44×44, keyboard operable */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  border: 1px solid rgba(194, 161, 92, 0.5);
  border-radius: 4px;
  background: transparent;
  transition: background 0.22s, border-color 0.22s, color 0.22s;
}
.lang-toggle:hover { background: rgba(194, 161, 92, 0.14); border-color: var(--brass); }
.lang-toggle-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brass-bright);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: var(--tap);
  height: var(--tap);
  border: 1px solid rgba(194, 161, 92, 0.5);
  border-radius: 4px;
}
.menu-toggle span {
  width: 19px;
  height: 2px;
  background: var(--brass);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Primary navigation — one element, overlay on phones ===== */
.site-nav {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--onyx);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.25rem 2rem;
  overflow-y: auto;
}
html.js .site-nav {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
html.js .site-nav.is-open { opacity: 1; visibility: visible; }

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  max-width: 26rem;
}
.site-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.5rem 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 5.5vw, 1.7rem);
  font-weight: 600;
  color: var(--text-on-dark);
  border-bottom: 1px solid var(--linework);
  text-align: center;
}
.site-nav a:hover { color: var(--brass-bright); }
.site-nav .nav-cta {
  margin-top: 1rem;
  border-bottom: none;
  border-radius: 4px;
  background: linear-gradient(150deg, var(--brass-bright), var(--brass) 62%, var(--brass-text));
  color: #201a0c;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
}

/* ===== Fixed contact bar (phones) ===== */
.cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  background: rgba(18, 20, 17, 0.97);
  border-top: 1px solid rgba(194, 161, 92, 0.35);
  padding: 0.6rem 0.75rem;
  padding-bottom: max(0.6rem, env(safe-area-inset-bottom));
}
.cta-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: var(--container-w);
  margin: 0 auto;
}
.cta-bar-tel {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-size: 0.92rem;
  /* the number must stay on one line even at 320px */
  white-space: nowrap;
}
.cta-bar-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 0.4rem;
  flex-shrink: 0;
  font-size: 0.78rem;
  line-height: 1.2;
  color: var(--brass);
  text-align: right;
  max-width: 38%;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2.75rem 1.25rem 3.5rem;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 45% at 50% 14%, rgba(30, 58, 47, 0.55), transparent 62%),
    radial-gradient(ellipse 70% 40% at 50% 8%, rgba(194, 161, 92, 0.18), transparent 60%),
    linear-gradient(180deg, var(--onyx) 0%, #0d0f0b 100%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%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)'/%3E%3C/svg%3E");
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 62rem;
  margin: 0 auto;
}

/* Medallion — currency-engraving rosette carrying the brand mark */
.medallion {
  position: relative;
  width: min(78vw, 300px);
  aspect-ratio: 1;
  flex-shrink: 0;
}
.medallion-svg { width: 100%; height: 100%; }
.medallion-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62%;
  height: auto;
}
.medallion-rosette { transform-origin: 240px 240px; }

.hero-copy { max-width: 44rem; }
.hero-sub {
  font-size: clamp(1rem, 2.3vw, 1.18rem);
  max-width: 40ch;
  margin: 0 auto;
  color: var(--text-on-dark-muted);
}
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.6rem;
}
.hero-hours {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--text-on-dark-muted);
}

/* ===== Reveal system (scoped to html.js so no-JS shows everything) ===== */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  }
  .medallion-rosette { animation: wd-turn 90s linear infinite; }
}
@keyframes wd-turn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ===== Sections ===== */
.section { padding: var(--space-section) 0; position: relative; }
.services-section { border-top: 1px solid var(--linework); }
.categories-section { background: var(--onyx-elevated); border-top: 1px solid var(--linework); border-bottom: 1px solid var(--linework); }
.licence-section { background: var(--onyx); }
.visit-section { background: var(--onyx-elevated); border-top: 1px solid var(--linework); }

/* ===== Servicios — counter drawers ===== */
.drawer-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.drawer {
  background: var(--onyx-elevated);
  border: 1px solid var(--linework);
  border-radius: var(--radius);
  overflow: hidden;
}
.drawer-front {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(180deg, #22261e, #191c15);
  border-bottom: 1px solid var(--linework);
}
.drawer-plate {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  min-width: 0;
}
.drawer-no {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--brass);
  flex-shrink: 0;
}
.drawer-label {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3.6vw, 1.35rem);
  font-weight: 600;
  color: var(--text-on-dark);
  line-height: 1.15;
}
.drawer-handle {
  width: 40px;
  height: 10px;
  border-radius: 5px;
  flex-shrink: 0;
  background: linear-gradient(160deg, var(--brass-bright), var(--brass) 60%, var(--brass-text));
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.45);
}
.drawer-tray {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  padding: 1.25rem;
  background: var(--velvet-deep);
}
.tray-art {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(194, 161, 92, 0.28);
  max-width: 260px;
}
.tray-svg { width: 100%; height: auto; }
.tray-info { min-width: 0; }
.tray-lead {
  font-size: 1rem;
  color: var(--text-on-dark);
  margin-bottom: 0.55rem;
}
.tray-detail {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--brass);
}

/* Drawer slide-open, layered onto the reveal */
html.js .drawer .drawer-tray {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: hidden;
}
html.js .drawer.is-open .drawer-tray {
  max-height: 46rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  html.js .drawer .drawer-tray {
    transition: max-height 0.7s var(--ease), opacity 0.55s ease 0.12s, padding 0.7s var(--ease);
  }
}
@media (prefers-reduced-motion: reduce) {
  html.js .drawer .drawer-tray {
    max-height: none;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    opacity: 1;
  }
}

/* ===== Categorías ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.9rem;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 148px;
  padding: 1.5rem 0.9rem;
  text-align: center;
  background: var(--onyx);
  border: 1px solid var(--linework);
  border-radius: var(--radius);
}
.category-icon {
  color: var(--brass);
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.category-icon svg { width: 100%; height: 100%; }
.category-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-on-dark);
  line-height: 1.3;
}

/* ===== Licencias ===== */
.licence-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: start;
}
.licence-copy p { margin-bottom: 1rem; }
.licence-note {
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  border-left: 3px solid var(--brass);
  padding-left: 1rem;
  margin-top: 1.5rem;
}
.licence-plates {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.licence-plate {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.15rem 1.25rem;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(194,161,92,0.10), rgba(194,161,92,0.02));
  border: 1px solid rgba(194, 161, 92, 0.45);
}
.licence-no {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--brass-bright);
}
.licence-kind {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}
.licence-holder {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--linework);
}
.licence-holder-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}
.licence-holder-name { color: var(--text-on-dark); font-weight: 500; }

/* ===== Visítanos ===== */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
.visit-block { margin-top: 1.75rem; }
.visit-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.45rem;
}
.visit-value { color: var(--text-on-dark); font-size: 0.98rem; }
.visit-value a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--brass);
  overflow-wrap: anywhere;
}
.visit-social strong { color: var(--text-on-dark); font-weight: 600; }

.hours-list { display: flex; flex-direction: column; gap: 0.4rem; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed var(--linework);
  font-size: 0.95rem;
  color: var(--text-on-dark);
}
.hours-list li.is-closed { color: var(--text-on-dark-muted); }

/* ===== Form ===== */
.visit-form-wrap {
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 5vw, 2.25rem);
}
.form-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-on-paper);
  margin-bottom: 0.5rem;
}
.form-intro {
  color: var(--text-on-paper-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}
.contact-form { display: flex; flex-direction: column; gap: 0.4rem; }

/* Each field reserves a fixed slot for its error message and the message is
   positioned inside it. Showing or hiding an error therefore never reflows the
   form — otherwise the submit button jumps on blur and the first tap misses. */
.form-row,
.form-row-split > div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  position: relative;
  padding-bottom: 1.35rem;
}
.form-row-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem 1.1rem;
  padding-bottom: 0;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-on-paper);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: var(--tap);
  background: #fff;
  border: 1px solid rgba(32, 29, 20, 0.24);
  border-radius: 5px;
  padding: 0.7rem 0.85rem;
  color: var(--text-on-paper);
  /* 16px — stops iOS from zooming the viewport on focus */
  font-size: 1rem;
}
.contact-form textarea { resize: vertical; min-height: 6.5rem; }
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible { outline-color: var(--velvet); }
.contact-form input[aria-invalid="true"],
.contact-form select[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] { border-color: #a13a3a; }
.field-error {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  font-size: 0.8rem;
  line-height: 1.25;
  color: #a13a3a;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  padding: 1.25rem 0.5rem;
}
.form-success p { color: var(--text-on-paper); font-size: 0.96rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--onyx);
  border-top: 1px solid var(--linework);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--linework);
}
.footer-logo { height: 46px; width: auto; margin-bottom: 1rem; }
.footer-tagline {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--brass-bright);
  margin-bottom: 0.9rem;
}
.footer-brand p { font-size: 0.9rem; margin-top: 0.25rem; }
.footer-brand a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--brass);
  overflow-wrap: anywhere;
}
.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.6rem;
}
.footer-heading-spaced { margin-top: 1.5rem; }
.footer-links ul { display: flex; flex-direction: column; }
.footer-links a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  font-size: 0.92rem;
  color: var(--text-on-dark-muted);
}
.footer-links a:hover { color: var(--brass-bright); }
.footer-hours { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-hours li { font-size: 0.9rem; color: var(--text-on-dark-muted); }
.footer-social-handle { font-size: 0.9rem; color: var(--text-on-dark); overflow-wrap: anywhere; }

.footer-legal {
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-legal p { font-size: 0.78rem; line-height: 1.6; color: var(--text-on-dark-muted); }
.footer-credit { margin-top: 0.5rem; }

/* Guard flex/grid children against long unbreakable strings */
.hero-copy, .licence-copy, .visit-copy, .tray-info, .footer-brand { min-width: 0; }

/* =========================================================
   Wider-screen enhancements — min-width only
   ========================================================= */

@media (min-width: 480px) {
  .container { padding: 0 1.5rem; }
  .hero-cta { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .form-row-split { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 640px) {
  .drawer-tray {
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: center;
    gap: 1.75rem;
  }
  .drawer-front { padding: 1.35rem 1.6rem; }
  .medallion { width: min(50vw, 340px); }
  .hero { padding: 3.5rem 1.5rem 4.5rem; }
}

@media (min-width: 900px) {
  .container { padding: 0 2.25rem; }
  .header-inner { padding: 0.6rem 2.25rem; }
  .licence-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; }
  .visit-grid { grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
  .hero-inner { flex-direction: row; text-align: left; gap: 3.5rem; align-items: center; }
  .hero { text-align: left; padding: 4.5rem 2.25rem 5.5rem; }
  .hero-sub { margin: 0; }
  .hero-cta { justify-content: flex-start; }
  .medallion { width: min(38vw, 400px); }
}

/* Nav becomes an inline row; the phone bar and hamburger retire */
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .cta-bar { display: none; }
  .menu-toggle { display: none; }

  .site-nav,
  html.js .site-nav,
  html.js .site-nav.is-open {
    position: static;
    inset: auto;
    z-index: auto;
    background: transparent;
    padding: 0;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    display: block;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    max-width: none;
    width: auto;
  }
  .site-nav a {
    min-height: var(--tap);
    padding: 0.25rem 0;
    border-bottom: none;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-on-dark-muted);
    position: relative;
  }
  .site-nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.35rem;
    width: 0;
    height: 2px;
    background: var(--brass);
    transition: width 0.25s var(--ease);
  }
  .site-nav a:not(.nav-cta):hover { color: var(--text-on-dark); }
  .site-nav a:not(.nav-cta):hover::after { width: 100%; }
  .site-nav .nav-cta {
    margin-top: 0;
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
  }
  .brand-logo { height: 42px; }
}

@media (min-width: 1100px) {
  .category-grid { gap: 1.25rem; }
  .category-card { min-height: 172px; }
}

/* =========================================================
   Reduced motion — every animation and transition off
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  /* End states must still be the visible states */
  html.js [data-reveal] { opacity: 1; transform: none; }
  .medallion-rosette { animation: none; }
  .btn-gold:hover { transform: none; }
}
