/* =========================================================================
   Nordys — burger restaurant. Mobile-first, no-JS static site.
   One configurable accent color: change --accent below.
   ========================================================================= */

:root {
  /* Configurable brand accent (single accent color) */
  --accent:        #e8562a;   /* warm burnt-orange/red */
  --accent-2:      #c8401c;
  --accent-ink:    #ffffff;

  /* Warm neutral + charcoal palette */
  --charcoal:      #1b1714;
  --charcoal-2:    #2a241f;
  --ink:           #201b17;
  --bg:            #faf6f0;
  --surface:       #ffffff;
  --surface-2:     #f3ece2;
  --text:          #241f1b;
  --muted:         #6d635b;
  --line:          #e6ddd0;
  --gold:          #f2b705;

  --maxw: 1120px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 6px 24px rgba(27, 23, 20, .10);
  --shadow-lg: 0 18px 50px rgba(27, 23, 20, .18);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.02rem;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 .5em;
  font-weight: 800;
}
h1 { font-size: clamp(1.9rem, 6vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 4.2vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.6vw, 1.4rem); }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

.section { padding-block: clamp(44px, 8vw, 88px); }
.section--tint { background: var(--surface-2); }
.section--dark { background: var(--charcoal); color: #f4ede4; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 680px; margin-bottom: clamp(24px, 4vw, 44px); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: .6rem;
}
.section--dark .eyebrow { color: var(--gold); }
.lede { font-size: 1.12rem; color: var(--muted); }
.section--dark .lede { color: #d9cfc4; }

/* Accessibility helpers ---------------------------------------------------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px;
  border-radius: 8px; font-weight: 700; transition: top .15s ease;
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: .85em 1.35em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-align: center; transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px rgba(232,86,42,.32); }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--on-dark { background: #fff; color: var(--ink); }
.btn--on-dark:hover { background: #f2ece4; }
.btn--sm { font-size: .92rem; padding: .6em 1em; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
/* Narrow phones: shrink two-button rows a touch so they stay side by side
   instead of stacking (longer EN labels like "Get Directions" are the
   tightest fit). */
@media (max-width: 380px) {
  .btn-row { gap: .6rem; }
  .btn-row .btn { font-size: .92rem; padding-inline: 1.05em; }
}

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: .75rem;
  padding-block: 10px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -.02em; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 42px; height: auto; flex: none; }
/* Brand wordmark: lowercase Comic Sans to match the logo lettering */
.wordmark { font-family: "Comic Sans MS", "Comic Sans", "Comic Neue", cursive; text-transform: lowercase; letter-spacing: 0; }
.brand__name .brand__sub { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 1px; }

.primary-nav ul { list-style: none; display: flex; gap: .35rem; margin: 0; padding: 0; }
.primary-nav a {
  display: block; padding: .5em .8em; border-radius: 999px; font-weight: 600; color: var(--ink); font-size: .98rem;
  white-space: nowrap;
}
.primary-nav a:hover { background: var(--surface-2); text-decoration: none; }
.primary-nav a[aria-current="page"] { color: var(--accent-2); background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; color: var(--ink); border: 1px solid var(--line);
}
.icon-link:hover { background: var(--surface-2); color: var(--accent-2); text-decoration: none; }
.icon-link svg { width: 20px; height: 20px; }

/* Header responsive: nav wraps to its own full-width row on small screens */
.primary-nav { order: 3; flex-basis: 100%; }
.primary-nav ul { justify-content: center; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; overflow-x: auto; }
@media (min-width: 860px) {
  .primary-nav { order: 0; flex-basis: auto; }
  .primary-nav ul { border-top: 0; padding-top: 0; margin-top: 0; }
}

/* Hero --------------------------------------------------------------------- */
.hero { position: relative; background: var(--charcoal); color: #fff; overflow: hidden; }
.hero__grid { display: grid; gap: clamp(20px, 4vw, 40px); align-items: center; padding-block: clamp(32px, 6vw, 72px); }
.hero__title { color: #fff; }
.hero__title .accent { color: var(--gold); }
.hero__text { color: #e7ddd2; font-size: 1.14rem; max-width: 44ch; }
.hero__media { position: relative; }
.hero__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; object-fit: cover; }
.hero__badge {
  position: absolute; left: -8px; bottom: 18px; background: var(--accent); color: #fff;
  font-weight: 800; padding: .6em 1em; border-radius: 999px; box-shadow: var(--shadow); font-size: .95rem;
}
@media (min-width: 820px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
}

/* Info strip (location snapshot) ------------------------------------------- */
.snapshot-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .snapshot-grid { grid-template-columns: repeat(3, 1fr); } }
.snapshot-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; box-shadow: var(--shadow);
}
.snapshot-card h3 { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.snapshot-card svg { width: 20px; height: 20px; color: var(--accent-2); flex: none; }
.snapshot-card p, .snapshot-card address { margin: 0; font-style: normal; color: var(--muted); }
.snapshot-card a { font-weight: 600; }

/* Card grid (featured / menu-ish) ----------------------------------------- */
.card-grid { display: grid; gap: clamp(16px, 3vw, 28px); grid-template-columns: 1fr; }
@media (min-width: 620px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card__media { aspect-ratio: 4 / 5; background: var(--surface-2); position: relative; overflow: hidden; }
.card__media picture, .card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.1rem 1.2rem 1.3rem; }
.card__body h3 { margin-bottom: .35rem; }
.card__desc { color: var(--muted); margin: 0; font-size: .98rem; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent-2); background: rgba(232,86,42,.10); padding: .25em .6em; border-radius: 999px; margin-bottom: .55rem;
}

/* Split (story / atmosphere) ---------------------------------------------- */
.split { display: grid; gap: clamp(22px, 4vw, 46px); align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse .split__media { order: -1; } }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16 / 9; object-fit: cover; }

/* Menu page ---------------------------------------------------------------- */
.menu-cat { margin-bottom: clamp(34px, 6vw, 60px); scroll-margin-top: 130px; }
.menu-cat__head { display: flex; align-items: baseline; gap: .8rem; border-bottom: 3px solid var(--accent); padding-bottom: .5rem; margin-bottom: 1.4rem; }
.menu-cat__head h2 { margin: 0; text-transform: uppercase; }
.menu-list { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .menu-list { grid-template-columns: 1fr 1fr; gap: 1.1rem 2.4rem; } }
.menu-item { padding-bottom: 1.1rem; border-bottom: 1px dashed var(--line); }
.menu-item__thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--surface-2); flex: none; }
/* Name + price share a row (like a receipt line); ingredients run full-width
   below instead of being squeezed into a narrow column next to the price —
   that squeeze wrapped long ingredient lists across many lines and made
   every item (and the whole page) very tall on mobile. */
.menu-item__row { display: flex; align-items: baseline; justify-content: space-between; gap: .3rem .8rem; }
.menu-item__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; margin: 0; font-size: 1.08rem; font-weight: 700; min-width: 0; flex: 1 1 auto; }
.menu-item__desc { margin: .35rem 0 0; color: var(--muted); font-size: .95rem; }
.menu-item__price { font-weight: 800; color: var(--ink); white-space: nowrap; font-size: 1.05rem; flex: none; }
.diet { font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .18em .5em; border-radius: 999px; background: #e8f3e6; color: #2f6b2a; }
.diet--vegan { background: #e2f0e4; color: #1f6b3a; }
.diet--gf { background: #fbeede; color: #9a5a12; }
.diet--spicy { background: #fce4e0; color: #b23a22; }

/* Single scrollable row instead of wrapping: wrapped pills left uneven gaps
   next to solo chips on their own row, and a scroller is far more compact
   (one row instead of five) on mobile. */
.menu-jump {
  display: flex; flex-wrap: nowrap; gap: .5rem; margin: 0 0 2rem;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  padding-bottom: .4rem; margin-inline: calc(-1 * clamp(16px, 4vw, 32px));
  padding-inline: clamp(16px, 4vw, 32px);
}
.menu-jump a {
  font-size: .9rem; font-weight: 600; padding: .5em .9em; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  text-transform: uppercase; letter-spacing: .02em; white-space: nowrap;
  flex: none; scroll-snap-align: start;
}
.menu-jump a:hover { border-color: var(--accent); color: var(--accent-2); text-decoration: none; }

/* Callout band ------------------------------------------------------------- */
.callout {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border-radius: var(--radius); padding: clamp(26px, 5vw, 48px);
  text-align: center; box-shadow: var(--shadow-lg);
}
.callout h2 { color: #fff; }
.callout p { color: #ffe9e0; max-width: 52ch; margin-inline: auto; }
.callout .btn-row { justify-content: center; margin-top: 1.4rem; }

/* FAQ (native disclosure, no JS) ------------------------------------------ */
.faq { display: grid; gap: .8rem; max-width: 780px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1.1rem;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent-2); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { margin: 0 0 1rem; color: var(--muted); }

/* Map area ----------------------------------------------------------------- */
.map-embed { border: 0; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface-2); }
.map-placeholder {
  aspect-ratio: 16 / 10; border-radius: var(--radius); border: 2px dashed var(--accent);
  background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem; color: var(--muted); gap: .8rem;
}
.map-placeholder svg { width: 44px; height: 44px; color: var(--accent-2); }

/* Generated menu: language switch, badges, notes --------------------------- */
.lang-switch { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; box-shadow: var(--shadow); }
.lang-btn {
  border: 0; background: transparent; cursor: pointer; font: inherit; font-weight: 600;
  color: var(--muted); padding: .45em 1em; border-radius: 999px; line-height: 1.2;
}
.lang-btn.is-active { background: var(--accent); color: var(--accent-ink); }
.lang-btn:hover:not(.is-active) { color: var(--ink); }

/* Compact header variant: simple "EN / VN" toggle, sits with the header icons */
.lang-switch--header { flex: none; box-shadow: none; }
.lang-switch--header .lang-btn { padding: .38em .68em; font-size: .82rem; }

.badge {
  display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; padding: .2em .55em; border-radius: 999px; vertical-align: middle;
  margin-left: .15rem;
}
.badge--new { background: var(--gold); color: #3a2c00; }
.badge--hot { background: rgba(232,86,42,.14); color: var(--accent-2); }

/* Prominent "New on the menu" band */
.section-new { margin: 0 0 1.8rem; scroll-margin-top: 130px; }
.new-band {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border-radius: var(--radius); padding: clamp(20px, 4vw, 34px);
  box-shadow: var(--shadow-lg);
}
.new-band .eyebrow { color: var(--gold); margin-bottom: 1rem; font-size: 1rem; }
.promo-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .promo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .promo-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.promo-card {
  background: var(--surface); color: var(--text); border-radius: var(--radius-sm);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.promo-card__media { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; overflow: hidden; }
.promo-card__media picture, .promo-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Absolutely filling a clipped, fixed-ratio box forces every photo to the SAME
   rendered size, cropping to fit regardless of its native aspect ratio. */
.hero__media picture, .split__media picture { display: block; }
.promo-card__body { padding: 1rem 1.1rem 1.2rem; }
.promo-card__name { margin: .45rem 0 .3rem; font-size: 1.12rem; }
.promo-card__price { font-weight: 800; color: var(--accent-2); }
.promo-card__desc { margin: .3rem 0 .5rem; color: var(--muted); font-size: .95rem; }

.menu-note { margin: -.6rem 0 1.1rem; color: var(--muted); font-size: .9rem; font-style: italic; }
.menu-jump a.is-active { border-color: var(--accent); color: var(--accent-2); background: var(--surface-2); }

/* Definition-style info list ---------------------------------------------- */
.info-cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .info-cards { grid-template-columns: 1fr 1fr; } }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); }
.info-card h2, .info-card h3 { display: flex; align-items: center; gap: .55rem; font-size: 1.05rem; }
.info-card svg { width: 20px; height: 20px; color: var(--accent-2); flex: none; }
.info-card p { margin: 0; color: var(--muted); }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.hours-table th { font-weight: 600; color: var(--ink); }
.hours-table td { color: var(--muted); text-align: right; }

/* Placeholder emphasis (helps spot unfilled tokens before launch) --------- */
.ph { color: var(--accent-2); font-style: normal; background: rgba(232,86,42,.08); padding: 0 .15em; border-radius: 3px; }
.section--dark .ph, .callout .ph, .hero .ph { color: #ffd9c9; background: rgba(255,255,255,.12); }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: var(--charcoal); color: #d7cdc2; padding-block: clamp(40px, 6vw, 64px) 28px; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 1.3rem; }
.site-footer h3 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8rem; }
.site-footer a { color: #f0e7dc; }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
/* Opening hours: day/time on one row, each row separated by a hairline —
   more breathing room than a plain "Mon — Closed" list. */
.footer-hours { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; color: #cabfb3; }
.footer-hours li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-hours li:last-child { border-bottom: 0; }
.footer-hours li span:first-child { color: #f0e7dc; font-weight: 600; }
.site-footer address { font-style: normal; color: #cabfb3; line-height: 1.7; }
.footer-logo { width: 60px; height: auto; display: block; margin-bottom: .7rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social .icon-link { color: #fff; border-color: rgba(255,255,255,.25); }
.footer-social .icon-link:hover { background: rgba(255,255,255,.12); color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2rem; padding-top: 1.2rem; font-size: .88rem; color: #a99e92; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; justify-content: space-between; }

/* Back to top --------------------------------------------------------------- */
.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 999px;
  background: var(--accent); color: #fff; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent-2); text-decoration: none; }
.to-top svg { width: 22px; height: 22px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
