/* ===========================
   CSS VARIABLES
   =========================== */
:root {
  --primary:       #1B4F8A;
  --primary-light: #2D6FBF;
  --accent:        #3B9EE0;
  --bg-dark:       #0F1923;
  --bg-light:      #F4F7FA;
  --text-dark:     #1A2332;
  --text-muted:    #5A6A7E;
  --white:         #FFFFFF;
  --border:        #D0DCE8;
  --whatsapp:      #25D366;

  --nav-height: 76px;
  --section-pad: 80px;
  --radius: 12px;
  --shadow-card: 0 4px 20px rgba(27, 79, 138, 0.08);
  --shadow-card-hover: 0 8px 32px rgba(27, 79, 138, 0.15);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  text-align: right;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* ===========================
   CONTAINER
   =========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
.section-h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  margin-bottom: 40px;
  text-align: right;
}

.section-h2-white {
  color: var(--white);
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  min-height: 52px;
  padding: 0 28px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-lg {
  min-height: 58px;
  padding: 0 36px;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

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

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--primary-light);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}

.btn-whatsapp:hover {
  background: #20ba58;
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  background: var(--bg-light);
}

/* ===========================
   SECTION PADDING
   =========================== */
.section-pad {
  padding: var(--section-pad) 0;
}

/* ===========================
   SCROLL REVEAL
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===========================
   HERO LOAD ANIMATIONS
   =========================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-fade-up {
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.28s; }
.anim-delay-3 { animation-delay: 0.46s; }
.anim-delay-4 { animation-delay: 0.62s; }

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: rgba(15, 25, 35, 0.92);
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 10px 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(15, 25, 35, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-cta {
  min-height: 44px;
  padding: 0 22px;
  font-size: 0.95rem;
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 35, 0.78);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 60px;
}

.hero-content {
  width: 55%;
  min-width: 0;
}

.hero-h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 55ch;
  margin-bottom: 32px;
}

.social-proof {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
}

.proof-item i {
  color: var(--accent);
  font-size: 1.1rem;
}

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

/* ===========================
   TRUST BAR
   =========================== */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.trust-item i {
  color: var(--primary);
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ===========================
   WHY US
   =========================== */
.why-us {
  background: var(--bg-light);
}

.why-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.why-grid > *:nth-child(3),
.why-grid > *:nth-child(4) {
  grid-column: auto;
}

.why-grid > *:nth-child(3) {
  grid-column: 1;
}

.why-grid > *:nth-child(4) {
  grid-column: 2;
}

/* Row 2: small | large  => reverse order columns */
.why-grid > *:nth-child(3) {
  grid-column: 1;
  /* col 1 = 2fr but this is the small one in row 2 */
}

/* We use a different approach: explicit grid rows */
.why-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 20px;
}

/* Row 1: large(col1) + small(col2) — natural */
.feature-card:nth-child(1) { grid-column: 1; grid-row: 1; }
.feature-card:nth-child(2) { grid-column: 2; grid-row: 1; }

/* Row 2: small(col1 narrow) + large(col2 wide) — swap visual weight */
.feature-card:nth-child(3) { grid-column: 2; grid-row: 2; }
.feature-card:nth-child(4) { grid-column: 1; grid-row: 2; }

/* Row 3: large(col1) + small(col2) */
.feature-card:nth-child(5) { grid-column: 1; grid-row: 3; }
.feature-card:nth-child(6) { grid-column: 2; grid-row: 3; }

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: rgba(59, 158, 224, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon i {
  font-size: 1.4rem;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 65ch;
}

/* ===========================
   STEPS
   =========================== */
.steps {
  background: var(--bg-dark);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.step-item {
  text-align: right;
  position: relative;
}

.step-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.9;
}

.step-line {
  position: absolute;
  top: 28px;
  left: -20px;
  width: calc(50% + 20px);
  height: 2px;
  background: linear-gradient(to left, var(--accent), transparent);
  opacity: 0.3;
}

.last-step-line {
  display: none;
}

.step-icon {
  width: 56px;
  height: 56px;
  background: rgba(59, 158, 224, 0.12);
  border: 1px solid rgba(59, 158, 224, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-icon i {
  font-size: 1.4rem;
  color: var(--accent);
}

.step-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.step-item p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
}

/* ===========================
   REVIEWS
   =========================== */
.reviews {
  background: var(--bg-light);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 52px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.reviews-small-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.review-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.review-large {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.reviewer-initials {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.reviewer-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
}

.reviewer-stars {
  margin-top: 4px;
  display: flex;
  gap: 3px;
}

.reviewer-stars i {
  color: #F59E0B;
  font-size: 0.85rem;
}

.review-text {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ===========================
   COVERAGE
   =========================== */
.coverage {
  background: var(--white);
}

.coverage-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}

.coverage-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 65ch;
}

.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.area-group-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 14px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
  display: inline-block;
}

.areas-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.areas-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.93rem;
  color: var(--text-dark);
}

.areas-list li i {
  color: var(--accent);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.coverage-map {
  background: var(--bg-dark);
  border-radius: var(--radius);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px 24px;
}

.coverage-map-icon {
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.7;
}

.coverage-map-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}

/* ===========================
   FINAL CTA
   =========================== */
.cta-final {
  background: var(--primary);
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
}

.cta-h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 16px;
  text-align: right;
}

.cta-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.trust-signals {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-signals span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.trust-signals i {
  color: rgba(255, 255, 255, 0.9);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--bg-dark);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 42ch;
}

.footer-col-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-contact i {
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ===========================
   STICKY WHATSAPP
   =========================== */
.sticky-wa {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 58px;
  height: 58px;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.28);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: var(--transition);
}

.sticky-wa.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.sticky-wa:hover {
  background: #20ba58;
  transform: scale(1.06);
}

/* Hide on mobile */
@media (max-width: 768px) {
  .sticky-wa {
    display: none;
  }
}

/* ===========================
   RESPONSIVE — TABLET 1024px
   =========================== */
@media (max-width: 1024px) {
  :root {
    --section-pad: 64px;
  }

  .coverage-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .coverage-map {
    min-height: 200px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ===========================
   RESPONSIVE — MOBILE 768px
   =========================== */
@media (max-width: 768px) {
  :root {
    --section-pad: 52px;
    --nav-height: 64px;
  }

  /* Nav */
  .nav-logo img {
    height: 38px;
  }

  .nav-cta {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.88rem;
  }

  /* Hero */
  .hero-content {
    width: 100%;
  }

  .hero-inner {
    padding-top: calc(var(--nav-height) + 28px);
    padding-bottom: 48px;
  }

  .social-proof {
    gap: 16px;
  }

  .proof-item {
    font-size: 0.85rem;
  }

  .hero-ctas {
    gap: 12px;
  }

  .btn-lg {
    min-height: 52px;
    padding: 0 24px;
    font-size: 0.97rem;
    flex: 1;
    justify-content: center;
  }

  /* Trust bar */
  .trust-inner {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  /* Why Us */
  .why-grid {
    grid-template-columns: 1fr;
  }

  .feature-card:nth-child(1),
  .feature-card:nth-child(2),
  .feature-card:nth-child(3),
  .feature-card:nth-child(4),
  .feature-card:nth-child(5),
  .feature-card:nth-child(6) {
    grid-column: 1;
    grid-row: auto;
  }

  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .step-line {
    display: none;
  }

  .step-number {
    font-size: 2.6rem;
  }

  /* Reviews stats */
  .stats-row {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
  }

  .stat-number {
    font-size: 1.7rem;
  }

  /* Reviews grid */
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  /* Areas */
  .areas-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  /* CTA */
  .cta-inner {
    max-width: 100%;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .trust-signals {
    flex-direction: column;
    gap: 10px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: auto;
  }
}

/* ===========================
   RESPONSIVE — SMALL MOBILE 480px
   =========================== */
@media (max-width: 480px) {
  .areas-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .trust-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
