/* =====================================================================
   Seaspell Cafe — Tumby Bay SA  (DEMO PREVIEW)
   styles.css
   Design notes (applying the design skills):
   - UI/UX Pro Max: coastal palette (ocean teal accent + warm sand
     neutrals), Fraunces (display) + Plus Jakarta Sans (body) pairing.
   - Taste Skill (anti-slop): one accent colour, no pure black,
     asymmetric hero, editorial menu list (no generic 3-card row).
   - emil-design-eng: custom ease-out curves, scale(0.97) on :active,
     entrances from scale/opacity (never scale(0)), transform/opacity
     only, prefers-reduced-motion honoured.
   Vanilla CSS — no frameworks.
   ===================================================================== */

:root {
  /* palette */
  --sand:        #f7f2ea;   /* page background */
  --sand-deep:   #efe7d9;   /* alt sections */
  --surface:     #fffdf9;
  --ink:         #211f1b;   /* off-black, never #000 */
  --ink-soft:    #4f4a42;
  --muted:       #837c70;
  --line:        #e4dccd;
  --ocean:       #0f6b70;   /* single accent */
  --ocean-deep:  #0a4f53;
  --ocean-tint:  #e2efee;

  --maxw: 1180px;
  --r: 14px;
  --r-lg: 26px;
  --shadow: 0 22px 50px -28px rgba(33, 31, 27, 0.45);

  /* emil-design-eng: strong custom easings */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t: 220ms var(--ease-out);

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

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", 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(--sand);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; color: var(--ink); }
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: .26em; text-transform: uppercase;
  color: var(--ocean);
}
.lead { color: var(--ink-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: .85rem 1.5rem; 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(--ocean); color: #fff; }
.btn-solid:hover { background: var(--ocean-deep); }
.btn-solid:active { transform: scale(0.97); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ocean); color: var(--ocean); }
.btn-ghost:active { transform: scale(0.97); }

/* =====================================================================
   Nav (sticky, shrinks on scroll)
   ===================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 900;
  display: flex; align-items: center;
  background: rgba(247, 242, 234, 0);
  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(247, 242, 234, 0.92);
  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.4rem; font-weight: 600; letter-spacing: -.01em; }
.brand .dot { color: var(--ocean); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: .94rem; font-weight: 500; color: var(--ink-soft); transition: color var(--t); }
.nav-links a:hover { color: var(--ocean); }
.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(--ink); 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 (Taste: no centred hero)
   ===================================================================== */
.hero { padding: calc(var(--nav-h) + 70px) 0 90px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
}
.hero h1 { font-size: clamp(2.9rem, 6.4vw, 5.2rem); letter-spacing: -.02em; }
.hero h1 em { font-style: italic; color: var(--ocean); }
.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(255, 253, 249, 0.94); backdrop-filter: blur(4px);
  border-radius: 100px; padding: .6rem 1.1rem;
  font-size: .82rem; font-weight: 600; color: var(--ocean-deep);
  display: flex; align-items: center; gap: .5rem;
}
.hero-badge .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--ocean); }

/* marquee strip */
.strip { background: var(--ocean); color: #fff; overflow: hidden; }
.strip-track {
  display: flex; gap: 3rem; white-space: nowrap;
  padding: .8rem 0; font-family: var(--font-display); font-size: 1.05rem; font-style: italic;
  animation: marquee 26s linear infinite;
}
.strip-track span { opacity: .92; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   Sections
   ===================================================================== */
.section { padding: 96px 0; }
.section.alt { background: var(--sand-deep); }
.s-head { max-width: 640px; margin-bottom: 48px; }
.s-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin: 14px 0 12px; letter-spacing: -.01em; }

/* story — zig-zag split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip .split-media { order: 2; }
.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.6rem); 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-size: 2rem; color: var(--ocean); }
.fact .l { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* =====================================================================
   Menu — editorial two-column list (Taste: no 3-card row)
   ===================================================================== */
.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.35rem; font-style: italic; color: var(--ocean-deep); }
.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(--ocean-deep); font-weight: 600; }
.menu-item .desc { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; }

/* =====================================================================
   Gallery — bento grid + 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(10, 79, 83, .35));
  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(20, 18, 15, .9);
}
.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;
}

/* =====================================================================
   Visit — hours + contact
   ===================================================================== */
.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(--ink-soft); font-variant-numeric: tabular-nums; }
.hours tr.today td { color: var(--ocean-deep); font-weight: 700; }
.info p { margin-bottom: 4px; }
.info .k { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ocean); margin-top: 18px; }
.note { font-size: .82rem; color: var(--muted); margin-top: 22px; font-style: italic; }

/* =====================================================================
   Footer
   ===================================================================== */
.footer { background: var(--ink); color: #d9d3c8; padding: 64px 0 30px; }
.footer h3 { color: #fff; font-size: 1.6rem; }
.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,.12); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: .82rem; color: #9a9387;
}

/* =====================================================================
   Reveal on scroll (emil: from translate/opacity, ease-out, stagger)
   ===================================================================== */
.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; }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 900px) {
  .hero-grid, .split, .visit-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.flip .split-media { order: 0; }
  .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; }
}
