/* ===========================
   Perusasetukset & muuttujat
   =========================== */

:root {
  --bg: #020617;
  --bg-alt: #0b1120;
  --card: #020617;
  --border-subtle: #1f2937;

  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.15);

  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.85);

  --max-width: 1120px;

  /* säädä tätä jos header on eri korkeuksinen */
  --header-height: 80px;
}

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

html,
body { margin: 0; padding: 0; }

body {
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827, #020617 55%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* Siirry sisältöön -linkki (näkyy vain fokusessa) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  background: #111827;
  color: #f9fafb;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  z-index: 100;
  text-decoration: none;
  font-size: 0.9rem;
}
.skip-link:focus { left: 1rem; }

/* ===========================
   Yleinen layout
   =========================== */

.section { padding: 4rem 1.5rem; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 2rem;
  text-align: left;
}

.section-header h2 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
  max-width: 600px;
  font-size: 0.98rem;
}

/* ===========================
   Navigaatio
   =========================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.75));
  border-bottom: 1px solid rgba(15, 23, 42, 0.85);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark {
  font-family: "Inconsolata", monospace;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.15), rgba(15, 23, 42, 0.95));
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.12), rgba(15, 23, 42, 0.95));
}

.brand-logo img { display: block; height: 60px; width: auto; }

.nav-right {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-right a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
}
.nav-right a:hover {
  background: rgba(15, 23, 42, 0.9);
  color: #fefce8;
  transform: translateY(-1px);
}

/* CTA-linkki navissa */
.nav-right a.nav-cta {
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(249, 115, 22, 0.6);
}

/* aktiivinen nav-linkki scrollatessa */
.nav-right a.is-active {
  background: rgba(15, 23, 42, 0.95);
  color: #fefce8;
}

/* Mobiilin valikkonappi (☰ Valikko / Sulje) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.35rem 0.85rem;
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid #4b5563;
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 0.85rem;
  cursor: pointer;
}
.nav-toggle-icon { font-size: 1.1rem; line-height: 1; }
.nav-toggle-label { font-size: 0.9rem; }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* kun valikko on auki, korostetaan nappia hieman */
body.nav-open .nav-toggle {
  background: #f97316;
  color: #0f172a;
  border-color: #fdba74;
}

/* ===========================
   HERO
   =========================== */

.hero { padding: 4.5rem 1.5rem 4rem; }

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  margin: 0 0 0.75rem;
}

.hero-sub {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
}

/* Hero-CTA rivin layout */
.hero-actions{
  margin-top: 1.5rem;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}

.hero-secondary-link { font-size: 0.95rem; text-decoration: underline; }

/* Hero-CTA nappi: vasempaan laitaan, ei keskelle */
.hero .btn-primary-wide { margin-left: 0; margin-right: 0; }

.hero-image-wrap { position: relative; }

.hero-main-img {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.9);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
}

.hero-main-img img { display: block; width: 100%; height: auto; }

.hero-floating-card {
  position: absolute;
  bottom: -1.2rem;
  left: 8%;
  right: 8%;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.9);
}

.status-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 0.25rem;
}

.status-text { font-size: 0.9rem; margin: 0; }

/* Linkki, joka näyttää napilta */
.hero-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.06);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-size:12px;
  line-height:1;
  transition:transform .12s ease, background .12s ease, border-color .12s ease;
}
.hero-pill:hover{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.35);
  transform:translateY(-1px);
}
.hero-pill:active{ transform:translateY(0); }
.hero-pill:focus-visible{
  outline:2px solid rgba(255,255,255,.65);
  outline-offset:3px;
}

.help-alt{
  font-size: 0.95rem;
  opacity: 0.85;
  margin-top: .5rem;
}
.help-alt a{
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,.35);
}
.help-alt a:hover{
  border-bottom-style: solid;
  opacity: 1;
}

/* ===========================
   LOUNAS
   =========================== */

.section-lounas {
  background: radial-gradient(circle at top, #020617, #020617 55%);
  border-top: 1px solid rgba(15, 23, 42, 0.8);
}

.section-header-lounas {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.lounas-text-block { flex: 1 1 0; max-width: 600px; }

/* uusi: lounas-listakuvan kontti, keskitys ja leveys hallintaan */
.lounas-static {
  margin-top: 1.75rem;
  display: flex;
  justify-content: flex-start;
}

.lounas-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  text-align: center;
  white-space: normal;
}

.lounas-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.lounas-header-text { flex: 1 1 0; }

.lounas-static-img {
  flex: 0 0 auto;
  max-width: 320px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(30, 64, 175, 0.7);
  box-shadow: var(--shadow-soft);
  background: radial-gradient(circle at top, rgba(30, 64, 175, 0.3), #020617);
}

.lounas-static-img img { display: block; width: 100%; height: auto; }

/* ===========================
   MENU
   =========================== */

.section-menu {
  background: #020617;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
}

.menu-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.menu-cats span {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.menu-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px){
  .menu-grid{ grid-template-columns: 1fr; }
}

/* menukategoria vastaa index.php:n rakennetta */
.menu-category {
  padding: 1.25rem 1.1rem;
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), #020617);
  border: 1px solid rgba(31, 41, 55, 0.95);
}

.menu-category h3 { margin: 0 0 0.4rem; font-size: 1.2rem; }

.menu-note {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* pieni lisähuomio (esim. "Katso kaikki pizzat") */
.menu-note-small {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.menu-list { list-style: none; margin: 0; padding: 0; }

.menu-list li {
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(31, 41, 55, 0.7);
}
.menu-list li:last-child { border-bottom: none; }

.item-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.item-name { font-weight: 600; }

.price { font-weight: 600; white-space: nowrap; }

.item-desc {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Pitsalisäke-lista (mahdollisesti käytössä muilla sivuilla) */
.pizza-extras {
  padding: 1.5rem 1.25rem;
  border-radius: 18px;
  border: 1px dashed rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top right, rgba(30, 64, 175, 0.25), #020617);
}

.pizza-extras h3 { margin: 0 0 0.55rem; }

.pizza-note {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pizza-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.78rem;
}

.pizza-tags span {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  background: rgba(15, 23, 42, 0.9);
}

/* Allergia-/erityisruokavalio-huomio */
.menu-allergy-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Lisätäyte-nappi: näyttää linkiltä */
.menu-toppings-trigger {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

/* ===========================
   MODALIT – yleinen taustascroll-lukko
   =========================== */

body.modal-open { overflow: hidden; }

/* Piilota mobiili-CTA kun modali on auki */
body.modal-open .mobile-cta-bar { display: none; }

/* ===========================
   Toppings modal (Yksi totuus)
   =========================== */

.toppings-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 55;
}

.toppings-modal.is-open { display: flex; }

.toppings-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* Dialog EI scrollaa, lista scrollaa */
.toppings-modal-dialog {
  position: relative;
  z-index: 1;

  width: min(520px, calc(100vw - 32px));
  max-height: min(80vh, 720px);

  margin: 64px auto;
  padding: 22px 22px 18px;

  border-radius: 18px;
  background: #020617;
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.9);
  color: #e5e7eb;

  overflow: hidden; /* tärkein: dialog ei ala scrollata */
}

.toppings-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.toppings-modal-close:hover { color: #e5e7eb; }

.toppings-modal-title {
  margin: 0 40px 6px 0;
  font-size: 1.2rem;
}

.toppings-intro {
  margin: 0 40px 14px 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

.toppings-list {
  list-style: none;
  padding: 0;
  margin: 0;

  max-height: calc(min(80vh, 720px) - 120px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;

  overscroll-behavior: contain;
  scrollbar-gutter: stable;

  /* Piilota scrollbar mutta pidä scrollaus */
  scrollbar-width: none;     /* Firefox */
  -ms-overflow-style: none;  /* vanha Edge/IE */
}
.toppings-list::-webkit-scrollbar { width: 0; height: 0; display: none; }

.topping-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.12);
}
.topping-row:last-child { border-bottom: none; }

.topping-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
}

.topping-price {
  flex: 0 0 auto;
  margin-left: 12px;
  white-space: nowrap;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.toppings-footer {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ===========================
   Tapahtumakuvan zoom-modali
   =========================== */

.event-image.js-event-zoom { cursor: zoom-in; }

.img-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.img-modal.is-open { display: block; }

.img-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(2px);
}

.img-modal-dialog {
  position: relative;
  max-width: min(1100px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  padding: 14px;
  border-radius: 18px;
  background: #0b1220;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
}

.img-modal-figure { margin: 0; }
.img-modal-figure img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 14px;
  display: block;
}

/* Piilota caption */
.img-modal-caption { display: none !important; }

.img-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(2,6,23,0.7);
  color: #e5e7eb;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.img-modal-close:hover { border-color: rgba(249,115,22,0.55); }

/* ===========================
   TAPAHTUMAT – 4 korttia (2x2)
   =========================== */

.section-events,
.section-tapahtumat {
  background: #020617;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
}

.section-events .section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.events-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.75rem;
}

.events-grid-narrow {
  max-width: 900px;
  margin: 0 auto;
}

/* Puhelin: 1 kortti / rivi */
@media (max-width: 767px) {
  .events-grid { grid-template-columns: 1fr; }
}

/* Tabletista ylöspäin: 2x2 */
@media (min-width: 768px) {
  .events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.event-card {
  background: var(--card, #020617);
  border-radius: 18px;
  border: 1px solid var(--border-subtle, #1f2937);
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1.25rem;
  row-gap: 0.4rem;
  align-items: flex-start;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
}

.event-image-wrap {
  grid-column: 1;
  grid-row: 1 / span 2;
  border-radius: 18px;
  overflow: hidden;
  max-width: 260px;
  border: 1px solid rgba(30, 64, 175, 0.7);
  box-shadow: var(--shadow-soft);
  background: radial-gradient(circle at top, rgba(30, 64, 175, 0.3), #020617);
}

.event-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.event-card:hover .event-image { transform: none; }

.event-title {
  grid-column: 2;
  margin: 0;
  font-size: 1.05rem;
}

.event-text {
  grid-column: 2;
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
  color: var(--text-soft, #9ca3af);
}

/* ===========================
   CATERING
   =========================== */

.section-catering {
  background: #020617;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
}

.catering-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: var(--shadow-soft);
  background: #020617;
}

.catering-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.catering-panel {
  background: #facc15;
  color: #0f172a;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.catering-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
}

.catering-panel p {
  margin: 0 0 0.75rem;
  color: #111827;
}

.catering-kicker {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn-primary {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #0f172a;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 16px 35px rgba(248, 113, 22, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(248, 113, 22, 0.6);
}

.catering-panel .btn-primary-wide { margin-top: 1.25rem; }

/* Catering: Alkaa/Loppuu allekkain */
.catering-time-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
}
.catering-row .catering-time-stack .field-group { margin: 0; }

/* ===========================
   MODALIT (catering + astiasto)
   =========================== */

.catering-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 8px;
  z-index: 120;
}

.catering-modal.is-open {
  display: flex;
}

.catering-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(4px);
}

.catering-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 16px));
  max-width: calc(100vw - 16px);
  margin: 0;
  padding: 1.25rem 1rem 1.5rem;
  border-radius: 24px;
  background: #020617;
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: var(--shadow-soft);
  box-sizing: border-box;
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.catering-modal-dialog h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  padding-right: 2rem;
}

.catering-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.catering-modal-close:hover {
  color: #e5e7eb;
}

#sbw_acb6wh {
  margin-top: 1rem;
}

.catering-form {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.catering-row,
.catering-time-stack,
.field-group {
  min-width: 0;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.field-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.catering-form input,
.catering-form textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(31, 41, 55, 0.95);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  color: var(--text-main);
  box-sizing: border-box;
}

.catering-form input:focus,
.catering-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.6);
}

.catering-form textarea {
  resize: vertical;
  min-height: 140px;
}

#cat-viesti {
  min-height: 140px;
  resize: vertical;
}

@media (min-width: 760px) {
  .catering-form {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .catering-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }

  .catering-time-stack {
    display: grid;
    gap: 16px;
  }

  .field-group-wide {
    grid-column: 1 / -1;
  }

  .btn-primary-wide,
  .form-consent {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .catering-modal-dialog {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    padding: 1.25rem 0.9rem 1.5rem;
    border-radius: 18px;
  }

  .catering-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .catering-time-stack {
    display: grid;
    gap: 16px;
  }
}

/* ===========================
   SIJAINTI
   =========================== */

.section-location {
  background: #020617;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
}

.location-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2rem;
}

.location-info h2 { margin-top: 0; }

.contact-block,
.hours-block,
.social-block { margin-bottom: 1.5rem; }

.contact-block p,
.hours-block p {
  margin: 0.1rem 0 0.5rem;
  font-size: 0.95rem;
}

.contact-block a,
.social-block a {
  color: #bfdbfe;
  text-decoration: none;
}
.contact-block a:hover,
.social-block a:hover { text-decoration: underline; }

.hours-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  font-size: 0.92rem;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.25rem 0;
  border-bottom: 1px dashed rgba(31, 41, 55, 0.7);
}

.hours-note { font-size: 0.85rem; color: var(--text-muted); }

.map-placeholder {
  border-radius: 20px;
  border: 1px dashed rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top, rgba(30, 64, 175, 0.25), #020617);
  height: 360px;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.map-placeholder iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Yksinkertainen kartta-iframe */
.map-embed { border: 0; display: block; }

/* ===========================
   Eväste-komponentti
   =========================== */

#cookie-fab {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
#cookie-fab-icon { font-size: 24px; }

.cookie-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1rem;
  max-width: 960px;
  width: calc(100% - 2rem);
  background: rgba(15, 23, 42, 0.97);
  border-radius: 16px;
  padding: 1rem 1.25rem 1.1rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
  color: #e5e7eb;
  font-size: 0.9rem;
  line-height: 1.4;
  z-index: 49;
  display: none;
}

.cookie-inner { display: flex; flex-direction: column; gap: 0.75rem; }
.cookie-title { margin: 0 0 0.3rem; font-size: 1rem; }
.cookie-banner p { margin: 0; }

.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.4rem;
}

.cookie-banner .cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  background: #020617;
  color: #e5e7eb;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.08s ease;
}
.cookie-banner .cookie-btn:focus-visible { outline: 3px solid #f97316; outline-offset: 2px; }

.cookie-banner .cookie-btn-primary {
  background: #f97316;
  border-color: #f97316;
  color: #111827;
}
.cookie-banner .cookie-btn-primary:hover {
  background: #fb923c;
  border-color: #fb923c;
  transform: translateY(-1px);
}

.cookie-banner .cookie-btn-secondary {
  background: transparent;
  border-color: #e5e7eb;
  color: #e5e7eb;
}
.cookie-banner .cookie-btn-secondary:hover {
  background: rgba(249, 250, 251, 0.08);
  border-color: #f97316;
  color: #fed7aa;
}

.cookie-banner .cookie-btn-ghost {
  background: rgba(15, 23, 42, 0.9);
  border-color: #4b5563;
  color: #e5e7eb;
}
.cookie-banner .cookie-btn-ghost:hover {
  background: #111827;
  border-color: #9ca3af;
}

/* Cookie modal */
#cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
}

.cookie-modal {
  max-width: 640px;
  width: 100%;
  margin: 1.5rem;
  background: #020617;
  border-radius: 18px;
  border: 1px solid #1f2937;
  padding: 1.5rem 1.75rem 1.4rem;
  color: #e5e7eb;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.9);
  position: relative;
}

.cookie-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.9rem;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.4rem;
  cursor: pointer;
}

.cookie-modal h2 { margin: 0 0 0.75rem; }

.cookie-modal p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-modal-section {
  border-top: 1px solid #1f2937;
  margin: 0 -1.75rem 1rem;
  padding-top: 0.85rem;
  padding-inline: 1.75rem;
}

.cookie-modal-section-header { margin-bottom: 0.7rem; }
.cookie-modal-section span { font-size: 0.85rem; }

.cookie-modal-section p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: #9ca3af;
}

.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.cookie-modal-actions .btn-primary {
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
}

/* ===========================
   MEISTÄ + GALLERIA
   =========================== */

.section-about {
  background: radial-gradient(circle at top, #020617, #020617 60%);
  border-top: 1px solid rgba(15, 23, 42, 0.9);
}

.about-text-block {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

/* ”Kenelle Pub Lättähattu sopii?” -boksi */
.about-highlight {
  max-width: 720px;
  margin-bottom: 2.5rem;
  padding: 1.3rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(55, 65, 81, 0.95);
  background: radial-gradient(circle at top left, var(--accent-soft), #020617);
}

.about-highlight h3 { margin: 0 0 0.4rem; font-size: 1.3rem; }

.about-highlight p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.about-gallery-block h3 { margin: 0 0 0.5rem; font-size: 1.6rem; }
.about-gallery-block .section-sub { max-width: 620px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery-item {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.9);
  aspect-ratio: 4 / 3;
}

.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ===========================
   FOOTER
   =========================== */

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  padding: 1.75rem 1.5rem 2rem;
  background: #020617;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-main { margin: 0 0 0.25rem; font-size: 0.9rem; }

.footer-sub { margin: 0; font-size: 0.8rem; color: var(--text-muted); }

/* ===========================
   Vastaussivun kortti (laheta-catering.php)
   =========================== */

.feedback-card {
  max-width: 620px;
  margin: 3rem auto 0;
  padding: 2rem 2.25rem 2.25rem;
  border-radius: 22px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), #020617);
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: var(--shadow-soft);
}

.feedback-card h1 { margin: 0 0 0.75rem; font-size: 1.6rem; }

.feedback-card p { margin: 0 0 0.75rem; color: var(--text-muted); }

.feedback-actions { margin-top: 1.25rem; }
.feedback-actions .btn-primary { margin-top: 0; }
.feedback-error h1 { color: #f97316; }

.btn-primary-wide {
  width: 180px;
  text-align: center;
  display: block;
  margin: 1.2rem auto 0;
}

.form-consent {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.form-consent a {
  color: #bfdbfe;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-consent a:hover { text-decoration: none; }

/* Honeypot-kenttä piiloon ihmisiltä */
.hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===========================
   Astiastot – admin/brief ym.
   =========================== */

.astiastot-layout {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .astiastot-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  }
}

.astiastot-form .form-group { margin-bottom: 1rem; }

.astiastot-form label { display: block; margin-bottom: 0.25rem; }

.astiastot-form input,
.astiastot-form textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #1f2937;
  background: #020617;
  color: #f9fafb;
}

.astiastot-form select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #1f2937;
  background: #020617;
  color: #f9fafb;
  font-size: 0.95rem;
}

.astia-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: #020617;
}

.astia-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.set-booking { font-size: 0.85rem; margin-top: 0.35rem; }
.set-booking--free { color: #bbf7d0; }
.set-booking--busy { color: #fdba74; }

/* ===========================
   Pienet lisäkomponentit
   =========================== */

.hero-image img {
  display: block;
  max-width: 220px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Avoinna / suljettu -badge */
.open-badge {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}
.open-badge.is-open {
  background: #16a34a;
  color: #f9fafb;
  border: 1px solid rgba(0,200,120,.35);
}
.open-badge.is-closed {
  background: #6b7280;
  color: #f9fafb;
  border: 1px solid rgba(255,80,80,.35);
}

/* ===========================
   Mobiilin alareunan CTA-bar
   =========================== */

.mobile-cta-bar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.98);
  border-top: 1px solid #1f2937;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-cta-bar a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(520px, 100%);
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #0f172a;
  border: 0;
  box-shadow: 0 16px 35px rgba(248, 113, 22, 0.35);
  -webkit-tap-highlight-color: transparent;
}

.mobile-cta-bar a:active { transform: translateY(1px); }

/* Estä CTA-baria peittämästä sisältöä */
@media (max-width: 767px){
  body{ padding-bottom: calc(70px + env(safe-area-inset-bottom)); }

/* Evästebanneri aina mobiili-CTA:n yläpuolelle (mobiilissa) */
.cookie-banner{
  z-index: 120; /* > 80 */
  bottom: calc(1rem + 70px + env(safe-area-inset-bottom));
}
/* Varmuuden vuoksi myös fab-banneri (vaikka piilotat sen mobiilissa) */
#cookie-fab{ z-index: 121; }
}

/* ===========================
   Responsiivisuus
   =========================== */

@media (max-width: 960px) {
  .hero-inner,
  .menu-grid,
  .location-inner { grid-template-columns: minmax(0, 1fr); }

  .hero { padding-top: 3.5rem; }
  .hero-image-wrap { order: -1; }

  .hero-floating-card {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 0.75rem;
  }

  .menu-grid { gap: 1.25rem; }
  .nav-right { justify-content: flex-end; }

  .lounas-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .lounas-static-img {
    max-width: 420px;
    width: 100%;
    margin-top: 1.5rem;
  }

  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .catering-panel { padding: 2.25rem 1.75rem 2.5rem; }

  .catering-layout { grid-template-columns: minmax(0, 1fr); }
}

/* Desktopilla mobiili-CTA piiloon */
@media (min-width: 768px) {
  .mobile-cta-bar { display: none; }
}

/* Mobiilin hamburger-nav: max 768px */
@media (max-width: 768px) {
  .nav-inner {
    padding: 0.6rem 1rem;
    align-items: center;
    justify-content: space-between;
  }

  .nav-toggle { display: flex; }

  .nav-right {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    background: rgba(15, 23, 42, 0.98);
    padding: 0.75rem 1.25rem 1rem;
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    border-bottom: 1px solid rgba(31, 41, 55, 0.95);
    z-index: 40;
  }

  body.nav-open .nav-right { display: flex; }

  .nav-right a { padding: 0.45rem 0; flex-wrap: nowrap; }

  /* Piilotetaan cookie-fab mobiilissa */
  #cookie-fab { display: none; }
}

@media (max-width: 640px) {
  .about-text-block { margin-bottom: 2rem; }
  .hero-inner { gap: 2rem; }
  .section { padding: 3rem 1rem; }

  .menu-category,
  .pizza-extras { padding: 1rem 0.9rem; }

  .gallery-grid { grid-template-columns: minmax(0, 1fr); }

  .btn-primary-wide { width: 100%; }

  /* Mobiilissa catering-modal overlay scrollaa ja lomake täyttää näytön */
  .catering-modal {
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .catering-modal-dialog {
    margin: 0;
    padding: 1.5rem 1.25rem 2rem;
    height: auto;
    max-height: none;
    min-height: 100vh;
    box-sizing: border-box;
  }

  #sbw_acb6wh iframe {
    width: 100% !important;
    height: 1000px !important;
    display: block;
  }

  /* Mobiilissa tapahtumakortti pinoutuu */
  .event-card { grid-template-columns: minmax(0, 1fr); }

  .event-image-wrap {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0.75rem;
    max-width: 260px;
  }

  .event-title,
  .event-text { grid-column: 1; }
}

/* ===========================
   Liikettä vähentävät asetukset
   =========================== */

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Ankkurit: huomioi sticky-headerin korkeus */
section[id],
h2[id],
div[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

/* bonus: pehmeä rullaus */
html { scroll-behavior: smooth; }

/* Yleiset pienet huomio-tekstit */
.note {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #e5e7eb;
}
.note-small { font-size: 0.9rem; opacity: 0.9; }

/* ===========================
   Yleinen takaisin-linkki
   =========================== */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: #e5e7eb;
  opacity: 0.85;
}
.back-link span:first-child { font-size: 1.1rem; }
.back-link:hover { opacity: 1; text-decoration: underline; }

/* ===========================
   Flatpickr pikkuviilaukset
   =========================== */

.flatpickr-calendar { border-radius: 16px; overflow: hidden; }

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #f97316;
  border-color: #f97316;
}

/* Poikkeuslista */
.exceptions-block { margin-top: 12px; }
.exceptions-title { margin: 0 0 6px; font-size: 1.05rem; }
.exceptions-list { margin: 0; padding-left: 1.1rem; }
.exceptions-list li { margin: 4px 0; }

/* Mobiili: pidä " • Joulupäivä / Tapaninpäivä" samalla rivillä.
   Koska se on *tekstiä* (ei oma span), järkevin CSS-keino on estää rivinvaihto ja
   sallia tarvittaessa kevyt sivuttaisscroll. */
@media (max-width: 520px){
  .exceptions-list li{
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  .exceptions-list li::-webkit-scrollbar{ width: 0; height: 0; display: none; }
}

/* Apu: ruudunlukijalle */
.visually-hidden {
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* =====================================================
   ASTIAT – scopetettu (vaihe 1–3 yhdistetty, ei tuplia)
   ===================================================== */

body.astiat-page {
  background: radial-gradient(circle at top, #020617, #020617 60%);
}

/* Sivun runko */
body.astiat-page .wrap {
  max-width: var(--max-width);
  margin: 2.5rem auto 2.5rem;
  padding: 0 1.5rem 3rem;
}

/* Takaisin-linkki */
body.astiat-page .feedback-actions { margin-bottom: 1.25rem; }

body.astiat-page .feedback-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(55,65,81,0.9);
  color: #e5e7eb;
}

/* Otsikko */
body.astiat-page h1 { margin: 0 0 1.75rem; font-size: 2rem; }
body.astiat-page p { color: var(--text-muted); line-height: 1.6; }

/* Grid: listaus */
body.astiat-page .sets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

body.astiat-page .set-card { text-decoration: none; color: inherit; }

body.astiat-page .set-card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(15,23,42,0.95), #020617);
  border: 1px solid rgba(31,41,55,0.95);
  box-shadow: 0 18px 30px rgba(15,23,42,0.85);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.astiat-page .set-card:hover .set-card-inner {
  transform: translateY(-2px);
  border-color: rgba(249,115,22,.6);
  box-shadow: 0 22px 40px rgba(15,23,42,.95);
}

body.astiat-page .set-image-wrapper {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(30,64,175,.7);
}

body.astiat-page .set-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

body.astiat-page .set-name { font-weight: 700; font-size: 1.05rem; }
body.astiat-page .set-capacity { font-size: 0.9rem; color: #9ca3af; margin-bottom: .3rem; }
body.astiat-page .set-description { font-size: .88rem; color: #6b7280; margin-bottom: .4rem; }

/* Varaustila */
body.astiat-page .set-booking { font-size: .85rem; margin-top: .25rem; }
body.astiat-page .set-booking--free { color: #bbf7d0; }
body.astiat-page .set-booking--busy { color: #fdba74; }

/* Footer */
body.astiat-page .set-footer {
  margin-top: auto;
  padding-top: .85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .86rem;
  border-top: 1px dashed rgba(55,65,81,.9);
  color: #9ca3af;
}
body.astiat-page .set-cta { font-weight: 600; color: #fed7aa; }

/* Yksittäisen setin sivu: yhteenveto + grid */
body.astiat-page .set-summary {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1.4fr);
  gap: 1.5rem;
  align-items: flex-start;
  margin: 2rem 0 2.5rem;
}

body.astiat-page .set-summary img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: var(--shadow-soft);
  background: #020617;
}

body.astiat-page .set-main { display: flex; flex-direction: column; gap: 0.35rem; }

body.astiat-page .set-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
}

body.astiat-page .grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: flex-start;
  margin-top: 2rem;
}

body.astiat-page .selected-info { margin: 1rem 0 0.4rem; font-size: 0.95rem; color: var(--text-main); }
body.astiat-page .note-small { color: var(--text-muted); }

/* Jatka-nappi */
body.astiat-page #next-btn {
  margin-top: 0.75rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #0f172a;
  box-shadow: 0 16px 35px rgba(248, 113, 22, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
body.astiat-page #next-btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
body.astiat-page #next-btn:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 20px 40px rgba(248, 113, 22, 0.6); }

/* Kalenteri-kortti */
body.astiat-page .calendar {
  margin-top: 0.75rem;
  padding: 1.2rem 1.25rem 1.3rem;
  border-radius: 18px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.25), #020617);
  box-shadow: var(--shadow-soft);
  max-width: 420px;
}

body.astiat-page .cal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
body.astiat-page .cal-title { font-weight: 600; font-size: 1rem; color: var(--text-main); }

body.astiat-page .cal-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  font-size: 0.9rem;
}
body.astiat-page .cal-nav a:hover { background: rgba(15, 23, 42, 0.9); }

body.astiat-page .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
  font-size: 0.82rem;
}

body.astiat-page .cal-day-name {
  text-align: center;
  font-weight: 600;
  color: var(--text-muted);
  padding-bottom: 0.35rem;
}

body.astiat-page .cal-day {
  text-align: center;
  padding: 0.45rem 0.1rem;
  border-radius: 10px;
  border: 1px solid rgba(31, 41, 55, 0.7);
  min-height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

body.astiat-page .cal-day-empty { border: none; background: transparent; }
body.astiat-page .cal-day-past { opacity: 0.3; }
body.astiat-page .cal-day-pending { background: rgba(250, 204, 21, 0.18); border-color: rgba(250, 204, 21, 0.7); }
body.astiat-page .cal-day-booked { background: rgba(248, 113, 113, 0.18); border-color: rgba(248, 113, 113, 0.8); }
body.astiat-page .cal-day-selectable { cursor: pointer; background: rgba(15, 23, 42, 0.75); }
body.astiat-page .cal-day-selectable:hover { border-color: rgba(249, 115, 22, 0.8); }
body.astiat-page .cal-day-selected { background: rgba(249, 115, 22, 0.9); border-color: rgba(251, 191, 36, 0.9); color: #0f172a; font-weight: 600; }

body.astiat-page .calendar-legend { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.6rem; }
body.astiat-page .calendar-legend .legend-pending { color: #facc15; }
body.astiat-page .calendar-legend .legend-confirmed { color: #f87171; }

body.astiat-page .step-back-link { margin-top: 1rem; font-size: 0.85rem; color: var(--text-muted); }
body.astiat-page .step-back-link a { color: #bfdbfe; text-decoration: underline; }
body.astiat-page .step-back-link a:hover { text-decoration: none; }

/* Summary + virhesivu */
body.astiat-page .summary {
  margin: 1.75rem 0 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.22), #020617);
  max-width: 720px;
}

body.astiat-page .summary-title {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--text-main);
}

body.astiat-page .status-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid #f97316;
  color: #f97316;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

body.astiat-page .btn-row {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

body.astiat-page .btn-link { text-decoration: none; font-size: 0.95rem; }

body.astiat-page .btn,
body.astiat-page .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  color: #e5e7eb;
}
body.astiat-page .btn {
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.95);
}
body.astiat-page .btn-ghost {
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: transparent;
}
body.astiat-page .btn:hover,
body.astiat-page .btn-ghost:hover { background: rgba(15, 23, 42, 0.9); }

body.astiat-page .reservation-form {
  margin-top: 1.5rem;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

body.astiat-page .reservation-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

body.astiat-page .reservation-form label {
  font-size: 0.86rem;
  color: var(--text-muted);
}

body.astiat-page .reservation-form input,
body.astiat-page .reservation-form textarea {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(31, 41, 55, 0.95);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font: inherit;
  color: var(--text-main);
}

body.astiat-page .reservation-form input:focus,
body.astiat-page .reservation-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.6);
}

body.astiat-page .reservation-form textarea { min-height: 180px; resize: vertical; }

body.astiat-page .reservation-form .btn-primary { align-self: flex-start; }

@media (max-width: 900px) {
  body.astiat-page .grid { grid-template-columns: minmax(0, 1fr); }
  body.astiat-page .calendar { max-width: 100%; }
}

@media (max-width: 640px) {
  body.astiat-page .set-summary { grid-template-columns: minmax(0, 1fr); }
  body.astiat-page .set-summary img { max-width: 260px; margin: 0 auto; }

  body.astiat-page .reservation-form .btn-primary { width: 100%; text-align: center; }
  body.astiat-page .btn-row { flex-direction: column; align-items: flex-start; }
}

body.astiat-page .feedback-actions .btn-primary{ box-shadow: none; }
#cookie-fab.is-hidden { display: none !important; }


@media (max-width: 420px) {
  .opening-hours li { font-size: 0.98rem; }
}
.exceptions-note{
  white-space: nowrap;
  margin-left: .35rem;
}
.lounas-zoom {
  background: none;
  border: 0;
  padding: 0;
  cursor: zoom-in;
}

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

/* Modal */
.lounas-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;

  /* Keskitys */
  align-items: center;
  justify-content: center;
}

.lounas-modal[aria-hidden="false"] {
  display: flex;
}

.lounas-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}

.lounas-modal-dialog {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  margin: 0;
  z-index: 2;
}

.lounas-modal-dialog img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  border-radius: 8px;
}

/* Sulkunappi kuvan SISÄLLÄ */
.lounas-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;

  background: rgba(0,0,0,0.6);
  border: 0;
  color: #fff;

  width: 40px;
  height: 40px;
  border-radius: 50%;

  font-size: 26px;
  line-height: 1;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

.lounas-modal-close:hover {
  background: rgba(0,0,0,0.85);
}
