/* ============================================================
   Dua: Daily Ayah — Shared Design System
   "Sacred Night Sky" aesthetic
   ============================================================ */

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

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --bg-deep:        #04080F;
  --bg-mid:         #080F1C;
  --bg-card:        #0C1523;
  --bg-card-2:      #111C2E;
  --gold:           #C9973A;
  --gold-light:     #F0C97A;
  --gold-pale:      #F5E6C2;
  --green-muted:    #243D33;
  --teal-dark:      #0A1F1A;
  --text-primary:   #F0EAE0;
  --text-secondary: #8A9BB0;
  --text-muted:     #4E5F70;
  --border:         rgba(201,151,58,0.2);
  --border-strong:  rgba(201,151,58,0.45);
  --glow-gold:      rgba(201,151,58,0.15);
  --radius-sm:      8px;
  --radius-md:      16px;
  --radius-lg:      28px;
  --radius-xl:      40px;
  --shadow-card:    0 8px 40px rgba(0,0,0,0.55);
  --shadow-glow:    0 0 60px rgba(201,151,58,0.12);
  --transition:     0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ── Typography ─────────────────────────────────────────────── */
.serif { font-family: 'Cormorant Garamond', serif; }
.arabic { font-family: 'Scheherazade New', serif; direction: rtl; }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

/* ── Utilities ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.gold-text { color: var(--gold-light); }
.muted { color: var(--text-secondary); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.section-label::before,
.section-label::after {
  content: '';
  display: block;
  height: 1px;
  width: 28px;
  background: var(--gold);
  opacity: 0.5;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.section-title span { color: var(--gold-light); }

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
}

/* ── Gold Divider ───────────────────────────────────────────── */
.gold-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
  margin: 0;
}

/* ── Geometric background pattern ──────────────────────────── */
.geo-bg {
  position: relative;
  overflow: hidden;
}
.geo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C9973A' stroke-width='0.4' opacity='0.12'%3E%3Cpolygon points='30,2 58,16 58,44 30,58 2,44 2,16'/%3E%3Cpolygon points='30,12 48,21 48,39 30,48 12,39 12,21'/%3E%3Cline x1='30' y1='2' x2='30' y2='12'/%3E%3Cline x1='58' y1='16' x2='48' y2='21'/%3E%3Cline x1='58' y1='44' x2='48' y2='39'/%3E%3Cline x1='30' y1='58' x2='30' y2='48'/%3E%3Cline x1='2' y1='44' x2='12' y2='39'/%3E%3Cline x1='2' y1='16' x2='12' y2='21'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}
.geo-bg > * { position: relative; z-index: 1; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(4, 8, 15, 0.88);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
}
.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--gold), #A97A28);
  color: #0a0500 !important;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 50px;
  transition: transform var(--transition), box-shadow var(--transition) !important;
  box-shadow: 0 4px 20px rgba(201,151,58,0.3);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,151,58,0.45) !important;
  color: #0a0500 !important;
}
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #06040A;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 6px 30px rgba(201,151,58,0.35);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s ease;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(201,151,58,0.5); color: #06040A; }
.btn-primary:hover::after { left: 100%; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  color: var(--gold-light);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.btn-outline:hover {
  background: var(--glow-gold);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

/* ── Scroll Reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  padding: 56px 24px 32px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}
.footer-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-tagline {
  font-family: 'Scheherazade New', serif;
  font-size: 1.1rem;
  color: var(--gold);
  opacity: 0.7;
}

/* ── Inner pages (privacy, contact) ─────────────────────────── */
.page-hero {
  padding: 140px 24px 80px;
  text-align: center;
  background: var(--bg-mid);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '☽';
  position: absolute;
  font-size: 28rem;
  color: var(--gold);
  opacity: 0.025;
  top: -80px; right: -60px;
  pointer-events: none;
  line-height: 1;
}
.page-hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 16px;
}
.page-hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto;
}

.content-section {
  max-width: 780px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}
.content-section .last-updated {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 16px;
  margin-bottom: 48px;
}
.content-section h2 {
  font-size: 1.65rem;
  color: var(--gold-pale);
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.content-section h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin: 28px 0 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.content-section p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.85;
}
.content-section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}
.content-section ul li {
  color: var(--text-secondary);
  padding: 6px 0 6px 24px;
  position: relative;
  line-height: 1.75;
}
.content-section ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.5rem;
  top: 12px;
}
.content-section a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Contact page specifics */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 40px var(--glow-gold);
}
.contact-card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}
.contact-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.contact-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.contact-card a.email-link {
  font-weight: 600;
  color: var(--gold-light);
  font-size: 0.95rem;
  text-decoration: none;
}
.contact-card a.email-link:hover { color: var(--gold); }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.faq-answer {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.97rem;
}
.faq-answer a { color: var(--gold-light); text-underline-offset: 3px; text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(4,8,15,0.97);
    backdrop-filter: blur(24px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-mobile-toggle { display: flex; }
  .contact-grid { grid-template-columns: 1fr; }
}
