/* ==========================================================
   طرابلس — Tripoli, Lebanon
   Plain CSS (converted from React + Tailwind)
   ========================================================== */

:root {
  --background: 43 59% 90%;
  --foreground: 210 60% 14%;
  --border: 30 40% 75%;
  --ring: 185 63% 27%;
  --card: 43 65% 95%;
  --primary: 185 63% 27%;
  --primary-foreground: 43 59% 90%;
  --secondary: 30 54% 54%;
  --secondary-foreground: 210 60% 14%;
  --muted: 43 30% 80%;
  --muted-foreground: 210 40% 30%;
  --accent: 30 54% 54%;
  --accent-foreground: 43 59% 90%;
  --destructive: 0 84% 60%;

  --c-bg: hsl(var(--background));
  --c-fg: hsl(var(--foreground));
  --c-border: hsl(var(--border));
  --c-card: hsl(var(--card));
  --c-primary: hsl(var(--primary));
  --c-primary-fg: hsl(var(--primary-foreground));
  --c-secondary: hsl(var(--secondary));
  --c-secondary-fg: hsl(var(--secondary-foreground));
  --c-muted: hsl(var(--muted));
  --c-muted-fg: hsl(var(--muted-foreground));
  --c-accent: hsl(var(--accent));
  --c-destructive: hsl(var(--destructive));

  --font-kufi: "Noto Kufi Arabic", sans-serif;
  --font-naskh: "Noto Naskh Arabic", serif;
  --radius: 0.75rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; border-color: var(--c-border); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-kufi);
  background: var(--c-bg);
  color: var(--c-fg);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-kufi); font-weight: 700; margin: 0; }
p { font-family: var(--font-naskh); line-height: 1.625; margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select { font-family: inherit; font-size: 1rem; color: inherit; }
.icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: hsl(var(--primary) / 0.8); }

.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 768px) { .container { padding-inline: 2rem; } }
.page { flex: 1; animation: pageIn 0.4s ease-out both; }
main { display: flex; flex-direction: column; min-height: 100vh; background: var(--c-bg); }
.text-center { text-align: center; }
.justify { text-align: justify; }
.font-kufi { font-family: var(--font-kufi); }
.font-naskh { font-family: var(--font-naskh); }
.muted { color: var(--c-muted-fg); }
.overflow-hidden { overflow: hidden; }
.dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: var(--c-secondary); flex-shrink: 0; }

@keyframes pageIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes slowZoom { from { transform: scale(1.05); } to { transform: scale(1.14); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transition: opacity 0.7s ease-out, transform 0.7s ease-out; transition-delay: var(--d, 0s); }
.reveal[data-reveal="up"] { transform: translateY(30px); }
.reveal[data-reveal="left"] { transform: translateX(-40px); }
.reveal[data-reveal="right"] { transform: translateX(40px); }
.reveal[data-reveal="scale"] { transform: scale(0.92); }
.reveal.in { opacity: 1; transform: none; }
.hero-in { animation: pageIn 0.9s ease-out both; animation-delay: var(--d, 0s); }

/* ---------- Scroll progress / back to top ---------- */
#scroll-progress {
  position: fixed; top: 0; right: 0; left: 0; height: 4px;
  background: var(--c-primary); z-index: 9999;
  transform: scaleX(0); transform-origin: right;
}
#back-to-top {
  position: fixed; bottom: 2rem; left: 2rem; z-index: 50; padding: 0.75rem;
  background: var(--c-secondary); color: var(--c-secondary-fg); border-radius: 9999px;
  box-shadow: 0 10px 15px rgba(0,0,0,0.2); opacity: 0; transform: scale(0.8);
  pointer-events: none; transition: opacity 0.25s, transform 0.25s, background 0.2s;
}
#back-to-top.show { opacity: 1; transform: scale(1); pointer-events: auto; }
#back-to-top:hover { background: hsl(var(--secondary) / 0.9); }
#back-to-top .icon { width: 1.5rem; height: 1.5rem; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 1.5rem 0; background: transparent; border-bottom: 1px solid transparent;
  transition: all 0.3s;
}
.site-header.scrolled {
  background: hsl(var(--background) / 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06); border-bottom-color: var(--c-border); padding: 1rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.5rem; }
.brand-name { font-weight: 700; font-size: 1.5rem; letter-spacing: -0.05em; color: var(--c-primary); transition: color 0.3s; }
.brand-dot { display: none; width: 0.375rem; height: 0.375rem; border-radius: 9999px; background: var(--c-secondary); }
.brand-tag { display: none; font-size: 0.875rem; font-weight: 500; color: var(--c-fg); }
@media (min-width: 640px) { .brand-dot, .brand-tag { display: inline-block; } }

.desktop-nav { display: none; align-items: center; gap: 1.5rem; }
@media (min-width: 768px) { .desktop-nav { display: flex; } }
@media (min-width: 1024px) { .desktop-nav { gap: 2rem; } }
.nav-link { font-size: 0.875rem; font-weight: 600; color: hsl(var(--foreground) / 0.8); transition: color 0.2s; }
.nav-link:hover { color: var(--c-secondary); }
.nav-link.active { color: var(--c-secondary); }
.nav-cta {
  padding: 0.625rem 1.25rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 700;
  background: #fff; color: var(--c-primary); box-shadow: 0 10px 15px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}
.nav-cta:hover { transform: scale(1.05); }
.nav-cta:active { transform: scale(0.95); }
.scrolled .nav-cta { background: var(--c-primary); color: var(--c-primary-fg); box-shadow: 0 4px 6px rgba(0,0,0,0.12); }

.menu-toggle { display: block; padding: 0.5rem; border-radius: 6px; color: var(--c-primary); transition: background 0.2s; }
.menu-toggle:hover { background: rgba(255,255,255,0.2); }
.menu-toggle .icon { width: 1.5rem; height: 1.5rem; display: block; }
.scrolled .menu-toggle { color: var(--c-fg); }
.scrolled .menu-toggle:hover { background: var(--c-muted); }
@media (min-width: 768px) { .menu-toggle { display: none; } }

/* On pages with a full-bleed dark hero, desktop header text starts white */
@media (min-width: 768px) {
  body.header-light .site-header:not(.scrolled) .brand-name { color: #fff; }
  body.header-light .site-header:not(.scrolled) .brand-dot { background: #fff; }
  body.header-light .site-header:not(.scrolled) .brand-tag { color: rgba(255,255,255,0.9); }
  body.header-light .site-header:not(.scrolled) .nav-link { color: rgba(255,255,255,0.8); }
  body.header-light .site-header:not(.scrolled) .nav-link.active { color: #fff; }
}

.mobile-nav {
  position: fixed; inset: 0; z-index: 40; background: var(--c-bg); padding: 6rem 1.5rem 0;
  display: flex; flex-direction: column; overflow-y: auto;
  opacity: 0; transform: translateY(-20px); pointer-events: none; transition: opacity 0.3s, transform 0.3s;
}
.mobile-nav.open { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 768px) { .mobile-nav { display: none; } }
.mobile-nav nav { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; padding-bottom: 3rem; }
.mobile-nav a.m-link {
  width: 100%; text-align: center; padding: 1rem 0; font-size: 1.5rem; font-weight: 700;
  color: hsl(var(--foreground) / 0.8); border-bottom: 1px solid var(--c-border);
}
.mobile-nav a.m-link.active { color: var(--c-primary); }
.mobile-nav a.m-cta {
  margin-top: 1.5rem; width: 100%; text-align: center; padding: 1rem 1.5rem;
  background: var(--c-primary); color: var(--c-primary-fg); border-radius: 1rem; font-weight: 700; font-size: 1.25rem;
}

/* ---------- Footer ---------- */
.divider-band { background: var(--c-fg); color: var(--c-primary); padding-top: 2rem; }
.geo-divider { width: 100%; display: flex; justify-content: center; align-items: center; overflow: hidden; padding: 2rem 0; }
.geo-divider svg { width: 200px; height: 40px; }
.site-footer { background: var(--c-fg); color: var(--c-bg); padding: 4rem 0; border-top: 1px solid hsl(var(--primary) / 0.2); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } .footer-about { grid-column: span 2; } }
.footer-about h3 { font-size: 1.5rem; color: var(--c-secondary); margin-bottom: 1rem; }
.footer-about p { color: hsl(var(--background) / 0.8); max-width: 24rem; text-align: justify; }
.footer-col h4 { font-size: 1.125rem; color: var(--c-primary-fg); margin-bottom: 1rem; }
.footer-col nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col nav a { font-size: 0.875rem; color: hsl(var(--background) / 0.7); width: fit-content; transition: color 0.2s; }
.footer-col nav a:hover, .footer-contact a:hover { color: var(--c-secondary); }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; color: hsl(var(--background) / 0.7); }
.footer-contact a { display: flex; align-items: center; gap: 0.5rem; direction: ltr; justify-content: flex-end; transition: color 0.2s; }
.footer-contact .icon { width: 1rem; height: 1rem; }
.footer-bottom {
  margin-top: 4rem; padding-top: 2rem; border-top: 1px solid hsl(var(--background) / 0.2);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }
.footer-bottom p { font-family: var(--font-kufi); font-size: 0.75rem; color: hsl(var(--background) / 0.5); }
.socials { display: flex; gap: 1rem; }
.socials a {
  width: 2.5rem; height: 2.5rem; border-radius: 9999px; background: hsl(var(--background) / 0.1);
  display: flex; align-items: center; justify-content: center; color: hsl(var(--background) / 0.7); transition: all 0.2s;
}
.socials a:hover { background: var(--c-secondary); color: var(--c-fg); }

/* ---------- Buttons ---------- */
.btn-pill {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2rem; border-radius: 9999px;
  font-weight: 700; font-size: 1.125rem; transition: all 0.25s;
}
.btn-secondary { background: var(--c-secondary); color: var(--c-secondary-fg); }
.btn-secondary:hover { background: hsl(var(--secondary) / 0.9); transform: translateY(-4px); box-shadow: 0 20px 25px rgba(0,0,0,0.2); }
.btn-secondary .icon { transition: transform 0.25s; }
.btn-secondary:hover .icon { transform: translateX(-4px); }
.btn-white { background: #fff; color: var(--c-primary); padding-inline: 2.5rem; gap: 0.75rem; box-shadow: 0 20px 25px rgba(0,0,0,0.2); }
.btn-white:hover { background: var(--c-secondary); color: var(--c-secondary-fg); }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--c-secondary); transition: color 0.2s; }
.link-arrow:hover { color: var(--c-primary); }
.link-arrow .icon { width: 1rem; height: 1rem; }

/* ---------- Hero blocks ---------- */
.hero { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-full { height: 100vh; height: 100dvh; }
.hero-60 { height: 60vh; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg.zoom img { animation: slowZoom 20s ease-in-out infinite alternate; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, hsl(var(--foreground) / 0.9), hsl(var(--foreground) / 0.4), transparent); }
.hero-shade.food { background: linear-gradient(to top, hsl(var(--foreground) / 0.9), hsl(var(--foreground) / 0.5), transparent); }
.hero-shade.culture { background: linear-gradient(to top, hsl(var(--foreground) / 0.95), hsl(var(--primary) / 0.6), transparent); mix-blend-mode: multiply; }
.hero-content { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { color: #fff; font-weight: 900; text-shadow: 0 10px 15px rgba(0,0,0,0.35); font-size: clamp(3rem, 6vw + 1rem, 5rem); margin-bottom: 1.5rem; }
.hero-full h1 { font-size: clamp(3rem, 8vw + 1rem, 8rem); }
.hero p.lead { color: rgba(255,255,255,0.9); font-size: clamp(1.25rem, 2vw + 0.5rem, 1.875rem); max-width: 42rem; margin-inline: auto; text-shadow: 0 4px 6px rgba(0,0,0,0.3); line-height: 1.4; }
.hero-full p.lead { margin-bottom: 3rem; }

/* ---------- Section helpers ---------- */
.section { padding: 6rem 0; }
.section-card { background: var(--c-card); color: var(--c-fg); }
.section-title { font-size: clamp(1.875rem, 2.5vw + 1rem, 2.25rem); color: var(--c-fg); margin-bottom: 1rem; }
.section-title.primary { color: var(--c-primary); }
.section-sub { font-size: 1.125rem; color: var(--c-muted-fg); max-width: 42rem; margin-inline: auto; }
.grid { display: grid; gap: 2rem; }
.two-col { grid-template-columns: 1fr; gap: 4rem; align-items: center; }
@media (min-width: 768px) { .two-col.md { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .two-col.lg { grid-template-columns: 1fr 1fr; } }

.img-frame { position: relative; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.25); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.img-frame.round-2xl { border-radius: 1rem; }
.img-frame.round-3xl { border-radius: 1.5rem; }
.img-frame .ring { position: absolute; inset: 0; border: 4px solid hsl(var(--secondary) / 0.2); border-radius: inherit; pointer-events: none; }
.img-frame .ring.s30 { border-color: hsl(var(--secondary) / 0.3); }

/* Home intro */
.intro h2 { font-size: clamp(1.875rem, 3vw + 1rem, 3rem); color: var(--c-primary); margin-bottom: 1.5rem; }
.intro p { font-size: 1.125rem; line-height: 2; color: var(--c-muted-fg); margin-bottom: 1.5rem; text-align: justify; }
.intro .img-frame { height: 500px; }

/* Quick cards */
.quick-cards { padding: 3rem 0; }
.quick-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .quick-grid { grid-template-columns: repeat(4, 1fr); } }
.quick-card {
  background: var(--c-card); border: 1px solid var(--c-border); padding: 2rem; border-radius: 1.5rem;
  text-align: center; display: flex; flex-direction: column; align-items: center; transition: all 0.3s;
}
.quick-card:hover { border-color: var(--c-primary); transform: translateY(-8px); box-shadow: 0 20px 25px rgba(0,0,0,0.15); }
.quick-icon { width: 4rem; height: 4rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; transition: transform 0.3s; }
.quick-card:hover .quick-icon { transform: scale(1.1); }
.quick-icon .icon { width: 2rem; height: 2rem; }
.quick-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.quick-card p { font-size: 0.875rem; color: var(--c-muted-fg); }

/* Stats */
.stats { position: relative; overflow: hidden; padding: 5rem 0; background: var(--c-primary); color: var(--c-primary-fg); }
.stats .bg { position: absolute; inset: 0; opacity: 0.1; }
.stats .bg img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: overlay; }
.stats-grid { position: relative; z-index: 10; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; text-align: center; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-num { font-weight: 900; font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem); margin-bottom: 0.5rem; color: var(--c-secondary); }
.stat-label { font-size: 1.125rem; color: hsl(var(--primary-foreground) / 0.8); }

/* Video */
.video-section { padding: 6rem 0; text-align: center; }
.video-section h2 { font-size: 2.25rem; margin-bottom: 1rem; }
.video-section p { font-size: 1.125rem; color: var(--c-muted-fg); max-width: 42rem; margin: 0 auto 3rem; }
.video-wrap { position: relative; width: 100%; max-width: 64rem; margin: 0 auto; aspect-ratio: 16/9; border-radius: 1.5rem; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.25); border: 4px solid var(--c-card); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Gallery */
.gallery-head { text-align: center; margin-bottom: 3rem; }
.gallery-head h2 { font-size: 2.25rem; margin-bottom: 1rem; }
.gallery-head p { font-size: 1.125rem; color: var(--c-muted-fg); max-width: 42rem; margin-inline: auto; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding: 0 1rem 2rem; }
@media (min-width: 768px) { .gallery { padding-inline: 2rem; } }
.gallery-item { scroll-snap-align: center; flex-shrink: 0; width: 80vw; height: 60vh; border-radius: 1rem; overflow: hidden; position: relative; cursor: pointer; }
@media (min-width: 640px) { .gallery-item { width: 40vw; } }
@media (min-width: 768px) { .gallery-item { width: 30vw; } }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 60%); opacity: 0; transition: opacity 0.5s; }
.gallery-item:hover::after { opacity: 1; }

/* Testimonials */
.testimonials { padding: 6rem 0; background: var(--c-card); border-top: 1px solid var(--c-border); }
.testimonials h2 { font-size: 2.25rem; text-align: center; color: var(--c-primary); margin-bottom: 4rem; }
.quote-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .quote-grid { grid-template-columns: repeat(3, 1fr); } }
.quote { background: var(--c-bg); padding: 2rem; border-radius: 1.5rem; box-shadow: 0 1px 2px rgba(0,0,0,0.06); border: 1px solid var(--c-border); position: relative; display: flex; flex-direction: column; }
.quote .mark { position: absolute; top: 1rem; right: 1rem; color: var(--c-secondary); opacity: 0.3; font-family: serif; font-size: 3.75rem; line-height: 1; }
.quote p.text { font-size: 1.125rem; color: hsl(var(--foreground) / 0.8); margin: 1rem 0 1.5rem; position: relative; z-index: 1; text-align: justify; }
.quote .who { border-top: 1px solid hsl(var(--border) / 0.5); padding-top: 1rem; margin-top: auto; }
.quote .who .n { font-family: var(--font-kufi); font-weight: 700; color: var(--c-primary); }
.quote .who .c { font-size: 0.875rem; color: var(--c-muted-fg); }

/* CTA + newsletter */
.cta { position: relative; overflow: hidden; padding: 8rem 0; background: var(--c-primary); color: var(--c-primary-fg); }
.cta .bg { position: absolute; inset: 0; opacity: 0.1; }
.cta .bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-grid { position: relative; z-index: 10; display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .cta-grid { grid-template-columns: 1fr 1fr; } }
.cta-box { background: hsl(var(--card) / 0.1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 3rem; border-radius: 1.5rem; border: 1px solid hsl(var(--primary-foreground) / 0.2); text-align: center; }
.cta-box h2 { font-size: 2.25rem; margin-bottom: 1.5rem; }
.cta-box p { font-size: 1.25rem; margin-bottom: 2.5rem; color: hsl(var(--primary-foreground) / 0.9); }
.news-box { background: var(--c-fg); color: var(--c-bg); padding: 3rem; border-radius: 1.5rem; box-shadow: 0 25px 50px rgba(0,0,0,0.3); }
.news-box h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.news-box > p { color: hsl(var(--background) / 0.8); margin-bottom: 2rem; }
.news-form { display: flex; gap: 0.5rem; }
.news-form input { flex: 1; min-width: 0; background: var(--c-bg); color: var(--c-fg); border: 0; border-radius: 0.75rem; padding: 0 1rem; text-align: right; }
.news-form input:focus { outline: 2px solid var(--c-secondary); }
.news-form button { background: var(--c-secondary); color: var(--c-secondary-fg); padding: 1rem; border-radius: 0.75rem; transition: background 0.2s; }
.news-form button:hover { background: hsl(var(--secondary) / 0.9); }
.news-form button .icon { display: block; }
.news-thanks { background: hsl(var(--secondary) / 0.2); border: 1px solid var(--c-secondary); color: var(--c-secondary); padding: 1rem; border-radius: 0.75rem; font-weight: 700; text-align: center; }

/* ---------- History ---------- */
.history-main { padding: 6rem 0; }
.history-hero { position: relative; height: 40vh; border-radius: 1.5rem; overflow: hidden; margin-bottom: 3rem; box-shadow: 0 25px 50px rgba(0,0,0,0.25); }
@media (min-width: 768px) { .history-hero { height: 60vh; } }
.history-hero img { width: 100%; height: 100%; object-fit: cover; }
.history-hero .shade { position: absolute; inset: 0; background: linear-gradient(to top, hsl(var(--foreground) / 0.9), hsl(var(--foreground) / 0.2), transparent); display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; }
@media (min-width: 768px) { .history-hero .shade { padding: 4rem; } }
.history-hero h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem); font-weight: 900; color: #fff; margin-bottom: 1rem; }
.history-hero p { font-size: 1.25rem; color: rgba(255,255,255,0.9); max-width: 42rem; }
.history-layout { display: flex; flex-direction: column; gap: 3rem; margin-top: 3rem; }
@media (min-width: 1024px) { .history-layout { flex-direction: row; } .facts-col { width: 33.333%; } .timeline-col { width: 66.666%; } }
.facts { background: var(--c-card); border: 1px solid var(--c-border); border-radius: 1.5rem; padding: 2rem; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
@media (min-width: 1024px) { .facts { position: sticky; top: 8rem; } }
.facts h3 { font-size: 1.5rem; color: var(--c-primary); margin-bottom: 1.5rem; border-bottom: 2px solid var(--c-secondary); padding-bottom: 1rem; }
.facts ul { display: flex; flex-direction: column; gap: 1rem; }
.facts li { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; font-family: var(--font-naskh); }
.facts li b { color: var(--c-muted-fg); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 3rem; }
.chip { padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.875rem; background: var(--c-card); border: 1px solid var(--c-border); color: var(--c-fg); transition: all 0.2s; }
.chip:hover { background: var(--c-muted); }
.chip.active { background: var(--c-primary); color: var(--c-primary-fg); border-color: transparent; box-shadow: 0 4px 6px rgba(0,0,0,0.15); }
.chips.secondary .chip { padding-inline: 1.25rem; }
.chips.secondary .chip.active { background: var(--c-secondary); color: var(--c-secondary-fg); }
.timeline { position: relative; border-right: 2px solid var(--c-border); padding-right: 2rem; display: flex; flex-direction: column; gap: 4rem; }
.t-item { position: relative; }
.t-dot { position: absolute; right: -41px; top: 0; width: 1.25rem; height: 1.25rem; border-radius: 9999px; border: 4px solid var(--c-bg); }
.t-dot.secondary { background: var(--c-secondary); }
.t-dot.primary { background: var(--c-primary); }
.t-dot.accent { background: var(--c-accent); }
.t-dot.foreground { background: var(--c-fg); }
.t-box { background: var(--c-card); padding: 2rem; border-radius: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,0.06); border: 1px solid var(--c-border); transition: box-shadow 0.3s; }
.t-box:hover { box-shadow: 0 10px 15px rgba(0,0,0,0.15); }
.t-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.t-head h3 { font-size: 1.5rem; color: var(--c-primary); }
.t-head span { padding: 0.25rem 0.75rem; background: var(--c-muted); border-radius: 9999px; font-size: 0.75rem; color: var(--c-muted-fg); }
.t-box p { color: var(--c-muted-fg); text-align: justify; margin-bottom: 1.5rem; }
.t-img { width: 100%; height: 12rem; border-radius: 0.75rem; overflow: hidden; margin-top: 1rem; }
.t-img img { width: 100%; height: 100%; object-fit: cover; }
.empty-note { text-align: center; padding: 3rem 0; color: var(--c-muted-fg); }
.legacy { margin-top: 4rem; }
.legacy .img-frame { height: 400px; }
.legacy h2 { font-size: 1.875rem; margin-bottom: 1.5rem; }
.legacy p { font-size: 1.125rem; color: var(--c-muted-fg); text-align: justify; }

/* ---------- Places ---------- */
.places-main { padding: 8rem 0 6rem; }
.page-head { text-align: center; max-width: 48rem; margin: 0 auto 4rem; }
.page-head h1 { font-size: 3rem; font-weight: 900; margin-bottom: 1.5rem; }
.page-head p { font-size: 1.25rem; color: var(--c-muted-fg); }
.toolbar { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .toolbar { flex-direction: row; } }
.toolbar .chips { margin-bottom: 0; justify-content: center; }
.search-box { position: relative; width: 100%; }
@media (min-width: 768px) { .search-box { width: 20rem; } }
.search-box input { width: 100%; background: var(--c-card); border: 1px solid var(--c-border); border-radius: 9999px; padding: 0.75rem 3rem 0.75rem 1rem; }
.search-box input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary); }
.search-box .icon { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--c-muted-fg); }
.places-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .places-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .places-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .places-grid { grid-template-columns: repeat(4, 1fr); } }
.place-card { border-radius: 1.5rem; overflow: hidden; background: var(--c-card); border: 1px solid var(--c-border); box-shadow: 0 1px 2px rgba(0,0,0,0.06); transition: box-shadow 0.3s; cursor: pointer; }
.place-card:hover { box-shadow: 0 25px 50px rgba(0,0,0,0.25); }
.place-img { position: relative; height: 16rem; overflow: hidden; }
.place-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.place-card:hover .place-img img { transform: scale(1.1); }
.place-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.6), transparent); opacity: 0; transition: opacity 0.3s; }
.place-card:hover .place-img::after { opacity: 1; }
.place-body { padding: 1.5rem; position: relative; }
.place-body::before { content: ""; position: absolute; top: 0; right: 1.5rem; left: 1.5rem; height: 1px; background: hsl(var(--secondary) / 0.3); }
.place-row { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin: 0.5rem 0 0.75rem; }
.place-row h3 { font-size: 1.25rem; color: var(--c-primary); }
.place-row span { font-size: 10px; padding: 0.25rem 0.5rem; background: var(--c-muted); border-radius: 9999px; color: var(--c-muted-fg); white-space: nowrap; }
.place-body p { font-size: 0.875rem; color: hsl(var(--card-foreground, var(--foreground)) / 0.8); text-align: justify; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.no-results { grid-column: 1 / -1; text-align: center; padding: 5rem 0; font-size: 1.25rem; color: var(--c-muted-fg); }

.lightbox { position: fixed; inset: 0; z-index: 100; background: hsl(var(--background) / 0.95); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
@media (min-width: 768px) { .lightbox { padding: 2rem; } }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-panel { background: var(--c-card); width: 100%; max-width: 64rem; border-radius: 1.5rem; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.35); display: flex; flex-direction: column; position: relative; transform: scale(0.92) translateY(20px); transition: transform 0.25s; max-height: 100%; overflow-y: auto; }
@media (min-width: 768px) { .lb-panel { flex-direction: row; } }
.lightbox.open .lb-panel { transform: none; }
.lb-close { position: absolute; top: 1rem; left: 1rem; z-index: 10; width: 2.5rem; height: 2.5rem; background: rgba(0,0,0,0.5); color: #fff; border-radius: 9999px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lb-close:hover { background: rgba(0,0,0,0.7); }
.lb-close .icon { width: 1.5rem; height: 1.5rem; }
.lb-img { width: 100%; height: 16rem; flex-shrink: 0; }
@media (min-width: 768px) { .lb-img { width: 50%; height: 500px; } }
.lb-img img { width: 100%; height: 100%; object-fit: cover; }
.lb-text { width: 100%; padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 768px) { .lb-text { width: 50%; padding: 3rem; } }
.lb-cat { font-size: 0.875rem; color: var(--c-secondary); margin-bottom: 0.5rem; display: block; }
.lb-text h2 { font-size: clamp(1.875rem, 2vw + 1rem, 2.25rem); margin-bottom: 1.5rem; }
.lb-text p { font-size: 1.125rem; color: var(--c-muted-fg); text-align: justify; margin-bottom: 2rem; }
.lb-cta { margin-top: auto; align-self: flex-start; background: var(--c-primary); color: var(--c-primary-fg); padding: 0.75rem 2rem; border-radius: 9999px; font-weight: 700; transition: background 0.2s; display: inline-block; }
.lb-cta:hover { background: hsl(var(--primary) / 0.9); }

/* ---------- Food ---------- */
.food-main { padding-bottom: 6rem; }
.subnav { position: sticky; top: 5rem; z-index: 40; background: hsl(var(--card) / 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--c-border); padding: 1rem 0; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.subnav .container { display: flex; justify-content: center; gap: 1.5rem; overflow-x: auto; }
.subnav a { color: var(--c-primary); font-weight: 700; white-space: nowrap; transition: color 0.2s; }
.subnav a:hover { color: var(--c-secondary); }
.food-section { padding: 8rem 0 6rem; margin-top: -5rem; }
.sweets-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .sweets-grid { grid-template-columns: repeat(2, 1fr); } }
.sweet { background: var(--c-card); border-radius: 1rem; overflow: hidden; box-shadow: 0 10px 15px rgba(0,0,0,0.12); border: 1px solid var(--c-border); display: flex; flex-direction: column; }
@media (min-width: 640px) { .sweet { flex-direction: row; } .sweet .s-img { width: 40%; height: auto; } .sweet .s-body { width: 60%; } }
.s-img { height: 12rem; overflow: hidden; position: relative; }
.s-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.sweet:hover .s-img img { transform: scale(1.05); }
.s-img::after { content: ""; position: absolute; inset: 0; background: hsl(var(--primary) / 0.1); mix-blend-mode: multiply; transition: opacity 0.3s; }
.sweet:hover .s-img::after { opacity: 0; }
.s-body { padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; }
.s-body h3 { font-size: 1.5rem; color: var(--c-secondary); margin-bottom: 0.5rem; }
.s-body p { color: hsl(var(--foreground) / 0.8); margin-bottom: 1rem; }
.s-body .note { font-family: var(--font-kufi); font-size: 0.75rem; color: var(--c-muted-fg); background: hsl(var(--muted) / 0.5); padding: 0.5rem; border-radius: 0.5rem; border: 1px solid hsl(var(--border) / 0.5); }
.dishes-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 1024px) { .dishes-grid { grid-template-columns: 1fr 1fr; } }
.h-underline { font-size: 2.25rem; color: var(--c-primary); margin-bottom: 2rem; border-bottom: 2px solid var(--c-secondary); padding-bottom: 1rem; display: inline-block; }
.dish-list { display: flex; flex-direction: column; gap: 1.5rem; }
.dish { background: var(--c-card); padding: 1.5rem; border-radius: 1rem; border: 1px solid var(--c-border); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.dish h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.dish p { color: var(--c-muted-fg); }
.spots { position: relative; padding: 2rem; border-radius: 1.5rem; background: var(--c-primary); color: var(--c-primary-fg); overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.25); }
.spots .bg { position: absolute; inset: 0; opacity: 0.1; }
.spots .bg img { width: 100%; height: 100%; object-fit: cover; }
.spots .list { position: relative; z-index: 10; display: flex; flex-direction: column; gap: 1.5rem; }
.spots h4 { font-size: 1.25rem; color: var(--c-secondary); }
.spots p { color: hsl(var(--primary-foreground) / 0.8); margin-top: 0.5rem; }
.coffee { padding: 6rem 0; background: var(--c-card); }
.coffee .inner { max-width: 56rem; margin: 0 auto; text-align: center; }
.coffee h2 { font-size: 2.25rem; margin-bottom: 1.5rem; }
.coffee p { font-size: 1.25rem; color: var(--c-muted-fg); margin-bottom: 3rem; }
.coffee .pics { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .coffee .pics { grid-template-columns: 1fr 1fr; } }
.coffee .pics div { height: 16rem; border-radius: 1rem; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.12); }
.coffee .pics img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Culture ---------- */
.culture-main { padding-bottom: 6rem; }
.crafts-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .crafts-grid { grid-template-columns: repeat(3, 1fr); } }
.craft { background: var(--c-card); border-radius: 1rem; padding: 2rem; border: 1px solid var(--c-border); box-shadow: 0 10px 15px rgba(0,0,0,0.12); text-align: center; transition: transform 0.3s; }
.craft:hover { transform: translateY(-10px); }
.craft .num { width: 5rem; height: 5rem; margin: 0 auto 1.5rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; border: 2px dashed; font-size: 1.5rem; font-weight: 700; }
.craft .num.secondary { background: hsl(var(--secondary) / 0.1); color: var(--c-secondary); border-color: var(--c-secondary); }
.craft .num.primary { background: hsl(var(--primary) / 0.1); color: var(--c-primary); border-color: var(--c-primary); }
.craft .num.accent { background: hsl(var(--accent) / 0.1); color: var(--c-accent); border-color: var(--c-accent); }
.craft h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.craft p { color: var(--c-muted-fg); }
.souks { padding: 6rem 0; background: var(--c-fg); color: var(--c-bg); }
.souks h2 { font-size: 2.25rem; color: var(--c-secondary); margin-bottom: 2rem; }
.souks .lead { font-size: 1.125rem; color: hsl(var(--background) / 0.8); text-align: justify; margin-bottom: 2rem; }
.souk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.souk { border: 1px solid hsl(var(--background) / 0.2); padding: 1rem; border-radius: 0.75rem; transition: background 0.2s; }
.souk:hover { background: hsl(var(--background) / 0.05); }
.souk h4 { color: var(--c-primary-fg); margin-bottom: 0.25rem; }
.souk p { font-size: 0.875rem; color: hsl(var(--background) / 0.6); }
.souks .img-frame { height: 500px; }
.events-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .events-grid { grid-template-columns: 1fr 1fr; } }
.event-card { background: var(--c-card); padding: 2.5rem; border-radius: 1.5rem; box-shadow: 0 10px 15px rgba(0,0,0,0.12); border-top: 4px solid var(--c-primary); height: 100%; }
.event-card.accent { border-top-color: var(--c-accent); }
.event-card h3 { font-size: 1.875rem; margin-bottom: 1.5rem; }
.event-card ul { display: flex; flex-direction: column; gap: 1.5rem; }
.event-card li { display: flex; gap: 1rem; }
.event-card li .dot { margin-top: 0.5rem; }
.event-card.accent li .dot { background: var(--c-accent); }
.event-card h4 { font-size: 1.125rem; color: var(--c-primary); }
.event-card li p { color: var(--c-muted-fg); margin-top: 0.25rem; }

/* ---------- Visit ---------- */
.visit-main { padding: 8rem 0 6rem; }
.visit-head { max-width: 56rem; margin: 0 auto 4rem; text-align: center; }
.visit-head h1 { font-size: 3rem; font-weight: 900; margin-bottom: 1.5rem; }
.visit-head p { font-size: 1.25rem; color: var(--c-muted-fg); }
.info-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; max-width: 72rem; margin: 0 auto 4rem; }
@media (min-width: 1024px) { .info-grid { grid-template-columns: repeat(3, 1fr); } .info-grid .wide { grid-column: span 2; } }
.info-card { background: var(--c-card); padding: 2rem; border-radius: 1.5rem; border: 1px solid var(--c-border); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.info-card h3 { font-size: 1.25rem; color: var(--c-primary); margin-bottom: 1rem; border-bottom: 2px solid var(--c-secondary); display: inline-block; padding-bottom: 0.5rem; }
.info-card.acc h3 { border-bottom-color: var(--c-accent); }
.why-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.why-list li { display: flex; align-items: flex-start; gap: 0.75rem; }
.why-list .dot { margin-top: 0.5rem; }
.why-list span.t { font-family: var(--font-naskh); color: hsl(var(--foreground) / 0.8); }
.practical { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1rem; }
@media (min-width: 640px) { .practical { grid-template-columns: 1fr 1fr; } }
.practical h4 { font-size: 0.875rem; color: var(--c-muted-fg); margin-bottom: 0.25rem; }
.booking { background: var(--c-card); border-radius: 3rem; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.25); display: flex; flex-direction: column; border: 1px solid var(--c-border); max-width: 72rem; margin: 0 auto; }
@media (min-width: 768px) { .booking { flex-direction: row; } .form-side { width: 66.666%; } .img-side { width: 33.333%; min-height: 100%; } }
.form-side { width: 100%; padding: 2rem; }
@media (min-width: 768px) { .form-side { padding: 3rem; } }
.form-side h2 { font-size: 1.875rem; margin-bottom: 2rem; }
.form-side form { display: flex; flex-direction: column; gap: 1.5rem; }
.row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .row.two { grid-template-columns: 1fr 1fr; } .row.three { grid-template-columns: 2fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label, .field .lbl { font-size: 0.875rem; font-weight: 500; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field input[type="number"], .field select {
  width: 100%; height: 3rem; border-radius: 0.75rem; background: var(--c-bg); border: 1px solid var(--c-border); padding: 0 0.75rem; font-family: var(--font-naskh);
}
.field input.ltr { direction: ltr; text-align: right; font-family: var(--font-kufi); }
.field input[type="date"], .field input[type="number"] { font-family: var(--font-kufi); }
.field input[type="number"] { text-align: center; }
.field input:focus, .field select:focus { outline: 2px solid var(--c-primary); outline-offset: 1px; }
.field.invalid input, .field.invalid select { border-color: var(--c-destructive); }
.err { font-size: 0.75rem; color: var(--c-destructive); min-height: 0; }
.radios { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.radios label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-family: var(--font-naskh); font-size: 1rem; font-weight: 400; }
.radios input { accent-color: var(--c-primary); }
.submit { width: 100%; height: 3.5rem; margin-top: 1rem; background: var(--c-primary); color: var(--c-primary-fg); border-radius: 0.75rem; font-weight: 700; font-size: 1.25rem; transition: all 0.2s; }
.submit:hover { background: hsl(var(--primary) / 0.9); box-shadow: 0 10px 15px rgba(0,0,0,0.2); }
.submit:active { transform: scale(0.98); }
.img-side { width: 100%; position: relative; min-height: 300px; }
.img-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.img-side::after { content: ""; position: absolute; inset: 0; background: hsl(var(--primary) / 0.3); mix-blend-mode: multiply; }

/* Toast */
#toast-host { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200; display: flex; flex-direction: column; gap: 0.5rem; max-width: calc(100vw - 3rem); width: 24rem; }
.toast { background: var(--c-primary); color: var(--c-primary-fg); padding: 1rem 1.25rem; border-radius: 0.75rem; box-shadow: 0 10px 25px rgba(0,0,0,0.3); animation: toastIn 0.3s ease-out both; transition: opacity 0.3s, transform 0.3s; }
.toast.out { opacity: 0; transform: translateY(16px); }
.toast .t1 { font-weight: 600; font-size: 0.875rem; }
.toast .t2 { font-size: 0.875rem; opacity: 0.9; margin-top: 0.25rem; font-family: var(--font-kufi); line-height: 1.5; }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #f9fafb; padding: 1rem; }
.nf-card { width: 100%; max-width: 28rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 1.5rem; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.nf-card h1 { display: flex; gap: 0.5rem; align-items: center; font-size: 1.5rem; color: #111827; margin-bottom: 1rem; font-family: var(--font-kufi); }
.nf-card h1 .icon { width: 2rem; height: 2rem; color: #ef4444; }
.nf-card p { font-size: 0.875rem; color: #4b5563; margin-bottom: 1.25rem; }
.nf-card a { display: inline-block; background: var(--c-primary); color: var(--c-primary-fg); padding: 0.6rem 1.5rem; border-radius: 9999px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
