/* ================================================================
   Amalthia Seafood Restaurant — Stavros, Greece
   Palette: cream #F6F1E6 · navy #0E2A3A · terracotta family
     decorative #C96F4A · CTA #A85430 (white 5.3:1) · text #9C4E2B (5.3:1 on cream)
   Type: Playfair Display (Latin+Cyrillic) + GFS Didot (Greek glyphs) / Inter
   Self-hosted fonts — no third-party requests.
   ================================================================ */

@font-face {
  font-family: 'GFS Didot';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/gfsdidot-400-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-400-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-600-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/playfairdisplay-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/playfairdisplay-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/playfairdisplay-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/playfairdisplay-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cream: #F6F1E6;
  --cream-soft: #FDFBF5;
  --navy: #0E2A3A;
  --navy-soft: #16394E;
  --terracotta: #C96F4A;      /* decorative only (borders, accents on dark) */
  --cta: #A85430;             /* button bg — white text 5.3:1 */
  --cta-hover: #8F4526;
  --accent-text: #9C4E2B;     /* links & eyebrows on cream — 5.3:1 */
  --sea: #7FB4C9;
  --vine: #5C7A52;
  --ink: #22303A;
  --ink-soft: #53616C;
  --line: rgba(14, 42, 58, 0.14);
  --serif: "Playfair Display", "GFS Didot", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
  --shadow: 0 10px 40px rgba(14, 42, 58, 0.12);
  --wrap: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

html, body { overflow-x: hidden; overflow-x: clip; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* Sticky footer for short pages (thank-you, 404) */
body.short-page { min-height: 100vh; display: flex; flex-direction: column; }
body.short-page main { flex: 1; }
body.short-page .footer { margin-top: auto; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.12; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cta-hover); }

.overline {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.75rem;
}
/* Greek words keep natural case — Greek all-caps drops accents, so don't force it */
.overline .el-word { text-transform: none; font-size: 0.9rem; }

.section { padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 5vw, 4rem); }
.section-head { max-width: var(--wrap); margin: 0 auto 2.75rem; }
.section-sub { color: var(--ink-soft); margin-top: 0.75rem; max-width: 46ch; }
.center { text-align: center; margin-top: 2.25rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-hover); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn-ghost-light { border-color: rgba(246, 241, 230, 0.55); color: var(--cream); background: transparent; }
.btn-ghost-light:hover { background: var(--cream); color: var(--navy); }
.btn-full { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.8rem clamp(1rem, 4vw, 2rem);
}
.wordmark { text-decoration: none; line-height: 1.15; margin-right: auto; }
.wm-el { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; color: var(--navy); display: block; white-space: nowrap; }
.wm-en { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); display: block; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-links a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.nav-links a:hover { color: var(--accent-text); }
.nav-links .nav-cta {
  background: var(--cta); color: #fff;
  padding: 0.5rem 1.15rem; border-radius: 999px;
}
.nav-links .nav-cta:hover { background: var(--cta-hover); color: #fff; }
.nav-phone { font-weight: 600; color: var(--navy); text-decoration: none; font-size: 0.92rem; white-space: nowrap; }

/* Language switcher */
.lang-switch {
  display: flex;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: var(--cream-soft);
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 30px;
  padding: 0 0.3rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-decoration: none;
}
.lang-switch a:hover { color: var(--navy); background: var(--cream); }
.lang-switch a[aria-current="true"] { background: var(--navy); color: var(--cream-soft); }

/* Mobile compact book pill (next to hamburger) */
.nav-book-mini {
  display: none;
  background: var(--cta);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-book-mini:hover { background: var(--cta-hover); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform 0.2s ease, opacity 0.2s ease; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2rem);
}
.hero-text .lede { font-size: 1.15rem; color: var(--ink-soft); margin: 1.25rem 0 1.6rem; max-width: 52ch; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.8rem; }
.chip {
  font-size: 0.8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  color: var(--ink);
}
.chip strong { color: var(--navy); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-photo { position: relative; }
.hero-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}

/* ---------- Glance strip ---------- */
.glance { background: var(--navy); color: var(--cream); }
.glance ul {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  list-style: none;
  padding: 1.1rem clamp(1.25rem, 4vw, 2rem);
  font-size: 0.95rem;
}
.glance li { opacity: 0.92; }
.glance strong { color: #fff; }

/* ---------- Story ---------- */
.story-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.story-copy p { margin-bottom: 1.2rem; max-width: 56ch; }
.story-note {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--navy);
  border-left: 3px solid var(--terracotta);
  padding-left: 1.1rem;
  margin-top: 1.8rem;
}
.story-note span { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); }
.story-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.story-photos figure:first-child { grid-column: 1 / -1; }
.story-photos img {
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.story-photos figure:not(:first-child) img { aspect-ratio: 3 / 3.4; }

/* ---------- Menu (dark) ---------- */
.section-dark { background: var(--navy); }
.section-dark h2, .section-dark h3 { color: var(--cream-soft); }
.section-dark .overline { color: var(--sea); }
.section-dark .section-sub { color: rgba(246, 241, 230, 0.72); }
.menu.section { padding-bottom: clamp(2.75rem, 6vw, 4.5rem); }
.dish-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.dish { background: var(--navy-soft); border-radius: var(--radius); overflow: hidden; }
.dish img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform 0.45s ease; }
.dish:hover img { transform: scale(1.04); }
.dish figcaption { padding: 1.1rem 1.2rem 1.3rem; }
.dish h3 { margin-bottom: 0.35rem; font-size: 1.15rem; }
.dish p { font-size: 0.9rem; color: rgba(246, 241, 230, 0.75); line-height: 1.5; }
.menu-note {
  max-width: var(--wrap);
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(246, 241, 230, 0.68);
}

/* ---------- Reviews ---------- */
.review-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
}
.review p {
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 1.1rem;
}
.review footer { font-size: 0.85rem; color: var(--ink-soft); }
.review-scores {
  max-width: var(--wrap);
  margin: 2.25rem auto 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- Gallery ---------- */
.gallery { padding-top: 0; }
.gal-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gal-grid img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

/* ---------- Visit + Reserve ---------- */
.visit-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.visit-info { color: rgba(246, 241, 230, 0.85); }
.visit-info h2 { margin-bottom: 1.25rem; }
.visit-info address { font-style: normal; margin-bottom: 1.25rem; }
.visit-info a { color: var(--sea); }
.visit-info a:hover { color: #fff; }
.visit-facts { list-style: none; margin-bottom: 1.75rem; }
.visit-facts li { padding: 0.45rem 0; border-bottom: 1px solid rgba(246, 241, 230, 0.12); font-size: 0.97rem; }
.visit-facts em { font-style: normal; font-size: 0.85rem; opacity: 0.7; }
.visit-facts strong { color: #fff; }
.visit-photo { margin-top: 1.75rem; }
.visit-photo img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

.reserve-card {
  background: var(--cream-soft);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
  scroll-margin-top: 100px;
}
.reserve-card h2 { margin-bottom: 0.5rem; color: var(--navy); }
.reserve-sub { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
.reserve-card .btn-full { text-align: center; white-space: nowrap; }
.form-note { font-size: 0.88rem; color: var(--ink-soft); text-align: center; margin-top: 1rem; }

/* ---------- Footer ---------- */
.footer { background: #0A2130; color: rgba(246, 241, 230, 0.8); padding: 3rem clamp(1.25rem, 5vw, 4rem) 2rem; }
.footer a {
  color: var(--cream);
  text-decoration-color: rgba(246, 241, 230, 0.35);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.footer a:hover { color: #fff; text-decoration-color: var(--sea); }
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer .wm-el { color: var(--cream-soft); font-size: 1.6rem; margin-bottom: 0.25rem; }
.footer-fine {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(246, 241, 230, 0.12);
  font-size: 0.82rem;
  opacity: 0.65;
}

/* ---------- Reveal animation (CSS + IO class) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.no-observer .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dish img, .btn { transition: none; }
}

/* ---------- Thank you / 404 ---------- */
.page-simple {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}
.page-simple .inner { max-width: 36rem; }
.page-simple h1 { margin-bottom: 1rem; }
.page-simple p { color: var(--ink-soft); margin-bottom: 1.25rem; }
.page-simple .alt-langs { font-size: 0.92rem; opacity: 0.85; }
.page-simple .btn { margin-top: 1.25rem; }
.page-simple a[href^="tel"] { white-space: nowrap; }

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 1020px) {
  .dish-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; max-width: 620px; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  /* Compress the top bar so full nav + language pills fit in every language */
  .wm-en { display: none; }
  .nav-links { gap: 0.8rem; }
  .nav-links a { font-size: 0.88rem; }
}

@media (max-width: 920px) {
  .nav-phone { display: none; }
}

/* Nav collapses at 840px — with the language switcher present, full links wrap below this */
@media (max-width: 840px) {
  .nav-toggle { display: block; }
  .nav-book-mini { display: inline-flex; }
  .nav-inner { gap: 0.6rem; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream-soft);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 0.5rem 0 1rem;
    text-align: center;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.85rem 1.5rem; font-size: 1.05rem; }
  .nav-links .nav-cta { margin: 0.5rem 1.5rem 0; text-align: center; }
  .nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 720px) {
  /* Centered mobile layout */
  .hero { grid-template-columns: 1fr; padding-top: 2rem; text-align: center; }
  .hero-text .lede { margin-left: auto; margin-right: auto; }
  .trust-chips { justify-content: center; }
  .hero-ctas { justify-content: center; }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .section-head { text-align: center; }
  .section-sub { margin-left: auto; margin-right: auto; }
  .glance ul { justify-content: center; text-align: center; }
  .story-grid { grid-template-columns: 1fr; }
  .story-copy { text-align: center; }
  .story-copy p { margin-left: auto; margin-right: auto; }
  .story-note { border-left: 0; border-top: 3px solid var(--terracotta); padding: 1.1rem 0 0; }
  .visit-grid { grid-template-columns: 1fr; }
  .visit-info { text-align: center; }
  .visit-facts li { text-align: center; }
  .review { text-align: center; }
  .footer-inner { text-align: center; }
  .footer-fine { text-align: center; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  /* Tighter top bar so wordmark + language pills + Book + hamburger fit at 390px */
  .wm-en { display: none; }
  .lang-switch a { min-width: 28px; min-height: 28px; font-size: 0.7rem; }
  .nav-book-mini { font-size: 0.78rem; padding: 0.4rem 0.7rem; }
  .nav-inner { gap: 0.45rem; }
  /* Compact 2-col menu grid — keeps the section short on phones */
  .dish-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .dish figcaption { padding: 0.75rem 0.8rem 0.9rem; }
  .dish h3 { font-size: 0.98rem; }
  .dish p { font-size: 0.78rem; line-height: 1.45; }
  .dish img { aspect-ratio: 1 / 1; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .chip { font-size: 0.75rem; padding: 0.32rem 0.7rem; }
}
