/* ===== فلافل كوفية القدس — الألوان والأساسيات ===== */
:root {
  --cream: #F8F2E9;
  --cream-2: #EFE4D3;
  --paper: #FFFBF5;
  --brown: #4A2B23;
  --brown-2: #6B4436;
  --caramel: #C4935F;
  --caramel-d: #A87645;
  --line: #E6D7C2;
  --muted: #7A6156;
  --radius: 22px;
  --shadow: 0 2px 6px rgba(74, 43, 35, .06), 0 14px 34px rgba(74, 43, 35, .08);
  --header-h: 76px;
  --kufiya: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M0 0L44 44M44 0L0 44' stroke='%234A2B23' stroke-opacity='.07' stroke-width='1.2'/%3E%3Cg fill='%234A2B23' fill-opacity='.09'%3E%3Cellipse cx='11' cy='11' rx='2.3' ry='5' transform='rotate(-45 11 11)'/%3E%3Cellipse cx='33' cy='33' rx='2.3' ry='5' transform='rotate(-45 33 33)'/%3E%3Cellipse cx='33' cy='11' rx='2.3' ry='5' transform='rotate(45 33 11)'/%3E%3Cellipse cx='11' cy='33' rx='2.3' ry='5' transform='rotate(45 11 33)'/%3E%3C/g%3E%3C/svg%3E");
  --kufiya-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M0 0L44 44M44 0L0 44' stroke='%23F8F2E9' stroke-opacity='.08' stroke-width='1.2'/%3E%3Cg fill='%23F8F2E9' fill-opacity='.1'%3E%3Cellipse cx='11' cy='11' rx='2.3' ry='5' transform='rotate(-45 11 11)'/%3E%3Cellipse cx='33' cy='33' rx='2.3' ry='5' transform='rotate(-45 33 33)'/%3E%3Cellipse cx='33' cy='11' rx='2.3' ry='5' transform='rotate(45 33 11)'/%3E%3Cellipse cx='11' cy='33' rx='2.3' ry='5' transform='rotate(45 11 33)'/%3E%3C/g%3E%3C/svg%3E");
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18' viewBox='0 0 24 18'%3E%3Cg fill='none' stroke='%234A2B23' stroke-width='2'%3E%3Cpath d='M0 5q6-5 12 0t12 0'/%3E%3Cpath d='M0 13q6-5 12 0t12 0'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--brown);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 400; }
h1, h2 { font-family: "Lalezar", "Cairo", sans-serif; }
p { margin: 0 0 1em; }
svg { fill: currentColor; }
.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 28px; } }

:focus-visible { outline: 3px solid var(--caramel); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--brown); color: var(--cream); padding: 8px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ===== الأزرار ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px;
  font: 700 16px/1.2 "Cairo", sans-serif; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .2s, color .2s, transform .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { min-height: 54px; padding: 12px 28px; font-size: 17px; }
.btn-primary { background: var(--brown); color: var(--cream); }
.btn-primary:hover { background: var(--brown-2); }
.btn-ghost { border-color: var(--brown); color: var(--brown); background: transparent; }
.btn-ghost:hover { background: var(--brown); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--brown); }
.btn-light:hover { background: #fff; }

/* ===== الهيدر ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 242, 233, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(74, 43, 35, .06); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand img { height: 50px; width: auto; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; transition: background-color .2s; }
.nav a:hover { background: var(--cream-2); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .header-cta { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-inline-start: auto; width: 46px; height: 46px; padding: 0 11px;
    border: 0; border-radius: 12px; background: var(--cream-2); cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--brown); transition: transform .25s, opacity .25s; }
  .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); }
  .nav {
    position: absolute; top: var(--header-h); inset-inline: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 18px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(74, 43, 35, .1);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: 10px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
}

/* ===== الخلفيات ===== */
.kufiya-bg { background-color: var(--cream); background-image: var(--kufiya); }
.kufiya-bg-dark { background-color: var(--brown); background-image: var(--kufiya-light); color: var(--cream); }
.wave-strip { height: 18px; background: var(--wave) repeat-x center / 24px 18px; opacity: .85; }

/* ===== الواجهة ===== */
.hero { padding: 48px 0 64px; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } .hero { padding: 72px 0 88px; } }
.eyebrow { display: inline-block; margin-bottom: 18px; padding: 6px 16px; border-radius: 999px; background: var(--cream-2); font-weight: 700; font-size: 14px; color: var(--brown-2); }
.hero h1 { font-size: clamp(54px, 10vw, 104px); line-height: 1.05; }
.hero-tag { display: block; margin-top: 10px; font-family: "Aref Ruqaa", serif; font-weight: 700; font-size: .42em; color: var(--caramel-d); }
.lead { margin: 22px 0 30px; font-size: clamp(17px, 2vw, 20px); color: var(--brown-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 34px; list-style: none; margin: 36px 0 0; padding: 22px 0 0; border-top: 1px dashed var(--caramel); }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-family: "Lalezar", sans-serif; font-weight: 400; font-size: 34px; line-height: 1.1; }
.hero-facts span { font-size: 14px; color: var(--muted); font-weight: 600; }

.hero-media { position: relative; justify-self: center; width: min(100%, 420px); }
.arch {
  position: relative; border-radius: 999px 999px 28px 28px; overflow: hidden;
  border: 10px solid var(--paper); box-shadow: var(--shadow); background: #E9C6A2;
  aspect-ratio: 4 / 5.6;
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-media::before {
  content: ""; position: absolute; inset: -18px -18px 26px 26px; z-index: -1;
  border: 2px solid var(--caramel); border-radius: 999px 999px 30px 30px;
}
.price-badge {
  position: absolute; inset-inline-end: -10px; bottom: 34px;
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 18px; border-radius: 18px; background: var(--brown); color: var(--cream);
  box-shadow: var(--shadow); transform: rotate(-4deg);
}
.price-badge span { font-size: 13px; font-weight: 700; opacity: .85; }
.price-badge strong { font-family: "Lalezar", sans-serif; font-weight: 400; font-size: 30px; line-height: 1.1; }
.price-badge small { font-family: "Cairo", sans-serif; font-size: 13px; }
@media (max-width: 480px) { .price-badge { inset-inline-end: 0; } }

/* ===== الأقسام ===== */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-alt { background: var(--paper); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 8px;
  font: 800 13px/1 "Cairo", sans-serif; letter-spacing: .22em; color: var(--caramel-d);
}
.kicker::before, .kicker::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.kicker-light { color: var(--caramel); }
.section-head h2, .sig-text h2, .story-text h2, .contact h2 { font-size: clamp(40px, 6vw, 60px); }
.section-sub { margin: 10px 0 0; color: var(--muted); }

/* ===== المنيو ===== */
.tabs {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin: 0 auto 36px; padding: 6px; width: fit-content; max-width: 100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
}
.tab {
  min-height: 44px; padding: 8px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--brown); font: 700 16px/1.2 "Cairo", sans-serif;
  transition: background-color .2s, color .2s;
}
.tab:hover { background: var(--cream-2); }
.tab[aria-selected="true"] { background: var(--brown); color: var(--cream); }
@media (max-width: 560px) {
  .tabs { border-radius: 20px; display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .tab { padding: 8px 10px; font-size: 15px; }
}
.panel[hidden] { display: none; }
.panel:focus-visible { outline-offset: 8px; }

.grid { display: grid; gap: 22px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cards-sm { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-photo > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0 0 0 46px; }
.cut {
  display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 22px;
  margin: 10px 10px 0; border-radius: 16px 16px 16px 46px;
  background: linear-gradient(160deg, #E9CFAE, var(--caramel));
}
.cut img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(74, 43, 35, .25)); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.card-body h3 { font-family: "Lalezar", sans-serif; font-size: 23px; margin-bottom: 6px; }
.card-body p { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.card-body .price {
  margin: auto 0 0; align-self: flex-start;
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 4px 14px; border-radius: 999px; background: var(--cream-2);
  color: var(--brown); font-weight: 700; font-size: 14px;
}
.price span { font-family: "Lalezar", sans-serif; font-weight: 400; font-size: 24px; line-height: 1.2; direction: ltr; unicode-bidi: isolate; }
.note { margin: 28px 0 0; text-align: center; font-size: 14px; color: var(--muted); }

/* ===== الطبق المميز ===== */
.signature { background: var(--brown); background-image: var(--kufiya-light); color: var(--cream); }
.sig-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .sig-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.sig-media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 28px 28px 28px 120px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.sig-text .kicker { color: var(--caramel); }
.sig-text h2 { margin-bottom: 18px; }
.sig-text p { color: #E8DACA; }
.checks { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-inline-start: 30px; font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .55em;
  width: 12px; height: 12px; background: var(--caramel); transform: rotate(45deg);
}

/* ===== حكايتنا ===== */
.story-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .story-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.story-text h2 { margin-bottom: 18px; }
.story-text p { color: var(--brown-2); }
.ruqaa { font-family: "Aref Ruqaa", serif; font-weight: 700; font-size: 34px; color: var(--caramel-d) !important; margin: 10px 0 0; }
.story-art { margin: 0; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.story-art img { width: 100%; border-radius: 18px; }

/* ===== الصور ===== */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; grid-auto-flow: dense; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; } }
.g-item { padding: 0; border: 0; border-radius: 18px; overflow: hidden; cursor: zoom-in; background: var(--cream-2); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g-item:hover img { transform: scale(1.05); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(30, 17, 13, .85); }
.lightbox img { max-height: 88vh; width: auto; margin: 0 auto; border-radius: 18px; }
.lb-close {
  position: absolute; top: -18px; inset-inline-end: -10px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: var(--cream); color: var(--brown);
  font-size: 28px; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
}

/* ===== الفروع ===== */
.branches { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.branch {
  text-align: center; padding: 34px 24px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s;
}
.branch:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pin { width: 48px; height: 48px; padding: 10px; margin: 0 auto 14px; border-radius: 50%; background: var(--brown); fill: var(--cream); }
.branch h3 { font-family: "Lalezar", sans-serif; font-size: 28px; }
.branch p { color: var(--muted); margin: 4px 0 14px; }
.link { font-weight: 700; color: var(--caramel-d); text-underline-offset: 5px; }
.link:hover { color: var(--brown); }

/* ===== تواصل ===== */
.contact { padding: 64px 0; }
.contact-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.contact p { margin: 8px 0 0; color: #E8DACA; }
.phone-big {
  display: inline-flex; align-items: center; gap: 14px; padding: 14px 30px;
  border-radius: 999px; background: var(--caramel); color: var(--brown); text-decoration: none;
  font-family: "Lalezar", sans-serif; font-size: clamp(30px, 5vw, 44px); line-height: 1.2;
  transition: background-color .2s, transform .2s;
}
.phone-big svg { width: 34px; height: 34px; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1EBE5A; }
.btn-whatsapp svg { width: 22px; height: 22px; }
.phone-big:hover { background: #D6A877; transform: translateY(-2px); }

/* ===== الفوتر ===== */
.site-footer { background: #3A211B; color: #E8DACA; padding: 48px 0 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 32px; }
.footer-logo { height: 70px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--caramel); }
.social { margin: 0; font-size: 15px; }
.footer-bottom { border-top: 1px solid rgba(232, 218, 202, .15); padding-block: 18px; font-size: 14px; text-align: center; }
.footer-bottom p { margin: 0; opacity: .75; }

/* ===== شريط الجوال ===== */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(248, 242, 233, .96); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .mobile-bar .btn-light { border-color: var(--brown); }
  .site-footer { padding-bottom: 76px; }
}

/* ===== حركة الظهور ===== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
