/* =========================================================
   THE SUNNAH SPACE — stylesheet
   Palette:
     --navy-950 : #0A1626   deepest navy (footer / mission bg)
     --navy-800 : #122238   primary navy
     --navy-600 : #2C4160   muted mid blue (accents, borders)
     --paper    : #FAF8F4   warm off-white background
     --paper-2  : #F1EEE7   secondary panel background
     --ink      : #17212E   body text on light
     --ink-soft : #4C596B   secondary text on light
   Type: Montserrat (all UI/body/display), Amiri (single Arabic accent only)
   ========================================================= */

:root {
  --navy-950: #0A1626;
  --navy-800: #122238;
  --navy-700: #182C47;
  --navy-600: #2C4160;
  --paper: #FAF8F4;
  --paper-2: #F1EEE7;
  --ink: #17212E;
  --ink-soft: #4C596B;
  --line: rgba(23, 33, 46, 0.12);
  --line-dark: rgba(255, 255, 255, 0.16);

  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic: "Amiri", serif;

  --max-width: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .promo-track { animation: none; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--navy-600);
  outline-offset: 3px;
}

/* ---------- layout helpers ---------- */

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section-inner.narrow {
  max-width: 700px;
}

.section {
  padding: 110px 0;
}

.section-dark {
  background: var(--navy-950);
  color: #FBFBFA;
}

#about,
#mission,
#products,
#instagram,
#contact {
  scroll-margin-top: 106px;
}

/* ---------- promo banner ---------- */

.promo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  height: 36px;
  overflow: hidden;
  background: var(--navy-700);
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
}

.promo-track {
  display: flex;
  width: max-content;
  animation: promo-scroll 22s linear infinite;
}

.promo-track span {
  padding: 0 36px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FBFBFA;
  white-space: nowrap;
}

@keyframes promo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- header / nav ---------- */

.site-header {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 22, 38, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.35s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line-dark);
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 34px;
  width: auto;
}

.brand-word {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: #FBFBFA;
}

.site-nav {
  display: flex;
  gap: 36px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #FBFBFA;
  position: relative;
  padding: 4px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: #FBFBFA;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #FBFBFA;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  padding: 226px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  position: relative;
}

.hero-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--navy-600);
  margin: 0 0 22px;
}

.hero-heading {
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
  color: var(--navy-950);
  max-width: 12ch;
}

.hero-sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 0 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--navy-950);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-700);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--navy-950);
}

.btn-ghost:hover {
  border-color: var(--navy-800);
  background: rgba(23, 33, 46, 0.04);
}

.hero-mark {
  position: relative;
  height: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-arabic {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: clamp(160px, 22vw, 300px);
  color: var(--navy-950);
  opacity: 0.05;
  line-height: 1;
  user-select: none;
}

/* ---------- section headings ---------- */

.section-heading {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
  color: var(--navy-950);
}

.section-dark .section-heading {
  color: #fff;
}

.section-lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0;
}

.section-lead-dark {
  color: rgba(251, 251, 250, 0.78);
}

.section-lead-small {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
}

.section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.section-header-row .section-heading {
  margin: 0;
}

/* ---------- mission ---------- */

.mission-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(251, 251, 250, 0.6);
  margin: 0 0 20px;
}

.mission-statement {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 26px;
  max-width: 14ch;
}

/* ---------- products ---------- */

.product-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.product-visual {
  position: relative;
  min-height: 320px;
  background: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy-800);
  border: 1px solid var(--navy-600);
  padding: 6px 12px;
  margin-bottom: 20px;
}

.product-details {
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--navy-950);
}

.product-copy {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0;
}

/* ---------- countdown ---------- */

.countdown {
  margin-top: 40px;
  border: 1px solid var(--line);
  background: var(--navy-950);
  padding: 44px 40px;
  text-align: center;
}

.countdown-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(251, 251, 250, 0.65);
  margin: 0 0 26px;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 76px;
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
}

.countdown-number {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.countdown-word {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(251, 251, 250, 0.55);
  margin-top: 8px;
}

.countdown-date {
  margin: 26px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: rgba(251, 251, 250, 0.5);
}

/* ---------- reels ---------- */

.reel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.reel-card {
  display: block;
  border: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.reel-card:hover {
  border-color: var(--navy-600);
  transform: translateY(-3px);
}

.reel-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.reel-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.reel-card:hover .reel-thumb-img {
  transform: scale(1.04);
}

.reel-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(250, 248, 244, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(10, 22, 38, 0.35);
}

.ig-icon {
  width: 42px;
  height: 42px;
  color: rgba(250, 248, 244, 0.7);
}

.reel-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-950);
}

.reel-arrow {
  color: var(--navy-600);
  transition: transform 0.2s ease;
}

.reel-card:hover .reel-arrow {
  transform: translate(2px, -2px);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: #FBFBFA;
  padding: 110px 0 40px;
}

.footer-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: left;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 36px;
}

.footer-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(251, 251, 250, 0.6);
  margin: 0 0 20px;
}

.footer-heading {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 48px;
  max-width: 34ch;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 64px;
}

.footer-link {
  display: inline-block;
  width: fit-content;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 3px;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.footer-link:hover {
  border-color: #fff;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(251, 251, 250, 0.45);
  border-top: 1px solid var(--line-dark);
  padding-top: 28px;
}

/* ---------- reveal animation (single, orchestrated) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-mark {
    display: none;
  }

  .hero {
    padding: 186px 0 80px;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-visual {
    min-height: 220px;
  }

  .reel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-nav {
    position: fixed;
    top: 104px;
    left: 0;
    right: 0;
    background: var(--navy-950);
    border-bottom: 1px solid var(--line-dark);
    flex-direction: column;
    gap: 0;
    padding: 8px 32px 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 76px 0;
  }

  .section-inner {
    padding: 0 22px;
  }

  .hero-inner {
    padding: 0 22px;
  }

  .header-inner {
    padding: 16px 22px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .product-details {
    padding: 32px 24px;
  }

  .footer-inner {
    padding: 0 22px;
  }

  .footer-links {
    margin-bottom: 48px;
  }

  .promo-track span {
    padding: 0 22px;
    font-size: 11px;
  }

  .countdown {
    padding: 32px 20px;
  }

  .countdown-grid {
    gap: 10px;
  }

  .countdown-unit {
    min-width: 62px;
    padding: 10px 6px;
  }
}
