/* ==========================================================
   Paşa Pizzeria demo — temporary visual identity
   Logical properties are used throughout so RTL (Arabic)
   works without a separate stylesheet.
   ========================================================== */

:root {
  --ember: #1b1210;
  --ember-2: #2a1b16;
  --ember-3: #3a2620;
  --tomato: #d2392b;
  --tomato-dark: #a82a1f;
  --saffron: #f0b13c;
  --basil: #2f6b3b;
  --wa: #1c9c52;
  --wa-dark: #157a3f;
  --stone: #f6f4f0;
  --paper: #ffffff;
  --ink: #241915;
  --muted: #6e615a;
  --line: #e4ded6;
  --on-dark: #fbf6ee;
  --on-dark-muted: #cdbbaa;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
  --radius: 14px;
}

html[lang="ar"] {
  --font-display: "Noto Sans Arabic", "Segoe UI", Tahoma, "Geeza Pro", "Droid Arabic Kufi", Arial, sans-serif;
  --font-body: "Noto Sans Arabic", "Segoe UI", Tahoma, "Geeza Pro", "Droid Arabic Kufi", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--saffron); color: var(--ember); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---------- Demo banner ---------- */
.demo-banner {
  background: var(--saffron); color: var(--ember);
  font-size: .85rem; line-height: 1.4; text-align: center; padding: 8px 16px; font-weight: 600;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(27, 18, 16, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner {
  width: min(1120px, 100% - 32px); margin-inline: auto; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-dark); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tomato); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  box-shadow: 0 0 0 3px var(--saffron) inset;
  flex: none;
}
.brand-name { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-weight: 700; font-size: 1.1rem; white-space: nowrap; }

.site-nav { display: flex; gap: 22px; }
.site-nav a {
  color: var(--on-dark-muted); text-decoration: none; font-size: .95rem; padding: 6px 0;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.site-nav a:hover { color: var(--on-dark); border-bottom-color: var(--saffron); }

.header-tools { display: flex; align-items: center; gap: 10px; }

.lang-switch { display: inline-flex; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--on-dark-muted); border: 0; padding: 7px 12px; min-width: 44px; min-height: 36px;
}
.lang-switch button[aria-pressed="true"] { background: var(--saffron); color: var(--ember); }
.lang-switch button:not([aria-pressed="true"]):hover { color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--on-dark); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent; min-height: 48px;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--tomato); color: #fff; }
.btn-primary:hover { background: var(--tomato-dark); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); padding: 9px 20px; min-height: 42px; font-size: .92rem; }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 60% 70% at 75% 50%, rgba(210, 57, 43, .28), transparent 70%),
    var(--ember);
  color: var(--on-dark);
  overflow: hidden;
}
.hero-inner {
  width: min(1120px, 100% - 40px); margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 24px;
  padding-block: 56px 64px; min-height: 600px;
}
.hero-names { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 18px; }
.hero-brand {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 700; font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: 1; letter-spacing: -.01em; color: var(--on-dark);
}
.hero-brand-ar {
  font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, "Geeza Pro", Arial, sans-serif;
  font-weight: 700; font-size: clamp(1.7rem, 3.8vw, 2.6rem); color: var(--saffron); line-height: 1.3;
}
.hero-headline { font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 500; color: var(--on-dark); margin-bottom: 14px; }
.hero-text { max-width: 52ch; color: var(--on-dark-muted); font-size: 1.05rem; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { display: grid; place-items: center; }
.hero-pizza {
  width: min(100%, 520px); aspect-ratio: 1; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45));
  animation: pizza-in 1.1s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes pizza-in {
  from { opacity: 0; transform: rotate(-28deg) scale(.86); }
  to { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: 72px; }
.section-tint { background: var(--stone); }
.section-dark { background: var(--ember); color: var(--on-dark); }
.section-head { margin-bottom: 32px; max-width: 70ch; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 8px; }
.section-note { color: var(--muted); font-size: .98rem; }
.section-dark .section-note { color: var(--on-dark-muted); }

/* ---------- Featured ---------- */
.featured-grid { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: repeat(3, auto); gap: 18px; }
.feature {
  display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; overflow: hidden;
}
.feature img { border-radius: 10px; aspect-ratio: 1 / 1; background: var(--ember-2); object-fit: cover; width: 100%; }
.feature h3 { font-size: 1.15rem; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.feature-lead {
  grid-row: 1 / span 3; grid-template-columns: 1fr; align-content: start; padding: 0; background: var(--ember); color: var(--on-dark); border-color: var(--ember);
}
.feature-lead img { border-radius: 0; aspect-ratio: 1 / 1; }
.feature-lead .feature-body { padding: 8px 24px 26px; }
.feature-lead h3 { font-size: 1.7rem; margin-bottom: 8px; }
.feature-lead p { color: var(--on-dark-muted); }
.feature-lead .btn-ghost { color: var(--on-dark); border-color: var(--on-dark); }
.feature-lead .btn-ghost:hover { background: var(--on-dark); color: var(--ember); }

/* ---------- Menu ---------- */
.filter-bar {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 14px;
  position: sticky; top: var(--header-h); z-index: 20;
  background: linear-gradient(var(--stone) 80%, rgba(246, 244, 240, 0));
  scrollbar-width: thin;
}
.chip {
  flex: none; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; min-height: 42px;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ember); color: var(--on-dark); border-color: var(--ember); }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s;
}
.card:hover { border-color: var(--tomato); }
.card img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; background: var(--ember-2); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card-cat { font-size: .8rem; font-weight: 600; color: var(--tomato-dark); }
.card h3 { font-size: 1.2rem; }
.card-desc { color: var(--muted); font-size: .93rem; }
.size-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.size-list li { font-size: .8rem; font-weight: 600; background: var(--stone); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.price-note { color: var(--muted); font-size: .85rem; font-style: italic; margin-top: auto; padding-top: 4px; }
.card .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-visual img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 14px; }
.about-copy p { color: var(--muted); max-width: 56ch; }
.about-meta { margin-top: 16px; font-weight: 600; color: var(--ink) !important; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item { position: relative; padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--radius); overflow: hidden; display: block; width: 100%; font: inherit; }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .4s; }
.gallery-item:first-child img { aspect-ratio: auto; min-height: 100%; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item span {
  position: absolute; inset-inline: 0; bottom: 0; padding: 28px 16px 12px; text-align: start; color: #fff; font-weight: 600; font-size: .95rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
}

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-slot { border: 2px dashed var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-height: 160px; }
.review-slot .stars { color: var(--line); letter-spacing: 3px; font-size: 1.2rem; }
.review-slot .slot-label { font-weight: 600; }
.review-slot .slot-text { color: var(--muted); font-size: .92rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-list { margin: 0 0 24px; display: grid; gap: 18px; }
.contact-list dt { font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.contact-list dd { margin: 0; font-size: 1.05rem; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hours-card h3 { font-size: 1.3rem; margin-bottom: 14px; }
.hours-list { list-style: none; margin: 0 0 14px; padding: 0; }
.hours-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.hours-list li:last-child { border-bottom: 0; }
.hours-list li.today { background: var(--stone); border-radius: 8px; font-weight: 700; border-bottom-color: transparent; }
.hours-note { font-size: .85rem; color: var(--muted); font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ember); color: var(--on-dark-muted); padding-block: 32px 96px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; align-items: center; }
.footer-brand { color: var(--on-dark); font-weight: 700; }
.footer-brand span { color: var(--saffron); margin-inline-start: 8px; }
.footer-note { font-size: .88rem; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); transition: background .2s;
}
.wa-float:hover { background: var(--wa-dark); }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; border-radius: 18px; max-width: min(560px, 100% - 24px); width: 100%; background: var(--paper); color: var(--ink); overflow: hidden; }
dialog::backdrop { background: rgba(10, 6, 5, .72); }
.dlg-close {
  position: absolute; inset-block-start: 10px; inset-inline-end: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.item-dialog img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--ember-2); }
.dlg-body { padding: 22px 24px 26px; display: grid; gap: 12px; }
.dlg-body h3 { font-size: 1.6rem; }
.allergen-note { font-size: .85rem; color: var(--muted); }
.lightbox { max-width: min(900px, 100% - 24px); background: var(--ember); color: var(--on-dark); }
.lightbox img { width: 100%; height: auto; max-height: 78vh; object-fit: contain; }
.lightbox p { padding: 12px 18px 16px; font-weight: 600; }

/* ---------- Arabic tuning ---------- */
html[dir="rtl"] body { line-height: 1.8; }
html[dir="rtl"] .hero-headline,
html[dir="rtl"] h2, html[dir="rtl"] h3 { line-height: 1.4; }
html[dir="rtl"] .brand-name,
html[dir="rtl"] .hero-brand { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
html[dir="rtl"] .hero-pizza { animation-name: pizza-in-rtl; }
@keyframes pizza-in-rtl {
  from { opacity: 0; transform: rotate(28deg) scale(.86); }
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .site-nav {
    position: absolute; inset-inline: 0; top: var(--header-h);
    flex-direction: column; gap: 0; background: var(--ember); border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding: 8px 20px 16px; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 36px 48px; min-height: 0; }
  .hero-visual { order: 2; }
  .hero-pizza { width: min(78%, 400px); }
  .featured-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .feature-lead { grid-row: auto; }
  .about-inner, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .section { padding-block: 52px; }
  .brand-name { font-size: 1rem; }
  .feature { grid-template-columns: 110px 1fr; gap: 12px; }
  .gallery-item:first-child { grid-column: span 2; grid-row: auto; }
  .gallery-item:first-child img { aspect-ratio: 4 / 3; min-height: 0; }
  .contact-card { padding: 22px; }
  .lang-switch button { padding: 7px 9px; min-width: 40px; }
  .menu-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-pizza { animation: none !important; }
  * { transition: none !important; }
}
