/* ═══════════════════════════════════════════════════
   AMAZIGH FOUNDATION — MAIN STYLESHEET
   Fonts: Playfair Display (display) + Source Serif 4 (body)
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,400;1,8..60,500&family=Noto+Sans+Tifinagh&display=swap');

:root {
  --sand: #E8D5B7;
  --sand-light: #F5EDE0;
  --sand-dark: #D4BC9A;
  --terracotta: #A8421C;
  --terracotta-light: #C85A35;
  --indigo: #1B3A5C;
  --indigo-dark: #0F2540;
  --indigo-deep: #091A30;
  --gold: #D4A843;
  --gold-light: #E8C96A;
  --cream: #F2E7CF;
  --night: #0A1628;
  --text: #3A2817;
  --text-mid: #6B4E2F;
  --white: #FBF3DD;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Serif 4', 'Georgia', serif;
  --font-tifinagh: 'Noto Sans Tifinagh', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; background: var(--night); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }

::selection { background: rgba(212,168,67,.35); color: var(--indigo-dark); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: rgba(212,168,67,.4); border-radius: 3px; }

/* ── Animations ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(30px) } to { opacity:1; transform:translateY(0) } }
@keyframes glowPulse { 0%,100% { text-shadow: 0 0 20px rgba(212,168,67,.3) } 50% { text-shadow: 0 0 50px rgba(212,168,67,.6) } }
@keyframes float { 0%,100% { transform:translateY(0) } 50% { transform:translateY(-8px) } }
@keyframes spin { from { transform:rotate(0) } to { transform:rotate(360deg) } }
@keyframes slideUp { from { transform:translateY(100%) } to { transform:translateY(0) } }
@keyframes scrollP { 0%,100% { opacity:.4; transform:translateY(0) } 50% { opacity:1; transform:translateY(8px) } }
@keyframes ken1 { 0% { transform:scale(1.05) } 100% { transform:scale(1.12) translate(-1.5%,-1%) } }
@keyframes ken2 { 0% { transform:scale(1.08) translate(-1%,-1%) } 100% { transform:scale(1.14) translate(1%,.5%) } }
@keyframes kenburns { 0% { transform:scale(1.08) translate(0,0) } 50% { transform:scale(1.14) translate(-1%,-1%) } 100% { transform:scale(1.08) translate(1%,.5%) } }
@keyframes shimmer { 0%,100% { background-position:0% 50% } 50% { background-position:100% 50% } }
@keyframes particleR { 0% { transform:translateY(0);opacity:0 } 15% { opacity:1 } 85% { opacity:1 } 100% { transform:translateY(-100vh);opacity:0 } }
@keyframes pinBounce { 0%,100% { transform:translateY(0) } 50% { transform:translateY(-4px) } }
@keyframes pillPulse { 0%,100% { box-shadow: 0 4px 18px rgba(196,87,42,.35), 0 0 0 1px rgba(212,168,67,.2) } 50% { box-shadow: 0 6px 24px rgba(196,87,42,.5), 0 0 0 4px rgba(212,168,67,.15), 0 0 18px rgba(212,168,67,.3) } }

/* ── Layout helpers ── */
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.65); z-index:2000; display:flex; align-items:center; justify-content:center; backdrop-filter:blur(6px); animation:fadeUp .3s ease }
.card-hover { transition: all .3s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.08); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .desk-nav { display: none !important; }
  .mob-btn { display: flex !important; }
}
@media (max-width: 768px) {
  .g2, .g3 { grid-template-columns: 1fr !important; }
  .tl-row { flex-direction: column !important; }
  .tl-spacer { display: none !important; }
  .sec { padding: 60px 16px !important; }
  .hero-t { font-size: 32px !important; }
  .hero-a { font-size: 18px !important; }
  .map-layout { flex-direction: column !important; }
}

/* ═══ DARK MODE OVERRIDES ═══ */
.dark-mode {
  --cream: #0F1D30;
  --sand-light: #0A1628;
  --text: #E8E0D0;
  --text-mid: #D4BC9A;
  --white: #0F2540;
}
.dark-mode section[style*="cream"], .dark-mode section[style*="sandLight"] {
  filter: brightness(0.95);
}

/* ═══ PWA Install prompt ═══ */
.pwa-prompt {
  position: fixed; bottom: 80px; right: 20px; z-index: 997;
  background: var(--indigo-deep); border: 1px solid rgba(212,168,67,.2);
  border-radius: 12px; padding: 16px 20px; max-width: 280px;
  box-shadow: 0 8px 30px rgba(0,0,0,.3); animation: fadeUp .5s ease;
}

/* ═══ Scroll reveal animations ═══ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
