/* ============================================================
   Athena — Greek Street Food
   Faithful web recreation of the printed menu poster.
   Layout: dashed grid bands on white, black label boxes,
   condensed uppercase item names with right-aligned prices.
   ============================================================ */

/* ------------------------------ Tokens ------------------------------ */
:root {
  --paper: #ffffff;
  --ink: #0b0b0b;
  --ink-soft: #333333;
  --dash: #161616;

  --font-display: "Montserrat", "Arial Black", sans-serif;   /* section labels */
  --font-menu: "Barlow Condensed", "Arial Narrow", sans-serif; /* names & prices */
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;  /* descriptions */

  --dash-h: repeating-linear-gradient(90deg,  var(--dash) 0 16px, transparent 16px 27px);
  --dash-v: repeating-linear-gradient(180deg, var(--dash) 0 16px, transparent 16px 27px);

  --band-pad: 34px;
  --col-gap: 44px;
}

/* ------------------------------ Base ------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.4;
}

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

ul { margin: 0; padding: 0; list-style: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -48px;
  z-index: 10;
  background: var(--ink); color: #fff;
  padding: 8px 14px;
  font-family: var(--font-menu);
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

/* ------------------------------ Page frame ------------------------------ */
.site-header,
.menu,
.site-footer {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

/* ------------------------------ Header ------------------------------ */
.site-header {
  position: relative;
  padding: 44px 0 30px;
  text-align: center;
}

.brand {
  display: inline-block;
  width: min(370px, 62vw);
  height: auto;
}

.olive {
  position: absolute;
  top: -6px;
  right: -14px;
  width: clamp(110px, 17vw, 220px);
  height: auto;
  pointer-events: none;
}

/* Language switcher (appears when >1 language is registered) */
.lang-switcher {
  position: absolute;
  top: 18px; left: 0;
  display: flex;
  gap: 6px;
}
.lang-switcher[hidden] { display: none; }

.lang-btn {
  font-family: var(--font-menu);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 4px 11px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.lang-btn[aria-pressed="true"],
.lang-btn:hover {
  background: var(--ink);
  color: #fff;
}

/* ------------------------------ Bands (dashed grid) ------------------------------ */
.band {
  position: relative;
  padding-block: var(--band-pad);
}

.band + .band::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--dash-h);
}

/* Vertical dashed rules between columns (desktop only) */
.vrule { position: relative; }

/* ------------------------------ Sections ------------------------------ */
.menu-section::after {           /* contain floated photos */
  content: "";
  display: block;
  clear: both;
}

.section-title {
  display: inline-block;
  margin: 0 0 20px;
  padding: 9px 18px 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 3px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-note {
  margin: 4px 0 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  text-align: right;
}

/* ------------------------------ Items ------------------------------ */
.item { margin-bottom: 19px; }
.item:last-child { margin-bottom: 0; }

.item-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.item-name {
  flex: 1;
  margin: 0;
  font-family: var(--font-menu);
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1.12;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.item-price {
  font-family: var(--font-menu);
  font-weight: 600;
  font-size: 1.06rem;
  white-space: nowrap;
}

.item-desc {
  margin: 3px 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-soft);
  max-width: 42ch;
}

/* ------------------------------ Photos ------------------------------ */
.ph { display: block; }

.pita-photo {
  float: right;
  width: 42%;
  margin: -16px -4px 10px 16px;
}

.specials-photo { width: 100%; margin-bottom: 20px; }

.merida-photo { width: 100%; margin-bottom: 22px; }

.arabic-photo {
  width: min(320px, 82%);
  margin: 0 auto 22px;
}

.pocket-photo {
  float: right;
  width: 46%;
  margin: 0 0 10px 16px;
}

.grill-photo {
  width: min(430px, 100%);
  margin-inline: auto;
}

.bowl-photos {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  margin-top: 8px;
}
.bowl-photos img { width: calc(50% - 7px); }

.patate-photo {
  float: right;
  width: 52%;
  margin: -6px 0 10px 16px;
}

.salad-photo {
  width: min(300px, 88%);
  margin: 0 auto 26px;
}

/* ------------------------------ Sauces ------------------------------ */
.sauces {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 30px;
  row-gap: 16px;
}

.sauce {
  display: flex;
  align-items: center;
  gap: 11px;
}

.sauce-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: none;
}

.sauce-name {
  flex: 1;
  font-family: var(--font-menu);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.sauce-price {
  font-family: var(--font-menu);
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
}

/* ------------------------------ Drinks ------------------------------ */
.drinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 30px 36px;
}

.drink {
  width: 92px;
  text-align: center;
}

.drink-img {
  display: block;
  height: 68px;
  width: auto;
  margin: 0 auto 10px;
}

.drink-name {
  display: block;
  font-family: var(--font-menu);
  font-weight: 600;
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.drink-size {
  display: block;
  margin-top: 2px;
  font-family: var(--font-menu);
  font-weight: 600;
  font-size: 0.78rem;
}

/* ------------------------------ Footer ------------------------------ */
.site-footer {
  padding: 10px 0 34px;
  text-align: center;
  font-family: var(--font-menu);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.noscript-note {
  border: 2px dashed var(--dash);
  padding: 14px 18px;
  font-weight: 600;
}

/* ============================================================
   Layout — desktop (poster grid)
   ============================================================ */
@media (min-width: 1024px) {
  .band-1 {
    display: grid;
    grid-template-columns: 1.05fr 1fr 1.05fr;
    column-gap: var(--col-gap);
  }

  .band-2 {
    display: grid;
    grid-template-columns: 2.05fr 1fr;
    column-gap: var(--col-gap);
  }

  .band-3 {
    display: grid;
    grid-template-columns: 1.1fr 0.95fr 1fr;
    column-gap: var(--col-gap);
    align-items: center;
  }

  .band-4 {
    display: grid;
    grid-template-columns: 1.05fr 1fr 1fr;
    column-gap: var(--col-gap);
  }

  .band-5 { padding-block: 40px; }

  .split {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    column-gap: 30px;
  }

  .stack > .menu-section + .menu-section { margin-top: 36px; }

  .vrule::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: calc(var(--col-gap) / -2 - 1px);
    width: 2px;
    background: var(--dash-v);
  }
}

/* ============================================================
   Layout — tablet
   ============================================================ */
@media (min-width: 640px) and (max-width: 1023px) {
  .band-1,
  .band-3,
  .band-4 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px var(--col-gap);
  }

  .cell-specials {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: center;
  }
  .cell-specials .specials-photo { margin-bottom: 0; }

  .band-3 .band-photo {
    grid-column: 1 / -1;
    order: 3;
  }

  .band-4 .stack:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 30px;
    align-items: center;
  }
  .band-4 .stack:last-child .salad-photo { margin: 0; }

  .split {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    column-gap: 30px;
  }

  .stack > .menu-section + .menu-section { margin-top: 36px; }
}

/* ============================================================
   Layout — mobile
   ============================================================ */
@media (max-width: 639px) {
  :root { --band-pad: 26px; }

  .site-header { padding-top: 64px; }   /* room for the switcher */

  .band > * + * { margin-top: 30px; }

  .split-side { margin-top: 24px; }

  .pita-photo   { width: 46%; margin-top: -8px; }
  .pocket-photo { width: 48%; }
  .patate-photo { width: 52%; }

  .arabic-photo,
  .grill-photo,
  .salad-photo { margin-inline: auto; }

  .drinks { gap: 22px 18px; }
  .drink { width: 84px; }

  .item-desc { max-width: none; }
}

/* ------------------------------ Motion & print ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media print {
  .lang-switcher,
  .skip-link { display: none; }
  .item { break-inside: avoid; }
}
