/* ============================================================================
   UAE Premium Numbers — Premium Aesthetic Layer
   Loaded after main page CSS to refine the Etisalat Red & White theme into a
   premium-feeling experience: rich serif headings, scroll reveals, refined
   shadows, button micro-interactions.
   ============================================================================ */

/* ---- Premium font stack — Etisalat-tech-premium feel ----
   Outfit: modern geometric sans (Stripe / Linear / contemporary tech-luxury).
   Inter: clean modern body sans, super legible.
   Cormorant Garamond Italic: kept only for H1 accent line (subtle elegance).
   Playfair Display: fallback. */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&family=Cormorant+Garamond:ital,wght@1,400;1,500;1,600&display=swap');

:root {
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-modern: 'Inter', 'Outfit', sans-serif;  /* legacy alias */
  --font-luxe: 'Outfit', sans-serif;             /* legacy alias */
  --shadow-soft: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-soft-lg: 0 4px 12px rgba(0,0,0,0.05), 0 16px 40px rgba(0,0,0,0.06);
  --shadow-red-glow: 0 8px 24px rgba(237, 28, 36, 0.18);
  --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Global body type — Inter, premium-tech ---- */
body, p, li, span, a, button, input, textarea, select, label, td, th {
  font-family: var(--font-body) !important;
}

/* ---- Hero H1 — Outfit Bold, tight tracking, premium-tech ---- */
.hero h1 {
  font-family: var(--font-display) !important;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.0;
  font-size: clamp(2.4rem, 5.8vw, 4.4rem);
}
.hero h1 span {
  font-family: var(--font-accent) !important;  /* Cormorant Italic accent */
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.005em;
  font-size: 0.78em;
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--gold);
}

/* ---- All H1/H2/H3 default to Outfit ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display) !important;
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* ---- Section H2 — Outfit SemiBold ---- */
.section-heading h2,
section h2 {
  font-family: var(--font-display) !important;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

/* ---- Body text — slightly tighter and more modern ---- */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}

/* ---- Brand wordmark (navbar + footer logos) — premium uppercase tracking ---- */
.nav-logo,
.navbar-logo,
.footer-logo {
  font-family: var(--font-display) !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: var(--gold) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding: 0.25rem 0;
}
.nav-logo::before,
.navbar-logo::before,
.footer-logo::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(237, 28, 36, 0.18);
  flex-shrink: 0;
}
.nav-logo:hover,
.navbar-logo:hover {
  color: var(--gold-light) !important;
}
.footer-logo {
  font-size: 1rem;
  letter-spacing: 0.1em;
}

/* RTL adjustment */
[dir="rtl"] .nav-logo,
[dir="rtl"] .navbar-logo,
[dir="rtl"] .footer-logo {
  letter-spacing: 0.04em; /* less tracking for Arabic-mixed contexts */
}

/* ---- Hero — softer bg with subtle premium gradient ---- */
.hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF8F8 100%);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(237, 28, 36, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }

.hero-badge {
  background: linear-gradient(135deg, rgba(237,28,36,0.06) 0%, rgba(237,28,36,0.10) 100%);
  border: 1px solid rgba(237, 28, 36, 0.18);
  color: #B5151B;
  font-family: var(--font-modern);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 0.78rem;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  display: inline-block;
  backdrop-filter: blur(6px);
}

/* ---- Premium button: gradient red, white text, soft red glow on hover ---- */
.btn,
.btn-gold,
.btn-primary {
  font-family: var(--font-modern);
  font-weight: 600;
  letter-spacing: 0.005em;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background var(--transition-smooth);
  will-change: transform, box-shadow;
}
.btn-gold,
.btn-primary {
  background: linear-gradient(135deg, #ED1C24 0%, #FF3540 100%);
  color: #FFFFFF !important;
  border: none;
  box-shadow: var(--shadow-red-glow);
  position: relative;
  overflow: hidden;
}
.btn-gold:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(237, 28, 36, 0.28);
  background: linear-gradient(135deg, #FF2B33 0%, #FF4A55 100%);
}
.btn-gold::before,
.btn-primary::before {
  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 600ms ease;
}
.btn-gold:hover::before,
.btn-primary:hover::before { left: 100%; }

.btn-outline {
  border: 1.5px solid var(--gold) !important;
  color: var(--gold) !important;
  background: transparent;
  transition: background var(--transition-smooth), color var(--transition-smooth);
}
.btn-outline:hover {
  background: var(--gold);
  color: #FFFFFF !important;
}

/* ---- Plan / pricing cards — refined shadows & hover lift ---- */
.plan-card,
.pricing-card,
[class*="plan"][class*="card"],
.intent-btn {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.06) !important;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}
.plan-card:hover,
.pricing-card:hover,
[class*="plan"][class*="card"]:hover,
.intent-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft-lg);
  border-color: rgba(237, 28, 36, 0.28) !important;
}

/* ---- Tab buttons — premium active state ---- */
.tab-btn,
[role="tab"] {
  transition: color var(--transition-smooth), border-color var(--transition-smooth);
}

/* ---- Smooth focus rings (accessibility + premium) ---- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(237, 28, 36, 0.5);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Scroll-reveal animation classes — applied by premium.js ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1), transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger-1 { transition-delay: 80ms; }
.reveal-stagger-2 { transition-delay: 160ms; }
.reveal-stagger-3 { transition-delay: 240ms; }
.reveal-stagger-4 { transition-delay: 320ms; }

/* ---- Hero entrance animation (auto-runs on load) ---- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero .hero-badge,
.hero h1,
.hero .hero-sub,
.hero .hero-buttons {
  opacity: 0;
  animation: heroFadeUp 800ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero .hero-badge { animation-delay: 80ms; }
.hero h1 { animation-delay: 220ms; }
.hero .hero-sub { animation-delay: 380ms; }
.hero .hero-buttons { animation-delay: 540ms; }

/* ---- Decorative gold-line → premium red separator ---- */
.gold-line {
  background: linear-gradient(90deg, transparent 0%, rgba(237,28,36,0.6) 50%, transparent 100%);
  height: 1px;
  margin: 2rem auto 0;
  width: min(80%, 320px);
  opacity: 0;
  animation: heroFadeUp 800ms cubic-bezier(0.2, 0.8, 0.2, 1) 700ms forwards;
}

/* ---- Soft section transitions ---- */
section {
  position: relative;
}

/* ---- Trust badge strip — premium spacing ---- */
.trust-badges,
section[style*="trust"] {
  padding: 2rem 0;
}

/* ---- Reduce motion preference ---- */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero .hero-badge,
  .hero h1,
  .hero .hero-sub,
  .hero .hero-buttons,
  .gold-line {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .btn:hover,
  .plan-card:hover,
  .pricing-card:hover { transform: none !important; }
}

/* ---- Light theme: subtle noise texture refinement (was too dark on white) ---- */
body::before {
  opacity: 0.015 !important;
}

/* ---- Footer / dark sections — fix any leftover dark text-on-dark issues ---- */
[style*="background:var(--bg)"],
[style*="background: var(--bg)"] {
  /* These now show as white on white if the variable changed; ensure text contrast */
  color: var(--text) !important;
}
