/* Beertime — site styles. Mobile first. Flat brand colours only (docs/facts.md §10): black, gold, red, cream. */
:root {
  --black: #000000;
  --white: #ffffff;
  --cream: #fff8ed;
  --cream-dim: #d6ccbe;
  --gold: #e79a24;
  --gold-hi: #f2b24e;
  --gold-light: #ffdfae; /* 4.7:1 on the red (WCAG AA needs 4.5; #ffd9a0 was 4.49) */
  --red: #be2529;
  --line: rgba(255, 248, 237, 0.16);
  --radius: 18px;
  --wrap: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--cream); font: 400 1.0625rem/1.6 var(--font); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 7.5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 6vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--black); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 6px; } /* always contrasts with its own background */
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; padding-top: env(safe-area-inset-top); color: var(--black); } /* sits on the white top */
.header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img:first-child { width: 40px; height: 40px; }
.brand-word { width: auto; height: 22px; }
.page-home .brand { visibility: hidden; } /* the hero shows the big logo */
.header-nav { display: flex; align-items: center; gap: 16px; }
.nav-link { font-weight: 600; text-decoration: none; white-space: nowrap; }
/* Greek "Σχετικά με εμάς" is long: on narrow phones the header keeps only the round logo (owner's wording, 2026-09-24) */
@media (max-width: 419px) { html[lang="el"] .brand-word { display: none; } }
.nav-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-nav .nav-book { display: none; } /* phones book from the bottom bar */
.lang-switch { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 999px; font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.lang-switch:hover { border-color: var(--black); }
@media (min-width: 768px) {
  .header-nav .nav-book { display: inline-flex; }
  .page-home .header-nav .nav-book { display: none; } /* the hero has the button */
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border: 2px solid transparent; border-radius: 999px; font-weight: 700; line-height: 1.1; text-decoration: none; transition: transform 0.15s ease, background-color 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-dark { background: var(--black); color: var(--cream); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }
.icon-end { margin-left: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 104px 0 88px; background: var(--white); color: var(--black); text-align: center; }
.hero-inner { position: relative; z-index: 1; }
/* outline drawings around the logo: 2 on phones, 4 on larger screens */
.deco { position: absolute; width: 46px; height: 46px; }
.deco-mug { top: 150px; left: 4%; color: var(--gold); transform: rotate(-12deg); }
.deco-hourglass { top: 260px; right: 4%; color: var(--red); transform: rotate(8deg); } /* phones: beer + hourglass (owner, 2026-09-24) */
.deco-popcorn, .deco-burger { display: none; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: min(58vw, 250px); height: auto; margin: 0 auto 28px; }
.eyebrow { margin-bottom: 12px; color: var(--red); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.hero h1.hero-brand { margin: 0 0 4px; line-height: 0; } /* the logo is the page heading */
.hero .hero-book { display: none; } /* phones book from the bottom bar */
@media (min-width: 768px) {
  .hero { padding: 128px 0 112px; }
  .deco { width: 88px; height: 88px; }
  .deco-mug { top: 22%; left: 9%; }
  .deco-popcorn { display: block; top: 28%; right: 9%; color: var(--red); transform: rotate(8deg); }
  .deco-hourglass { top: auto; right: auto; bottom: 14%; left: 15%; transform: rotate(10deg); }
  .deco-burger { display: block; bottom: 12%; right: 14%; color: var(--gold); transform: rotate(-8deg); }
  .hero .hero-book { display: inline-flex; }
}

/* ---------- colour bands ---------- */
.band { position: relative; overflow: hidden; padding: 72px 0 80px; }
.band > .wrap, .site-footer > .wrap { position: relative; z-index: 1; }
.band-white { background: var(--white); color: var(--black); }
.kicker-red { color: var(--red); }

/* small outline drawings scattered in sections (decorative; black on gold, cream on red, gold on black) */
.doodles { position: absolute; inset: 0; pointer-events: none; }
.dd { position: absolute; width: 44px; height: 44px; }
.band-gold .dd { color: rgba(0, 0, 0, 0.55); }
.band-red .dd { color: rgba(255, 248, 237, 0.6); }
.site-footer .dd { color: var(--gold); opacity: 0.8; }
.dd-gold-hop { right: 18px; bottom: 16px; transform: rotate(12deg); }
.dd-gold-bottle, .dd-gold-cheers { display: none; }
.dd-red-popcorn { right: 18px; bottom: 14px; transform: rotate(-8deg); }
.dd-red-cocktail, .dd-red-burger { display: none; }
.dd-footer-clock { right: 18px; top: 40px; transform: rotate(8deg); }
.dd-footer-hop { display: none; }
@media (min-width: 768px) {
  .dd { width: 72px; height: 72px; }
  .dd-gold-hop { right: auto; left: 3%; bottom: 22px; }
  .dd-gold-bottle { display: block; right: 4%; bottom: 26px; transform: rotate(-10deg); }
  .dd-gold-cheers { display: block; right: 30%; top: 36px; width: 60px; height: 60px; transform: rotate(6deg); }
  .dd-red-cocktail { display: block; left: 3%; bottom: 22px; transform: rotate(-10deg); }
  .dd-red-popcorn { right: 4%; bottom: 22px; }
  .dd-red-burger { display: block; left: 46%; bottom: 18px; width: 56px; height: 56px; transform: rotate(6deg); }
  .dd-footer-clock { right: 6%; top: 48px; width: 84px; height: 84px; }
  .dd-footer-hop { display: block; right: 16%; bottom: 36px; width: 56px; height: 56px; transform: rotate(-14deg); }
}
.kicker { margin-bottom: 8px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.band-gold { background: var(--gold); color: var(--black); }
.band-red { background: var(--red); color: var(--cream); }
.band-red .kicker { color: var(--gold-light); }
.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.band-head h2 { margin-bottom: 0; }
.band-head + .body-text { margin-top: 16px; }
.band-icon { width: 64px; height: 64px; flex: none; }
.mascot { order: -1; width: min(82vw, 320px); height: auto; margin: 0 auto 8px; }
.band-red .band-head { flex-direction: column; align-items: flex-start; }
@media (min-width: 768px) {
  .band-icon { width: 80px; height: 80px; }
  .band-red .band-head { flex-direction: row; align-items: flex-end; }
  .mascot { order: 0; width: 340px; margin: -40px 0 -12px; }
}

/* our beers */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0 10px; padding: 0; list-style: none; }
.stats li { padding: 14px 12px 12px; border: 2px solid var(--black); border-radius: var(--radius); }
.stats .stat-value { font-size: clamp(2rem, 9vw, 3.6rem); }
.stats .stat-label { font-size: 0.9rem; line-height: 1.3; }
/* the total: its own black bar, so it doesn't read as a 4th item (owner, 2026-09-24) */
.stat-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 28px; padding: 16px 20px; border-radius: var(--radius); background: var(--black); color: var(--cream); }
.stat-total .stat-value { color: var(--gold); }
.stat-total .stat-label { margin: 0; font-size: 1.2rem; }
.stat-value { display: block; font-family: var(--font-display); font-size: clamp(2.5rem, 10vw, 3.6rem); font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.stat-label { display: block; margin-top: 6px; font-weight: 700; }
.body-text { max-width: 62ch; font-size: 1.08rem; }
@media (min-width: 768px) { .stats { gap: 12px; } .stats li { padding: 16px 16px 14px; } .stats .stat-label { font-size: 1rem; } }

/* happy hours */
.offers { display: grid; gap: 14px; margin: 28px 0 22px; padding: 0; list-style: none; }
.offer { padding: 20px 20px 18px; border: 2px solid rgba(255, 248, 237, 0.55); border-radius: var(--radius); }
.offer-time { display: flex; flex-direction: column-reverse; gap: 2px; margin-bottom: 10px; font-family: var(--font-display); }
.offer-time span:first-child { color: var(--gold-light); font-size: 1.65rem; font-weight: 900; letter-spacing: -0.02em; }
.offer-days { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.offer h3 { margin-bottom: 0.35em; }
.offer p:last-child { margin: 0; }
.fine { margin: 0; font-size: 0.95rem; }
@media (min-width: 768px) { .offers { grid-template-columns: repeat(3, 1fr); } }

/* ---------- inner pages (About, Book a table, 404): white top ---------- */
.page-hero { position: relative; overflow: hidden; padding: 112px 0 56px; background: var(--white); color: var(--black); }
.page-hero-inner { position: relative; z-index: 1; } /* same left edge as the content below (was a narrower centred box) */
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 42ch; margin: 0; color: #3a3a3a; font-size: 1.15rem; }
.page-hero-compact { padding-bottom: 28px; }
.page-hero + .band-white { padding-top: 0; } /* white on white: no double gap (About) */
.page-hero .deco-a { top: 96px; right: 5%; width: 52px; height: 52px; color: var(--red); transform: rotate(8deg); }
.page-hero .deco-b { display: none; }
@media (min-width: 768px) {
  .page-hero { padding: 136px 0 72px; }
  .page-hero .deco-a { top: 110px; right: 12%; width: 96px; height: 96px; }
  .page-hero .deco-b { display: block; bottom: 18%; right: 26%; width: 72px; height: 72px; color: var(--gold); transform: rotate(-10deg); }
}
.nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* About */
.beer-list { display: grid; gap: 10px; max-width: 760px; margin: 20px 0 0; padding: 0; list-style: none; }
.beer-list li { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border: 2px solid var(--black); border-radius: 14px; }
.beer-list strong { font-family: var(--font-display); font-size: 1.2rem; }
@media (min-width: 768px) { .beer-list li { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 16px; } }
.subhead { margin-top: 36px; }

/* About: the place */
.place-list { display: grid; gap: 14px; max-width: 820px; margin: 28px 0 0; padding: 0; list-style: none; }
.place-list li { display: flex; align-items: center; gap: 16px; font-size: 1.08rem; }
.place-icon { width: 48px; height: 48px; flex: none; color: var(--red); }
.place-list li:nth-child(even) .place-icon { color: var(--gold); }
@media (min-width: 768px) { .place-list { grid-template-columns: 1fr 1fr; gap: 20px 40px; } }

/* Book a table */
.booking-section { padding: 0 0 88px; background: var(--white); color: var(--black); }
.booking { display: grid; gap: 30px; max-width: 640px; }
.booking fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.booking legend { margin-bottom: 12px; padding: 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; }
.choices { display: grid; gap: 8px; }
.choices-people { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
.choices-time { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 10px; border: 2px solid var(--black); border-radius: 999px; font-weight: 700; }
.choice-more { grid-column: span 2; }
.choice input:checked + span { background: var(--gold); }
.choice input:focus-visible + span { outline: 3px solid var(--black); outline-offset: 2px; }
.choice input:disabled + span { opacity: 0.25; text-decoration: line-through; }
.choice input:disabled { cursor: not-allowed; }
.field.more-people { display: none; margin-top: 14px; }
.choices-people:has(input[value="more"]:checked) + .field.more-people { display: grid; }
.details { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.booking input[type="text"], .booking input[type="email"], .booking input[type="tel"], .booking input[type="number"], .booking input[type="date"], .booking textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid var(--black); border-radius: 12px; background: var(--white); color: var(--black); font: inherit;
}
.booking textarea { min-height: 96px; resize: vertical; }
/* date field: iPhone Safari gives it a fixed native width that pushed it past the screen edge */
.booking input[type="date"] { display: block; min-width: 0; max-width: 100%; text-align: left; }
.booking input[type="date"]::-webkit-date-and-time-value { text-align: left; }
@supports (-webkit-touch-callout: none) { .booking input[type="date"] { -webkit-appearance: none; appearance: none; } }
.booking [aria-invalid="true"] { border-color: var(--red); }
.hint { margin: 0; color: #555; font-size: 0.92rem; }
.field-error { margin: 6px 0 0; color: var(--red); font-size: 0.95rem; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--red); color: var(--cream); font-weight: 600; }
.form-error a, .hint a { color: inherit; }
.btn-block { width: 100%; }
.notice { margin: -14px 0 0; color: #555; font-size: 0.92rem; }
.booked { max-width: 640px; padding: 8px 0 24px; text-align: center; }
.booked img { width: 200px; height: auto; margin: 0 auto 8px; }
.booked-text { font-size: 1.2rem; font-weight: 700; }
.page-reserve .action-bar { display: none; }
.page-result { background: var(--white); }
.page-result img { width: 200px; height: auto; margin-bottom: 8px; }
.page-reserve .site-footer { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }

/* 404 */
.nf-inner { display: grid; gap: 24px; align-items: center; }
.nf-mascot { width: 180px; height: auto; }
.nf-block + .nf-block { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(0, 0, 0, 0.12); }
.nf-block h2 { font-size: 1.6rem; }
.nf-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
@media (min-width: 768px) { .nf-inner { grid-template-columns: 240px 1fr; } .nf-mascot { width: 240px; } }

/* ---------- footer: "Find us" (the only place contact details appear) ---------- */
.site-footer { position: relative; overflow: hidden; padding: 64px 0 calc(104px + env(safe-area-inset-bottom)); background: var(--black); }
.facts { display: grid; gap: 22px; margin: 24px 0 40px; }
.facts div { display: grid; gap: 4px; }
.facts dt { color: var(--gold); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.facts dd { margin: 0; font-size: 1.08rem; }
.facts a { text-decoration-color: rgba(231, 154, 36, 0.7); text-underline-offset: 3px; }
.muted { color: var(--cream-dim); }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.95rem; font-weight: 600; text-decoration: none; }
.social .icon { color: var(--gold); }
.social a:hover { border-color: var(--gold); }
.social .icon { width: 22px; height: 22px; }
.social { max-width: 420px; }
.copyright { margin: 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--cream-dim); font-size: 0.9rem; }
@media (min-width: 768px) {
  .site-footer { padding-bottom: 40px; }
  .facts { grid-template-columns: auto auto auto minmax(0, 420px); justify-content: space-between; }
}

/* ---------- phones: bottom action bar ---------- */
.action-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 20; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--black); }
.action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border: 1px solid var(--line); border-radius: 14px; font-size: 0.8rem; font-weight: 700; text-decoration: none; }
.action-bar .icon { width: 22px; height: 22px; }
.action-bar .is-primary { flex-direction: row; gap: 8px; border-color: var(--gold); background: var(--gold); color: var(--black); font-size: 1rem; }
@media (min-width: 768px) { .action-bar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
