/* Στη Μεγάλη Πόρτα – Μεζεδοτεχνείο
   Παλέτα: βραδινός ουρανός πάνω από την παλιά πόλη, πωρόλιθος της ενετικής πύλης,
   κρασί, και το φως του φαναριού μέσα στην αψίδα. */
:root {
  --night: #1b2140;      /* ουρανός μετά τις 9 */
  --night-2: #252c52;
  --stone: #dcc8a0;      /* πωρόλιθος πύλης */
  --stone-dim: #a8977a;
  --wine: #6e1d30;       /* κρασί */
  --wine-deep: #43121f;
  --lamp: #f2b24c;       /* φανάρι */
  --ink: #1b2140;

  --display: "Piazzolla", "Georgia", serif;
  --text: "Commissioner", "Segoe UI", system-ui, sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.1rem, 5vw, 3rem);
  --step-4: clamp(2.5rem, 8.8vw, 5.2rem);

  --gutter: clamp(1rem, 5vw, 4rem);
  --measure: 36rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--stone);
  font-family: var(--text);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.1; }

/* ── Γλώσσα: δείχνει μόνο τη μία εκδοχή ── */
:root[data-lang="el"] body [lang="en"],
:root[data-lang="en"] body [lang="el"] { display: none !important; }

:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: .5rem; background: var(--lamp); color: var(--ink); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; }
.small { font-size: var(--step--1); color: var(--stone-dim); }

/* ── Κεφαλίδα ── */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem var(--gutter);
  background: rgba(27, 33, 64, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(220, 200, 160, .12);
}
.mark { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--display); font-style: italic; font-size: 1.15rem; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; font-size: var(--step--1); }
.nav a { text-decoration: none; color: var(--stone-dim); }
.nav a:hover { color: var(--stone); }
.lang { display: flex; border: 1px solid rgba(220, 200, 160, .35); border-radius: 999px; padding: 2px; }
.lang button {
  font: 500 .8rem/1 var(--text); letter-spacing: .04em;
  background: none; border: 0; color: var(--stone-dim);
  padding: .45rem .7rem; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--stone); color: var(--ink); }

/* ── Hero: η αψίδα ── */
.hero {
  position: relative;
  padding: clamp(1.5rem, 5vw, 3.5rem) var(--gutter) 0;
  background:
    radial-gradient(120% 70% at 50% 100%, rgba(110, 29, 48, .55), transparent 70%),
    var(--night);
  overflow: hidden;
}
.hero-stage {
  display: grid;
  justify-items: center;
  max-width: 72rem;
  margin: 0 auto;
}
.arch { width: min(78%, 22rem); height: auto; margin-bottom: -18%; }
.arch .opening { fill: url(#lamp); }
.arch .v { fill: none; stroke: var(--stone); stroke-width: 1.3; stroke-linejoin: round; opacity: .75; }
.arch .key { stroke: var(--lamp); opacity: 1; }

.hero-text {
  position: relative;
  text-align: center;
  padding-bottom: clamp(1.8rem, 6vw, 3.5rem);
  width: 100%;
}
.kind { font-size: var(--step--1); color: var(--stone); letter-spacing: .02em; margin-bottom: .6rem; }
.hero h1 {
  font-size: var(--step-4);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -.01em;
  line-height: .98;
  color: #f4e6c6;
  text-shadow: 0 2px 30px rgba(27, 33, 64, .9), 0 0 2px rgba(27, 33, 64, .8);
}
.hero h1 small { display: block; font-family: var(--text); font-style: normal; font-size: var(--step--1); letter-spacing: .02em; color: var(--stone-dim); margin-top: .7rem; text-shadow: none; }
.motto {
  font-family: var(--display);
  font-size: var(--step-1);
  line-height: 1.45;
  margin: 1.2rem auto 1.8rem;
  max-width: 24em;
  text-shadow: 0 1px 16px rgba(27, 33, 64, .9);
}
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75rem 1.4rem;
  font: 500 1rem/1 var(--text);
  text-decoration: none; border-radius: 999px;
}
.btn-lamp { background: var(--lamp); color: var(--ink); }
.btn-lamp:hover { background: #ffc566; }
.btn-line { border: 1px solid var(--stone); color: var(--stone); background: rgba(27, 33, 64, .5); }
.btn-line:hover { background: var(--stone); color: var(--ink); }

.rating { margin: 1.1rem 0 0; font-size: var(--step--1); }
.rating a { color: var(--stone); text-decoration: underline; text-decoration-color: rgba(242, 178, 76, .6); text-underline-offset: 4px; }
.rating a:hover { color: var(--lamp); }

/* ── Η πύλη ── */
.gate {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  max-width: 72rem; margin: 0 auto;
}
.gate-years {
  display: flex; align-items: center; gap: .8rem;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(3.4rem, 15vw, 8.5rem); line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--stone);
  font-variant-numeric: lining-nums;
}
.gate-years .dash { width: .35em; height: 2px; background: var(--lamp); flex: none; }
.gate h2 { font-size: var(--step-3); color: #f4e6c6; }
.latin { font-family: var(--display); font-style: italic; color: var(--lamp); font-size: var(--step-1); margin: .3rem 0 1.6rem; }
.gate-body { max-width: var(--measure); }
.gate-body p { line-height: 1.7; }

/* ── Κουζίνα ── */
.kitchen {
  background: linear-gradient(180deg, var(--wine-deep), var(--wine) 140%);
  padding: clamp(4rem, 10vw, 7rem) var(--gutter);
}
.kitchen > * { max-width: 72rem; margin-left: auto; margin-right: auto; }
.kitchen h2 { font-size: var(--step-3); color: #f4e6c6; }
.said { margin: 2rem auto 3.5rem; padding: 0; }
.said p {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: clamp(1.8rem, 5.2vw, 3.3rem); line-height: 1.2;
  color: #f4e6c6; max-width: 20em; margin: 0;
}
.said { margin-bottom: 1rem; }
.crisp { font-family: var(--display); font-style: italic; font-size: var(--step-2); color: var(--lamp); border-left: 2px solid var(--lamp); padding-left: 1.2rem; }
.crisp[hidden] { display: none; }
.gate-line { font-family: var(--display); font-style: italic; font-size: var(--step-2); color: #f4e6c6; margin-top: 1.4rem; }

/* ── Κρατήσεις: τοίχος από πωρόλιθο ── */
.book {
  background: var(--stone);
  color: var(--ink);
  padding: clamp(4rem, 10vw, 7rem) var(--gutter);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 58px, rgba(27, 33, 64, .07) 58px 60px);
}
.book-inner {
  max-width: 72rem; margin: 0 auto;
  display: grid; gap: 2.5rem 4rem; grid-template-columns: 1fr;
}
.book h2 { font-size: var(--step-3); }
.book-lead { font-family: var(--display); font-size: var(--step-1); margin: -.8rem 0 0; }
.phones { list-style: none; margin: 0; padding: 0; }
.phones a {
  display: inline-block;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.2rem, 9vw, 4.2rem); line-height: 1.15;
  text-decoration: none; color: var(--wine);
  font-variant-numeric: lining-nums tabular-nums;
  border-bottom: 2px solid transparent;
}
.phones a:hover { border-bottom-color: var(--wine); }
.hours h3, .where h3 { font-family: var(--text); font-size: var(--step--1); font-weight: 600; margin-bottom: .6rem; color: var(--wine-deep); }
.hours-line { font-size: var(--step-1); margin: 0; }
.hours-line strong { color: var(--wine); font-weight: 600; }
.where address { font-style: normal; font-size: var(--step-1); line-height: 1.45; max-width: 22em; }
.directions { margin: .8rem 0 0; }
.directions a { color: var(--wine); font-weight: 500; }

/* ── Χάρτης ── */
.map { background: var(--night); }
.map-frame { position: relative; height: clamp(320px, 55vw, 480px); filter: saturate(.75); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-link { text-align: center; padding: 1rem var(--gutter); margin: 0; }
.map-link a { color: var(--lamp); }

/* ── Footer ── */
.foot {
  display: grid; gap: 1.5rem;
  padding: 3.5rem var(--gutter) 6rem;
  border-top: 1px solid rgba(220, 200, 160, .15);
  font-size: var(--step--1);
  max-width: 72rem; margin: 0 auto;
}
.foot-line { margin: 0; line-height: 1.9; max-width: 60em; }
.foot-line strong { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.15rem; }
.foot-line a { color: var(--lamp); }
.foot-line em { font-family: var(--display); }

/* ── Sticky κράτηση (κινητό) ── */
.sticky-book {
  position: fixed; z-index: 30;
  left: 1rem; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex; justify-content: center; align-items: center; gap: .5rem;
  min-height: 52px;
  background: var(--lamp); color: var(--ink);
  font: 600 1.05rem/1 var(--text);
  text-decoration: none; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(10, 12, 30, .45);
}
.sticky-book::before {
  content: ""; width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── Μικρές οθόνες ── */
@media (max-width: 759px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .mark span { font-size: 1.05rem; }
}

/* ── Tablet / desktop ── */
@media (min-width: 760px) {
  .sticky-book { display: none; }
  .foot { padding-bottom: 3.5rem; grid-template-columns: auto 1fr; align-items: start; }
  .book-inner { grid-template-columns: 1.3fr 1fr; }
  .book h2, .book-lead, .phones { grid-column: 1; }
  .hours { grid-column: 2; grid-row: 1 / span 3; align-self: end; }
  .where { grid-column: 2; }
}
@media (min-width: 900px) {
  .hero-stage { grid-template-columns: 1.25fr 1fr; align-items: end; column-gap: 3rem; }
  .arch { grid-column: 2; grid-row: 1; width: min(100%, 30rem); margin: 0; justify-self: center; }
  .hero-text { grid-column: 1; grid-row: 1; text-align: left; align-self: center; padding: 2rem 0 4rem; }
  .motto { margin-left: 0; }
  .hero-actions { justify-content: flex-start; }
}
@media (min-width: 1000px) {
  .gate { grid-template-columns: auto 1fr; gap: 5rem; align-items: start; }
  .gate-years { flex-direction: column; align-items: flex-start; position: sticky; top: 6rem; }
  .gate-years .dash { width: 2px; height: .5em; margin-left: .6em; }
}

/* ── Η μία κίνηση: οι πέτρες της αψίδας μπαίνουν στη θέση τους,
      από τα θεμέλια προς τον θολίτη, και ανάβει το φανάρι ── */
@media (prefers-reduced-motion: no-preference) {
  .js .arch .v { opacity: 0; animation: stone .7s ease-out forwards; animation-delay: calc(var(--i, 0) * 45ms + 150ms); }
  .js .arch .key { animation-name: key; }
  .js .arch .opening { opacity: 0; animation: glow 1.6s ease-out 1.1s forwards; }
  @keyframes stone { from { opacity: 0; transform: translateY(6px); } to { opacity: .75; transform: none; } }
  @keyframes key { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  @keyframes glow { to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
