/* ===========================================================
   Marni Breakfast — editorial / Tartine-leaning
   Square corners · high-contrast serif · slow clip reveals
   =========================================================== */

:root {
  --paper: #ffffff;          /* white */
  --paper-2: #ffffff;        /* white (was beige) — sections separated by hairlines */
  --ink: #211711;
  --ink-soft: #5a4d43;
  --muted: #9b8f7e;
  --line: #efe6d2;
  --red: #b0432a;            /* brand terracotta-red (script / headings) */
  --red-deep: #8c3318;
  --yellow: #fbe256;         /* brand sun yellow (buttons / highlights) */
  --yellow-deep: #f4c81e;    /* button hover */
  /* legacy aliases kept so older rules still resolve */
  --clay: var(--red);
  --clay-deep: var(--red-deep);
  --olive: #5d6b4e;
  --maxw: 1240px;
  --shadow: 0 24px 60px -34px rgba(24, 20, 16, .5);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: clamp(16px, 1.05vw, 18px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 340;
  line-height: 1.04;
  letter-spacing: -.01em;
  font-optical-sizing: auto;
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 72px); }

/* uppercase tracked editorial label */
.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
}

/* lang visibility — JS toggles [data-lang] on <html> */
:root[data-lang="en"] .gr,
:root[data-lang="el"] .en { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background .4s;
}
.site-header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; gap: 1.75rem; height: 74px; }
.brand {
  font-family: var(--serif);
  font-size: 1.6rem; font-weight: 400; letter-spacing: .02em;
  margin-right: auto; display: flex; align-items: center; gap: .6ch;
}
.brand img { height: 50px; width: auto; display: block; }
.brand small { font-family: var(--sans); font-size: .58rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) { .brand img { height: 42px; } }
.nav-links { display: flex; gap: 1.8rem; }
.nav-links a {
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft); position: relative; padding: .2rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 0;
  background: var(--clay); transition: width .4s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.lang-toggle { display: inline-flex; border: 1px solid var(--line); overflow: hidden; font-size: .68rem; font-weight: 700; }
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer; padding: .4rem .65rem;
  color: var(--muted); font: inherit; letter-spacing: .12em;
}
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* rectangular, uppercase, tracked buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6ch; cursor: pointer;
  font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding: .85rem 1.5rem; border: 1px solid var(--yellow);
  background: var(--yellow); color: var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--yellow-deep); border-color: var(--yellow-deep); }
/* clay alias now resolves to the yellow primary */
.btn--clay { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn--clay:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--light:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.nav .btn--phone { padding: .65rem 1.1rem; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav .btn--phone span.label { display: none; }
}

/* ---------- Full-bleed hero ---------- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12); animation: heroZoom 9s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15,12,9,.28) 0%, rgba(15,12,9,0) 32%, rgba(15,12,9,.32) 64%, rgba(15,12,9,.78) 100%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 7vw, 88px); padding-top: 120px; }
.hero .eyebrow { color: #fff; opacity: .9; margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 320; max-width: 16ch; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero h1 em { font-style: italic; }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 50ch; margin: 1.4rem 0 2rem; opacity: .94; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hours-chip { display: inline-flex; align-items: center; gap: .55ch; margin-top: 1.8rem; font-size: .82rem; letter-spacing: .04em; opacity: .92; }
.hours-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #9fce7e; box-shadow: 0 0 0 4px rgba(159,206,126,.28); }

/* hero text intro */
.hero h1, .hero .lede, .hero .eyebrow, .hero-cta, .hours-chip { opacity: 0; transform: translateY(26px); animation: heroUp 1s var(--ease) forwards; }
.hero .eyebrow { animation-delay: .15s; }
.hero h1 { animation-delay: .3s; }
.hero .lede { animation-delay: .5s; }
.hero-cta { animation-delay: .68s; }
.hours-chip { animation-delay: .82s; }
@keyframes heroUp { to { opacity: 1; transform: none; } }
.hero .eyebrow { opacity: 0; } /* override base opacity for anim */

/* compact hero variant for inner pages (menu) */
.hero--menu { min-height: 54vh; }
.hero--menu h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }

/* menu intro note */
.menu-intro { text-align: center; max-width: 60ch; margin: 0 auto clamp(28px,4vw,52px); color: var(--ink-soft); }
.menu-king { font-size: .82rem; color: var(--muted); }
.menu-king b { color: var(--red); font-weight: 700; }

/* ---------- Section frame ---------- */
section { padding-block: clamp(64px, 10vw, 132px); }
.section-head { max-width: 58ch; margin-bottom: clamp(36px, 5vw, 72px); }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: .7rem 0 1.1rem; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Handmade story ---------- */
.story { background: var(--paper-2); border-block: 1px solid var(--line); }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.story-card { background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.story-card .imgwrap { overflow: hidden; }
.story-card img { aspect-ratio: 3/2; object-fit: cover; width: 100%; transition: transform 1.1s var(--ease); }
.story-card:hover img { transform: scale(1.06); }
.story-card .body { padding: 1.5rem 1.5rem 1.8rem; }
.story-card h3 { font-size: 1.5rem; margin-bottom: .55rem; }
.story-card p { font-size: .94rem; color: var(--ink-soft); }
@media (max-width: 760px) { .story-grid { grid-template-columns: 1fr; } }

/* ---------- Menu ---------- */
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 40px) clamp(44px, 6vw, 96px); }
.menu-col h3 {
  font-family: var(--sans); font-size: .82rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--clay);
  padding-bottom: .85rem; margin-bottom: .4rem; border-bottom: 1px solid var(--ink);
}
.menu-item { display: flex; gap: 1rem; align-items: baseline; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.menu-item .mi-name { font-weight: 600; }
.menu-item .mi-desc { font-size: .86rem; color: var(--muted); }
.menu-item .mi-dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); min-width: 1rem; }
.menu-item .mi-price { font-family: var(--serif); font-size: 1.15rem; white-space: nowrap; }
.menu-note { margin-top: 1.8rem; font-size: .82rem; color: var(--muted); }
@media (max-width: 720px) { .menu-grid { grid-template-columns: 1fr; } }

/* ---------- Menu CTA band ---------- */
.menu-cta { background: var(--paper-2); text-align: center; }
.menu-cta .wrap { max-width: 64ch; }
.menu-cta h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin: .7rem 0 1.1rem; }
.menu-cta p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 2rem; }
.menu-cta .eyebrow { color: var(--red); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; }
.gallery-grid figure { overflow: hidden; cursor: zoom-in; margin: 0; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.07); }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(18,15,12,.94); display: none; align-items: center; justify-content: center; padding: 4vw; cursor: zoom-out; }
.lightbox.open { display: flex; animation: fade .3s ease; }
.lightbox img { max-width: 92vw; max-height: 88vh; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox button { position: absolute; top: 22px; right: 26px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

/* ---------- Visit ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 68px); align-items: stretch; }
.visit-card { display: flex; flex-direction: column; }
.info-row { display: flex; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.info-row:first-child { border-top: 1px solid var(--line); }
.info-row svg { flex: none; width: 22px; height: 22px; stroke: var(--clay); }
.info-row .k { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .15rem; }
.info-row .v { font-size: 1.05rem; font-weight: 500; }
.info-row .v a:hover { color: var(--clay); }
.map-embed { overflow: hidden; min-height: 380px; border: 1px solid var(--line); background: var(--paper-2); }
.map-embed iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.map-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 380px; color: var(--muted); font-size: .9rem; text-align: center; padding: 2rem; }

@media (max-width: 820px) { .visit-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: clamp(44px, 6vw, 80px); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-end; }
.site-footer .brand { color: var(--paper); }
.site-footer a { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.site-footer a:hover { color: var(--paper); }
.site-footer .socials { display: flex; gap: 1.4rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.site-footer small { color: color-mix(in srgb, var(--paper) 52%, transparent); font-size: .74rem; }

/* ===========================================================
   Reveal animations — slow clip wipe (Tartine-style)
   =========================================================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* image clip-reveal: wipes up from bottom + slow zoom settle */
.reveal-img { overflow: hidden; }
.reveal-img img { clip-path: inset(100% 0 0 0); transform: scale(1.08); transition: clip-path 1.2s var(--ease), transform 1.6s var(--ease); }
.reveal-img.in img { clip-path: inset(0 0 0 0); transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-img img { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .hero h1, .hero .lede, .hero .eyebrow, .hero-cta, .hours-chip { opacity: 1; transform: none; animation: none; }
  .hero-bg img { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}
