/* E.J Italian Bistro. Taken from the place itself: the yellow neon "e" on a dark sign,
   concrete and red brick inside, the green-white-red letters of "Italian Bistro",
   and the pink paper of the printed menu with its script headings and red NEW flags. */
:root {
  /* Brand tokens — change these per restaurant */
  --night: #1C1C1A;        /* dark sign board */
  --night-2: #262623;
  --concrete: #EDEAE4;
  --paper: #F7E9E4;        /* printed menu paper */
  --paper-edge: #EBD4CC;
  --ink: #261C1A;
  --muted: #6E615C;
  --neon: #F3DF55;         /* the yellow neon line */
  --neon-glow: rgba(243, 223, 85, .55);
  --brick: #A2432C;
  --basil: #1E8A4C;        /* green of "istro" */
  --tomato: #D0302F;       /* red of "Ita" and the NEW flags */
  --on-night: #F2EFE8;
  --on-night-mute: #ADA79C;
  --line: rgba(38, 28, 26, .14);
  --line-night: rgba(242, 239, 232, .16);

  --f-display: "Bricolage Grotesque", "Arial Rounded MT Bold", "Helvetica Neue", Arial, sans-serif;
  --f-script: "Pinyon Script", "Snell Roundhand", cursive;
  --f-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1180px;
  --h2: clamp(2rem, 1.3rem + 2.8vw, 3.4rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--concrete); color: var(--ink); font: 400 1.04rem/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; text-wrap: balance; margin: 0; line-height: 1.04; letter-spacing: -.02em; }
h2 { font-size: var(--h2); }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--neon); color: var(--night); padding: 8px 12px; }
.skip:focus { left: 16px; }

.top-in, .hero-in, .new-in, .gallery-in, .visit-in, .foot-in {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
}

/* ---------- Neon ---------- */
.neon { color: var(--neon); filter: drop-shadow(0 0 2px var(--neon-glow)) drop-shadow(0 0 10px var(--neon-glow)); overflow: visible; }
.neon-text { color: var(--neon); text-shadow: 0 0 2px var(--neon-glow), 0 0 18px var(--neon-glow); }

/* ---------- Brand (sign) ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { width: 26px; height: 40px; flex: none; }
.sign { font: 600 1.18rem/1 var(--f-display); letter-spacing: -.01em; white-space: nowrap; }
.sign .r { color: #F0524B; font-weight: inherit; }
.sign .w { color: #fff; font-weight: inherit; }
.sign .g { color: #3FC37A; font-weight: inherit; }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--night); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--night) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-night); color: var(--on-night); }
.top-in { display: flex; align-items: center; gap: 24px; padding-block: 10px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--on-night-mute); padding-block: 6px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: #fff; border-color: var(--neon); }

.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font: 600 .8rem/1 var(--f-body); letter-spacing: .08em; border: 1px solid var(--line-night); padding: 10px 12px; border-radius: 999px; color: var(--on-night); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 10px; height: 6px; transition: transform .2s; }
.lang[open] summary svg { transform: rotate(180deg); }
.lang summary:hover { border-color: var(--neon); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--night-2); border: 1px solid var(--line-night); border-radius: 12px; min-width: 190px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.lang-list button { width: 100%; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; background: none; border: 0; border-radius: 8px; color: var(--on-night); cursor: pointer; text-align: left; font: 400 .95rem/1 var(--f-body); padding: 10px; }
.lang-list button span { font-size: .72rem; font-weight: 600; color: var(--on-night-mute); }
.lang-list button:hover, .lang-list button[aria-current="true"] { background: rgba(255,255,255,.06); }
.lang-list button[aria-current="true"] span { color: var(--neon); }

/* ---------- Hero (the dark sign board, with brick courses showing through) ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(162, 67, 44, .28), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 33px, rgba(255,255,255,.025) 33px 34px),
    var(--night);
  color: var(--on-night);
}
.hero-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(40px, 6vw, 92px); }
.hero-copy { min-width: 0; display: grid; gap: 22px; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--on-night-mute); }
.hero h1 { font-size: clamp(2.7rem, 1.4rem + 4.6vw, 5.4rem); color: #fff; }
.h1-a { display: block; }
.h1-b { display: block; font: 400 clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem)/1.1 var(--f-script); letter-spacing: 0; margin-top: .15em; }
.lede { max-width: 33em; font-size: 1.1rem; color: #D8D3C9; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; font: 600 .92rem/1 var(--f-body); text-decoration: none; border-radius: 999px; transition: background .2s, color .2s, border-color .2s, box-shadow .2s; }
.btn-neon { background: var(--neon); color: var(--night); box-shadow: 0 0 0 0 var(--neon-glow); }
.btn-neon:hover { box-shadow: 0 0 22px 2px var(--neon-glow); }
.btn-line { border: 1px solid var(--line-night); color: var(--on-night); }
.btn-line:hover { border-color: var(--on-night); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 4px 0 0; padding: 0; font-size: .92rem; color: var(--on-night-mute); }
.status { display: inline-flex; align-items: center; gap: 9px; color: var(--on-night); font-weight: 500; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--on-night-mute); }
.status.is-open i { background: #46D17F; box-shadow: 0 0 0 4px rgba(70,209,127,.18), 0 0 10px rgba(70,209,127,.6); }
.status.is-closed i { background: var(--tomato); }
.hero-media { position: relative; max-width: 100%; }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; max-height: 640px; object-fit: cover; border-radius: 200px 200px 14px 14px; }
.hero-mark { position: absolute; width: 74px; height: 116px; right: -18px; bottom: -26px; }

/* Green-white-red ribbon */
.tricolore { display: grid; grid-template-columns: repeat(3, 1fr); height: 8px; }
.tricolore i:nth-child(1) { background: var(--basil); }
.tricolore i:nth-child(2) { background: #fff; }
.tricolore i:nth-child(3) { background: var(--tomato); }

/* ---------- NEW flags ---------- */
.flag { display: inline-block; position: relative; font: 700 .7rem/1 var(--f-body); letter-spacing: .1em; color: #fff; background: var(--tomato); padding: 6px 14px 6px 10px; clip-path: polygon(0 0, 100% 0, 86% 50%, 100% 100%, 0 100%); vertical-align: middle; transform: rotate(-4deg); }

/* ---------- New on the menu ---------- */
.new { background: var(--concrete); }
.new-in { padding-block: clamp(48px, 7vw, 96px); display: grid; gap: 32px; }
.new-head { display: grid; gap: 10px; }
.new-head h2 { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.new-head .flag { font-size: .85rem; padding: 8px 18px 8px 12px; }
.new-head p { color: var(--muted); max-width: 36em; }
.new-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.new-card { height: 100%; width: 100%; display: flex; flex-direction: column; gap: 8px; text-align: left; font: inherit; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; cursor: pointer; transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden; }
.new-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--tomato); }
.new-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(38,28,26,.1); border-color: transparent; }
.new-card .nc-tab { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--basil); }
.new-card .nc-name { font: 600 1.15rem/1.2 var(--f-display); letter-spacing: -.01em; }
.new-card .nc-with { font-size: .92rem; color: var(--muted); }
.new-card .nc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; margin-top: auto; padding-top: 6px; }
.new-card .nc-price { white-space: nowrap; }
.new-card .nc-price { font: 600 1.1rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.new-card .nc-go { font-size: .82rem; font-weight: 600; color: var(--brick); }

/* ---------- Menu (pink paper card) ---------- */
.menu { background: var(--brick) repeating-linear-gradient(0deg, transparent 0 26px, rgba(0,0,0,.12) 26px 28px); padding-block: clamp(40px, 6vw, 80px); padding-left: var(--gutter); padding-right: var(--gutter-r); }
.menu-card { max-width: 1040px; margin-inline: auto; background: var(--paper); padding: clamp(26px, 5vw, 64px); border-radius: 4px; box-shadow: 0 30px 60px rgba(40, 10, 5, .35); }
.menu-head { display: grid; justify-items: center; text-align: center; gap: 4px; }
.script { font: 400 clamp(3.4rem, 2.4rem + 4vw, 5.4rem)/1.05 var(--f-script); letter-spacing: 0; color: var(--ink); }
.menu-note { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tabs { display: flex; gap: 6px; margin: 26px 0 8px; overflow-x: auto; scrollbar-width: none; position: sticky; top: calc(60px + env(safe-area-inset-top, 0px)); z-index: 5; background: var(--paper); padding-block: 10px; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; background: none; border: 1px solid transparent; border-radius: 999px; cursor: pointer; color: var(--muted); font: 600 .95rem/1 var(--f-body); padding: 10px 16px; }
.tab:hover { color: var(--ink); border-color: var(--line); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.panel { padding-top: 10px; }
.part { padding-top: 22px; }
.panel h3 { font: 400 clamp(2.3rem, 1.8rem + 2vw, 3.2rem)/1.15 var(--f-script); letter-spacing: 0; text-align: center; margin: 0 0 6px; }
.group-label { text-align: center; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--muted); }
.items { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 56px; }
.item { padding: 14px 0; border-bottom: 1px dashed var(--paper-edge); break-inside: avoid; min-width: 0; position: relative; }
.item-row { display: flex; align-items: baseline; gap: 10px; }
.item-name { font: 600 1.06rem/1.25 var(--f-display); letter-spacing: -.005em; color: var(--ink); min-width: 0; }
.item-note { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.item-note.is-new { font-size: .62rem; letter-spacing: .1em; color: #fff; background: var(--tomato); padding: 4px 10px 4px 7px; clip-path: polygon(0 0, 100% 0, 84% 50%, 100% 100%, 0 100%); align-self: center; transform: rotate(-4deg); }
.item.is-new { background: linear-gradient(90deg, rgba(208,48,47,.06), transparent 60%); margin-inline: -10px; padding-inline: 10px; border-radius: 6px; }
.item.flash { animation: flash 1.8s ease-out; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 3px var(--neon), 0 0 24px var(--neon-glow); background-color: #fffbe0; } 100% { box-shadow: 0 0 0 0 transparent; } }
.item-fill { flex: 1; min-width: 12px; border-bottom: 1px dotted rgba(38,28,26,.28); transform: translateY(-4px); }
.item-size { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.item-price { font: 600 1.05rem/1 var(--f-display); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.item-price.two { display: inline-grid; grid-template-columns: 3.4rem 3.4rem; gap: 10px; text-align: right; }
.item-price.one { min-width: 3.4rem; text-align: right; }
.size-head { display: flex; justify-content: flex-end; gap: 10px; padding: 8px 0 2px; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.size-head span { width: 3.4rem; text-align: right; }
.items.has-two { columns: 1; }
.item-with { margin-top: 4px; font-size: .94rem; color: var(--muted); max-width: 40em; }
.part-note { margin-top: 12px; text-align: center; font-size: .9rem; color: var(--muted); }
.menu-more { margin-top: 30px; text-align: center; font-size: .95rem; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery { background: var(--night); color: var(--on-night); }
.gallery-in { padding-block: clamp(48px, 7vw, 100px); }
.gallery h2 { margin-bottom: 30px; color: #fff; }
.grid { columns: 3 240px; column-gap: 12px; }
.shot { break-inside: avoid; margin: 0 0 12px; display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; background: var(--night-2); cursor: zoom-in; overflow: hidden; }
.shot img { width: 100%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.shot:hover img { transform: scale(1.03); }

/* ---------- Visit ---------- */
.visit { background: var(--concrete); }
.visit-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 80px); padding-block: clamp(56px, 8vw, 110px); align-items: stretch; }
.visit-copy { display: grid; gap: 26px; align-content: start; min-width: 0; }
.info { margin: 0; display: grid; }
.info > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.info dt { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.info dd { margin: 0; font-size: 1.04rem; }
.phone { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.mini { display: inline-flex; gap: 6px; }
.chip { font: 600 .78rem/1 var(--f-body); text-decoration: none; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 12px; cursor: pointer; border-radius: 999px; }
.chip:hover { border-color: var(--ink); }
.visit .btn-neon { background: var(--night); color: var(--neon); }
.visit .btn-neon:hover { box-shadow: 0 0 0 3px var(--neon); }
.visit .btn-line { border-color: var(--line); color: var(--ink); }
.visit .btn-line:hover { border-color: var(--ink); }
.social { font-size: .92rem; color: var(--muted); }
.social a { color: var(--ink); }
.map { position: relative; min-height: 360px; border-radius: 18px; overflow: hidden; background: #ddd8cf; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map figcaption { position: absolute; left: 12px; bottom: 12px; background: var(--night); color: var(--neon); padding: 6px 10px; border-radius: 8px; font-size: .85rem; }

/* ---------- Footer ---------- */
.foot { background: var(--night); color: var(--on-night-mute); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 26px calc(26px + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }
.foot .credit { margin-left: auto; }

/* ---------- Lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 1400px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(18, 18, 16, .93); }
.lightbox img { max-height: 88vh; width: auto; margin: auto; border-radius: 10px; }
.lb-close { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--neon); color: var(--night); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .07s; }
  .hero-copy > *:nth-child(3) { animation-delay: .14s; }
  .hero-copy > *:nth-child(4) { animation-delay: .21s; }
  .hero-copy > *:nth-child(5) { animation-delay: .28s; }
  /* The neon tubes switch on, with a flicker, like the sign at dusk */
  .top .neon, .hero-mark, .neon-text { animation: switch-on 1.8s .3s steps(1, end) both; }
  .neon-text { animation-delay: .7s; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@keyframes rise { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }
@keyframes switch-on {
  0%   { opacity: .15; filter: none; }
  12%  { opacity: 1; }
  16%  { opacity: .2; }
  24%  { opacity: 1; }
  27%  { opacity: .35; }
  40%, 100% { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-in, .visit-in { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; }
  .hero-media img { aspect-ratio: 4 / 4.4; max-height: 520px; border-radius: 160px 160px 14px 14px; }
  .hero-mark { right: 8px; bottom: -22px; width: 58px; height: 92px; }
  .items { columns: 1; }
  .map { min-height: 300px; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .sign { font-size: 1.05rem; }
  .tabs { top: calc(60px + env(safe-area-inset-top, 0px)); margin-inline: -4px; }
  .info > div { grid-template-columns: 1fr; gap: 4px; }
  .foot .credit { margin-left: 0; }
  .btn { flex: 1 1 auto; }
  .menu { padding-inline: 10px; }
  .menu-card { padding: 22px 16px 28px; }
  .item-price.two { grid-template-columns: 3rem 3rem; gap: 8px; }
  .size-head span { width: 3rem; }
  .size-head { gap: 8px; }
  .new-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(-1 * var(--gutter)) calc(-1 * var(--gutter-r)); padding: 4px var(--gutter-r) 14px var(--gutter); scrollbar-width: none; }
  .new-list::-webkit-scrollbar { display: none; }
  .new-list li { flex: 0 0 78%; scroll-snap-align: start; }
}

/* Pinyon Script has no Greek letters: use the display face in Greek */
html:lang(el) .script, html:lang(el) .panel h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem); letter-spacing: -.02em; }
html:lang(el) .h1-b { font-family: var(--f-display); font-weight: 400; font-style: italic; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); }
