/* ==========================================================================
   Safwan Link — Coming Soon Landing Page Styles
   Arabic RTL · Emerald & Warm Cream Brand Identity
   ========================================================================== */

:root {
  /* Brand Palette */
  --brand: #0d5c5a;
  --brand-deep: #083f3e;
  --brand-light: #127976;
  --brand-soft: #eaf3f0;
  --brand-border: rgba(13, 92, 90, 0.16);

  /* Gold Accents */
  --gold: #b3821a;
  --gold-deep: #78560e;
  --gold-soft: #fcf7ec;
  --gold-border: #eddab1;

  /* Surfaces & Background */
  --cream: #f7f5ef;
  --surface: #ffffff;
  --surface-elevated: #fffdf9;
  --surface-subtle: #f2eee5;

  /* Ink & Typography */
  --ink: #141f1c;
  --ink-secondary: #2c3a37;
  --muted: #53625f;
  --line: #e2ddd2;
  --line-light: #ece7dc;

  /* Layout & Sizing */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(13, 92, 90, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 10px 24px -4px rgba(13, 92, 90, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 40px -8px rgba(13, 92, 90, 0.13), 0 6px 14px -3px rgba(0, 0, 0, 0.04);
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "IBM Plex Sans Arabic", "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 5%, rgba(201, 162, 39, 0.09), transparent 32rem),
    radial-gradient(circle at 10% 12%, rgba(13, 92, 90, 0.08), transparent 30rem),
    radial-gradient(circle at 50% 85%, rgba(13, 92, 90, 0.05), transparent 38rem),
    var(--cream);
  background-attachment: fixed;
  color: var(--ink);
  direction: rtl;
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  right: 16px;
  background: var(--brand-deep);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* Accessible focus outlines */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Container & Page Shell
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
  padding-block: clamp(28px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5.5vw, 56px);
}

/* --------------------------------------------------------------------------
   Topbar
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 239, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-block: 12px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(13, 92, 90, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--brand-deep);
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.2;
}

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

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.phone-link:hover {
  background-color: var(--brand-soft);
}

.phone-digits {
  font-variant-numeric: tabular-nums;
  direction: ltr;
}

.btn-whatsapp-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(13, 92, 90, 0.2);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-whatsapp-sm:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 92, 90, 0.28);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: clamp(12px, 3vw, 32px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold-deep);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.status-pulse {
  position: relative;
  display: inline-block;
  width: 9px;
  height: 9px;
}

.pulse-dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--gold);
}

.pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background-color: var(--gold);
  opacity: 0.4;
  animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.7; }
  50% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero-title {
  font-size: clamp(1.85rem, 4.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.28;
  color: var(--brand-deep);
  margin-bottom: 20px;
  max-width: 24ch;
}

.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  color: var(--muted);
  line-height: 1.8;
  max-width: 62ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 700;
  min-height: 52px;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 18px rgba(13, 92, 90, 0.24);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(13, 92, 90, 0.32);
}

.btn-primary .icon-wa {
  flex-shrink: 0;
}

.btn-secondary {
  background: var(--surface);
  color: var(--brand-deep);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary .icon {
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   Launch Countdown
   -------------------------------------------------------------------------- */
.countdown-section[hidden] {
  display: none;
}

.countdown-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 28px;
  padding: 26px 30px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 10%, rgba(201, 162, 39, .24), transparent 18rem),
    linear-gradient(135deg, var(--brand-deep), var(--brand) 62%, #0a6964);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.countdown-card::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  inset-inline-start: -90px;
  bottom: -150px;
  border: 1px solid rgba(201, 162, 39, .32);
  border-radius: 50%;
  pointer-events: none;
}

.countdown-copy,
.countdown-clock {
  position: relative;
  z-index: 1;
}

.countdown-eyebrow {
  display: inline-block;
  color: var(--gold-soft);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 7px;
}

.countdown-title {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.4;
}

.countdown-date {
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: .83rem;
  font-weight: 600;
}

.countdown-note {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .64);
  font-size: .76rem;
  line-height: 1.7;
}

.countdown-clock {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: clamp(6px, 1.4vw, 12px);
  direction: ltr;
}

.clock-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.clock-digits {
  display: flex;
  gap: 4px;
}

.clock-digit {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: clamp(34px, 4.2vw, 50px);
  height: clamp(50px, 5.8vw, 67px);
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .07));
  color: #fff;
  font-size: clamp(1.55rem, 3.3vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.clock-digit::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 1px;
  background: rgba(7, 40, 38, .28);
  pointer-events: none;
}

.clock-digit.tick {
  animation: clock-digit-clip .32s cubic-bezier(.2, .75, .25, 1);
}

@keyframes clock-digit-clip {
  from {
    transform: translateY(-105%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.clock-colon {
  color: rgba(245, 232, 201, .68);
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-weight: 800;
  line-height: clamp(50px, 5.8vw, 67px);
}

.clock-label {
  color: rgba(255, 255, 255, .62);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .02em;
}

/* --------------------------------------------------------------------------
   Trust / Network Strip (Restrained, Grounded in Real Services)
   -------------------------------------------------------------------------- */
.trust-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  box-shadow: var(--shadow-sm);
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-statement {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-mark-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--brand-border);
}

.trust-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-heading {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--brand-deep);
}

.trust-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.networks-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.network-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.network-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.network-en {
  font-size: 0.76rem;
  font-weight: 600;
  opacity: 0.75;
}

/* Zain Badge */
.network-badge.zain {
  background-color: #f7f1f8;
  border-color: #e5d8ec;
  color: #61276a;
}
.network-badge.zain .network-dot {
  background-color: #8e2c8c;
}

/* Orange Badge */
.network-badge.orange {
  background-color: #fff6ee;
  border-color: #ffdfc2;
  color: #b55000;
}
.network-badge.orange .network-dot {
  background-color: #ff7900;
}

/* Umniah Badge */
.network-badge.umniah {
  background-color: #edf9f8;
  border-color: #cef0ee;
  color: #0b6863;
}
.network-badge.umniah .network-dot {
  background-color: #00a396;
}

/* --------------------------------------------------------------------------
   Services Pillars
   -------------------------------------------------------------------------- */
.services {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.section-title-wrap {
  text-align: center;
  max-width: 48ch;
  margin-inline: auto;
}

.section-title {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 800;
  color: var(--brand-deep);
  margin-bottom: 8px;
}

.section-desc {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.6;
}

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

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 92, 90, 0.25);
}

.card-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  border: 1px solid var(--brand-border);
}

.card-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--brand-deep);
}

.card-text {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Contact & Location Box
   -------------------------------------------------------------------------- */
.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 4vw, 36px);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: center;
}

.contact-title {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 800;
  color: var(--brand-deep);
  margin-bottom: 8px;
}

.contact-desc {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.65;
}

.contact-details {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.92rem;
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

.contact-val,
.address-link {
  color: var(--muted);
}

.address-link {
  font-weight: 600;
  color: var(--brand);
  transition: color 0.15s ease;
}

.address-link:hover {
  color: var(--brand-deep);
  text-decoration: underline;
}

.contact-action-box {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.action-card-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-label {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-deep);
}

.action-subtext {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 6px;
}

.full-width {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(247, 245, 239, 0.7);
  padding-block: 28px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--muted);
}

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

.footer-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--brand);
  color: #f5e8c9;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}

.footer-title {
  font-weight: 700;
  color: var(--ink);
}

.footer-sep {
  opacity: 0.4;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-location {
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* Tablet (max 860px) */
@media (max-width: 860px) {
  .countdown-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px;
  }

  .countdown-clock {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-box {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .trust-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* Mobile (max 600px) */
@media (max-width: 600px) {
  .countdown-card {
    padding: 20px 16px;
  }

  .countdown-clock {
    justify-content: space-between;
    gap: 4px;
  }

  .clock-digit {
    width: 30px;
    height: 44px;
    font-size: 1.4rem;
    border-radius: 8px;
  }

  .clock-colon {
    line-height: 44px;
  }

  .clock-label {
    font-size: .6rem;
  }

  .topbar-actions .phone-digits {
    display: none;
  }

  .phone-link {
    width: 38px;
    height: 38px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .trust-panel {
    padding: 16px;
  }

  .networks-list {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 6px;
  }

  .network-badge {
    flex: 1;
    justify-content: center;
    padding: 7px 6px;
    font-size: 0.8rem;
    gap: 6px;
  }

  .network-en {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Small Mobile (390px and below) */
@media (max-width: 400px) {
  .brand-tagline {
    display: none;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 5px 12px;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 0.95rem;
    padding: 12px 18px;
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
