/* ==========================================================================
   MAHDAWI COMING SOON — ROYAL EMERALD & ANTIQUE GOLD DESIGN SYSTEM
   DOMAIN-LAUNCH-01B (FINAL VISUAL POLISH)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. LOCAL FONT DECLARATIONS
   -------------------------------------------------------------------------- */

/* El Messiri — Grand spiritual headlines & brand name */
@font-face {
  font-family: 'El Messiri';
  src: url('./fonts/ElMessiri-wght.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Alexandria — Coming Soon announcement & metadata badges */
@font-face {
  font-family: 'Alexandria';
  src: url('./fonts/Alexandria-wght.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Amiri — Devotional dedication & classical Arabic manuscript text */
@font-face {
  font-family: 'Amiri';
  src: url('./fonts/Amiri-Arabic-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Amiri';
  src: url('./fonts/5aae3a1c1074c5e1-s.p.woff2') format('woff2'),
       url('./fonts/Amiri-Arabic-400.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* IBM Plex Sans Arabic — Small supporting UI controls only */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('./fonts/9da48a48bf6500f8-s.p.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('./fonts/c9a0d344f313d307.p.3ik2qu-u9tgho.woff2') format('woff2'),
       url('./fonts/9da48a48bf6500f8-s.p.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('./fonts/f022b1629605b85c-s.p.woff2') format('woff2'),
       url('./fonts/9da48a48bf6500f8-s.p.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Royal Emerald Palette */
  --color-emerald-deep: #081511;
  --color-emerald-950: #0c1e18;
  --color-emerald-900: #122b22;
  --color-emerald-800: #1a3c30;
  --color-emerald-700: #245041;
  --color-emerald-surface: rgba(18, 43, 34, 0.78);
  --color-emerald-card: rgba(14, 34, 27, 0.88);

  /* Antique Gold Palette */
  --color-gold-200: #fbf1d8;
  --color-gold-300: #f5e7c8;
  --color-gold-400: #e5cd96;
  --color-gold-500: #d4b574;
  --color-gold-600: #b89750;
  --color-gold-700: #937637;
  --color-gold-glow: rgba(212, 181, 116, 0.22);
  --color-gold-border: rgba(212, 181, 116, 0.42);
  --color-gold-border-subtle: rgba(212, 181, 116, 0.22);

  /* Warm Ivory / Parchment */
  --color-ivory: #faf8f2;
  --color-ivory-soft: #f4eee2;
  --color-ivory-muted: rgba(250, 248, 242, 0.82);

  /* Typography Stacks */
  --font-headline: 'El Messiri', 'Alexandria', serif;
  --font-announcement: 'Alexandria', sans-serif;
  --font-manuscript: 'Amiri', 'Traditional Arabic', serif;
  --font-ui: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;

  /* Shadows & Radius */
  --radius-card: 22px;
  --radius-pill: 9999px;
  --shadow-manuscript: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(212, 181, 116, 0.35);
  --shadow-gold-banner: 0 8px 32px rgba(212, 181, 116, 0.25);
}

/* --------------------------------------------------------------------------
   3. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--color-emerald-deep);
  color: var(--color-ivory);
  font-family: var(--font-ui);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   4. ATMOSPHERIC BACKGROUND (TUNED VISIBILITY & HIGH CONTRAST)
   -------------------------------------------------------------------------- */
.scene-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Increased artwork visibility from 0.22 to 0.34 for richer atmosphere */
.scene-artwork {
  position: absolute;
  inset: 0;
  background-image: url('./assets/artwork.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.34;
  filter: saturate(0.92) contrast(1.12);
  transform: scale(1.02);
}

/* Radial veil to ensure central text contrast remains rock-solid */
.scene-radial-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(36, 80, 65, 0.55) 0%, rgba(14, 34, 27, 0.84) 50%, var(--color-emerald-deep) 95%);
}

.scene-pattern {
  position: absolute;
  inset: 0;
  background-image: url('./assets/patterns/girih-gold.svg');
  background-repeat: repeat;
  background-size: 88px 88px;
  opacity: 0.08;
  mix-blend-mode: overlay;
}

.scene-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.75);
}

/* --------------------------------------------------------------------------
   5. PAGE CONTAINER
   -------------------------------------------------------------------------- */
.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

@media (min-width: 768px) {
  .page-wrapper {
    padding: 2.25rem 2.25rem 3rem;
  }
}

/* --------------------------------------------------------------------------
   6. HEADER (MODESTLY ENHANCED BRAND VISIBILITY)
   -------------------------------------------------------------------------- */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 2rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

/* Modestly increased icon container size from 44px to 52px */
.brand-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 181, 116, 0.24) 0%, rgba(18, 43, 34, 0.95) 100%);
  border: 1px solid var(--color-gold-border);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 16px rgba(212, 181, 116, 0.15);
  flex-shrink: 0;
}

.brand-icon {
  width: 32px;
  height: 32px;
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

/* Modestly increased brand typography from 1.25rem to 1.42rem */
.brand-name {
  font-family: var(--font-headline);
  font-size: clamp(1.25rem, 2.8vw, 1.45rem);
  font-weight: 700;
  color: var(--color-gold-200);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-family: var(--font-ui);
  font-size: 0.825rem;
  color: var(--color-gold-400);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(212, 181, 116, 0.12);
  border: 1px solid var(--color-gold-border);
  font-family: var(--font-announcement);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-gold-300);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-gold-400);
  box-shadow: 0 0 10px var(--color-gold-400);
  animation: pulse-ring 2.2s infinite ease-in-out;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 0.45; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* --------------------------------------------------------------------------
   7. MAIN HERO SECTION
   -------------------------------------------------------------------------- */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: auto 0;
  padding: 0.75rem 0 2rem;
}

/* --------------------------------------------------------------------------
   8. PROMINENT COMING SOON BANNER («قريباً بإذن الله»)
   -------------------------------------------------------------------------- */
.prominent-announcement-banner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 1.6rem 0.85rem;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(212, 181, 116, 0.2) 0%, rgba(26, 60, 48, 0.75) 50%, rgba(14, 34, 27, 0.85) 100%);
  border: 1px solid var(--color-gold-500);
  box-shadow: var(--shadow-gold-banner);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  font-family: var(--font-announcement);
}

.prominent-announcement-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-200), transparent);
}

.announcement-primary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-announcement);
  font-size: clamp(1.05rem, 3.2vw, 1.35rem);
  font-weight: 700;
  color: var(--color-gold-200);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.01em;
}

.announcement-rosette {
  color: var(--color-gold-400);
  font-size: 0.95rem;
  line-height: 1;
}

.announcement-secondary {
  font-family: var(--font-announcement);
  font-size: clamp(0.75rem, 2.2vw, 0.85rem);
  font-weight: 500;
  color: var(--color-ivory-soft);
  opacity: 0.9;
}

/* Grand Spiritual Headline (El Messiri font) */
.grand-headline {
  font-family: var(--font-headline);
  font-size: clamp(2.15rem, 8vw, 4rem);
  font-weight: 700;
  line-height: 1.32;
  color: var(--color-gold-200);
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.7);
  margin-bottom: 0.75rem;
  max-width: 920px;
}

.headline-gold-accent {
  background: linear-gradient(135deg, #fff8e2 0%, var(--color-gold-300) 50%, var(--color-gold-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Classical Supplication Bar (Amiri font) */
.supplication-verse {
  font-family: var(--font-manuscript);
  font-size: clamp(1.25rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--color-gold-400);
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  text-shadow: 0 2px 18px rgba(212, 181, 116, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   9. ILLUMINATED MANUSCRIPT DEDICATION CARD (OPTIMIZED SPACING & READABILITY)
   -------------------------------------------------------------------------- */
.manuscript-panel {
  position: relative;
  width: 100%;
  max-width: 860px;
  background: var(--color-emerald-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-gold-border);
  box-shadow: var(--shadow-manuscript);
  padding: 2.25rem 1.35rem;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

@media (min-width: 640px) {
  .manuscript-panel {
    padding: 3.25rem 3rem 3rem;
  }
}

/* Double gold border & Corner Rosettes */
.manuscript-inner-border {
  position: absolute;
  inset: 10px;
  border: 1px solid var(--color-gold-border-subtle);
  border-radius: calc(var(--radius-card) - 6px);
  pointer-events: none;
}

.manuscript-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.corner-tl { top: 12px; left: 12px; border-top: 2px solid var(--color-gold-400); border-left: 2px solid var(--color-gold-400); }
.corner-tr { top: 12px; right: 12px; border-top: 2px solid var(--color-gold-400); border-right: 2px solid var(--color-gold-400); }
.corner-bl { bottom: 12px; left: 12px; border-bottom: 2px solid var(--color-gold-400); border-left: 2px solid var(--color-gold-400); }
.corner-br { bottom: 12px; right: 12px; border-bottom: 2px solid var(--color-gold-400); border-right: 2px solid var(--color-gold-400); }

/* Dedication Header Badge */
.dedication-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-announcement);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-gold-400);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.dedication-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0 auto 1.75rem;
  max-width: 340px;
}

.dedication-divider .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-border), transparent);
}

.dedication-divider .diamond {
  width: 7px;
  height: 7px;
  background-color: var(--color-gold-400);
  transform: rotate(45deg);
}

/* The Sacred Dedication Manuscript Text (Enhanced line height & typography) */
.dedication-text {
  font-family: var(--font-manuscript);
  font-size: clamp(1.22rem, 3.4vw, 1.62rem);
  line-height: 2.3;
  color: var(--color-ivory);
  text-align: justify;
  text-align-last: center;
  margin-bottom: 1.85rem;
  padding: 0 0.25rem;
}

.dedication-text .sacred-title {
  color: var(--color-gold-200);
  font-weight: 700;
  text-shadow: 0 1px 12px rgba(212, 181, 116, 0.25);
}

.dedication-text .salawat {
  color: var(--color-gold-400);
  font-size: 0.95em;
  font-weight: 400;
}

/* Expressive Description Paragraph (Generous breathing room & high contrast) */
.expressive-paragraph {
  font-family: var(--font-manuscript);
  font-size: clamp(1.08rem, 2.7vw, 1.35rem);
  line-height: 2.15;
  color: var(--color-ivory-soft);
  max-width: 720px;
  margin: 0 auto;
  text-align: justify;
  text-align-last: center;
  padding: 0 0.25rem;
}

/* --------------------------------------------------------------------------
   10. BEAUTIFUL NON-INTERACTIVE LAUNCH ANNOUNCEMENT CARD
   -------------------------------------------------------------------------- */
.launch-announcement-card {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
}

.launch-card-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(22, 47, 39, 0.85) 0%, rgba(14, 34, 27, 0.92) 100%);
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  text-align: right;
}

@media (max-width: 600px) {
  .launch-card-inner {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1.2rem;
    gap: 0.85rem;
  }
}

.launch-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 181, 116, 0.14);
  border: 1px solid var(--color-gold-border);
  color: var(--color-gold-300);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.launch-card-content {
  flex: 1;
}

.launch-card-title {
  font-family: var(--font-announcement);
  font-size: clamp(0.925rem, 2.6vw, 1.05rem);
  font-weight: 700;
  color: var(--color-gold-200);
  margin-bottom: 0.35rem;
}

.launch-card-desc {
  font-family: var(--font-ui);
  font-size: clamp(0.78rem, 2.2vw, 0.86rem);
  line-height: 1.7;
  color: var(--color-ivory-muted);
}

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
.footer-bar {
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 181, 116, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-ui);
  font-size: 0.825rem;
  color: rgba(250, 248, 242, 0.65);
}

@media (min-width: 640px) {
  .footer-bar {
    flex-direction: row;
  }
}

.footer-copy {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-meta {
  font-family: var(--font-announcement);
  font-size: 0.785rem;
  color: var(--color-gold-400);
}

/* --------------------------------------------------------------------------
   12. ACCESSIBILITY & REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
