/* ═══════════════════════════════════════════
   PEAK EXPERIENCES THEME — shared tokens
   Used across all DaM 2 pages
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:wght@300;400;500;600;700&family=Amiri:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --radius: 0.75rem;

  /* Brand */
  --beige: #F5E6C8;
  --gold: #C9A646;
  --gold-soft: #D4B86A;
  --gold-hover: #b8943a;
  --dark: #1A1410;
  --ink: #2B2B2B;

  /* Semantic */
  --background: var(--beige);
  --foreground: var(--ink);
  --card: #ffffff;
  --muted: #6B6248;
  --muted-foreground: oklch(0.45 0.02 60);
  --border: #DDD0A8;
  --white: #ffffff;

  /* Legacy aliases (for gradual migration) */
  --gold-l: var(--gold-soft);
  --gold-d: var(--gold-hover);
  --gold-bg: var(--beige);
  --beige2: var(--beige);
  --cream: var(--beige);
  --dark2: #2A2510;
  --dark3: #3A3018;
  --text: var(--ink);
  --shadow: rgba(26, 20, 16, 0.10);
  --shadow2: rgba(26, 20, 16, 0.20);
  --shadow-elegant: 0 14px 40px -18px rgba(26, 20, 16, 0.35);

  /* Fonts */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-arabic: 'Amiri', serif;
}

/* Base */
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ═══════════════════════════════════════════
   PREMIUM ISLAMIC GEOMETRIC BACKGROUND
   Multi-layer system — imported from islamic-bg.css
   
   .bg-islamic        — warm beige + 3-layer star geometry
   .bg-dark-islamic   — dark background + gold geometry
   .bg-islamic-cream  — cream background + hexagonal arabesque
═══════════════════════════════════════════ */

/* Gold divider label */
.gold-rule {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--gold); font-size: 12px; letter-spacing: 0.32em;
  text-transform: uppercase; font-family: var(--font-sans); font-weight: 500;
}
.gold-rule::before, .gold-rule::after {
  content: ""; width: 48px; height: 1px; background: var(--gold); opacity: 0.7;
}

/* Buttons — Peak style (pill) */
.btn-gold, .btn-primary, .btn-plan, .btn-cta, .btn-wa-footer {
  background: var(--gold);
  color: white;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.35s ease;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  box-shadow: 0 8px 24px -10px rgba(201, 166, 70, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-gold:hover, .btn-primary:hover, .btn-plan:hover, .btn-cta:hover, .btn-wa-footer:hover {
  transform: translateY(-2px);
  background: var(--gold-hover);
  box-shadow: 0 0 0 6px rgba(201, 166, 70, 0.18),
              0 14px 30px -10px rgba(201, 166, 70, 0.65);
}

.btn-outline, .btn-secondary {
  background: white;
  color: var(--ink);
  padding: 13px 25px;
  border-radius: 999px;
  font-weight: 500;
  border: 1px solid rgba(43, 43, 43, 0.18);
  transition: all 0.35s ease;
  cursor: pointer;
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover, .btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* Card lift */
.card-lift { transition: transform 0.4s ease, box-shadow 0.4s ease; }
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elegant);
}

/* Font utilities */
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }
.font-arabic, .arabic-label, .amiri-text {
  font-family: var(--font-arabic);
  direction: rtl;
  unicode-bidi: embed;
}

/* Reveal animations */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.in-view, .reveal.vis { animation: fade-up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.reveal-l { opacity: 0; transform: translateX(-32px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-l.vis { opacity: 1; transform: translateX(0); }
.reveal-r { opacity: 0; transform: translateX(32px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-r.vis { opacity: 1; transform: translateX(0); }

@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.wa-pulse, .wa-float { animation: wa-pulse 2s infinite; }

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-fade-in { animation: fade-in 0.3s ease-out; }

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.animate-scale-in { animation: scale-in 0.3s ease-out; }

.poster-fade { animation: fade-in 0.4s ease-out forwards; }

.hidden { display: none !important; }

/* WhatsApp float */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 800;
  width: 54px; height: 54px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 26px; height: 26px; fill: white; }

/* Sub-page nav (courses, packages) */
.sub-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 1.5rem;
  background: rgba(245, 230, 200, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 166, 70, 0.2);
  box-shadow: 0 6px 24px -18px rgba(0, 0, 0, 0.35);
}
.sub-nav-back {
  font-size: 11px; font-weight: 600; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(201, 166, 70, 0.35);
  background: rgba(201, 166, 70, 0.08);
  transition: all 0.25s;
}
.sub-nav-back:hover { color: var(--dark); background: rgba(201, 166, 70, 0.18); }

/* Sub-page navigation — Peak beige-blur bar (courses + flyer/video pages) */
.subnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 68px; padding: 0 24px;
  background: rgba(245, 230, 200, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 166, 70, 0.12);
  transition: box-shadow 0.35s ease;
}
.subnav.solid { box-shadow: 0 6px 24px -18px rgba(0, 0, 0, 0.35); }
.subnav-logo { display: flex; align-items: center; gap: 12px; }
.subnav-mark { width: 42px; height: 42px; object-fit: contain; border-radius: 50%; flex-shrink: 0; }
.subnav-title {
  font-family: var(--font-serif); font-size: 18px; font-weight: 700;
  letter-spacing: 0.5px; color: var(--dark); line-height: 1.1; display: block;
}
.subnav-tag {
  font-family: var(--font-sans); font-size: 10px; font-weight: 300;
  color: var(--muted); letter-spacing: 0.5px; font-style: italic; display: block; margin-top: 2px;
}
.subnav-back {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(201, 166, 70, 0.35);
  background: rgba(201, 166, 70, 0.08);
  transition: all 0.25s; white-space: nowrap;
}
.subnav-back:hover { color: #fff; background: var(--gold); border-color: var(--gold); }

/* Package page layout */
.page-hero {
  padding: 7rem 1.5rem 3rem;
  text-align: center;
  background: var(--beige);
  border-bottom: 1px solid var(--border);
}
.page-hero-eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 0.75rem;
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600; color: var(--ink); line-height: 1.15;
}
.page-hero p { color: var(--muted); font-size: 0.9rem; margin-top: 0.75rem; max-width: 36rem; margin-inline: auto; }

.lang-switcher {
  background: rgba(255, 255, 255, 0.6);
  padding: 6px; border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex; gap: 4px;
}
.lang-switcher button {
  padding: 10px 20px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; border: none; cursor: pointer;
  transition: all 0.25s; background: transparent; color: var(--muted);
}
.lang-switcher button.active {
  background: var(--gold); color: white;
  box-shadow: 0 4px 12px rgba(201, 166, 70, 0.35);
}
.lang-switcher button:not(.active):hover {
  color: var(--ink); background: rgba(201, 166, 70, 0.1);
}

.poster-wrap {
  background: white; border-radius: 1rem;
  padding: 1rem; box-shadow: var(--shadow-elegant);
  border: 1px solid rgba(201, 166, 70, 0.15);
  overflow: hidden;
}
.poster-wrap img { width: 100%; height: auto; border-radius: 0.75rem; }

.btn-dark {
  background: var(--dark); color: white;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 500; font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; transition: all 0.3s;
  border: none; cursor: pointer;
}
.btn-dark:hover { background: var(--dark2); transform: translateY(-2px); }

.site-footer {
  background: var(--dark); padding: 1.5rem;
  text-align: center; border-top: 1px solid rgba(201, 166, 70, 0.12);
  font-size: 12px; color: rgba(255, 255, 255, 0.45);
}
