/* Self-hosted Fraunces (no external calls) */
/* vietnamese */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxCBTeO-U.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxCFTeO-U.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxC9TeA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxCBTeO-U.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxCFTeO-U.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxC9TeA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxCBTeO-U.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxCFTeO-U.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxC9TeA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Pesapaiga Pizza — minimalist artisan-Napoli info site
   Warm palette: tomato, cream, charcoal, basil accent. Mobile-first. */


:root {
  --tomato: #c2410c;
  --tomato-dark: #9a3412;
  --basil: #4d7c3a;
  --cream: #f9efe0;
  --cream-2: #f1e3cd;
  --ink: #2b2320;
  --ink-soft: #6b5f57;
  --maxw: 680px;
  --radius: 14px;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 100% at 50% -10%, #f8ead3 0%, #efddc0 78%);
  color: var(--ink);
  text-align: center;
  padding: 48px 24px 56px;
  border-bottom: 1px solid #e6d4b8;
}
.hero__inner { max-width: var(--maxw); margin: 0 auto; }
.hero__logo {
  display: block;
  width: min(330px, 82%);
  aspect-ratio: 1 / 1;
  margin: 0 auto 10px;
  background-image: url('/img/pesapaiga-pizza-logo-2026.png');
  background-image: image-set(url('/img/pesapaiga-pizza-logo-2026.webp') type('image/webp'), url('/img/pesapaiga-pizza-logo-2026.png') type('image/png'));
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  user-select: none;
  -webkit-user-select: none;
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 600;
  opacity: .85;
  margin: 0 0 14px;
}
.hero__title { margin: 0; }
.hero__tagline {
  font-size: clamp(1.05rem, 3.6vw, 1.25rem);
  color: var(--ink-soft);
  margin: 0 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: #fff;
  color: var(--tomato-dark);
  font-weight: 600;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.2); }
.btn--solid {
  background: var(--tomato);
  color: #fff;
  margin-top: 22px;
}

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section + .section { border-top: 1px solid var(--cream-2); }
.section--menu { background: var(--cream-2); border-top: none; border-bottom: none; }

h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  margin: 0 0 22px;
  color: var(--tomato-dark);
}
.section h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 12px;
  background: var(--tomato);
  border-radius: 2px;
}

.section--story p { font-size: 1.08rem; margin: 0 0 16px; }
.story__note { color: var(--ink-soft); font-style: italic; }

/* ---------- Menu ---------- */
.menu__intro { color: var(--ink-soft); margin: 0 0 26px; }
.menu { list-style: none; margin: 0 0 26px; padding: 0; }
.menu__item { padding: 16px 0; border-bottom: 1px dashed #d9c9b2; }
.menu__item:last-child { border-bottom: none; }
.menu__head {
  display: flex;
  align-items: baseline;
}
.menu__name { font-weight: 700; font-size: 1.12rem; display: flex; align-items: baseline; flex: 1; }
.menu__name::after {
  content: "";
  flex: 1;
  margin: 0 .55rem;
  border-bottom: 2px dotted #d8c4a4;
  transform: translateY(-.28rem);
}
.menu__price { font-weight: 700; font-size: 1.12rem; color: var(--tomato-dark); white-space: nowrap; flex: none; }
.menu__desc { margin: 4px 0 0; color: var(--ink-soft); }
.menu__extras {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0;
  font-size: .98rem;
}

/* ---------- Order steps ---------- */
.steps { margin: 0; padding-left: 1.2em; }
.steps li { margin: 0 0 14px; }
.order__note { color: var(--ink-soft); font-style: italic; margin: 4px 0 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 40px 24px;
}
.social { display: flex; gap: 18px; margin: 8px 0 0; }
.social a { color: var(--tomato-dark); display: inline-flex; transition: color .15s ease, transform .15s ease; }
.social a:hover { color: var(--tomato); transform: translateY(-1px); }
.social__icon { width: 28px; height: 28px; display: block; }

.footer__brand { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 6px; }
.footer__meta { margin: 0; opacity: .7; font-size: .9rem; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 620px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery__item { margin: 0; }
.gallery__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-image: var(--j);
  background-image: image-set(var(--w) type("image/webp"), var(--j) type("image/jpeg"));
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
  user-select: none;
  -webkit-user-select: none;
}
.gallery figcaption {
  margin-top: 8px;
  font-size: .9rem;
  color: var(--ink-soft);
  text-align: center;
}
.gallery__open { cursor: zoom-in; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(20,14,8,.92); }
.lightbox.is-open { display: flex; }
.lightbox__stage { width: 88vw; height: 82vh; max-width: 1200px; background-size: contain; background-position: center; background-repeat: no-repeat; }
.lightbox__close { position: absolute; top: 12px; right: 18px; font-size: 2.6rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; padding: 4px 10px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 3rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; padding: 8px 14px; opacity: .75; }
.lightbox__prev { left: 4px; }
.lightbox__next { right: 4px; }
.lightbox__nav:hover, .lightbox__close:hover { opacity: 1; }

/* ---------- Admin gallery manager ---------- */
.gallery-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.ga-ctrls { display: flex; gap: 6px; justify-content: center; margin-top: 6px; }
.ga-ctrls form { margin: 0; }
.ga-ctrls button { width: 34px; height: 34px; border: 1px solid #d9c9b2; background: #fff; border-radius: 8px; cursor: pointer; font-size: 1rem; line-height: 1; }
.ga-ctrls .ga-del { color: #b3261e; border-color: #e3b0aa; }

/* ---------- Order page ---------- */
.page-order { background: var(--cream-2); }

.topbar { background: var(--tomato-dark); }
.topbar__inner { display: flex; align-items: center; min-height: 56px; }
.topbar__brand {
  font-family: var(--serif);
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
}

.order-main { padding: 28px 24px 60px; }

.card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 8px 28px rgba(0,0,0,.06);
}
.card h1 { font-family: var(--serif); color: var(--tomato-dark); margin: 0 0 6px; font-size: clamp(1.6rem,5vw,2.1rem); }
.card--ok h1 { color: var(--basil); }

.order-date { font-weight: 700; margin: 0 0 6px; }
.muted { color: var(--ink-soft); }
.muted.small { font-size: .88rem; }

.avail {
  background: var(--cream-2);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 18px 0;
  font-size: 1.05rem;
}
.avail strong { color: var(--tomato-dark); font-size: 1.2rem; }

.form-h { font-family: var(--serif); font-size: 1.2rem; margin: 26px 0 12px; color: var(--ink); }

/* Pizza picker */
.picker { list-style: none; margin: 0; padding: 0; }
.picker__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed #d9c9b2;
}
.picker__info { display: flex; flex-direction: column; gap: 2px; }
.picker__name { font-weight: 700; }
.picker__desc { color: var(--ink-soft); font-size: .92rem; }
.picker__alg { color: var(--ink-soft); font-size: .78rem; font-style: italic; }

/* Stepper */
.stepper { display: flex; align-items: center; gap: 6px; flex: none; }
.stepper button {
  width: 38px; height: 38px;
  border: 1px solid var(--tomato);
  background: #fff;
  color: var(--tomato-dark);
  border-radius: 50%;
  font-size: 1.3rem; line-height: 1;
  cursor: pointer;
}
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper input {
  width: 42px; text-align: center;
  border: none; background: transparent;
  font-size: 1.1rem; font-weight: 700;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.total-line { font-size: 1.15rem; margin: 18px 0 4px; text-align: right; }
.total-line strong { color: var(--tomato-dark); }

.extras-note { background: #faf4ea; border: 1px solid #d9c9b2; border-radius: 12px; padding: 10px 14px; margin: 14px 0 4px; font-size: .95rem; }
.extras-note .small { display: inline-block; margin-top: 4px; }

/* Customer feedback quotes */
.quote { border-left: 4px solid var(--tomato); background: #faf4ea; border-radius: 0 10px 10px 0; padding: 10px 14px; margin: 12px 0; }
.quote blockquote { margin: 0; }
.quote figcaption { margin-top: 6px; font-size: .85rem; color: #8a7a63; }
.quote.is-hidden { display: none; }

/* ---------- Meie lugu ---------- */
.story-text { max-width: 700px; margin: 0 auto; }
.story-text::after { content: ""; display: block; clear: both; }
.story-text p { margin: 0 0 14px; line-height: 1.65; }
.story-photo { float: right; width: min(260px, 44%); height: auto; margin: 4px 0 12px 18px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }

/* ---------- Peod (catering) ---------- */
.peod-list { margin: 10px 0 0; padding-left: 22px; }
.peod-list li { margin: 0 0 8px; line-height: 1.55; }
.peod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 12px; }
.peod-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.story-sign { margin-top: 20px; text-align: right; font-weight: 700; color: var(--tomato-dark); }
.values { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.value-badge { background: #faf4ea; border: 1px solid #d9c9b2; border-radius: 999px; padding: 9px 18px; font-weight: 700; }
#quote-rotator .quote { max-width: 640px; margin-left: auto; margin-right: auto; }

/* Fields */
.field { display: block; margin: 0 0 16px; }
.field span { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d9c9b2;
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
.field textarea { resize: vertical; }

.btn--full { display: block; width: 100%; text-align: center; margin-top: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Alerts + confirmation recap */
.alert {
  background: #fde8e2;
  border: 1px solid #f0b8a8;
  color: var(--tomato-dark);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 14px 0;
}
.alert p { margin: 4px 0; }
.recap { list-style: none; margin: 16px 0; padding: 0; }
.recap li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed #d9c9b2; }
.recap__total { font-size: 1.1rem; margin: 12px 0 18px; }

/* ---------- Admin ---------- */
.topbar__inner { justify-content: space-between; }
.topbar__right a { color: #fff; opacity: .9; text-decoration: none; font-size: .9rem; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-head .btn, .admin-actions .btn { padding: 8px 16px; font-size: .9rem; box-shadow: none; }

.atable-wrap { overflow-x: auto; }
.atable { width: 100%; border-collapse: collapse; font-size: .92rem; }
.atable th, .atable td { text-align: left; padding: 9px 8px; border-bottom: 1px solid #e3d6c2; vertical-align: top; }
.atable th { color: var(--ink-soft); font-weight: 600; }

.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; vertical-align: middle; }
.pill--open { background: #e1f0d8; color: #3f7a2f; }
.pill--closed { background: #efe2d6; color: #8a6d52; }

.summary { background: var(--tomato); color: #fff; border-radius: var(--radius); padding: 18px 20px; margin: 8px 0 20px; }
.summary__big { display: flex; align-items: baseline; gap: 10px; }
.summary__big .num { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.summary__big .lbl { font-size: 1rem; opacity: .92; }
.summary__sub { margin-top: 8px; opacity: .92; font-size: .92rem; }

.tally { list-style: none; margin: 0 0 10px; padding: 0; }
.tally li { padding: 7px 0; border-bottom: 1px dashed #d9c9b2; font-size: 1.05rem; }
.tally__q { font-weight: 800; color: var(--tomato-dark); }

.menu-edit { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.menu-row { border: 1px solid #e3d6c2; border-radius: 10px; padding: 10px; display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.menu-row input { padding: 9px 11px; border: 1px solid #d9c9b2; border-radius: 8px; font: inherit; }
.field select { width: 100%; padding: 12px 14px; border: 1px solid #d9c9b2; border-radius: 10px; font: inherit; background: #fff; }
.link-danger { background: none; border: none; color: #b3261e; cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }

/* ---------- Image save deterrent (with site.js) ---------- */
img, .gallery__img, .lightbox__stage {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* ---------- Top navigation pills ---------- */
.topbar--sticky { position: sticky; top: 0; z-index: 60; box-shadow: 0 2px 10px rgba(0, 0, 0, .22); }
.topbar__inner--nav { justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; padding: 9px 0; }
.topnav { display: flex; flex-wrap: wrap; gap: 6px; }
.topnav__link {
  color: #fff;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  opacity: .92;
  white-space: nowrap;
}
.topnav__link:hover { background: rgba(255, 255, 255, .12); opacity: 1; }
.topnav__link--cta { background: var(--tomato); border-color: var(--tomato); opacity: 1; }
.topnav__link--here { background: rgba(255, 255, 255, .18); border-color: transparent; opacity: 1; }

/* ---------- Napoli page ---------- */
.napoli-check { margin: 10px 0 0; padding-left: 22px; }
.napoli-check li { margin: 0 0 8px; line-height: 1.55; }
.faq dt { font-weight: 700; margin-top: 14px; }
.faq dd { margin: 4px 0 0; line-height: 1.55; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
