/* =====================================================================
   TABERU Asian Fusion — Port Lincoln SA  (DEMO PREVIEW)
   styles.css
   Design notes (applying the design skills):
   - UI/UX Pro Max: dark dinner-time palette (warm near-black + single
     ember accent), Syne (display) + Outfit (body) pairing.
   - Taste Skill (anti-slop): one accent, off-black not #000, asymmetric
     hero, editorial menu list (no 3-card row), organic prices.
   - emil-design-eng: custom ease-out curves, scale(0.97) on :active,
     entrances from opacity/translate, transform/opacity only,
     prefers-reduced-motion honoured.
   Vanilla CSS — no frameworks.
   ===================================================================== */

:root {
  --ink:       #16130d;   /* warm near-black bg (never #000) */
  --ink-2:     #1e1a12;   /* alt sections */
  --surface:   #241f16;
  --paper:     #f4ede0;   /* primary text */
  --paper-soft:#cabfad;
  --muted:     #9b9180;
  --line:      #342d22;
  --ember:     #d4583f;   /* single accent */
  --ember-deep:#b8472f;
  --ember-tint:#3a2018;

  --maxw: 1180px;
  --r: 14px;
  --r-lg: 24px;
  --shadow: 0 26px 60px -30px rgba(0,0,0,.7);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --t: 220ms var(--ease-out);

  --nav-h: 80px;
  --nav-h-sm: 60px;

  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font-body);
  background: var(--ink); color: var(--paper);
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1,h2,h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -.01em; color: var(--paper); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.eyebrow { font-family: var(--font-body); font-size: .74rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--ember); }
.lead { color: var(--paper-soft); font-size: 1.08rem; max-width: 56ch; }

/* buttons (emil: tactile :active) */
.btn { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .95rem;
  padding: .9rem 1.6rem; border-radius: 100px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform 160ms var(--ease-out), background var(--t), color var(--t), border-color var(--t); }
.btn-solid { background: var(--ember); color: #fff; }
.btn-solid:hover { background: var(--ember-deep); }
.btn-solid:active { transform: scale(0.97); }
.btn-ghost { border-color: rgba(244,237,224,.4); color: var(--paper); }
.btn-ghost:hover { border-color: var(--ember); color: var(--ember); }
.btn-ghost:active { transform: scale(0.97); }

/* ===== Nav ===== */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 900; display: flex; align-items: center;
  transition: height var(--t), background var(--t), box-shadow var(--t), border-color var(--t); border-bottom: 1px solid transparent; }
.nav.scrolled { height: var(--nav-h-sm); background: rgba(22,19,13,.9); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; letter-spacing: .02em; }
.brand .dot { color: var(--ember); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: .94rem; font-weight: 500; color: var(--paper-soft); transition: color var(--t); }
.nav-links a:hover { color: var(--ember); }
.nav-links .btn { color: #fff; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--paper); transition: var(--t); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero (asymmetric) ===== */
.hero { padding: calc(var(--nav-h) + 70px) 0 90px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.6rem); }
.hero h1 em { font-style: normal; color: var(--ember); }
.hero p { margin: 1.4rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-figure { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; left: 18px; bottom: 18px; background: rgba(22,19,13,.82); backdrop-filter: blur(4px);
  border: 1px solid var(--line); border-radius: 100px; padding: .55rem 1.05rem; font-size: .82rem; font-weight: 600; color: var(--paper);
  display: flex; align-items: center; gap: .5rem; }
.hero-badge .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--ember); }

/* marquee */
.strip { background: var(--ember); color: #fff; overflow: hidden; }
.strip-track { display: flex; gap: 2.6rem; white-space: nowrap; padding: .8rem 0; font-family: var(--font-display); font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; animation: marquee 24s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section.alt { background: var(--ink-2); }
.s-head { max-width: 640px; margin-bottom: 48px; }
.s-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 14px 0 12px; }

/* story split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5/4; box-shadow: var(--shadow); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 1rem; }
.split p + p { margin-top: 1rem; }
.facts { display: flex; gap: 36px; margin-top: 28px; flex-wrap: wrap; }
.fact .n { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--ember); }
.fact .l { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ===== Menu (editorial list) ===== */
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 64px; }
.menu-cat { grid-column: 1 / -1; margin: 26px 0 4px; }
.menu-cat:first-child { margin-top: 0; }
.menu-cat h3 { font-size: 1.3rem; color: var(--ember); }
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.menu-item .name { font-weight: 600; }
.menu-item .price { font-variant-numeric: tabular-nums; color: var(--ember); font-weight: 600; }
.menu-item .desc { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; }

/* ===== Gallery (bento + lightbox) ===== */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 14px; }
.tile { overflow: hidden; border-radius: var(--r); cursor: pointer; position: relative; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.tile:hover img { transform: scale(1.07); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.45)); opacity: 0; transition: opacity var(--t); }
.tile:hover::after { opacity: 1; }
.tile.lg { grid-column: span 2; grid-row: span 2; }
.tile.wide { grid-column: span 2; }

.lightbox { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; padding: 30px; background: rgba(0,0,0,.92); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 84vh; border-radius: var(--r); }
.lightbox button { position: absolute; top: 22px; right: 26px; font-size: 2.2rem; color: #fff; background: none; border: 0; cursor: pointer; line-height: 1; }

/* ===== Order / Visit ===== */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: start; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; color: var(--paper-soft); font-variant-numeric: tabular-nums; }
.hours tr.today td { color: var(--ember); font-weight: 700; }
.hours .closed { color: #7a6f5e; }
.info .k { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ember); margin-top: 18px; }
.info p { margin-bottom: 4px; }
.note { font-size: .82rem; color: var(--muted); margin-top: 22px; font-style: italic; }

/* ===== Footer ===== */
.footer { background: #100e09; color: #b8af9e; padding: 64px 0 30px; }
.footer h3 { color: #fff; font-size: 1.7rem; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 36px; }
.footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; list-style: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: #8a8170; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

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

/* =====================================================================
   SPICE — extra polish (still anti-slop: subtle glow, cheap motion)
   ===================================================================== */

/* scroll progress bar */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--ember), #eaa24c); z-index: 1300; }

/* ambient ember glow behind everything */
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(58vw 46vh at 82% -6%, rgba(212,88,63,.20), transparent 60%),
    radial-gradient(46vw 38vh at -6% 26%, rgba(212,88,63,.10), transparent 62%); }

/* fine grain texture overlay */
.grain { position: fixed; inset: 0; z-index: 1100; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 130px; }

/* hero backdrop kanji + layering */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-ghost { position: absolute; right: -1%; top: 6%; z-index: 0; line-height: .8;
  font-family: var(--font-display); font-weight: 800; font-size: 42vw;
  color: transparent; -webkit-text-stroke: 1.5px rgba(244,237,224,.05);
  pointer-events: none; user-select: none; }

/* gradient accent on the hero highlight word (used once) */
.hero h1 em { background: linear-gradient(92deg, var(--ember), #eaa24c);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* floating + tilt-ready hero figure */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-figure { animation: float 6.5s ease-in-out infinite; will-change: transform; }
.hero-figure img { transition: transform 300ms var(--ease-out); will-change: transform; }

/* CTA arrow that nudges on hover */
.btn-solid::after { content: "\2192"; transition: transform 200ms var(--ease-out); }
.btn-solid:hover::after { transform: translateX(4px); }

/* animated menu rows */
.menu-item { position: relative; transition: padding-left var(--t); }
.menu-item::before { content: ""; position: absolute; left: -14px; top: 50%; width: 3px; height: 0;
  background: var(--ember); border-radius: 2px; transform: translateY(-50%); transition: height var(--t); }
.menu-item:hover { padding-left: 12px; }
.menu-item:hover::before { height: 66%; }
.menu-item:hover .price { color: #eaa24c; }

/* gallery captions on hover */
.tile[data-label]::before { content: attr(data-label); position: absolute; left: 14px; bottom: 12px; z-index: 2;
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  opacity: 0; transform: translateY(8px); transition: opacity var(--t), transform var(--t); }
.tile[data-label]:hover::before { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-figure img { transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid, .split, .visit-grid { grid-template-columns: 1fr; gap: 36px; }
  .menu-grid { grid-template-columns: 1fr; gap: 0; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .tile.lg { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 640px) {
  .burger { display: flex; }
  .nav-links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 0; background: var(--surface);
    border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform var(--t); }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 16px; }
  .section { padding: 72px 0; }
  .hero { padding-top: calc(var(--nav-h) + 36px); }
  .hero-actions .btn { flex: 1; justify-content: center; }
}
