/* ==========================================================================
   SAM'S PIZZA -- shared stylesheet (all pages)
   Palette is sampled directly from the real logo (see images/logo/sams-logo.png).
   ========================================================================== */

:root {
  --orange: #f15c22;
  --orange-dark: #cf4715;
  --orange-darker: #a83a12;
  --amber: #f49f2f;
  --cream: #fff8e7;
  --white: #ffffff;
  --charcoal: #241811;
  --charcoal-soft: #3a2a1e;
  --text-muted: #6b5b4f;
  --border-soft: rgba(36, 24, 17, 0.12);
  --border-on-orange: rgba(255, 255, 255, 0.35);
  --success: #2e7d32;
  --error: #c62828;

  --shadow-card: 0 10px 30px rgba(36, 18, 6, 0.18);
  --shadow-soft: 0 4px 14px rgba(36, 18, 6, 0.10);

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --radius-pill: 999px;

  --container: 1120px;

  --font-body: "Noto Sans", "Noto Sans Georgian", "Noto Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: "Noto Sans", "Noto Sans Georgian", "Noto Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--orange);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

/* Bubble-letter brand voice from the logo/brand guide, for English only --
   Georgian and Arabic keep their proper script fonts (Baloo 2 has no
   Georgian/Arabic glyphs). */
:lang(en) h1, :lang(en) h2, :lang(en) .brand,
:lang(en) .kicker, :lang(en) .btn {
  font-family: "Baloo 2", var(--font-display);
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.4vw + 1rem, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

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

section { padding: 56px 0; }
@media (min-width: 800px) { section { padding: 88px 0; } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--charcoal);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 2px;
}
.on-orange a:focus-visible, .on-orange button:focus-visible {
  outline-color: var(--white);
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--cream);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--charcoal);
}
.brand img { height: 42px; width: auto; }

.main-nav {
  display: none;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--charcoal-soft);
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  background: var(--orange);
  color: var(--white);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  display: inline-flex;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--white);
}
.lang-toggle button {
  border: 0;
  background: transparent;
  padding: 7px 13px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--charcoal-soft);
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--charcoal);
  color: var(--white);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-soft);
  background: var(--white);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .header-actions { display: flex; }
  .nav-toggle { display: none; }
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--cream);
  border-top: 1px solid var(--border-soft);
  padding: 10px 20px 18px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 12px 4px;
  font-weight: 700;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border-soft);
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav .lang-toggle { align-self: flex-start; margin-top: 12px; }
@media (min-width: 900px) { .mobile-nav { display: none !important; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease, color 0.15s ease;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--charcoal);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover { background: #180f0a; }

.btn--white {
  background: var(--white);
  color: var(--orange-dark);
  box-shadow: var(--shadow-soft);
}
.btn--white:hover { background: var(--cream); }

.btn--outline-on-orange {
  background: transparent;
  color: var(--white);
  border-color: var(--border-on-orange);
}
.btn--outline-on-orange:hover { background: rgba(255,255,255,0.12); }

.btn--outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--border-soft);
}
.btn--outline:hover { background: var(--cream); }

.btn--block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- hero ---------- */
.hero {
  padding: 48px 0 64px;
  color: var(--white);
}
.hero__grid {
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { padding: 72px 0 96px; }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
}

.kicker {
  display: inline-block;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.on-orange .kicker--ghost {
  background: rgba(255,255,255,0.16);
  color: var(--white);
}

.hero h1 { color: var(--white); }
.hero__welcome { margin-bottom: 6px; }
.hero-logo {
  display: block;
  width: min(320px, 78%);
  height: auto;
  margin: 0 auto 20px;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25));
}
.hero__sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.94);
  max-width: 46ch;
}

.hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/3;
  background: var(--orange-darker);
}
.placeholder-img {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 12px, transparent 12px 24px),
    var(--orange-darker);
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}
.placeholder-img svg { width: 40px; height: 40px; opacity: 0.9; }
.placeholder-img--light {
  background:
    repeating-linear-gradient(45deg, rgba(36,24,17,0.05) 0 12px, transparent 12px 24px),
    var(--cream);
  color: var(--text-muted);
}

/* ---------- cards / surfaces ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
}
.card--cream { background: var(--cream); box-shadow: none; border: 1px solid var(--border-soft); }

.section-title {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.section-title .kicker { background: var(--cream); }

.grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 700px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 600px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }

/* quick-info row on home (hours / address / rating) */
.info-strip {
  display: grid;
  gap: 16px;
}
@media (min-width: 700px) { .info-strip { grid-template-columns: repeat(3, 1fr); } }
.info-tile {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.info-tile__label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 8px;
}
.info-tile__value { font-weight: 700; font-size: 1.05rem; }

.value-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

/* ---------- badges ---------- */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.badge--veg { background: #e4f3e6; color: #1e6b2e; }
.badge--vegan { background: #dcefe0; color: #16552a; }
.badge--rating { background: var(--amber); color: var(--charcoal); }

/* ---------- map ---------- */
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 0;
  width: 100%;
  height: 340px;
}

/* ---------- menu page ---------- */
/* ---------- menu: Wolt-style sidebar + photo grid ---------- */
.menu-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
@media (min-width: 900px) {
  .menu-layout { flex-direction: row; gap: 32px; }
}

.menu-sidebar {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 900px) {
  .menu-sidebar {
    flex-direction: column;
    width: 240px;
    flex: 0 0 240px;
    position: sticky;
    top: 88px;
    gap: 6px;
    overflow-x: visible;
  }
}
.menu-sidebar__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  white-space: nowrap;
  background: var(--white);
  color: var(--charcoal);
  border: 0;
  font-weight: 700;
  font-size: 0.92rem;
  font-family: inherit;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  flex-shrink: 0;
}
@media (min-width: 900px) {
  .menu-sidebar__btn { border-radius: var(--radius-md); white-space: normal; text-align: start; }
}
.menu-sidebar__btn:hover { background: var(--cream); }
.menu-sidebar__btn.is-active { background: var(--charcoal); color: var(--white); }
.menu-sidebar__count {
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0.6;
  background: rgba(36,24,17,0.08);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
}
.menu-sidebar__btn.is-active .menu-sidebar__count { background: rgba(255,255,255,0.18); opacity: 0.9; }

.menu-panel { flex: 1 1 auto; width: 100%; min-width: 0; scroll-margin-top: 90px; }
.menu-panel__header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}
.menu-panel__header h2 { color: var(--white); margin: 0; }
.menu-panel__count {
  color: rgba(255,255,255,0.75);
  font-weight: 700;
  font-size: 0.95rem;
}
.menu-panel__count::before { content: "\00b7 "; }
.menu-panel__count:empty::before { content: ""; }

.menu-empty {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 32px 24px;
  text-align: center;
  font-weight: 700;
  color: var(--text-muted);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 560px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .menu-grid { grid-template-columns: repeat(4, 1fr); } }

.food-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.food-card__photo { aspect-ratio: 4/3; background: var(--cream); }
.food-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.food-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  opacity: 0.55;
  background:
    repeating-linear-gradient(45deg, rgba(241,92,34,0.06) 0 10px, transparent 10px 20px),
    var(--cream);
}
.food-card__photo--placeholder svg { width: 34px; height: 34px; }
.food-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.food-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.food-card__name { font-weight: 800; font-size: 0.95rem; line-height: 1.25; }
.food-card__desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.food-card__price { margin-top: auto; padding-top: 6px; font-weight: 800; color: var(--orange-dark); font-size: 1rem; }
.food-card__combo {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange-dark);
  background: var(--cream);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  align-self: flex-start;
}
.food-card { cursor: pointer; }
.food-card:hover { box-shadow: var(--shadow-card); }
.food-card:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 2px; }

.food-card__sizes {
  margin-top: auto;
  padding-top: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
}
.food-card__size-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.78rem;
  padding: 3px 0;
  border-top: 1px dashed var(--border-soft);
}
.food-card__size-row span { color: var(--text-muted); font-weight: 600; }
.food-card__size-row b { color: var(--orange-dark); font-weight: 800; white-space: nowrap; }
.food-card__size-row--modal {
  grid-column: 1 / -1;
  font-size: 0.95rem;
  padding: 8px 0;
}

/* ---------- item detail modal ---------- */
body.modal-open { overflow: hidden; }
.item-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.item-modal.is-open { display: flex; }
.item-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 15, 10, 0.72);
}
.item-modal__dialog {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-card);
}
.item-modal__close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.92);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.item-modal__close svg { width: 18px; height: 18px; }
.item-modal__photo {
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.item-modal__body { padding: 22px 24px 26px; }
.item-modal__headrow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.item-modal__headrow h3 { margin: 0; }
.item-modal__desc {
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.92rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-soft);
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
  color: var(--charcoal);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--orange);
}
.field-row {
  display: grid;
  gap: 18px;
}
@media (min-width: 600px) { .field-row--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 600px) { .field-row--3 { grid-template-columns: 1fr 1fr 1fr; } }

.form-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: -6px;
}

.form-success {
  display: none;
  background: #eaf6ec;
  border: 1.5px solid #bfe3c4;
  color: #1e6b2e;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 18px;
}
.form-success.is-visible { display: block; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.82);
  padding: 48px 0 24px;
  margin-top: 40px;
}
.site-footer a:hover { color: var(--amber); }
.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 32px;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-brand img { height: 36px; width: auto; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col p, .footer-col li { font-size: 0.92rem; margin-bottom: 8px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.footer-social a:hover { background: var(--orange); color: var(--white); }
.social-icon { color: var(--orange); }
.social-icon svg { width: 19px; height: 19px; }
.social-icon:hover { color: var(--white); }
.footer-social--on-light a { background: var(--cream); color: var(--orange-dark); }
.footer-social--on-light a:hover { background: var(--orange); color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- misc pages ---------- */
.plain-hero {
  padding: 48px 0 36px;
  color: var(--white);
}
.plain-hero h1 { color: var(--white); margin-bottom: 6px; }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.on-white-section {
  background: var(--cream);
}

.notfound {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 60px 20px;
}
.notfound__code {
  font-size: 6rem;
  font-weight: 900;
  color: rgba(255,255,255,0.85);
  line-height: 1;
}

/* ---------- RTL (Arabic) ----------
   Flexbox/Grid already mirror automatically once <html dir="rtl"> is set.
   These are the few physical (left/right) properties that don't. */
[dir="rtl"] .skip-link { left: auto; right: 12px; }

[dir="rtl"] .field input,
[dir="rtl"] .field select,
[dir="rtl"] .field textarea {
  text-align: right;
}

[dir="rtl"] .menu-item__price { text-align: left; }

[dir="rtl"] .footer-bottom,
[dir="rtl"] .hero__sub,
[dir="rtl"] .prose {
  text-align: right;
}

[dir="rtl"] .section-title { text-align: center; }
