/* === Helvetia Pizza Co. styles === */

:root {
  --bg: #f7f3ec;
  --surface: #ffffff;
  --ink: #1d1814;
  --ink-soft: #4a4138;
  --muted: #84766a;
  --border: #e6dcc9;
  --brand: #c1272d;        /* tomato red */
  --brand-dark: #9c1d23;
  --accent: #2f6a3a;       /* basil green */
  --gold: #d49b3d;
  --shadow: 0 4px 18px rgba(20, 12, 4, 0.08);
  --radius: 14px;
  --radius-lg: 22px;
  --transition: 0.2s ease;
  --max: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Outfit', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4 { font-family: 'Outfit', 'Fraunces', 'DM Serif Display', Georgia, serif; font-weight: 700; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.5vw, 40px); letter-spacing: -0.01em; }
h3 { font-size: 22px; }

p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* === Lang switch font fallback === */
[data-lang="ar"] body { font-family: 'Tajawal', 'Outfit', sans-serif; }

/* === Notice bar === */
.notice-bar {
  background: var(--ink);
  color: #f8efdf;
  font-size: 13px;
  padding: 10px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand);
  display: grid; place-items: center;
  color: white;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 22px;
  box-shadow: 0 2px 6px rgba(193,39,45,0.4);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: 'Fraunces', serif; font-weight: 700; font-size: 19px; }
.brand-loc { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--brand-dark); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}
.lang-switch button {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  border-right: 1px solid var(--border);
  letter-spacing: 0.02em;
}
.lang-switch button:last-child { border-right: none; }
.lang-switch button.is-active {
  background: var(--brand);
  color: white;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.cart-btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.cart-badge {
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  display: grid; place-items: center;
  padding: 0 6px;
}
.cart-badge[data-empty="true"] { opacity: 0; }

/* === Hero === */
.hero {
  background: var(--ink);
  color: #f8efdf;
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212, 155, 61, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 { color: #f8efdf; margin: 0 0 22px; }
.hero-sub { font-size: 17px; color: #cdbfa7; max-width: 540px; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); text-decoration: none; }
.btn-ghost { color: #f8efdf; border: 1px solid rgba(248,239,223,0.4); }
.btn-ghost:hover { background: rgba(248,239,223,0.1); text-decoration: none; }

.trust-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-chip {
  background: rgba(248,239,223,0.08);
  color: #cdbfa7;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(248,239,223,0.15);
}

.hero-photo {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* === Section heading === */
.section { padding: 80px 0; }
.section-head { margin-bottom: 40px; max-width: 720px; }
.section-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 10px;
}
.section-head p { color: var(--muted); margin-top: 8px; }

/* === Filter row === */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  font-size: 14px; font-weight: 500;
  background: var(--surface);
  color: var(--ink-soft);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.filter-btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.filter-btn.is-active { background: var(--ink); color: white; border-color: var(--ink); }

/* === Product grid === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(20, 12, 4, 0.12); }
.product-img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  background: #efe7d6;
}
.product-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-name { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700; color: var(--ink); margin: 0; }
.product-desc { color: var(--muted); font-size: 14px; flex: 1; margin: 0; }
.product-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px;
}
.product-price { font-size: 20px; font-weight: 700; color: var(--ink); }
.product-price-suffix { font-size: 13px; color: var(--muted); font-weight: 400; }
.product-chef { font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

.badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--gold);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.02em;
}
.badge[data-kind="Spicy"] { background: var(--brand); color: white; }
.badge[data-kind="Spicy"], [data-lang="de"] .badge[data-kind="Scharf"], [data-lang="fr"] .badge[data-kind="Épicée"], [data-lang="it"] .badge[data-kind="Piccante"], [data-lang="ar"] .badge[data-kind="حار"] { background: var(--brand); color: white; }
.badge[data-kind="Premium"] { background: var(--ink); color: var(--gold); }

.add-btn {
  margin-top: 12px;
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--transition), transform var(--transition);
  width: 100%;
}
.add-btn:hover { background: var(--brand); transform: translateY(-1px); }
.add-btn.is-added {
  background: var(--accent);
}

/* === About — three-step === */
.about-photo { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 26px;
  border: 1px solid var(--border);
}
.step-number {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  display: grid; place-items: center;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  margin-bottom: 18px;
}
.step h3 { margin: 0 0 8px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

.about-photo-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 32px;
}

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  cursor: pointer;
}
.faq-item summary {
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 24px; color: var(--brand); font-weight: 400; transition: transform var(--transition); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 16px 0 0; color: var(--muted); font-size: 15px; }

/* === Footer === */
.site-footer {
  background: var(--ink);
  color: #cdbfa7;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-headline { color: var(--gold); font-family: 'Fraunces', serif; font-weight: 700; font-size: 22px; margin: 0 0 8px; }
.footer-sub { font-size: 14px; }
.footer-heading { color: #f8efdf; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 16px; font-weight: 600; }
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-list a { color: #cdbfa7; font-size: 14px; }
.footer-list a:hover { color: var(--gold); }
.footer-form { display: flex; gap: 8px; margin-top: 16px; }
.footer-input {
  flex: 1;
  background: rgba(248,239,223,0.08);
  border: 1px solid rgba(248,239,223,0.2);
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
}
.footer-input::placeholder { color: #84766a; }
.footer-submit {
  background: var(--brand);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}
.footer-submit:hover { background: var(--brand-dark); }
.footer-bottom {
  border-top: 1px solid rgba(248,239,223,0.1);
  padding-top: 20px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px;
}

/* === Cart drawer === */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 12, 4, 0.5);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.drawer-overlay.is-open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 420px;
  max-width: 100%;
  background: var(--surface);
  z-index: 101;
  box-shadow: -8px 0 32px rgba(0,0,0,0.18);
  transform: translateX(110%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-header h3 { margin: 0; font-family: 'Fraunces', serif; }
.cart-close {
  background: var(--bg);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 18px;
  color: var(--ink-soft);
}
.cart-body { padding: 16px 24px; flex: 1; overflow-y: auto; }
.cart-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-row img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.cart-row-info { display: flex; flex-direction: column; gap: 2px; }
.cart-row-name { font-weight: 600; font-size: 14px; }
.cart-row-price { font-size: 13px; color: var(--muted); }
.cart-row-qty {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
  align-items: center;
}
.cart-qty-btn {
  width: 24px; height: 24px;
  font-size: 14px; font-weight: 700;
  color: var(--ink-soft);
}
.cart-qty-val { padding: 0 10px; font-size: 13px; font-weight: 600; min-width: 28px; text-align: center; }
.cart-row-remove {
  background: transparent; color: var(--muted);
  font-size: 12px; text-decoration: underline;
}
.cart-row-remove:hover { color: var(--brand-dark); }

.cart-empty-state {
  padding: 40px 0; text-align: center; color: var(--muted);
}

.cart-footer {
  border-top: 1px solid var(--border);
  padding: 18px 24px 24px;
  background: var(--bg);
}
.cart-line { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; color: var(--ink-soft); }
.cart-line.total { font-size: 17px; color: var(--ink); font-weight: 700; padding-top: 10px; }
.cart-shipping-note { font-size: 12px; color: var(--muted); padding: 4px 0 8px; }
.cart-shipping-note.is-free { color: var(--accent); font-weight: 600; }

.checkout-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  background: var(--brand);
  color: white;
  padding: 14px;
  border-radius: 10px;
  font-weight: 600; font-size: 15px;
  margin-top: 8px;
}
.checkout-btn:hover { background: var(--brand-dark); }

.link-btn {
  width: 100%;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  padding: 10px;
  margin-top: 4px;
  text-decoration: underline;
}
.link-btn:hover { color: var(--brand-dark); }

/* === PayPal button === */
.paypal-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  background: #FFC439;
  color: #003087;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  margin-top: 8px;
}
.paypal-checkout-btn:hover { background: #e6b030; transform: translateY(-1px); }

.paypal-divider {
  text-align: center;
  position: relative;
  margin: 12px 0 4px;
  color: var(--muted);
  font-size: 12px;
}
.paypal-divider::before, .paypal-divider::after {
  content: ''; position: absolute; top: 50%;
  width: 40%; height: 1px;
  background: var(--border);
}
.paypal-divider::before { left: 0; }
.paypal-divider::after  { right: 0; }
.paypal-divider span { background: var(--bg); padding: 0 10px; position: relative; z-index: 1; }

/* === Checkout modal === */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 12, 4, 0.6);
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.is-open { display: flex; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
}
.modal-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { margin: 0; }
.modal-close { background: var(--bg); width: 36px; height: 36px; border-radius: 50%; font-size: 18px; color: var(--ink-soft); }
.modal-body { padding: 24px 28px; }
.modal-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  background: var(--bg);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface);
}
.field textarea { resize: vertical; min-height: 80px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 8px 0 16px; }
.checkbox input { margin-top: 3px; }

.btn-submit {
  width: 100%;
  background: var(--ink);
  color: white;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  transition: background var(--transition);
}
.btn-submit:hover { background: var(--brand-dark); }

.success-state { display: none; padding: 28px; text-align: center; }
.success-state.is-visible { display: block; }
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: grid; place-items: center;
  margin: 0 auto 18px;
  font-size: 32px;
}
.success-state h3 { margin: 0 0 8px; }
.success-id {
  background: var(--bg);
  padding: 12px 16px;
  border-radius: 8px;
  font-family: 'Fraunces', serif;
  font-size: 20px; font-weight: 700;
  letter-spacing: 0.05em;
  margin: 16px 0;
  display: inline-block;
}

/* === Responsive === */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 16 / 11; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .about-photo-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}
@media (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .hero { padding: 40px 0 50px; }
  .header-actions .cart-btn span { display: none; }
  .field-row { grid-template-columns: 1fr; }
}
