/* Pizza Dvor — shared stylesheet */

:root {
  --red: oklch(48% 0.19 25);
  --red-dark: oklch(40% 0.19 25);
  --ink: oklch(22% 0.02 40);
  --ink-70: oklch(70% 0.01 70);
  --ink-75: oklch(75% 0.01 70);
  --ink-85: oklch(85% 0.01 70);
  --ink-92: oklch(92% 0.01 70);
  --bg: oklch(97% 0.015 75);
  --bg-alt: oklch(93% 0.02 70);
  --border: oklch(90% 0.02 60);
  --border-strong: oklch(85% 0.02 60);
  --border-soft: oklch(88% 0.02 60);
  --muted: oklch(45% 0.03 50);
  --muted-2: oklch(45% 0.05 55);
  --text-soft: oklch(30% 0.02 40);
  --text-soft-2: oklch(35% 0.02 40);
  --gold: oklch(78% 0.13 85);
  --gold-2: oklch(85% 0.13 85);
  --green-bg: oklch(93% 0.06 145);
  --green-text: oklch(30% 0.05 145);
  --green-btn: oklch(45% 0.09 145);
  --stripe-a: oklch(90% 0.03 50);
  --stripe-b: oklch(94% 0.02 60);
  --ph-text: oklch(45% 0.02 50);

  --font-heading: Georgia, 'Times New Roman', 'Noto Serif', serif;
  --font-body: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'Consolas', 'SFMono-Regular', Menlo, monospace;

  --maxw: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
::selection { background: oklch(85% 0.08 40); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

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

/* TOPBAR */
.topbar {
  background: var(--ink);
  color: var(--ink-92);
  font-size: 13px;
  padding: 6px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar-left { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar a { color: var(--ink-92); }

/* HEADER */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-row {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 20px;
  flex: none;
}
.brand-name { font-family: var(--font-heading); font-weight: 800; font-size: 24px; line-height: 1; }
.brand-tag { font-size: 11px; letter-spacing: 1.5px; color: var(--muted-2); text-transform: uppercase; }

.main-nav { display: flex; gap: 26px; align-items: center; }
.main-nav a { font-weight: 500; color: var(--ink); font-size: 15px; }
.main-nav a[aria-current="page"] { font-weight: 800; color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.cart-btn {
  position: relative; cursor: pointer; display: flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 30px; font-weight: 600;
  border: none; font-size: 14px;
}
.cart-count {
  background: #fff; color: var(--red); border-radius: 50%; width: 22px; height: 22px;
  display: none; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
}
.cart-count.show { display: flex; }
.mobile-toggle {
  cursor: pointer; font-size: 26px; display: none; background: none; border: none; color: var(--ink);
  line-height: 1; padding: 4px;
}
.mobile-nav {
  display: none; flex-direction: column; padding: 10px 20px 18px; gap: 14px;
  border-top: 1px solid var(--border-soft);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-weight: 500; color: var(--ink); font-size: 15px; }
.mobile-nav a[aria-current="page"] { font-weight: 800; color: var(--red); }

@media (max-width: 880px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
}

/* TOAST */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 14px 24px; border-radius: 10px; z-index: 100;
  font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

main { flex: 1; }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff; padding: 70px 20px;
}
.hero-grid {
  max-width: var(--maxw); margin: 0 auto; display: grid;
  grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.hero-eyebrow {
  display: inline-block; background: rgba(255,255,255,0.15); padding: 6px 16px; border-radius: 30px;
  font-size: 13px; font-weight: 600; letter-spacing: 1px; margin-bottom: 18px;
}
.hero h1 { font-family: var(--font-heading); font-size: 52px; line-height: 1.1; margin: 0 0 20px; font-weight: 800; }
.hero p { font-size: 18px; line-height: 1.6; opacity: .92; max-width: 520px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  border: none; padding: 16px 30px; border-radius: 30px; font-weight: 800; font-size: 16px;
  cursor: pointer; display: inline-block;
}
.btn-white { background: #fff; color: var(--red); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; padding: 14px 28px; font-weight: 700; }
.btn-red { background: var(--red); color: #fff; }
.btn-green { background: var(--green-btn); color: #fff; }

.hero-photo, .photo-box {
  aspect-ratio: 4/3; border-radius: 20px; overflow: hidden;
  background: repeating-linear-gradient(45deg, var(--stripe-a), var(--stripe-a) 10px, var(--stripe-b) 10px, var(--stripe-b) 20px);
}
.hero-photo img, .photo-box img { width: 100%; height: 100%; object-fit: cover; }

/* USPs */
.usp-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 20px;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
}
.usp { text-align: center; padding: 20px; }
.usp-icon { font-size: 34px; margin-bottom: 10px; }
.usp-title { font-weight: 700; margin-bottom: 6px; }
.usp-desc { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Promo banner */
.promo { background: var(--gold); padding: 22px 20px; }
.promo-row {
  max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.promo-text { font-weight: 800; font-size: 17px; }
.promo .btn { padding: 12px 22px; background: var(--ink); color: #fff; }

/* Section */
.section { max-width: var(--maxw); margin: 0 auto; padding: 50px 20px; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px;
  flex-wrap: wrap; gap: 10px;
}
.section-head h2 { font-family: var(--font-heading); font-size: 32px; margin: 0; }
.section-head a { font-weight: 700; }
h1, h2, h3 { font-family: var(--font-heading); }

/* Product grid / cards */
.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; height: 100%;
}
.product-photo { position: relative; aspect-ratio: 4/3; background: var(--stripe-a); overflow: hidden; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px;
}
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-name { font-weight: 700; font-size: 16px; font-family: var(--font-heading); }
.product-desc { font-size: 13px; color: var(--muted); line-height: 1.5; flex: 1; }
.product-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.product-price { font-weight: 800; font-size: 17px; color: var(--red); }
.add-btn {
  background: var(--red); color: #fff; border: none; padding: 9px 16px; border-radius: 24px;
  font-weight: 700; cursor: pointer; font-size: 13px;
}

/* Testimonials */
.testimonial-bg { background: var(--bg-alt); padding: 50px 20px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testimonial-card { background: #fff; border-radius: 16px; padding: 26px; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.stars { color: var(--gold); font-size: 18px; margin-bottom: 10px; }
.testimonial-text { font-style: italic; line-height: 1.6; margin-bottom: 16px; color: var(--text-soft); }
.testimonial-name { font-weight: 700; }

/* Two-col promo */
.split { max-width: var(--maxw); margin: 0 auto; padding: 50px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split p { line-height: 1.7; color: var(--text-soft-2); margin-bottom: 20px; }

/* Menu categories */
.cat-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.cat-tab {
  padding: 10px 20px; border-radius: 30px; border: 1px solid var(--border-strong);
  background: #fff; color: var(--ink); font-weight: 700; cursor: pointer; font-size: 14px;
}
.cat-tab.active { border: none; background: var(--red); color: #fff; }
.menu-grid { display: none; grid-template-columns: repeat(4,1fr); gap: 22px; }
.menu-grid.active { display: grid; }
.allergen-note {
  margin-top: 40px; background: var(--bg-alt); border-radius: 14px; padding: 22px 26px;
  font-size: 14px; color: var(--text-soft-2); line-height: 1.6;
}

/* Offers */
.offer-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 50px; }
.offer-card { background: var(--red); color: #fff; border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.offer-icon { font-size: 28px; }
.offer-title { font-family: var(--font-heading); font-weight: 700; font-size: 19px; }
.offer-desc { font-size: 14px; line-height: 1.5; opacity: .92; }
.offer-terms { font-size: 12px; opacity: .75; margin-top: auto; }

.news-list { display: flex; flex-direction: column; gap: 18px; }
.news-item {
  display: grid; grid-template-columns: 140px 1fr; gap: 20px; background: #fff;
  border: 1px solid var(--border); border-radius: 14px; padding: 20px; align-items: center;
}
.news-photo { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: var(--stripe-a); }
.news-photo img { width: 100%; height: 100%; object-fit: cover; }
.news-date { font-size: 12px; color: var(--red); font-weight: 700; margin-bottom: 4px; }
.news-title { font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.news-desc { font-size: 14px; color: var(--text-soft-2); line-height: 1.5; }

/* About */
.narrow { max-width: 1000px; margin: 0 auto; padding: 50px 20px 70px; }
.about-photo { aspect-ratio: 16/6; border-radius: 16px; overflow: hidden; background: var(--stripe-a); margin-bottom: 36px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo.tall { aspect-ratio: 4/3; }
.lead p { line-height: 1.8; font-size: 16px; margin-bottom: 20px; }
.timeline-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 40px; }
.timeline-card { background: var(--bg-alt); border-radius: 14px; padding: 22px; }
.timeline-year { font-family: var(--font-heading); font-weight: 800; font-size: 24px; color: var(--red); }
.timeline-title { font-weight: 700; margin: 8px 0 6px; }
.timeline-desc { font-size: 14px; color: var(--text-soft-2); line-height: 1.5; }
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.team-card { text-align: center; }
.team-photo { aspect-ratio: 1/1; border-radius: 50%; overflow: hidden; background: var(--stripe-a); margin: 0 auto 12px; width: 100%; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-weight: 700; }
.team-role { font-size: 13px; color: var(--muted); }

/* Delivery */
.medium { max-width: 900px; margin: 0 auto; padding: 50px 20px 70px; }
.medium p, .legal p { line-height: 1.7; color: var(--text-soft); }
.fee-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin: 20px 0 30px; }
.fee-card { background: var(--bg-alt); border-radius: 12px; padding: 18px; text-align: center; }
.fee-value { font-weight: 800; font-size: 20px; color: var(--red); }
.fee-label { font-size: 13px; margin-top: 6px; }
.legal-note { font-size: 13px; color: var(--muted); margin-top: 20px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-block p { line-height: 1.8; color: var(--text-soft); margin: 0 0 20px; }
.map-box { aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: var(--stripe-a); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; color: var(--ph-text); }
.map-box img { width: 100%; height: 100%; object-fit: cover; }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.contact-form h2 { margin: 0 0 16px; font-size: 22px; }
.form-col { display: flex; flex-direction: column; gap: 14px; }
.form-col input, .form-col textarea, .form-col select {
  padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 8px; font-size: 14px;
  font-family: inherit; width: 100%;
}
.form-col textarea { resize: vertical; }
.form-note { font-size: 12px; color: var(--muted); line-height: 1.5; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-msg { border-radius: 10px; padding: 14px 18px; font-weight: 600; margin-bottom: 20px; }
.form-msg.ok { background: var(--green-bg); color: var(--green-text); }
.form-msg.err { background: oklch(93% 0.06 25); color: oklch(35% 0.12 25); }

/* Cart */
.cart-empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.cart-empty .icon { font-size: 44px; margin-bottom: 10px; }
.order-success { background: var(--green-bg); border-radius: 16px; padding: 40px; text-align: center; }
.order-success .icon { font-size: 44px; margin-bottom: 10px; }
.order-success h2 { font-family: var(--font-heading); font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.order-success p { color: var(--green-text); line-height: 1.6; }
.cart-items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.cart-item {
  display: grid; grid-template-columns: 70px 1fr auto auto; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px;
}
.cart-item-photo { aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; background: var(--stripe-a); }
.cart-item-photo img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-weight: 700; }
.cart-item-price { font-size: 13px; color: var(--muted); }
.qty-controls { display: flex; align-items: center; gap: 10px; }
.qty-btn {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: #fff; cursor: pointer; font-weight: 700;
}
.cart-item-total { text-align: right; }
.cart-item-total .amount { font-weight: 800; margin-bottom: 6px; }
.remove-link { font-size: 12px; color: var(--red); cursor: pointer; }
.cart-summary { background: var(--bg-alt); border-radius: 16px; padding: 24px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 15px; }
.summary-hint { font-size: 13px; color: var(--green-btn); margin-bottom: 10px; }
.summary-total {
  display: flex; justify-content: space-between; font-weight: 800; font-size: 19px;
  border-top: 1px solid var(--border-strong); padding-top: 14px; margin-top: 6px;
}
.summary-note { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }
.checkout-form { margin-top: 30px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.checkout-form h2 { margin: 0 0 16px; font-size: 22px; }
.radio-row { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.radio-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; }

/* Legal pages */
.legal { max-width: 820px; margin: 0 auto; padding: 50px 20px 70px; line-height: 1.75; color: var(--text-soft); }
.legal h1 { font-size: 34px; margin: 0 0 24px; }
.legal p { margin: 0 0 16px; }
.legal .updated { font-size: 13px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: var(--ink-85); padding: 50px 20px 20px; margin-top: 0; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-brand { font-family: var(--font-heading); font-weight: 800; font-size: 22px; color: #fff; margin-bottom: 10px; }
.footer-desc { font-size: 14px; line-height: 1.7; color: var(--ink-70); }
.footer-col-title { font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-links a { color: var(--ink-75); }
.footer-contact { font-size: 14px; line-height: 1.8; color: var(--ink-75); }
.footer-bottom {
  max-width: var(--maxw); margin: 30px auto 0; border-top: 1px solid oklch(35% 0.02 40);
  padding-top: 18px; font-size: 12px; color: oklch(60% 0.01 70); display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--ink); color: #fff;
  padding: 16px 20px; z-index: 200; display: none; justify-content: center;
}
.cookie-banner.show { display: flex; }
.cookie-row {
  max-width: var(--maxw); width: 100%; display: flex; justify-content: space-between;
  align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookie-text { font-size: 13px; line-height: 1.5; max-width: 700px; }
.cookie-text a { color: var(--gold-2); }
.cookie-actions { display: flex; gap: 10px; }
.cookie-decline { background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; padding: 10px 18px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.cookie-accept { background: var(--red); border: none; color: #fff; padding: 10px 18px; border-radius: 8px; cursor: pointer; font-weight: 700; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff; padding: 10px 16px;
  z-index: 300; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: repeat(2,1fr); }
  .product-grid, .menu-grid { grid-template-columns: repeat(2,1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .timeline-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .fee-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 36px; }
  .product-grid, .menu-grid, .usp-grid { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; }
  .timeline-grid, .team-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 56px 1fr; grid-template-areas: "photo name" "photo qty" "photo total"; }
}
