/* =================================================================
   Ζαχαροπλαστείο Ερμής — Menu stylesheet
   Aesthetic: editorial "Aegean patisserie" — cream paper, espresso ink,
   honey-gold detailing, subtle Greek-key (meander) ornaments.
   Token architecture: primitive -> semantic (design-system skill).
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Didact+Gothic&display=swap');

/* ---------- Primitive tokens ---------- */
:root {
  --cream-50:  #FDF9F0;
  --cream-100: #FBF4E6;
  --cream-200: #F5EAD6;
  --cream-300: #ECDDC2;
  --espresso-900: #211610;
  --espresso-800: #2B1D12;
  --espresso-700: #4A3623;
  --caramel-700: #7A4A24;
  --caramel-600: #8A5A2E;
  --caramel-800: #573216;
  --gold-600: #9A7321;
  --gold-500: #B4862F;
  --gold-400: #CB9E45;
  --gold-200: #E7CF94;
  --sage-700: #5C6B3E;
  --sage-100: #E9EAD2;
  --clay-700: #9C4A2A;
  --clay-100: #F1DACE;

  /* ---------- Semantic tokens ---------- */
  --bg: var(--cream-100);
  --bg-alt: var(--cream-200);
  --surface: var(--cream-50);
  --text: var(--espresso-800);
  --text-soft: var(--espresso-700);
  --text-muted: #6E5A44;
  --primary: var(--caramel-700);
  --accent: var(--gold-500);
  --accent-strong: var(--gold-600);
  --line: rgba(122, 74, 36, 0.22);
  --line-soft: rgba(122, 74, 36, 0.12);
  --price: var(--caramel-800);
  --focus: var(--gold-600);

  --maxw: 56rem;
  --topbar-h: 60px;
  --nav-h: 60px;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(58, 38, 18, 0.06);
  --shadow-md: 0 14px 40px -18px rgba(58, 38, 18, 0.30);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background-color: var(--bg); overflow-x: clip; }
body {
  margin: 0;
  font-family: 'Didact Gothic', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* warm paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

h1, h2, h3 { font-family: 'Noto Serif Display', Georgia, serif; font-weight: 600; margin: 0; line-height: 1.12; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 5vw, 40px); }
.sr-only {
  position: absolute; 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: 12px; top: -60px; z-index: 200;
  background: var(--espresso-800); color: var(--cream-50);
  padding: 10px 16px; border-radius: 8px; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* =================================================================
   Top bar
   ================================================================= */
.topbar {
  position: relative; z-index: 1;
  height: var(--topbar-h);
  display: flex; align-items: center;
  background: rgba(251, 244, 230, 0.98);
  border-bottom: 1px solid var(--line-soft);
}
.topbar__inner { display: flex; align-items: center; justify-content: flex-end; width: 100%; gap: 16px; }
.brandmark { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brandlogo {
  display: block; width: auto; height: 28px;
}
.brandmark__name { font-family: 'Noto Serif Display', serif; font-size: 1.25rem; font-weight: 600; letter-spacing: .01em; color: var(--espresso-900); }
.brandmark__tag {
  font-size: .62rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--primary); white-space: nowrap;
}
.brandmark__tag.is-hide-sm { display: none; }

/* language switch */
.langswitch { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.langswitch a {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 13px; color: var(--text-muted); transition: background .2s var(--ease), color .2s var(--ease);
  min-height: 36px; display: inline-flex; align-items: center;
}
.langswitch a[aria-current="true"] { background: var(--primary); color: var(--cream-50); }
.langswitch a:not([aria-current="true"]):hover { background: var(--cream-200); color: var(--text); }

/* =================================================================
   Hero
   ================================================================= */
.hero { text-align: center; padding: clamp(18px, 4vw, 34px) 0 clamp(12px, 3vw, 22px); }
.hero__logo-wrap { margin: 0; line-height: 0; }
.hero__logo-wrap a { display: inline-block; }
.hero__logo {
  display: block; margin: 0 auto; width: auto; max-width: 100%;
  height: clamp(64px, 16vw, 104px);
}
.hero__line {
  margin-top: 14px; font-size: .7rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--text-muted);
}
.hero__crest { display: flex; justify-content: center; margin-bottom: 22px; }
.hero__crest svg { width: 60px; height: 60px; color: var(--accent-strong); }
.hero__eyebrow {
  font-size: .72rem; letter-spacing: .42em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(2.9rem, 10vw, 5.2rem); font-weight: 700; letter-spacing: -.01em;
  color: var(--espresso-900); line-height: .98;
}
.hero__title em { font-style: italic; font-weight: 500; color: var(--primary); }
.hero__sub {
  margin: 20px auto 0; max-width: 40ch; color: var(--text-soft);
  font-size: clamp(1rem, 2.6vw, 1.15rem);
}
.hero__meta {
  margin-top: 26px; display: inline-flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center;
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 15px; height: 15px; color: var(--accent-strong); }

/* meander rule ornament */
.rule { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 6px auto 0; max-width: 320px; }
.rule__line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.rule__line:last-child { background: linear-gradient(90deg, var(--line), transparent); }
.rule__mark { color: var(--accent); flex: none; }
.rule__mark svg { width: 46px; height: 14px; display: block; }

/* =================================================================
   Sticky category nav (scroll-spy)
   ================================================================= */
.catnav {
  position: sticky; top: 0; z-index: 55;
  background: rgba(251, 244, 230, 0.98);
  border-bottom: 1px solid var(--line-soft);
}
.catnav__track {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  -ms-overflow-style: none; scroll-snap-type: x proximity;
  padding: 9px 0; -webkit-overflow-scrolling: touch;
}
.catnav__track::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start;
  font-family: 'Didact Gothic', sans-serif;
  font-size: .82rem; letter-spacing: .04em; white-space: nowrap;
  padding: 10px 16px; border-radius: 999px; color: var(--text-muted);
  border: 1px solid transparent; min-height: 44px; display: inline-flex; align-items: center;
  cursor: pointer; transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { color: var(--text); background: var(--cream-200); }
.chip.is-active { color: var(--cream-50); background: var(--primary); border-color: var(--primary); }

/* =================================================================
   Search
   ================================================================= */
.searchwrap { padding: clamp(22px, 5vw, 38px) 0 4px; }
.search {
  position: relative; display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search:focus-within { border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(180,134,47,.18); }
.search__icon { flex: none; margin-left: 18px; color: var(--text-muted); width: 19px; height: 19px; }
.search input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-family: 'Didact Gothic', sans-serif; font-size: 1rem; color: var(--text);
  padding: 15px 12px; min-width: 0;
}
.search input::placeholder { color: var(--text-muted); }
.search__clear {
  flex: none; margin-right: 8px; border: 0; background: transparent; cursor: pointer;
  color: var(--text-muted); width: 38px; height: 38px; border-radius: 999px;
  display: none; align-items: center; justify-content: center; transition: background .2s var(--ease), color .2s;
}
.search__clear:hover { background: var(--cream-200); color: var(--text); }
.search__clear.is-on { display: inline-flex; }
.search__count { text-align: center; font-size: .78rem; color: var(--text-muted); margin-top: 12px; min-height: 1.2em; letter-spacing: .03em; }

/* =================================================================
   Menu sections + rows
   ================================================================= */
.menu { padding-bottom: 30px; }
.section { padding-top: clamp(40px, 7vw, 64px); scroll-margin-top: calc(var(--nav-h) + 8px); }
.section__head { text-align: center; margin-bottom: clamp(20px, 4vw, 34px); }
.section__kicker {
  font-size: .68rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px;
}
.section__title { font-size: clamp(1.7rem, 5.5vw, 2.5rem); font-weight: 600; color: var(--espresso-900); }
.section__title em { font-style: italic; font-weight: 500; color: var(--primary); }

.items { list-style: none; margin: 0; padding: 0; }
.row {
  padding: 16px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.row:last-child { border-bottom: 0; }
.row__head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.row__name {
  font-family: 'Noto Serif Display', serif; font-weight: 500; font-size: 1.18rem;
  color: var(--espresso-900); flex: 0 1 auto; min-width: 0;
}
.row__name .qty { font-family: 'Didact Gothic', sans-serif; font-size: .82rem; color: var(--text-muted); letter-spacing: .02em; }
.row__dots {
  flex: 1; align-self: flex-end;
  border-bottom: 2px dotted var(--gold-200);
  transform: translateY(-5px);
  min-width: 16px;
}
.row__price {
  flex: none; font-family: 'Noto Serif Display', serif; font-weight: 600;
  font-size: 1.1rem; color: var(--price);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.row__price .alt { color: var(--text-muted); font-weight: 500; font-size: .92em; }
.row__desc { margin: 6px 0 0; color: var(--text-muted); font-size: .94rem; line-height: 1.5; max-width: 60ch; }

/* badges */
.badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.badge {
  font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; border: 1px solid transparent; font-weight: 400;
}
.badge--sugar { background: var(--sage-100); color: var(--sage-700); border-color: rgba(92,107,62,.25); }
.badge--abv { background: var(--cream-200); color: var(--text-muted); border-color: var(--line-soft); font-variant-numeric: tabular-nums; }
.badge--noalc { background: var(--clay-100); color: var(--clay-700); border-color: rgba(156,74,42,.22); }
.badge--add { background: transparent; color: var(--primary); border-color: var(--gold-200); }

/* no results */
.noresults { display: none; text-align: center; padding: 60px 0; color: var(--text-muted); }
.noresults.is-on { display: block; }
.noresults svg { width: 40px; height: 40px; color: var(--gold-300); margin: 0 auto 14px; }
.noresults strong { display: block; font-family: 'Noto Serif Display', serif; font-size: 1.4rem; color: var(--text); margin-bottom: 6px; font-weight: 500; }
.row.is-hidden, .section.is-hidden { display: none; }

/* =================================================================
   Footer
   ================================================================= */
.footer { background: var(--espresso-800); color: var(--cream-200); margin-top: 40px; padding: clamp(44px, 8vw, 72px) 0 36px; }
.footer a { color: var(--cream-100); }
.footer .rule__line { background: linear-gradient(90deg, transparent, rgba(231,207,148,.35)); }
.footer .rule__line:last-child { background: linear-gradient(90deg, rgba(231,207,148,.35), transparent); }
.footer .rule__mark { color: var(--gold-300); }
.footer__grid { display: grid; gap: 32px; margin-top: 38px; }
.footer__title { font-family: 'Noto Serif Display', serif; font-size: 1.7rem; font-weight: 600; color: var(--cream-50); text-align: center; }
.footer__sub { text-align: center; color: var(--gold-200); letter-spacing: .24em; text-transform: uppercase; font-size: .68rem; margin-top: 10px; }
.fcol h3 { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 12px; font-family: 'Didact Gothic', sans-serif; font-weight: 400; }
.fcol p, .fcol a { font-size: .95rem; color: var(--cream-200); line-height: 1.7; }
.fcol a:hover { color: var(--gold-200); }
.contact-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.contact-line p { margin: 0; line-height: 1.5; }
.contact-line svg { width: 18px; height: 18px; color: var(--gold-300); flex: none; margin-top: 2px; }
.socials { display: flex; gap: 12px; margin-top: 4px; }
.socials a {
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid rgba(231,207,148,.3);
  display: inline-flex; align-items: center; justify-content: center; transition: background .2s var(--ease), border-color .2s;
}
.socials a:hover { background: rgba(231,207,148,.12); border-color: var(--gold-200); }
.socials svg { width: 19px; height: 19px; }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(231,207,148,.16); text-align: center; }
.legal p { font-size: .8rem; color: rgba(245,234,214,.6); line-height: 1.7; margin: 0 0 6px; max-width: 62ch; margin-inline: auto; }
.legal .copy { margin-top: 14px; font-size: .76rem; letter-spacing: .06em; }

/* =================================================================
   Back to top
   ================================================================= */
.totop {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 50px; height: 50px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--primary); box-shadow: var(--shadow-md);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s;
}
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--cream-200); }
.totop svg { width: 20px; height: 20px; }

/* =================================================================
   Entrance animation (reveal on scroll)
   ================================================================= */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }

@media (min-width: 600px) {
  .brandmark__tag.is-hide-sm { display: inline; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 38rem; margin-inline: auto; }
  .fcol { text-align: left; }
  .fcol--center { text-align: center; }
}

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