/* ── Alhaiba Shared Styles ── */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600&display=swap');

:root {
  --navy: #1E3A5F;
  --amber: #D97706;
  --bg: #FAFAF9;
  --border: #e5e4dc;
  --text: #1F2937;
  --muted: #5F5E5A;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── NAV ── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  border-bottom: 0.5px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.3s;
  backdrop-filter: blur(8px);
}
#site-nav.scrolled { box-shadow: 0 2px 24px rgba(30,58,95,0.08); }

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
  background: transparent;
  border-radius: 8px;
  padding: 7px 14px 7px 10px;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-logo-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--navy);
  line-height: 1;
}
.nav-logo-sub {
  font-size: 8.5px;
  letter-spacing: 0.8px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); font-weight: 500; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 0.5px solid #d3d1c7;
  border-radius: 6px;
  padding: 4px 10px;
}
.lang-btn {
  background: none;
  border: none;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: inherit;
  transition: color 0.15s, background 0.15s;
}
.lang-btn:hover { color: var(--navy); }
.lang-btn.active { color: var(--navy); font-weight: 600; background: rgba(30,58,95,0.07); }
.lang-sep { font-size: 10px; color: #d3d1c7; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: white;
  border-bottom: 0.5px solid var(--border);
  z-index: 999;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 4px;
  box-shadow: 0 8px 32px rgba(30,58,95,0.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border);
}
.mobile-lang { margin-top: 12px; }

/* ── Buttons ── */
.btn-primary {
  background: var(--navy);
  color: white;
  padding: 13px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}
.btn-primary:hover { background: #16304f; transform: translateY(-1px); }

.btn-secondary {
  background: white;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  padding: 11px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}
.btn-secondary:hover { background: #f0f4f9; transform: translateY(-1px); }

.btn-amber {
  background: var(--amber);
  color: white;
  padding: 13px 26px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}
.btn-amber:hover { background: #b96200; transform: translateY(-1px); }

/* ── Section helpers ── */
.section-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--amber);
  text-transform: uppercase;
  margin: 0 0 12px;
}
.section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 40px;
  line-height: 1.2;
}
.section-header { text-align: center; }

/* ── Page header ── */
.page-header {
  background: white;
  padding: 60px 0 52px;
  border-bottom: 0.5px solid var(--border);
}
.page-header .eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--amber);
  text-transform: uppercase;
  margin: 0 0 12px;
}
.page-header h1 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 14px;
  line-height: 1.15;
}
.page-header .lead {
  font-size: 16px;
  color: #444441;
  line-height: 1.75;
  max-width: 600px;
  margin: 0;
}

/* ── Stats bar ── */
.stats-bar {
  background: var(--navy);
  padding: 28px 0;
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat { text-align: center; color: white; }
.stat-num { font-size: 22px; font-weight: 500; margin: 0 0 5px; }
.stat-label { font-size: 10px; color: rgba(255,255,255,0.6); letter-spacing: 1.5px; text-transform: uppercase; }

/* ── CTA section ── */
.cta-section {
  background: var(--navy);
  padding: 80px 0;
  text-align: center;
  color: white;
}
.cta-section h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 500; margin: 0 0 12px; }
.cta-section p { font-size: 16px; color: rgba(255,255,255,0.75); margin: 0 0 28px; }

/* ── Footer ── */
#site-footer {
  background: #0F2440;
  padding: 52px 0 0;
  color: rgba(255,255,255,0.65);
  font-size: 12px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-brand span { color: white; font-weight: 500; letter-spacing: 2px; font-size: 13px; }
.footer-col h4 { color: rgba(255,255,255,0.9); font-weight: 500; margin: 0 0 12px; font-size: 12px; }
.footer-col p, .footer-col a {
  display: block;
  margin: 5px 0;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  line-height: 1.65;
  transition: color 0.2s;
}
.footer-col a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
  border-top: 0.5px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  text-align: center;
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.3px;
}

/* ── WhatsApp FAB ── */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #25D366;
  color: white;
  border-radius: 50px;
  padding: 13px 18px 13px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  z-index: 900;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-fab:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(37,211,102,0.45); }
[dir="rtl"] .whatsapp-fab { right: auto; left: 28px; }

/* ── Cookie Banner ── */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #0F2440;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  padding: 16px 40px;
  z-index: 950;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 0.5px solid rgba(255,255,255,0.1);
}
#cookie-accept {
  background: var(--amber);
  color: white;
  border: none;
  padding: 9px 22px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  flex-shrink: 0;
  transition: background 0.2s;
}
#cookie-accept:hover { background: #b96200; }

/* ── Process steps ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.process-step { text-align: center; }
.process-num {
  width: 40px; height: 40px;
  background: var(--navy);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 500; font-size: 15px;
  margin: 0 auto 16px;
}
.process-num.amber { background: var(--amber); }
.process-step h3 { font-size: 14px; color: var(--navy); font-weight: 500; margin: 0 0 8px; }
.process-step p { font-size: 13px; color: var(--muted); line-height: 1.65; margin: 0; }

/* ── Service cards ── */
.service-card {
  background: white;
  padding: 28px 24px;
  border-radius: 10px;
  border: 0.5px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.service-card:hover {
  box-shadow: 0 6px 28px rgba(30,58,95,0.09);
  transform: translateY(-2px);
}
.service-icon {
  width: 36px; height: 36px;
  background: #FAEEDA;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 0 14px;
}
.service-card h3 { font-size: 16px; color: var(--navy); margin: 0 0 8px; font-weight: 500; }
.service-card p { font-size: 13px; color: var(--muted); line-height: 1.65; margin: 0; }
.service-more {
  font-size: 12px;
  color: var(--amber);
  margin-top: 12px;
  display: flex; align-items: center; gap: 4px;
  font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .process-grid { grid-template-columns: 1fr; gap: 24px; }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .container { padding: 0 20px; }
  .whatsapp-fab span { display: none; }
  .whatsapp-fab { padding: 14px; border-radius: 50%; }
  #cookie-banner { flex-direction: column; align-items: flex-start; padding: 16px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
