/* Noor Al Hikmah Design System */

:root {
  --teal: #1A5F5F;
  --teal-dark: #0D3D3D;
  --teal-mid: #22787A;
  --teal-light: #2A9090;
  
  --gold: #D4A054;
  --gold-light: #E8BF80;
  --gold-mid: #B8863E;
  --gold-dark: #8C6528;
  --gold-pale: #F5E8CC;
  
  --cream: #F7F5F0;
  --cream-alt: #F0EDE6;
  
  --ink: #1C1C1E;
  --ink-soft: #3D3628;
  --muted: #6B6B6B;
  
  --border: rgba(212, 160, 84, 0.25);
  
  --font-arabic: 'Amiri', 'Times New Roman', serif;
  --font-body: 'Lora', Georgia, serif;
  
  /* Theme Gradients */
  --gradient-mystical: linear-gradient(135deg, #1A5F5F, #2E3A59);
  --gradient-love: linear-gradient(135deg, #8B4557, #D4A054);
  --gradient-wisdom: linear-gradient(135deg, #D4A054, #1A5F5F);
  --gradient-devotion: linear-gradient(135deg, #2E5A4E, #1A5F5F);
  --gradient-nature: linear-gradient(135deg, #4A7C59, #2E5A4E);

  /* SVG Geometric Patterns (Data URIs) */
  --pattern-arabesque: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><path d="M30 0 L60 30 L30 60 L0 30 Z" fill="none" stroke="%23FFFFFF" stroke-width="0.5"/><circle cx="30" cy="30" r="8" fill="none" stroke="%23FFFFFF" stroke-width="0.5"/><path d="M15 15 L45 15 L45 45 L15 45 Z" fill="none" stroke="%23FFFFFF" stroke-width="0.3" transform="rotate(45 30 30)"/></svg>');
  --pattern-stars: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><g transform="translate(40,40)"><path d="M0,-20 L5,-8 L18,-6 L8,3 L12,18 L0,10 L-12,18 L-8,3 L-18,-6 L-5,-8 Z" fill="none" stroke="%23FFFFFF" stroke-width="0.5"/></g><g transform="translate(0,0)"><path d="M0,-10 L2.5,-4 L9,-3 L4,1.5 L6,9 L0,5 L-6,9 L-4,1.5 L-9,-3 L-2.5,-4 Z" fill="none" stroke="%23FFFFFF" stroke-width="0.3"/></g><g transform="translate(80,0)"><path d="M0,-10 L2.5,-4 L9,-3 L4,1.5 L6,9 L0,5 L-6,9 L-4,1.5 L-9,-3 L-2.5,-4 Z" fill="none" stroke="%23FFFFFF" stroke-width="0.3"/></g><g transform="translate(0,80)"><path d="M0,-10 L2.5,-4 L9,-3 L4,1.5 L6,9 L0,5 L-6,9 L-4,1.5 L-9,-3 L-2.5,-4 Z" fill="none" stroke="%23FFFFFF" stroke-width="0.3"/></g><g transform="translate(80,80)"><path d="M0,-10 L2.5,-4 L9,-3 L4,1.5 L6,9 L0,5 L-6,9 L-4,1.5 L-9,-3 L-2.5,-4 Z" fill="none" stroke="%23FFFFFF" stroke-width="0.3"/></g></svg>');
  --pattern-hexagon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="56" height="100"><path d="M28,0 L56,25 L56,75 L28,100 L0,75 L0,25 Z" fill="none" stroke="%23FFFFFF" stroke-width="0.5"/><path d="M28,50 L42,37.5 L42,62.5 L28,75 L14,62.5 L14,37.5 Z" fill="none" stroke="%23FFFFFF" stroke-width="0.3"/></svg>');
  --pattern-lattice: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><path d="M0,0 L40,40 M40,0 L0,40" fill="none" stroke="%23FFFFFF" stroke-width="0.3"/><circle cx="20" cy="20" r="6" fill="none" stroke="%23FFFFFF" stroke-width="0.5"/><circle cx="0" cy="0" r="4" fill="none" stroke="%23FFFFFF" stroke-width="0.3"/><circle cx="40" cy="0" r="4" fill="none" stroke="%23FFFFFF" stroke-width="0.3"/><circle cx="0" cy="40" r="4" fill="none" stroke="%23FFFFFF" stroke-width="0.3"/><circle cx="40" cy="40" r="4" fill="none" stroke="%23FFFFFF" stroke-width="0.3"/></svg>');
  --pattern-circles: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50"><circle cx="25" cy="25" r="20" fill="none" stroke="%23FFFFFF" stroke-width="0.5"/><circle cx="25" cy="25" r="12" fill="none" stroke="%23FFFFFF" stroke-width="0.3"/><circle cx="25" cy="25" r="4" fill="none" stroke="%23FFFFFF" stroke-width="0.5"/><circle cx="0" cy="0" r="8" fill="none" stroke="%23FFFFFF" stroke-width="0.3"/><circle cx="50" cy="0" r="8" fill="none" stroke="%23FFFFFF" stroke-width="0.3"/><circle cx="0" cy="50" r="8" fill="none" stroke="%23FFFFFF" stroke-width="0.3"/><circle cx="50" cy="50" r="8" fill="none" stroke="%23FFFFFF" stroke-width="0.3"/></svg>');
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Scales */
.text-h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; line-height: 1.2; }
.text-h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1.25; }
.text-h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; line-height: 1.3; }

.arabic-text {
  font-family: var(--font-arabic);
  direction: rtl;
  /* Line height is strictly >= 2.0x font-size to prevent clipping */
}
.arabic-h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 2.1;
  color: var(--gold);
}
.arabic-h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 2.1;
  color: var(--gold-light);
}

/* Surfaces */
.surface-stage {
  background-color: var(--teal-dark);
  background-image: var(--gradient-mystical);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.surface-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--pattern-arabesque);
  opacity: 0.08;
  z-index: 0;
}
.surface-stage-content {
  position: relative;
  z-index: 1;
}
.surface-reading {
  background-color: var(--cream);
  color: var(--ink);
}

/* Frosted Glass */
.glass-panel {
  background: rgba(26, 95, 95, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 160, 84, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.glass-panel-light {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 160, 84, 0.3);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  border: none;
  outline: none;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--gold);
  color: var(--teal-dark) !important;
  box-shadow: 0 4px 14px rgba(212, 160, 84, 0.3);
}
.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 8px 24px rgba(212, 160, 84, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(247, 245, 240, 0.3);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 160, 84, 0.05);
}

.btn svg { flex-shrink: 0; }

/* Arabic Body overrides */
body.is-arabic,
body.is-arabic h1, body.is-arabic h2, body.is-arabic h3,
body.is-arabic p, body.is-arabic a, body.is-arabic button,
body.is-arabic label, body.is-arabic li {
  font-family: var(--font-arabic);
  line-height: 2.1;
}

body.is-arabic .text-h1,
body.is-arabic .text-h2,
body.is-arabic .text-h3 {
  line-height: 2.1;
}

[dir="rtl"] {
  text-align: right;
}
