/* ===========================================================================
   Curry & Kebab Restaurant — styles.css
   JHOL format (restaurant-site skill) on the lite-site stack.
   Brand tokens from the client's own print material: cream ground, deep-green
   dark bands, burnt-orange accent, deep-red secondary. Reskin from :root only.
   ========================================================================== */

:root {
  /* JHOL reference palette (sampled from jholrestaurant.com screenshots) */
  --cream:      #FFF8F1;   /* page canvas + nav */
  --cream-soft: #FFFDF9;
  --line:       #EADFD0;
  --ink:        #1E1C1A;   /* body text on cream */
  --ink-soft:   #6A625C;
  --green:      #30302F;   /* charcoal band (story blocks, quote, footer) */
  --green-deep: #000000;   /* black band — hero edge + reservations */
  --accent:     #D8A048;   /* saffron */
  --accent-deep:#B8862F;
  --red:        #8A6420;   /* deep saffron — main map pin */
  --book:       #9E2B25;   /* deep curry red — Book-a-table CTAs only */
  --book-deep:  #7E211C;
  --on-dark:    #F3EEE7;   /* text on dark bands */

  --display: "Fahkwang", "Noto Sans Thai", sans-serif;
  --serif: "Marcellus", Georgia, serif;   /* wordmark only (JHOL-style inscriptional caps) */
  --sans: "Bai Jamjuree", "Noto Sans Thai", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --r: 4px;                 /* JHOL is square-edged; keep radii tight */
  --shadow: 0 18px 50px -24px rgba(20, 30, 20, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream);
  -webkit-font-smoothing: antialiased; line-height: 1.65; overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.eyebrow { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--accent-deep); font-weight: 600; margin: 0 0 14px; font-family: var(--sans); }
.muted { color: var(--ink-soft); }

/* ---- JHOL band system: cream ↔ dark, hard edges, no dividers ---- */
.band { padding-block: clamp(56px, 9vw, 110px); }
.band--green { background: var(--green); color: var(--on-dark); }
.band--darkest { background: var(--green-deep); color: var(--on-dark); }
.band--green .eyebrow, .band--darkest .eyebrow { color: var(--accent); }
.band--green .muted, .band--darkest .muted { color: color-mix(in srgb, var(--on-dark) 72%, transparent); }

.h-display { font-size: clamp(30px, 4.6vw, 52px); letter-spacing: .01em; }
.h-name { font-size: clamp(34px, 5.4vw, 58px); font-weight: 400; letter-spacing: .04em; }

/* ---- buttons (JHOL: rectangular, outlined on dark) ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--sans);
  font-weight: 600; font-size: 15px; letter-spacing: .04em; padding: 13px 28px; border-radius: var(--r);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease; min-height: 44px; }
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--book); color: #FFF6EE; }
.btn--accent:hover { background: var(--book-deep); color: #FFF6EE; }
.btn--outline { background: transparent; border-color: currentColor; color: inherit; }
.btn--outline:hover { background: rgba(255,255,255,.1); }
.btn--block { width: 100%; }

/* ---- nav: solid cream, JHOL style ---- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 18px;
  justify-content: space-between; padding: 10px var(--pad); background: var(--cream);
  transition: box-shadow .3s ease; }
.nav[data-scrolled="true"] { box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(0,0,0,.25); }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.nav__logo { width: 44px; height: 44px; flex: none; border-radius: 50%; }
.nav__name { font-family: var(--serif); font-weight: 400; font-size: 20px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.nav__name em { font-style: normal; color: var(--accent-deep); }
.nav__links { display: flex; gap: 24px; align-items: center; }
.nav__links a { font-family: var(--display); font-weight: 500; font-size: 15px; text-decoration: none; opacity: .85; }
.nav__links a:hover { opacity: 1; color: var(--accent-deep); }
.nav__right { display: flex; align-items: center; gap: 12px; }
.nav .btn { font-family: var(--display); font-weight: 500; }
.langtoggle { font-family: var(--display); font-weight: 600; font-size: 13px; background: transparent; border: 1px solid var(--ink);
  color: var(--ink); padding: 7px 12px; border-radius: var(--r); cursor: pointer; min-height: 36px; }
@media (max-width: 940px) { .nav__links { display: none; } }
@media (max-width: 560px) { .nav .btn--accent { display: none; } }

/* ---- hero: full-bleed photo pinned under the nav; the next band slides up
   over it like a curtain (JHOL's Wix "reveal" scroll effect, measured on the
   reference). clip-path confines the fixed img to the hero's box — the
   iOS-safe stand-in for background-attachment: fixed. ---- */
.hero { margin-top: 64px; height: calc(100svh - 64px); background: var(--green-deep);
  position: relative; clip-path: inset(0); }
.hero img, .hero video { position: fixed; top: 64px; left: 0; width: 100%;
  height: calc(100svh - 64px); object-fit: cover; object-position: center 40%; }
.hero video { object-position: center center; }
@media (prefers-reduced-motion: reduce) {
  .hero { clip-path: none; }
  .hero img { position: static; height: 100%; }
}

/* ---- story split (photo + offset block + stripes | text) ---- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--flip { grid-template-columns: .95fr 1.05fr; }
@media (max-width: 880px){ .split, .split--flip { grid-template-columns: 1fr; } }
.split__fig { position: relative; margin: 0; }
.split__fig::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; background: var(--green);
  z-index: 0; }
.split__fig::after { content: ""; position: absolute; left: -26px; top: 22%; width: 56px; height: 56%; z-index: 2;
  background: repeating-linear-gradient(135deg, var(--accent) 0 3px, transparent 3px 10px); opacity: .85; }
.split__fig img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/4.4; object-fit: cover; box-shadow: var(--shadow); }
.split__body p { max-width: 46ch; }
.band--green .split__fig::before { background: rgba(0,0,0,.28); }

/* splash accent beside headings (JHOL paint-flick) */
.splash { position: relative; display: inline-block; }
.splash::after { content: ""; position: absolute; right: -74px; top: -14px; width: 64px; height: 34px;
  background: var(--accent);
  clip-path: polygon(0 62%, 18% 40%, 45% 55%, 66% 18%, 82% 44%, 100% 8%, 92% 66%, 64% 52%, 38% 84%, 14% 68%);
  opacity: .9; }
@media (max-width: 560px){ .splash::after { right: -50px; width: 44px; } }

/* ---- menu dish cards (2×2 mosaic with captions, JHOL-style) ---- */
.dishes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 560px){ .dishes { grid-template-columns: 1fr; } }
.dish { background: var(--cream-soft); border: 1px solid var(--line); }
.dish img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.dish__body { padding: 14px 16px 16px; }
.dish__name { font-family: var(--display); font-size: 18px; margin-bottom: 4px; }
.dish__price { font-size: 14px; color: var(--accent-deep); font-weight: 600; letter-spacing: .02em; }
.faves { margin-top: clamp(26px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fave { font-size: 13px; border: 1px solid var(--line); background: var(--cream-soft); padding: 8px 14px; letter-spacing: .03em; }

/* ---- quote band ---- */
.quote { text-align: center; max-width: 820px; margin: 0 auto; }
.quote blockquote { margin: 0 0 18px; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3.6vw, 40px); line-height: 1.3; }
.quote .badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.badge { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; border: 1px solid color-mix(in srgb, var(--on-dark) 40%, transparent); padding: 8px 16px; }

/* ---- gallery ---- */
.gallery { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
@media (max-width: 720px){ .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.gallery figure:first-child img { aspect-ratio: 16/10; }

/* ---- reservation band (form on cream, matching the page) ---- */
.resv { max-width: 880px; margin: 0 auto; text-align: center; }
.resv .form { text-align: left; margin: 34px auto 0; max-width: 760px; }
.form { display: grid; gap: 16px; }
.form .three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px){ .form .three, .form .two { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 7px; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; font-family: var(--sans); font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--cream-soft); color: var(--ink); min-height: 46px; color-scheme: light; }
.field select option { color: var(--ink); background: var(--cream); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.field[data-invalid="true"] input, .field[data-invalid="true"] select { border-color: #C96A57; }
.field__err { color: #B3402F; font-size: 12px; margin-top: 5px; min-height: 14px; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; overflow: hidden; }
.form__success, .form__error { border: 1px solid var(--accent-deep); padding: 30px; margin-top: 30px; background: var(--cream-soft); }
.form__success h3, .form__error h3 { color: var(--accent-deep); font-size: 26px; margin-bottom: 8px; }
.form__error { border-color: #C96A57; }
.form__error h3 { color: #B3402F; }
.resv__phone { margin-top: 18px; font-size: 14px; color: var(--ink-soft); }
.resv__phone a { color: var(--accent-deep); font-weight: 600; }

/* ---- visit / footer (JHOL "Let's Connect") ---- */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 880px){ .visit { grid-template-columns: 1fr; } }
.visit h2 { color: var(--accent); }
.visit__block { margin-bottom: 26px; }
.visit__label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .65; margin-bottom: 8px; }
.visit__block p { margin: 0 0 4px; }
.visit__block a { text-decoration: underline; text-underline-offset: 3px; }
.copybtn { font-size: 13px; background: transparent; border: 1px solid color-mix(in srgb, var(--on-dark) 40%, transparent);
  color: var(--on-dark); border-radius: var(--r); padding: 8px 14px; cursor: pointer; min-height: 36px; }
.copybtn[data-copied="true"] { border-color: var(--accent); color: var(--accent); }
.socials { display: flex; gap: 16px; margin-top: 10px; }
.socials a { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; opacity: .85; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.14); margin-top: clamp(36px, 6vw, 64px); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; opacity: .75; }

/* ---- stylized map ---- */
.mapcanvas { position: relative; overflow: hidden; box-shadow: var(--shadow); background: #E9EFE4; min-height: 320px; }
.mapcanvas svg { width: 100%; height: 100%; display: block; position: absolute; inset: 0; }
.pin { position: absolute; transform: translate(-50%, -100%); cursor: pointer; border: none; background: none; padding: 0; }
.pin__dot { width: 26px; height: 26px; }
.pin__label { position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%) translateY(6px); background: var(--ink);
  color: #fff; font-size: 12px; white-space: nowrap; padding: 5px 10px; border-radius: var(--r); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; }
.pin:hover .pin__label, .pin:focus-visible .pin__label { opacity: 1; transform: translateX(-50%) translateY(0); }
.pin:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---- FAQ ---- */
.faqlist { margin: 0; display: grid; gap: 6px; }
.faqitem { border: 1px solid var(--line); background: var(--cream-soft); padding: 18px 22px; }
.faqitem dt { font-family: var(--display); font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.faqitem dd { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ---- reveal ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---- sticky mobile bar: Call + Book ---- */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); box-shadow: 0 -8px 24px -12px rgba(0,0,0,.3); }
.sticky a, .sticky button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px;
  text-decoration: none; font-weight: 600; font-size: 15px; border: none; cursor: pointer; font-family: var(--sans); }
.sticky .call { background: var(--green-deep); color: var(--on-dark); }
.sticky .book { background: var(--book); color: #FFF6EE; }
@media (min-width: 769px){ .sticky { display: none; } }
.has-sticky { padding-bottom: 56px; }
@media (min-width: 769px){ .has-sticky { padding-bottom: 0; } }

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
