/* ============================================================
   KazaUmri — Base Stylesheet
   Shared across all pages. Import this first.
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
  /* Backgrounds */
  --bg:       #13150e;
  --bg2:      #1a1c14;
  --bg3:      #22241a;
  --bg4:      #2c2f22;
  --bg5:      #363929;

  /* Gold palette */
  --gold:     #c9a84c;
  --gold2:    #e8c97a;
  --gold-dim: #7a6330;
  --gold-bg:  rgba(201,168,76,0.08);
  --gold-bdr: rgba(201,168,76,0.20);
  --gold-bdr2:rgba(201,168,76,0.35);

  /* Text */
  --cream:    #f0e8d0;
  --cream2:   #d4c9a8;
  --text2:    #b8a882;
  --text3:    #6e6448;
  --text4:    #4a4232;

  /* Accents */
  --amber:    #d4843a;
  --amber2:   #f0a855;
  --green:    #5a7a3a;
  --green2:   #7aaa52;
  --red:      #a0442a;
  --red2:     #d4654a;

  /* Prayer colors */
  --fajr:    #5a8fbb;
  --zuhr:    #5a7a3a;
  --asr:     #c9a84c;
  --maghrib: #a0557a;
  --isha:    #7a5aaa;
  --witr:    #4a8a8a;

  /* Layout */
  --max-w:   1160px;
  --r:       12px;
  --r-sm:    8px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}
.serif { font-family: 'Playfair Display', serif; }
.arabic {
  font-family: 'Scheherazade New', 'Amiri', 'Arial Unicode MS', serif;
  direction: rtl;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold2); }

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--r-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: var(--bg);
  font-weight: 600;
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201,168,76,0.3);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--gold-bdr2);
  color: var(--cream2);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-bg);
}
.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-ghost:hover { background: var(--bg4); color: var(--cream); }
.btn-lg { padding: 15px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }

/* ── Cards ── */
.card {
  background: var(--bg3);
  border: 1px solid var(--gold-bdr);
  border-radius: var(--r);
  padding: 24px;
}

/* ── Section label ── */
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text3);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: 0.75rem;
}
.section-title span { color: var(--gold); }
.section-sub {
  font-size: 1rem;
  color: var(--text2);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(19,21,14,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-bdr);
  transition: all 0.3s;
}
.nav-logo img { height: 48px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.88rem;
  color: var(--text2);
  transition: color 0.2s;
  letter-spacing: 0.03em;
}
.nav-links a:hover { color: var(--gold); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cream);
  font-size: 1.4rem;
}

/* ── Footer ── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--gold-bdr);
  padding: 3rem 2rem 2rem;
  text-align: center;
}
.footer-logo { margin-bottom: 1.2rem; }
.footer-logo img { height: 44px; }
.footer-tagline {
  font-size: 0.82rem;
  color: var(--text3);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a { font-size: 0.82rem; color: var(--text3); }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.75rem; color: var(--text4); }

/* ── Inputs ── */
input, textarea, select {
  background: var(--bg4);
  border: 1px solid var(--gold-bdr2);
  border-radius: var(--r-sm);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  padding: 10px 14px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
}
input::placeholder { color: var(--text4); }
label {
  font-size: 0.78rem;
  color: var(--text3);
  display: block;
  margin-bottom: 5px;
  letter-spacing: 0.03em;
}

/* ── Utility ── */
.gold { color: var(--gold); }
.cream { color: var(--cream); }
.text2 { color: var(--text2); }
.text3 { color: var(--text3); }
.center { text-align: center; }
.flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.divider {
  border: none;
  border-top: 1px solid var(--gold-bdr);
  margin: 2rem 0;
}

/* ── Toast notification ── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg4);
  border: 1px solid var(--gold);
  color: var(--cream2);
  padding: 10px 22px;
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  z-index: 9999;
  transition: transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.anim-fade-up { animation: fadeUp 0.7s ease forwards; }
.anim-fade-in { animation: fadeIn 0.5s ease forwards; }
.float { animation: float 4s ease-in-out infinite; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .container { padding: 0 1.2rem; }
  .nav-links, .nav-actions .btn:not(.btn-gold) { display: none; }
  .nav-mobile-btn { display: block; }
  .section-title { font-size: 1.6rem; }
}
