/* Guanacos Cafe & Pupuseria — design tokens from the Step 4 blueprint */
:root {
  --cream: #F6F0E4;
  --paper: #FFFDF8;
  --navy: #142C48;
  --blue: #0F47AF; /* El Salvador flag blue */
  --blue-deep: #0B3688;
  --ink: #172331;
  --wood: #B67E49;
  --turquoise: #12908E;
  --marigold: #F2B134;
  --achiote: #B83E27;
  --line: rgba(20, 44, 72, .16);
  --display: Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-btn: 8px;
  --r-img: 12px;
  --gutter: 20px;
  --section: clamp(48px, 8vw, 104px);
  --header-h: 64px;
  --bar-h: 72px;
}
@media (min-width: 900px) { :root { --gutter: 32px; --header-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1rem/1.6 var(--body); }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2 { font-family: var(--display); font-weight: 400; color: var(--navy); line-height: 1.08; margin: 0 0 16px; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.25rem, 6.4vw, 4.5rem); }
h1 span { display: block; font-style: italic; color: var(--blue); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.25rem); }
p { margin: 0 0 16px; }
a { color: var(--blue); }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.closing :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: calc(1280px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 62ch; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: var(--r-btn); }
.skip:focus { top: 12px; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--blue); margin-bottom: 12px; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--wood); vertical-align: middle; margin-right: 10px; }
.frame { margin: 0; border-radius: var(--r-img); overflow: hidden; background: var(--paper); box-shadow: 0 1px 2px rgba(20,44,72,.08), 0 10px 28px rgba(20,44,72,.10); }
.frame img { width: 100%; }

/* Preview flag (only rendered while ordering is unconfirmed) */
.preview-flag { margin: 0; padding: 8px var(--gutter); background: #FFE9A8; color: #3A2A00; font-size: .875rem; text-align: center; }
.preview-inline { font-size: .875rem; opacity: .85; border: 1px dashed rgba(255,255,255,.5); padding: 10px 14px; border-radius: var(--r-btn); display: inline-block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--r-btn); font: 600 1rem/1 var(--body); text-decoration: none; border: 2px solid transparent; transition: background-color .18s, color .18s, border-color .18s, transform .18s; white-space: nowrap; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost, .btn-outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn-ghost:hover, .btn-outline:hover { background: var(--navy); color: #fff; }
.btn-on-navy { background: #fff; color: var(--navy); }
.btn-on-navy:hover { background: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.text-link { font-weight: 600; text-underline-offset: 4px; display: inline-block; padding: 10px 0; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--navy); background: transparent; color: var(--navy); font-size: 1.2rem; cursor: pointer; transition: background-color .18s, color .18s, opacity .18s; }
.round:hover:not(:disabled) { background: var(--navy); color: #fff; }
.round:disabled { opacity: .35; cursor: default; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.wordmark { display: flex; flex-direction: column; line-height: 1; text-decoration: none; color: var(--navy); margin-right: auto; padding: 6px 0; }
.wordmark-name { font-family: var(--display); font-size: 1.5rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
.wordmark-sub { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin-top: 4px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--navy); text-decoration: none; font-weight: 600; border-radius: var(--r-btn); transition: background-color .18s; }
.site-nav a:hover { background: rgba(20,44,72,.08); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: var(--r-btn); cursor: pointer; order: 3; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 22px; height: 2px; background: var(--navy); margin: 0 auto; position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -7px; left: 0; }
.nav-toggle-bars::after { position: absolute; top: 7px; left: 0; }
@media (max-width: 759px) {
  .header-row { flex-wrap: wrap; }
  .header-order { min-height: 44px; padding: 0 14px; font-size: .9375rem; }
  .wordmark-name { font-size: 1.25rem; }
  .site-nav { order: 4; width: 100%; }
  .site-nav ul { flex-direction: column; padding-bottom: 12px; }
  .site-nav a { width: 100%; min-height: 48px; }
  .js .nav-toggle { display: block; }
  @media (max-width: 359px) {
    .header-row { gap: 6px; }
    .wordmark-name { font-size: 1.05rem; }
    .wordmark-sub { font-size: .5rem; letter-spacing: .14em; }
    .header-order { padding: 0 10px; font-size: .875rem; }
  }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
}

/* Hero */
.hero { padding: clamp(28px, 5vw, 56px) 0 var(--section); }
.hero-copy { padding-bottom: clamp(24px, 4vw, 40px); }
.lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 52ch; }
.film { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-img); overflow: hidden; background: var(--navy); box-shadow: 0 18px 48px rgba(20,44,72,.22); }
.film picture, .film-poster, .film-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-video { opacity: 0; transition: opacity .4s; }
.film[data-state="playing"] .film-video, .film[data-state="paused"] .film-video, .film[data-state="ended"] .film-video { opacity: 1; }
.film-bar { display: flex; align-items: center; gap: 16px; min-height: 48px; margin-top: 12px; }
.film-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-btn); border: 2px solid var(--navy); background: transparent; color: var(--navy); font: 600 .9375rem/1 var(--body); cursor: pointer; text-decoration: none; transition: background-color .18s, color .18s; }
.film-btn:hover { background: var(--navy); color: #fff; }
.film-status { margin: 0; font-size: .875rem; color: var(--ink); }

/* Sections */
.section { padding: var(--section) 0; }
.pupusas { background: var(--paper); border-block: 1px solid var(--line); }
.split { display: grid; gap: 28px; }
.split-detail { max-width: 60%; margin-top: 24px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 6fr 4fr; gap: 56px; align-items: center; }
  .split-detail { max-width: 300px; margin: 32px 0 -72px -112px; position: relative; will-change: transform; }
  .split-copy { padding-bottom: 72px; }
}

/* Food rail */
.food-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.food-head h2 { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--navy); border-radius: 999px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .9375rem; transition: background-color .18s, color .18s; }
.chips a:hover { background: var(--navy); color: #fff; }
.rail-shell { perspective: 1400px; }
.rail { list-style: none; margin: 0; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; padding: 12px max(var(--gutter), calc((100vw - 1280px) / 2)) 28px; scroll-padding-inline: max(var(--gutter), calc((100vw - 1280px) / 2)); -webkit-overflow-scrolling: touch; }
.card { flex: 0 0 86%; scroll-snap-align: start; scroll-margin-top: calc(var(--header-h) + 24px); }
.card-media { transition: transform .22s ease-out; }
.card-group { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--blue); margin: 16px 0 4px; }
.card-caption { margin: 0; font-family: var(--display); font-size: 1.125rem; line-height: 1.35; color: var(--navy); max-width: 30ch; }
@media (min-width: 900px) {
  .rail { scroll-snap-type: none; } /* desktop uses the buttons/keys, which already land on card edges */
  .card { flex: 0 0 auto; }
  .card-media img { height: 420px; width: auto; }
  .js .rail.is-enhanced .card.is-focus .card-media { transform: scale(1.025); }
  .js .rail.is-enhanced .card.is-before .card-media { transform: rotateY(3deg); }
  .js .rail.is-enhanced .card.is-after .card-media { transform: rotateY(-3deg); }
}
.rail-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rail-controls { display: flex; gap: 10px; }
.rail-controls[hidden] { display: none; }
/* No-scroll fallback grid if horizontal overflow is unavailable (print) */
@media print { .rail { flex-wrap: wrap; overflow: visible; } .card { flex-basis: 45%; } }

/* Coffee */
.coffee { background: var(--paper); border-block: 1px solid var(--line); }
.duo { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .duo { grid-template-columns: 7fr 4fr; grid-template-areas: "a b" "copy b"; gap: 40px 56px; align-items: start; }
  .duo-a { grid-area: a; } .duo-b { grid-area: b; margin-top: 64px; } .duo-copy { grid-area: copy; max-width: 52ch; }
}

/* Rooms */
.rooms { display: grid; gap: 20px; margin-top: 32px; }
.room { position: relative; display: block; }
.room-hint { position: absolute; right: 12px; bottom: 12px; background: rgba(20,44,72,.88); color: #fff; font-size: .8125rem; font-weight: 600; padding: 8px 12px; border-radius: 999px; opacity: 0; transition: opacity .18s; }
.room:hover .room-hint, .room:focus-visible .room-hint { opacity: 1; }
@media (hover: none) { .room-hint { opacity: 1; } }
@media (min-width: 700px) { .rooms { grid-template-columns: 1fr 1fr; } .room-main { grid-column: 1 / -1; } }

/* Visit */
.visit-grid { display: grid; gap: 24px; }
.visit-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-img); padding: clamp(24px, 4vw, 40px); font-size: 1.125rem; }
.visit-phone { margin: 16px 0 4px; font-family: var(--display); font-size: 1.75rem; }
.visit-phone a { color: var(--navy); text-decoration: none; display: inline-block; padding: 6px 0; }
.visit-note { font-size: 1rem; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; } }

/* Closing */
.closing { background: var(--navy); color: #fff; padding: var(--section) 0; text-align: center; }
.closing h2 { color: #fff; }
.closing-inner > p { max-width: 56ch; margin-inline: auto; }
.closing .actions { justify-content: center; margin-bottom: 24px; }

/* Footer */
.site-footer { background: #0E2138; color: #E8EDF4; padding: 48px 0; font-size: .9375rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
.wordmark-footer { display: block; margin: 0 0 8px; }
.wordmark-footer .wordmark-name { color: #fff; font-size: 1.25rem; }
.wordmark-footer .wordmark-sub { color: #E8EDF4; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-links a, .site-footer address a { display: inline-block; padding: 8px 0; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1.5fr 1fr; } }

/* Mobile ordering bar */
.order-bar { position: fixed; inset: auto 0 0 0; z-index: 40; background: var(--cream); border-top: 1px solid var(--line); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .22s ease-out; }
.order-bar .btn { width: 100%; }
.order-bar.is-visible { transform: none; }
@media (max-width: 759px) { .js .site-footer { padding-bottom: calc(48px + var(--bar-h) + env(safe-area-inset-bottom)); } }
@media (min-width: 760px) { .order-bar { display: none; } }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: #0B1626; color: #fff; width: min(100vw, 1500px); max-width: 100vw; max-height: 100dvh; border-radius: var(--r-img); }
.lightbox::backdrop { background: rgba(8, 16, 28, .86); }
.lightbox img { width: 100%; max-height: calc(100dvh - 96px); object-fit: contain; }
.lightbox-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.lightbox-bar p { margin: 0 auto 0 0; font-size: .9375rem; }
.lightbox .round, .lightbox .film-btn { border-color: #fff; color: #fff; }
.lightbox .round:hover, .lightbox .film-btn:hover { background: #fff; color: var(--navy); }
@media (max-width: 480px) { .lightbox-bar p { order: 5; width: 100%; } .lightbox-bar { flex-wrap: wrap; } }

/* Section entrances — applied only by JS, so content is visible if scripts fail */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .4s ease-out, transform .4s ease-out; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .card-media, .split-detail { transform: none !important; }
}

/* ---------- Salvadoran theme ---------- */
/* Flag triband along the top of the header */
.site-header::before { content: ""; display: block; height: 6px; background: linear-gradient(var(--blue) 0 33.3%, #fff 33.3% 66.6%, var(--blue) 66.6%); }
/* Folk-art band: volcano peaks, suns and diamonds in the bright colours of Salvadoran painted crafts */
.folk-band { height: 22px; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='22'%3E%3Crect width='88' height='22' fill='%23142C48'/%3E%3Cpath d='M2 20 12 4l10 16z' fill='%2312908E'/%3E%3Cpath d='M33 3l8 8-8 8-8-8z' fill='%23F2B134'/%3E%3Cpath d='M46 20 56 4l10 16z' fill='%23FFFDF8'/%3E%3Ccircle cx='77' cy='11' r='5.5' fill='%23D9532B'/%3E%3C/svg%3E") repeat-x center / auto 100%; }
.bienvenidos { font-family: var(--display); font-style: italic; font-size: clamp(1.5rem, 3.2vw, 2.25rem); color: var(--achiote); margin: 0 0 8px; line-height: 1.1; }
.bienvenidos.on-navy { color: var(--marigold); margin-bottom: 12px; }
h3 { font-family: var(--display); font-weight: 400; color: var(--navy); }
.trio-title { font-size: 1.5rem; margin: clamp(40px, 6vw, 72px) 0 20px; }
.trio { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.trio li { background: var(--cream); border-radius: var(--r-img); padding: 20px 22px; border-top: 5px solid var(--turquoise); }
.trio .trio-b { border-top-color: var(--achiote); }
.trio .trio-c { border-top-color: var(--marigold); }
.trio strong { display: block; font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.5rem; color: var(--navy); margin-bottom: 4px; }
@media (min-width: 760px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.guanaco { background: var(--blue); color: #fff; text-align: center; }
.guanaco-inner { padding-block: clamp(40px, 7vw, 80px); }
.guanaco h2 { color: #fff; font-style: italic; font-size: clamp(2.5rem, 8vw, 5rem); margin-bottom: 12px; }
.guanaco-say { display: block; font: 600 .8125rem/1 var(--body); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: #FFD98A; margin-top: 14px; }
.guanaco p { max-width: 46ch; margin: 0 auto; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); }
.guanaco :focus-visible { outline-color: #fff; }
/* Volcano ridge leading into the closing panel (decorative illustration, not a view of Fairfield) */
.ridge { display: block; width: 100%; height: clamp(48px, 9vw, 120px); fill: var(--navy); margin-bottom: -1px; }
/* ---------- Salvadoran theme, second pass ---------- */
/* Flag-blue hero that runs straight into the folk-art mural's sky */
.hero { background: var(--blue); color: #fff; padding-bottom: clamp(28px, 5vw, 56px); }
.hero h1 { color: #fff; }
.hero h1 span { color: #FFD98A; }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--marigold); }
.hero .bienvenidos { color: var(--marigold); }
.hero .btn-primary { background: #fff; color: var(--navy); }
.hero .btn-primary:hover { background: var(--cream); }
.hero .btn-ghost { color: #fff; border-color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--navy); }
.hero .film { box-shadow: 0 0 0 4px #fff, 0 18px 48px rgba(8, 24, 60, .45); }
.hero .film-btn { border-color: #fff; color: #fff; }
.hero .film-btn:hover { background: #fff; color: var(--navy); }
.hero .film-status { color: #fff; }
.hero :focus-visible { outline-color: #fff; }
.mural { background: var(--blue); }
.mural img { width: 100%; height: clamp(120px, 16.7vw, 240px); object-fit: cover; object-position: 78% bottom; }
/* National symbols */
.symbols-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; }
.symbols-grid li { background: var(--paper); border: 2px solid var(--navy); border-radius: var(--r-img); padding: 24px; box-shadow: 6px 6px 0 var(--marigold); }
.symbols-grid li:nth-child(2) { box-shadow: 6px 6px 0 var(--turquoise); }
.symbols-grid li:nth-child(3) { box-shadow: 6px 6px 0 #D9532B; }
.symbols-grid li:nth-child(4) { box-shadow: 6px 6px 0 var(--blue); }
.symbols-grid svg { width: 64px; height: 64px; display: block; margin-bottom: 14px; overflow: visible; }
.symbols-grid h3 { font-style: italic; font-size: 1.5rem; margin: 0 0 6px; }
.symbols-grid p { margin: 0; }
@media (min-width: 620px) { .symbols-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (min-width: 1040px) { .symbols-grid { grid-template-columns: repeat(4, 1fr); } }
/* ---------- Salvadoran theme, third pass: painted landscape, tilework, warm palette ---------- */
:root { --terracotta: #B8472A; --bougainvillea: #8E3FA8; --leaf: #2F7D46; }
/* Painted scene under the hero; its sky starts at the hero's flag blue */
.scene { background: var(--blue); }
.scene img { width: 100%; height: clamp(210px, 40vw, 560px); object-fit: cover; object-position: 58% bottom; }
/* Blue-and-white tilework border (replaces the geometric band) */
.folk-band { height: 44px; border-block: 3px solid var(--blue); background: #FFFDF8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Crect width='48' height='48' fill='%23FFFDF8'/%3E%3Cpath d='M0 0h48v48H0z' fill='none' stroke='%230F47AF' stroke-width='1.5'/%3E%3Cpath d='M24 5 43 24 24 43 5 24z' fill='none' stroke='%230F47AF' stroke-width='2.5'/%3E%3Cg fill='%233B7FD8'%3E%3Cellipse cx='24' cy='14' rx='4' ry='7'/%3E%3Cellipse cx='24' cy='34' rx='4' ry='7'/%3E%3Cellipse cx='14' cy='24' rx='7' ry='4'/%3E%3Cellipse cx='34' cy='24' rx='7' ry='4'/%3E%3C/g%3E%3Ccircle cx='24' cy='24' r='6' fill='%230F47AF'/%3E%3Ccircle cx='24' cy='24' r='2.6' fill='%23F2B134'/%3E%3Cg fill='%230F47AF'%3E%3Ccircle r='10'/%3E%3Ccircle cx='48' r='10'/%3E%3Ccircle cy='48' r='10'/%3E%3Ccircle cx='48' cy='48' r='10'/%3E%3C/g%3E%3Cg fill='%23FFFDF8'%3E%3Ccircle r='4.5'/%3E%3Ccircle cx='48' r='4.5'/%3E%3Ccircle cy='48' r='4.5'/%3E%3Ccircle cx='48' cy='48' r='4.5'/%3E%3C/g%3E%3C/svg%3E") repeat-x center / auto 100%; }
@media (max-width: 759px) { .folk-band { height: 32px; } }
.eyebrow::before { background: var(--terracotta); }
.eyebrow { color: var(--terracotta); }
.hero .eyebrow { color: #fff; }
.card-group { color: var(--terracotta); }
.trio li { border-top-color: var(--leaf); }
.trio .trio-b { border-top-color: var(--terracotta); }
.trio .trio-c { border-top-color: var(--bougainvillea); }
.symbols-grid li { box-shadow: 6px 6px 0 var(--terracotta); }
.symbols-grid li:nth-child(2) { box-shadow: 6px 6px 0 var(--leaf); }
.symbols-grid li:nth-child(3) { box-shadow: 6px 6px 0 var(--bougainvillea); }
.frame { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--blue), 0 12px 28px rgba(20,44,72,.14); }
.film.frame, .hero .film { border-radius: var(--r-img); }
.site-header { border-bottom: 3px solid var(--blue); }
/* ---------- Painted style carried into more sections ---------- */
/* Closing panel sits in the evening version of the scene */
.closing { padding-bottom: 0; }
.closing-inner { padding-bottom: clamp(8px, 2vw, 24px); position: relative; z-index: 1; }
.scene-dusk { background: var(--navy); margin-top: clamp(-120px, -8vw, -24px); }
.scene-dusk img { height: clamp(220px, 40vw, 600px); }
/* Flower sprays and a coffee branch tucked behind section content */
.pupusas, .symbols, .visit, .coffee { position: relative; overflow: hidden; }
.pupusas > .wrap, .symbols > .wrap, .visit > .wrap, .coffee > .wrap { position: relative; z-index: 1; }
.pupusas::after, .symbols::before, .visit::after, .coffee::before { content: ""; position: absolute; z-index: 0; pointer-events: none; background: url("../media/corner-flowers.svg") no-repeat center / contain; width: clamp(110px, 17vw, 260px); aspect-ratio: 1; }
.pupusas::after { right: -6px; bottom: -6px; }
.symbols::before { right: -6px; top: -6px; transform: scaleY(-1); }
.visit::after { left: -6px; bottom: -6px; transform: scaleX(-1); }
.coffee::before { background-image: url("../media/coffee-branch.svg"); aspect-ratio: 5 / 4; width: clamp(150px, 26vw, 400px); right: -10px; top: 0; }
.pupusas { padding-bottom: calc(var(--section) + clamp(24px, 5vw, 72px)); }
.visit { padding-bottom: calc(var(--section) + clamp(40px, 7vw, 110px)); }
/* ---------- Theme through the whole page: every section has its own Salvadoran colour and scenery ---------- */
.film-bar[hidden] { display: none; }
/* Clay roof-tile divider */
.roof-band { height: 30px; background: #A63F26 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='30'%3E%3Crect width='44' height='30' fill='%237A2A18'/%3E%3Cpath d='M0-2Q22 34 44-2z' fill='%23C5562F' stroke='%237A2A18' stroke-width='2'/%3E%3Cpath d='M6 0Q22 22 38 0' fill='none' stroke='%23E08A5A' stroke-width='2' opacity='.7'/%3E%3C/svg%3E") repeat-x center / auto 100%; box-shadow: 0 6px 10px rgba(0,0,0,.18); position: relative; z-index: 2; }
/* Food: deep coffee-hill green */
.food { background: linear-gradient(#256B3D, #17482A); color: #FFFDF8; }
.food h2, .food .card-caption { color: #FFFDF8; }
.food .eyebrow, .food .card-group { color: #FFD98A; }
.food .eyebrow::before { background: #FFD98A; }
.food .chips a { color: #FFFDF8; border-color: #FFFDF8; }
.food .chips a:hover { background: #FFFDF8; color: #17482A; }
.food .round { border-color: #FFFDF8; color: #FFFDF8; }
.food .round:hover:not(:disabled) { background: #FFFDF8; color: #17482A; }
.food .btn-primary { background: #FFFDF8; color: #17482A; }
.food .btn-primary:hover { background: #FFD98A; }
.food .frame { box-shadow: 0 0 0 4px #fff, 0 0 0 6px #FFD98A, 0 12px 28px rgba(0,0,0,.3); }
.food :focus-visible, .coffee :focus-visible { outline-color: #fff; }
/* A little of El Salvador: open sky running down into the Pacific scene */
.symbols { background: linear-gradient(var(--cream), #CFE6F7); padding-bottom: 0; }
.symbols > .wrap { padding-bottom: clamp(40px, 6vw, 80px); }
.scene-coast { background: #CFE6F7; }
.scene-coast img { height: clamp(200px, 35vw, 520px); object-position: 30% bottom; }
@media (min-width: 1040px) { .symbols-grid { grid-template-columns: repeat(4, 1fr); } }
/* Coffee and dessert: roasted coffee and clay */
.coffee { background: linear-gradient(135deg, #4A2412, #7A3A1E 60%, #A6502A); color: #FFF3DF; border: 0; }
.coffee h2 { color: #FFF3DF; }
.coffee .eyebrow { color: #FFD98A; }
.coffee .eyebrow::before { background: #FFD98A; }
.coffee .frame { box-shadow: 0 0 0 4px #fff, 0 0 0 6px #FFD98A, 0 12px 28px rgba(0,0,0,.35); }
/* Dining room: whitewashed wall */
.inside { background: var(--paper); }
/* Visit: golden hour */
.visit { background: linear-gradient(#FFF1D6, #FFD9A0 60%, #F9B877); }
.visit .eyebrow { color: #8A2F17; }
.visit-card { border: 2px solid var(--blue); box-shadow: 8px 8px 0 var(--terracotta); }
.pupusas { background: linear-gradient(var(--paper), #FFF1D6); border: 0; }
.trio li { background: #fff; box-shadow: 0 6px 18px rgba(20,44,72,.10); }
.site-footer { background: #0B1830; }
/* ---------- Menu page ---------- */
.site-nav a[aria-current="page"] { background: var(--blue); color: #fff; }
.rail-actions { margin: 0; }
.food .btn-ghost { color: #FFFDF8; border-color: #FFFDF8; }
.food .btn-ghost:hover { background: #FFFDF8; color: #17482A; }
.menu-hero { padding: clamp(32px, 6vw, 72px) 0; }
.menu-nav { position: sticky; top: calc(var(--header-h) + 9px); z-index: 30; background: var(--cream); border-bottom: 1px solid var(--line); }
.menu-nav ul { list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.menu-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--navy); border-radius: 999px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .9375rem; white-space: nowrap; transition: background-color .18s, color .18s; }
.menu-nav a:hover { background: var(--navy); color: #fff; }
.menu-page { scroll-padding-top: 0; }
.menu-cat { scroll-margin-top: calc(var(--header-h) + 90px); }
.menu-body { background: linear-gradient(var(--cream), #FFF1D6); padding: clamp(32px, 5vw, 64px) 0 var(--section); position: relative; overflow: hidden; }
.menu-body::after { content: ""; position: absolute; right: -6px; bottom: -6px; width: clamp(110px, 17vw, 260px); aspect-ratio: 1; background: url("../media/corner-flowers.svg") no-repeat center / contain; pointer-events: none; }
.menu-body > .wrap { position: relative; z-index: 1; display: grid; gap: 28px; }
.menu-cat { background: var(--paper); border-radius: var(--r-img); padding: clamp(20px, 3vw, 36px); box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--blue), 0 12px 28px rgba(20,44,72,.12); margin: 6px; }
.menu-cat header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; border-bottom: 3px solid var(--terracotta); padding-bottom: 10px; margin-bottom: 14px; }
.menu-cat h2 { font-style: italic; font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin: 0; }
.menu-cat-en { margin: 0; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--terracotta); }
.menu-items { list-style: none; margin: 0; padding: 0; }
.menu-items li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; }
.mi-label { flex: 0 1 auto; }
.mi-name { font-weight: 600; color: var(--navy); font-size: 1.0625rem; }
.mi-gloss { display: block; font-size: .9375rem; color: var(--ink); opacity: .8; }
.mi-dots { flex: 1 1 24px; min-width: 16px; border-bottom: 2px dotted rgba(20,44,72,.35); transform: translateY(-4px); }
.mi-price { font-family: var(--display); font-size: 1.125rem; color: var(--terracotta); font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-note { font-size: .9375rem; margin: 8px 6px 0; max-width: 62ch; }
@media (min-width: 900px) {
  .menu-body > .wrap { grid-template-columns: 1fr 1fr; align-items: start; }
  .menu-cat:first-child, .menu-cat#sides, .menu-cat#bebidas, .menu-note { grid-column: 1 / -1; }
  .menu-cat:first-child .menu-items, .menu-cat#sides .menu-items, .menu-cat#bebidas .menu-items { columns: 2; column-gap: 56px; }
  .menu-items li { break-inside: avoid; }
}
/* Dish names on food photos */
.card-caption { font-size: 1.375rem; font-style: italic; }
.card-desc { margin: 4px 0 0; font-size: .9375rem; max-width: 34ch; opacity: .9; }
.has-cap { position: relative; }
.has-cap figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(20,44,72,.9); color: #fff; font-family: var(--display); font-style: italic; font-size: 1.125rem; padding: 8px 14px; border-radius: 999px; }
/* Hero: the painted landscape fills the whole opening panel, behind the copy and the film. */
.hero-home { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 30vw; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg picture, .hero-bg img { display: block; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: center bottom; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,71,175,.8) 0, rgba(15,71,175,.5) 280px, rgba(15,71,175,0) 640px); }
.hero-home .hero-copy { text-shadow: 0 1px 14px rgba(8,24,60,.5); }
.hero-home .btn { text-shadow: none; }
/* Language switch (English / Español) in the header navigation and footer. */
.site-nav .lang { display: flex; align-items: center; margin-left: 8px; padding-left: 8px; border-left: 1px solid rgba(20,44,72,.22); }
.site-nav .lang a { padding: 0 8px; font-size: .875rem; font-weight: 600; opacity: .72; }
.lang a[aria-current="true"] { opacity: 1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.footer-links .lang { display: flex; gap: 16px; }
@media (max-width: 759px) {
  .site-nav .lang { margin: 8px 0 0; padding: 8px 0 0; border-left: 0; border-top: 1px solid rgba(20,44,72,.22); }
  .site-nav .lang a { width: auto; padding: 0 14px; font-size: 1rem; }
}/* "Ordena en línea" is longer than "Order Online": keep the phone header on one row. */
@media (max-width: 759px) { :lang(es) .header-order { padding: 0 10px; font-size: .8125rem; } }
@media (max-width: 359px) { :lang(es) .header-order { padding: 0 8px; font-size: .75rem; } :lang(es) .header-row { gap: 4px; } }
/* Opening hours in the Visit card. */
.visit-hours-title { margin: 18px 0 6px; font: 700 .8125rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.visit-hours { margin: 0 0 18px; display: grid; gap: 4px; }
.visit-hours div { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.visit-hours dt { font-weight: 600; }
.visit-hours dd { margin: 0; font-variant-numeric: tabular-nums; }
/* Closing panel when ordering goes through delivery apps. */
.provider-actions { flex-wrap: wrap; justify-content: center; }
.provider-call { margin-top: 14px; font-size: .9375rem; }
.provider-call a { color: inherit; font-weight: 600; }