/* ==========================================================================
   Nahwa Al-Tamayoz (16-nahwa-altamayoz) — styles.css
   Sections, in order: tokens, base, shared parts, header, hero, services,
   visit (sticky crossfade), marquee, centre gallery, booking, location,
   footer, contact bar, compact layout, reduced motion.
   Colours, fonts, radii and spacing live only in the :root tokens below.
   Motif: the brass door plaque (labels, hero frame, card rules).
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  /* colour */
  --white: #FFFFFF;
  --sand: #F6F2EB;
  --sand-deep: #EBE4D6;
  --ink: #18233A;
  --ink-soft: #4A566B;
  --navy: #1F3F7A;
  --navy-dark: #162E5C;
  --sky: #E9EEF7;
  --brass: #B08D57;
  --line: #E2DACA;
  --line-strong: #CDBFA5;
  --status-open: #1F7A5C;
  --status-closed: #6B7585;
  /* type */
  --font: "Outfit", "Noto Kufi Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-card-title: 19px;
  --fs-h2: 28px;
  --fs-h1: 38px;
  /* shape */
  --radius: 8px;
  --tap: 48px;
  /* spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --section: 56px;
  --page: 1180px;
  --pad: 20px;
  --header-h: 64px;
  --bar-h: 72px;
}
@media (min-width: 1024px) {
  :root {
    --fs-body: 17px;
    --fs-small: 15px;
    --fs-card-title: 22px;
    --fs-h2: 40px;
    --fs-h1: 60px;
    --section: 64px;
    --pad: 40px;
    --header-h: 76px;
  }
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 84px; font-feature-settings: "lnum" 1; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 var(--fs-body)/1.8 var(--font); }
html[dir="ltr"] body { line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 700; line-height: 1.35; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-card-title); line-height: 1.45; font-weight: 600; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { max-width: calc(var(--page) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.section-pad { padding-block: var(--section); }
.skip-link { position: fixed; z-index: 1000; inset-inline-start: -200vw; top: 8px; padding: 12px 18px; background: var(--ink); color: var(--white); border-radius: var(--radius); }
.skip-link:focus { inset-inline-start: 12px; }
.progress-line { position: fixed; z-index: 100; top: 0; inset-inline: 0; height: 3px; background: transparent; pointer-events: none; }
.progress-line span { display: block; width: 100%; height: 100%; background: var(--navy); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .progress-line span { transform-origin: right; }

/* ---------- 3. SHARED PARTS ---------- */
.muted { color: var(--ink-soft); font-size: var(--fs-small); }
/* brass door plaque: section labels */
.plaque { display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--sp-3); padding: 5px 16px; background: var(--white); border: 1.5px solid var(--brass); border-radius: 6px; color: var(--navy); font-size: var(--fs-small); font-weight: 600; line-height: 1.5; box-shadow: inset 0 0 0 2px var(--white), inset 0 0 0 3px var(--sand-deep); }
.plaque::before, .plaque::after { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }
.section-head { margin-bottom: var(--sp-6); }
.body-copy { color: var(--ink-soft); margin-top: var(--sp-3); max-width: 60ch; }
.button { min-height: 52px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: var(--radius); border: 2px solid transparent; font-size: 16px; font-weight: 700; line-height: 1.2; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.button-primary { background: var(--navy); color: var(--white); }
.button-primary:hover { background: var(--navy-dark); }
.button-ghost { background: var(--white); color: var(--ink); border-color: var(--ink); }
.button-ghost:hover { background: var(--ink); color: var(--white); }
.glyph { display: block; flex: none; width: 20px; height: 20px; }
.glyph-arrow { width: 18px; height: 18px; transition: transform .2s ease; }
html[dir="rtl"] .glyph-arrow { transform: scaleX(-1); }
.button:hover .glyph-arrow { transform: translate(3px, -2px); }
html[dir="rtl"] .button:hover .glyph-arrow { transform: scaleX(-1) translate(3px, -2px); }
.phone-number { font-weight: 700; unicode-bidi: isolate; white-space: nowrap; }
.hours-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; min-height: 40px; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: var(--fs-small); font-weight: 600; line-height: 1.5; }
.hours-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--status-closed); }
.hours-badge[data-state="open"] .hours-dot { background: var(--status-open); }
.rating-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; min-height: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: var(--fs-small); font-weight: 600; background: var(--white); }
.glyph-star { flex: none; width: 18px; height: 18px; color: var(--brass); }
.glyph-check { flex: none; width: 18px; height: 18px; color: var(--navy); }

/* ---------- 4. HEADER ---------- */
.site-header { position: fixed; z-index: 90; top: 0; inset-inline: 0; height: var(--header-h); display: flex; align-items: center; gap: var(--sp-3); padding-inline: max(var(--pad), calc((100vw - var(--page)) / 2)); background: var(--white); border-bottom: 1px solid var(--line); transition: transform .2s ease; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header:focus-within { transform: none; }
.brand { display: flex; align-items: center; min-height: var(--tap); }
.wordmark { display: flex; flex-direction: column; gap: 2px; padding-inline-start: 12px; border-inline-start: 3px solid var(--brass); line-height: 1.15; }
.wm-main { font-size: 18px; font-weight: 700; color: var(--navy); }
.wm-sub { font-size: 14px; font-weight: 600; color: var(--ink-soft); letter-spacing: .02em; }
html[lang="en"] .wm-main { letter-spacing: -.005em; }
.site-nav { display: none; align-items: center; gap: var(--sp-5); margin-inline-start: auto; font-size: var(--fs-small); font-weight: 600; }
.site-nav a { min-height: var(--tap); display: flex; align-items: center; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--brass); color: var(--navy); }
.language-switch { margin-inline-start: auto; min-width: var(--tap); min-height: var(--tap); padding-inline: 10px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 15px; font-weight: 700; color: var(--ink); }
.language-switch:hover { border-color: var(--ink); }
html[lang="en"] .language-switch.lang-ar { display: none; }
html:not([lang="en"]) .language-switch.lang-en { display: none; }
.header-cta { display: none; min-height: var(--tap); padding-inline: 16px; font-size: 15px; }
@media (min-width: 1024px) {
  .wm-main { font-size: 21px; }
  .wm-sub { font-size: 14px; }
  .site-nav { display: flex; }
  .language-switch { margin-inline-start: 0; }
  .header-cta { display: inline-flex; }
}

/* ---------- 5. HERO ---------- */
.hero { padding-top: calc(var(--header-h) + var(--sp-5)); padding-bottom: var(--sp-6); background: var(--white); position: relative; }
.hero-grid { display: grid; gap: var(--sp-6); align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero h1 { font-size: var(--fs-h1); line-height: 1.4; letter-spacing: 0; color: var(--ink); }
html[dir="ltr"] .hero h1 { line-height: 1.1; letter-spacing: -.012em; }
.hero-line { font-size: 19px; line-height: 1.7; color: var(--ink-soft); margin-top: var(--sp-4); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); width: 100%; }
.hero-actions .button { flex: 1 1 200px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
/* the brass frame: two L-shaped halves, each drawn from its own corner with clip-path */
.hero-media { position: relative; isolation: isolate; width: 100%; max-width: 500px; padding: 20px; }
.frame { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.frame-a { border-top: 2px solid var(--brass); border-left: 2px solid var(--brass); }
.frame-b { border-bottom: 2px solid var(--brass); border-right: 2px solid var(--brass); }
.hero-image { width: 100%; aspect-ratio: 4 / 3; max-height: 52svh; object-fit: cover; object-position: 50% 46%; border-radius: 4px; background: var(--sand); }
@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--header-h) + var(--sp-6)); padding-bottom: var(--sp-6); }
  .hero::before { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 42%; background: var(--sand); z-index: 0; }
  .hero-grid { position: relative; z-index: 1; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: var(--sp-7); }
  .hero h1 { font-size: clamp(40px, 4.3vw, var(--fs-h1)); }
  html[dir="ltr"] .hero h1 { font-size: clamp(44px, 4.8vw, 64px); }
  .hero-line { font-size: 22px; }
  .hero-actions .button { flex: 0 1 auto; }
  .hero-image { aspect-ratio: 5 / 6; max-height: 70svh; object-position: 50% 42%; }
}
@media (max-width: 1023px) {
  .hero-media { margin-inline: auto; }
}

/* ---------- 6. SERVICES ---------- */
.services { background: var(--sand); }
.service-grid { display: grid; gap: var(--sp-3); }
.service-card { display: grid; gap: var(--sp-4); padding: var(--sp-5); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--brass); border-radius: var(--radius); }
.service-text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
.service-icon { flex: none; width: 44px; height: 44px; padding: 9px; border-radius: var(--radius); background: var(--sky); color: var(--navy); margin-bottom: var(--sp-1); }
.service-text p { color: var(--ink-soft); max-width: 46ch; }
.service-media { border-radius: 6px; overflow: hidden; background: var(--sand); }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) and (max-width: 1023px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
  .service-card.has-media { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 40%); align-items: center; }
  .service-card.has-media .service-media { aspect-ratio: 16 / 9; }
}
@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--sp-4); }
  .service-card { grid-column: span 3; padding: var(--sp-5) var(--sp-5) var(--sp-6); }
  .service-card:nth-child(1) { grid-column: span 7; }
  .service-card:nth-child(2) { grid-column: span 5; }
  .service-card:nth-child(5) { grid-column: span 6; }
  .service-card.has-media { grid-template-columns: minmax(0, 1fr) minmax(0, 38%); align-items: center; }
  .service-card.has-media .service-media { aspect-ratio: 4 / 3; max-height: 220px; }
}

/* ---------- 7. VISIT (four steps; sticky crossfade on tall desktops) ---------- */
.visit { background: var(--white); }
/* Base layout: every step shows its own photo inline. Nothing below depends on JS. */
.steps { display: block; }
.step { display: grid; gap: var(--sp-4); padding-block: var(--sp-5); border-top: 1px solid var(--line-strong); }
.step-media { background: var(--sand); border-radius: 6px; overflow: hidden; }
.step-media img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.step:nth-child(1) .step-media img { object-position: 50% 60%; }
.step:nth-child(2) .step-media img { object-position: 50% 52%; }
.step:nth-child(3) .step-media img { object-position: 50% 60%; }
.step:nth-child(4) .step-media img { object-position: 50% 65%; }
.step-body { display: flex; flex-direction: column; gap: 6px; }
.step-no { font-size: var(--fs-small); font-weight: 700; color: var(--navy); font-variant-numeric: lining-nums; }
.step-body p { color: var(--ink-soft); max-width: 52ch; }
.visit-note { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line-strong); color: var(--ink-soft); font-size: var(--fs-small); }
.staff-line { margin-top: var(--sp-1); color: var(--ink-soft); font-size: var(--fs-small); font-weight: 600; }
.facility-info { display: grid; gap: var(--sp-3); margin-top: var(--sp-6); padding: var(--sp-5); background: var(--sky); border-radius: var(--radius); }
.facility-list li { display: flex; padding: 10px 0; border-top: 1px solid var(--line-strong); }
.facility-list li:first-child { border-top: 0; }
@media (max-width: 759px) {
  /* phones: text-led rows, only two supporting photographs in the whole section */
  .step:nth-child(2) .step-media, .step:nth-child(4) .step-media { display: none; }
  .step-media { order: 2; }
  .step-media img { aspect-ratio: 16 / 7; }
}
@media (min-width: 760px) {
  .step { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-6); align-items: center; }
  .step-media img { max-height: 260px; }
}
/* Enhanced layout: set by main.js (html.js + .is-stacked) and only where the viewport is at least 1024 x 700.
   No ancestor of the sticky photo column sets overflow. Steps become one grid; photos share one cell and stack. */
@media (min-width: 1024px) and (min-height: 700px) {
  html.js .visit.is-stacked .steps { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: repeat(4, auto); column-gap: var(--sp-8); }
  html.js .visit.is-stacked .step { display: contents; }
  html.js .visit.is-stacked .step-media { grid-column: 1; grid-row: 1 / span 4; position: sticky; top: 100px; align-self: start; width: 100%; max-width: 560px; height: min(420px, calc(100svh - 140px)); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  html.js .visit.is-stacked .step-media.is-current { opacity: 1; pointer-events: auto; }
  html.js .visit.is-stacked .step-media img { aspect-ratio: auto; max-height: none; height: 100%; }
  html.js .visit.is-stacked .step:nth-child(1) .step-body { grid-row: 1; }
  html.js .visit.is-stacked .step:nth-child(2) .step-body { grid-row: 2; }
  html.js .visit.is-stacked .step:nth-child(3) .step-body { grid-row: 3; }
  html.js .visit.is-stacked .step:nth-child(4) .step-body { grid-row: 4; }
  html.js .visit.is-stacked .step-body { grid-column: 2; justify-content: center; min-height: clamp(160px, 20svh, 200px); padding-block: var(--sp-3); padding-inline-start: var(--sp-6); border-inline-start: 3px solid var(--line-strong); transition: border-color .25s ease; }
  html.js .visit.is-stacked .step-body.is-active { border-inline-start-color: var(--brass); }
  html.js .visit.is-stacked .step-body.is-active .step-no { color: var(--navy); }
  html.js .visit.is-stacked .step-body:not(.is-active) .step-no { color: var(--ink-soft); }
}

/* ---------- 8. MARQUEE ---------- */
/* Default = static: one copy that wraps, no pause button. The loop only runs under .marquee-ready (added by main.js once the pause listener exists). */
.marquee-band { direction: ltr; display: flex; align-items: stretch; background: var(--navy-dark); color: var(--white); }
.marquee-viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; display: flex; align-items: center; padding: 14px var(--pad); }
.marquee-track { --mq-gap: 22px; display: flex; align-items: center; flex-wrap: wrap; justify-content: center; row-gap: 8px; width: auto; white-space: normal; font-size: 20px; font-weight: 600; line-height: 1.4; }
.marquee-copy + .marquee-copy, .marquee-copy > span + span { display: none; }
.marquee-copy { display: flex; flex: 0 1 auto; min-width: 0; align-items: center; justify-content: center; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-band.marquee-ready { height: 64px; }
  .marquee-band.marquee-ready .marquee-viewport { padding: 0; }
  .marquee-band.marquee-ready .marquee-track { width: max-content; flex-wrap: nowrap; justify-content: flex-start; white-space: nowrap; line-height: 1; will-change: transform; animation: nt-marquee 28s linear infinite; }
  .marquee-band.marquee-ready .marquee-copy { display: flex; flex: none; }
  .marquee-band.marquee-ready .marquee-copy > span { display: inline-flex; flex-wrap: nowrap; }
  .marquee-band.marquee-ready .marquee-toggle { display: inline-flex; }
}
.marquee-copy > span { direction: ltr; unicode-bidi: isolate; display: inline-flex; flex-wrap: wrap; justify-content: center; row-gap: 8px; align-items: center; }
html[dir="rtl"] .marquee-copy > span { direction: rtl; }
/* separator: a small brass plaque */
.marquee-track b { flex: none; display: inline-block; width: 16px; height: 9px; margin-inline: var(--mq-gap); background: var(--brass); border-radius: 2px; }
html[lang="en"] .marquee-track { letter-spacing: .08em; font-size: 18px; }
@keyframes nt-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-toggle { display: none; flex: none; width: var(--tap); height: 100%; align-items: center; justify-content: center; padding: 0; border: 0; border-inline-start: 1px solid rgba(255,255,255,.25); background: var(--navy-dark); color: var(--white); cursor: pointer; }
html[dir="rtl"] .marquee-toggle { order: -1; border-inline-start: 0; border-inline-end: 1px solid rgba(255,255,255,.25); }
.marquee-toggle:hover { background: var(--navy); }
.marquee-toggle:focus-visible { outline: 3px solid var(--white); outline-offset: -6px; }
.marquee-toggle .icon-play, .marquee-band.is-paused .marquee-toggle .icon-pause { display: none; }
.marquee-band.is-paused .marquee-toggle .icon-play { display: block; }
.marquee-band.is-paused .marquee-track { animation-play-state: paused; }

/* ---------- 9. THE CENTRE (gallery) ---------- */
.centre { background: var(--sand); }
.gallery { display: flex; gap: var(--sp-3); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin-inline: calc(-1 * var(--pad)); padding: 0 var(--pad) var(--sp-3); scroll-padding-inline: var(--pad); }
.gallery-item { flex: 0 0 72vw; max-width: 320px; scroll-snap-align: start; }
.gallery-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; background: var(--sand-deep); }
.gallery-item:nth-child(1) img { object-position: 50% 60%; }
.gallery-item:nth-child(2) img { object-position: 50% 62%; }
.gallery-item figcaption { margin-top: var(--sp-2); font-size: var(--fs-small); font-weight: 600; color: var(--ink-soft); }
@media (min-width: 760px) {
  .gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-4); overflow: visible; margin-inline: 0; padding: 0; }
  .gallery-item { flex: none; max-width: none; grid-column: span 6; }
  .gallery-item:nth-child(1), .gallery-item:nth-child(4) { grid-column: span 7; }
  .gallery-item:nth-child(2), .gallery-item:nth-child(3) { grid-column: span 5; }
  .gallery-item img { aspect-ratio: auto; height: 280px; }
}
@media (min-width: 1024px) {
  .gallery-item img { height: 300px; }
}

/* ---------- 10. BOOKING (call only) ---------- */
.booking { background: var(--sky); }
.booking-grid { display: grid; gap: var(--sp-6); align-items: center; }
.booking-phone { display: flex; flex-direction: column; margin-top: var(--sp-5); }
.booking-phone a { min-height: var(--tap); display: flex; align-items: center; width: max-content; font-size: 36px; font-weight: 700; color: var(--navy); unicode-bidi: isolate; letter-spacing: .01em; }
.booking-note { display: flex; align-items: center; gap: 8px; margin-top: var(--sp-2); font-weight: 600; font-size: var(--fs-small); }
.booking-panel { display: grid; gap: var(--sp-5); padding: var(--sp-5); background: var(--white); border: 1px solid var(--line-strong); border-top: 3px solid var(--brass); border-radius: var(--radius); }
.panel-title { font-size: var(--fs-small); font-weight: 700; color: var(--navy); margin-bottom: var(--sp-2); }
.hours li { display: flex; justify-content: space-between; gap: var(--sp-4); padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours b { font-weight: 700; font-variant-numeric: lining-nums; }
.panel-block .hours-badge { margin-top: var(--sp-3); background: var(--sand); }
.mention-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mention-list li { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--sand); font-size: 15px; line-height: 1.6; }
.booking-cta { width: 100%; }
@media (min-width: 1024px) {
  .booking-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-8); }
  .booking-panel { padding: var(--sp-6); }
  .booking-phone a { font-size: 48px; }
}

/* ---------- 11. LOCATION ---------- */
.location { background: var(--white); }
.location-grid { display: grid; gap: var(--sp-6); }
.location-media { display: flex; flex-direction: column; gap: var(--sp-3); align-items: flex-start; }
.storefront { width: 100%; max-width: 560px; border-radius: 6px; overflow: hidden; background: #000; }
.storefront img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 14%; }
.map-wrap { position: relative; width: 100%; max-width: 560px; height: 260px; overflow: hidden; border-radius: 6px; background: var(--sand); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }
.map-wrap iframe:not([inert]) { pointer-events: auto; }
.map-controls { position: absolute; z-index: 2; inset-inline: 12px; bottom: 12px; display: flex; gap: 8px; }
.map-toggle { min-height: var(--tap); padding: 8px 16px; background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); font-size: 15px; font-weight: 700; cursor: pointer; }
.map-toggle:hover { background: var(--ink); color: var(--white); }
.location-details { display: flex; flex-direction: column; gap: var(--sp-5); }
.detail-block { padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line); }
.detail-label { display: block; margin-bottom: var(--sp-2); font-size: var(--fs-small); font-weight: 700; color: var(--navy); }
.detail-value { font-size: 18px; font-weight: 600; line-height: 1.7; }
.detail-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.action { flex: 1 1 250px; min-height: var(--tap); padding: 8px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 2px solid var(--ink); border-radius: var(--radius); font-weight: 700; font-size: 16px; text-align: center; line-height: 1.4; }
.action:hover { background: var(--ink); color: var(--white); }
.action-primary { flex-basis: 290px; white-space: nowrap; background: var(--navy); border-color: var(--navy); color: var(--white); }
.action-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.amenities li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 16px; }
.amenities .glyph-check { margin-top: 5px; }
@media (min-width: 1024px) {
  .location-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--sp-8); }
  .map-wrap { height: 240px; }
  .storefront img { max-height: 315px; }
  .amenities li { font-size: 15px; }
}

/* ---------- 12. FOOTER ---------- */
.site-footer { padding-block: var(--sp-7) var(--sp-6); background: var(--sand); border-top: 1px solid var(--line-strong); }
.footer-grid { display: grid; gap: var(--sp-4); }
.footer-copy { color: var(--ink-soft); max-width: 50ch; font-size: var(--fs-small); font-weight: 600; }
.footer-social { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); }
.social-link { min-height: var(--tap); display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.social-link:hover { color: var(--navy); }
.footer-note { padding-top: var(--sp-4); border-top: 1px solid var(--line-strong); font-size: var(--fs-small); color: var(--ink-soft); }

/* ---------- 13. STICKY CONTACT BAR (below 1024px) ---------- */
.contact-bar { display: none; }
@media (max-width: 1023px) {
  .contact-bar { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; position: fixed; z-index: 80; bottom: 0; inset-inline: 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line-strong); }
  .contact-bar a { min-height: var(--tap); display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius); font-size: 15px; font-weight: 700; }
  .bar-call { background: var(--navy); color: var(--white); border: 2px solid var(--navy); }
  .bar-dir { border: 2px solid var(--ink); color: var(--ink); }
  .site-footer { padding-bottom: calc(var(--bar-h) + var(--sp-5)); }
}

/* ---------- 14. COMPACT LAYOUT (keeps the page within the height limits) ---------- */
@media (max-width: 1023px) {
  :root { --section: 44px; }
  .hero { padding-bottom: var(--sp-4); }
  .hero-media { padding: 16px; }
  .hero-actions { margin-top: var(--sp-4); }
  .hero-facts { margin-top: var(--sp-4); }
  .hero-line { font-size: 18px; margin-top: var(--sp-3); }
  .hero-image { max-height: 40svh; }
  .section-head { margin-bottom: var(--sp-4); }
  .service-card { padding: var(--sp-4); gap: var(--sp-3); }
  .service-card.has-media { grid-template-columns: minmax(0, 1fr) 96px; align-items: start; }
  .service-card.has-media .service-media { aspect-ratio: 1 / 1; }
  .service-icon { width: 36px; height: 36px; padding: 7px; margin-bottom: 0; }
  .service-text { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: var(--sp-3); row-gap: var(--sp-1); }
  .service-text p { grid-column: 1 / -1; }
  .step { grid-template-columns: minmax(0, 1fr) 76px; align-items: start; gap: var(--sp-3); padding-block: var(--sp-3); }
  .step-body { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; }
  .step-body p { grid-column: 1 / -1; }
  .step-media { grid-column: 2; grid-row: 1; order: 0; }
  .step-media img { aspect-ratio: 1 / 1; }
  .step-body h3 { font-size: 18px; }
  .visit-note { margin-top: var(--sp-3); padding-top: var(--sp-3); }
  .facility-info { margin-top: var(--sp-4); padding: var(--sp-4); }
  .facility-list li { padding: 8px 0; font-size: 15px; line-height: 1.6; }
  .marquee-band.marquee-ready { height: 52px; }
  .gallery-item { flex-basis: 62vw; }
  .booking-grid { gap: var(--sp-4); }
  .booking-phone { margin-top: var(--sp-3); }
  .booking-phone a { font-size: 32px; }
  .booking-panel { padding: var(--sp-4); gap: var(--sp-4); }
  .storefront img { aspect-ratio: 16 / 9; }
  .map-wrap { height: 200px; }
  .location-grid { gap: var(--sp-4); }
  .location-details { gap: var(--sp-3); }
  .detail-actions { display: none; }
  .amenities { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .amenities li { padding: 3px 0; font-size: 15px; }
  .site-footer { padding-top: var(--sp-5); padding-bottom: calc(var(--bar-h) + var(--sp-5)); }
  .footer-grid { gap: var(--sp-3); }
}
@media (min-width: 1024px) {
  .section-head { margin-bottom: var(--sp-5); }
  .facility-info { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--sp-6); align-items: center; padding: var(--sp-5) var(--sp-6); }
  .facility-list li { padding: 6px 0; }
  .location-details { gap: var(--sp-4); }
  .site-footer { padding-block: var(--sp-6) var(--sp-5); }
  .footer-grid { grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sp-4) var(--sp-6); }
  .footer-note { grid-column: 1 / -1; padding-top: var(--sp-3); }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  :root { --section: 60px; }
  .location-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-6); }
}
@media (max-width: 420px) {
  :root { --section: 36px; --fs-h1: 36px; }
  .wm-main { font-size: 17px; }
}
@media (max-width: 360px) {
  :root { --section: 28px; --fs-h1: 32px; }
  .gallery-item { flex-basis: 56vw; }
  .hero-facts .rating-chip { display: none; }
  .booking-phone a { font-size: 28px; }
  .service-card.has-media { grid-template-columns: minmax(0, 1fr) 72px; }
}

/* ---------- 15. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .site-header, .site-header.is-hidden { transform: none !important; }
  .marquee-toggle { display: none !important; }
  .marquee-track { animation: none !important; transform: none !important; }
  .step-media { position: static !important; opacity: 1 !important; }
}
