/* =========================================================
   Nazaafah.com — Stylesheet
   Design tokens
   ========================================================= */
:root {
  --navy-900: #0A2A43;
  --navy-800: #0E3A5C;
  --blue-700: #0F6BA8;
  --blue-600: #1583C9;
  --blue-400: #4FB0E6;
  --cyan-200: #BEEFF7;
  --green-600: #2FA34E;
  --green-400: #6BCB6E;
  --bg: #F5FAFB;
  --surface: #FFFFFF;
  --ink: #0C2436;
  --muted: #5B7186;
  --border: #E3ECF1;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 4px 16px rgba(11, 42, 67, 0.08);
  --shadow-md: 0 14px 40px rgba(11, 42, 67, 0.14);
  --container: 1200px;
  --font: 'Cairo', 'Tahoma', sans-serif;
}

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

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { margin: 0; font-weight: 800; color: var(--navy-900); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }

.kicker {
  display: inline-block;
  color: var(--green-600);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.section-head { max-width: 640px; margin-bottom: 44px; }
.section { padding: 90px 0; }
.section-alt { background: var(--surface); }

@media (max-width: 720px) {
  .section { padding: 60px 0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-600); color: #fff; box-shadow: 0 10px 24px rgba(47,163,78,0.35); }
.btn-primary:hover { background: var(--green-400); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.5); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-outline-light { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); }
.btn-small { padding: 10px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; justify-content: center; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 12px;
}
.brand-logo { height: 52px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-weight: 600; color: var(--navy-800); font-size: 0.96rem; position: relative; }
.main-nav a::after {
  content: "";
  position: absolute; inset-inline-start: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--green-600);
  transition: width 0.25s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: flex; align-items: center; gap: 8px; color: var(--navy-800); font-weight: 700; font-size: 0.9rem; }
.header-phone svg { width: 18px; height: 18px; color: var(--green-600); }

.lang-toggle {
  display: flex; align-items: center; gap: 4px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 10px; font-weight: 700; font-size: 0.82rem;
  color: var(--muted);
}
.lang-toggle .lang-opt { padding: 2px 6px; border-radius: 999px; transition: all 0.2s ease; }
.lang-toggle .lang-opt.active { background: var(--navy-900); color: #fff; }
.lang-sep { opacity: 0.4; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.nav-burger span { width: 24px; height: 2px; background: var(--navy-900); border-radius: 2px; }

@media (max-width: 980px) {
  .main-nav { position: fixed; inset-inline-start: 0; top: 76px; width: 100%; background: #fff;
    flex-direction: column; align-items: flex-start; padding: 20px 24px; gap: 16px;
    box-shadow: var(--shadow-sm); transform: translateY(-130%); opacity: 0; transition: all 0.3s ease; }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .header-phone { display: none; }
  .nav-burger { display: flex; }
  .btn-small { display: none; }
}

/* =========================================================
   Hero + bubbles
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,42,67,0.92) 20%, rgba(10,42,67,0.72) 50%, rgba(15,107,168,0.45) 100%);
}
.bubbles-layer { position: absolute; inset: 0; overflow: hidden; z-index: 1; pointer-events: none; }
.bubble {
  position: absolute;
  bottom: -12%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.95), rgba(255,255,255,0.15) 55%, rgba(190,239,247,0.05) 80%);
  box-shadow: inset -4px -4px 10px rgba(15,107,168,0.15), inset 3px 3px 6px rgba(255,255,255,0.6);
  animation: bubble-rise linear infinite;
  opacity: 0;
}
@keyframes bubble-rise {
  0% { transform: translateY(0) translateX(0) scale(0.9); opacity: 0; }
  8% { opacity: 0.85; }
  50% { transform: translateY(-55vh) translateX(var(--drift, 20px)) scale(1); }
  92% { opacity: 0.5; }
  100% { transform: translateY(-115vh) translateX(calc(var(--drift, 20px) * -1)) scale(1.05); opacity: 0; }
}

.sparkle { position: absolute; width: 22px; height: 22px; fill: #fff; opacity: 0.85; z-index: 2; animation: sparkle-pulse 2.6s ease-in-out infinite; }
.sparkle-1 { top: 18%; inset-inline-end: 12%; animation-delay: 0s; }
.sparkle-2 { top: 32%; inset-inline-end: 20%; width: 14px; height: 14px; animation-delay: 0.8s; }
.sparkle-3 { top: 12%; inset-inline-end: 26%; width: 10px; height: 10px; animation-delay: 1.5s; }
@keyframes sparkle-pulse {
  0%, 100% { opacity: 0.25; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(20deg); }
}

.hero-content { position: relative; z-index: 3; color: #fff; padding-block: 60px 140px; max-width: 720px; width: 100%; }
.hero-content .eyebrow { color: var(--cyan-200); font-weight: 700; margin-bottom: 14px; letter-spacing: 0.3px; }
.hero-content h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.25; margin-bottom: 20px; }
.hero-sub { color: rgba(255,255,255,0.86); font-size: 1.08rem; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-badge { position: absolute; bottom: -46px; inset-inline: 0; z-index: 4; display: flex; justify-content: center; padding: 0 24px; }
.hero-badge-inner {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
  padding: 26px 36px; max-width: var(--container); width: 100%;
}
.feature-item { display: flex; align-items: center; gap: 12px; flex: 1 1 200px; min-width: 190px; }
.feature-item svg { width: 34px; height: 34px; color: var(--green-600); flex-shrink: 0; }
.feature-item span { font-weight: 700; color: var(--navy-800); font-size: 0.95rem; }

@media (max-width: 720px) {
  .hero { min-height: auto; padding-bottom: 40px; flex-direction: column; align-items: stretch; }
  .hero-content { padding-block: 40px 50px; }
  .hero-badge { position: static; margin-top: -30px; width: 100%; padding: 0 20px; }
  .hero-badge-inner { border-radius: var(--radius-md); padding: 18px; gap: 16px 14px; }
  .feature-item { flex: 1 1 42%; min-width: 130px; }
  .feature-item span { font-size: 0.88rem; }
}

/* =========================================================
   Services
   ========================================================= */
#services { padding-top: 150px; }
@media (max-width: 720px) { #services { padding-top: 90px; } }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-400), var(--green-600));
  margin-bottom: 18px;
}
.service-icon svg { width: 26px; height: 26px; color: #fff; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 0.94rem; }

/* =========================================================
   About
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.about-media-float {
  position: absolute; bottom: -30px; inset-inline-start: -30px;
  width: 46%; border: 6px solid var(--surface); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.about-media-float img { border-radius: 10px; }
@media (max-width: 560px) { .about-media-float { width: 50%; bottom: -20px; inset-inline-start: -14px; } }

.about-text h2 { margin-bottom: 18px; }
.about-text p { color: var(--muted); margin-bottom: 24px; }
.check-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy-800); }
.check-list li::before {
  content: "";
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-600);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/60% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/60% no-repeat;
}

/* =========================================================
   Slider / Gallery
   ========================================================= */
.slider { position: relative; overflow: hidden; }
.slider-track { display: flex; transition: transform 0.6s cubic-bezier(0.65,0,0.35,1); }
.slide {
  min-width: 100%; height: 68vh; min-height: 420px;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end; position: relative;
}
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,42,67,0.85) 10%, rgba(10,42,67,0.1) 55%);
}
.slide-caption { position: relative; z-index: 1; color: #fff; padding: 44px; max-width: 560px; }
.slide-caption h3 { color: #fff; font-size: 1.5rem; margin-bottom: 10px; }
.slide-caption p { color: rgba(255,255,255,0.85); }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.85); color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); transition: background 0.2s ease;
}
.slider-arrow:hover { background: #fff; }
.slider-prev { inset-inline-start: 20px; }
.slider-next { inset-inline-end: 20px; }
[dir="rtl"] .slider-arrow svg { transform: scaleX(-1); }

.slider-dots { position: absolute; bottom: 20px; inset-inline: 0; display: flex; justify-content: center; gap: 10px; z-index: 2; }
.slider-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,0.5); padding: 0; }
.slider-dots button.active { background: #fff; width: 26px; border-radius: 6px; transition: all 0.3s ease; }

@media (max-width: 600px) {
  .slide { height: 80vh; min-height: 460px; }
  .slide-caption { padding: 28px 24px; }
}

/* =========================================================
   Process
   ========================================================= */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 820px) { .process-grid { grid-template-columns: 1fr; } }
.process-step {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 34px 28px; position: relative;
}
.process-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-900); color: #fff; font-weight: 800; font-size: 1.15rem;
  margin-bottom: 18px;
}
.process-step h3 { margin-bottom: 10px; }
.process-step p { color: var(--muted); font-size: 0.94rem; }

/* =========================================================
   CTA banner
   ========================================================= */
.cta-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--navy-900), var(--blue-700));
  padding: 80px 0;
  text-align: center;
}
.bubbles-layer-small .bubble { width: 30px !important; height: 30px !important; }
.cta-inner { position: relative; z-index: 2; }
.cta-inner h2 { color: #fff; margin-bottom: 14px; }
.cta-inner p { color: rgba(255,255,255,0.82); margin-bottom: 30px; font-size: 1.05rem; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* =========================================================
   Contact
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { color: var(--muted); margin-bottom: 30px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.contact-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 22px; height: 22px; color: var(--green-600); }
.contact-item strong { display: block; color: var(--navy-900); margin-bottom: 2px; }
.contact-item p, .contact-item a { color: var(--muted); font-size: 0.95rem; }
.contact-item a:hover { color: var(--blue-700); }

.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.92rem; color: var(--navy-800); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 13px 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); color: var(--ink);
  font-size: 0.95rem; resize: vertical; transition: border-color 0.2s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--blue-600);
}
.form-note { color: var(--muted); font-size: 0.82rem; margin-top: 12px; text-align: center; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo { height: 46px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-brand p { font-size: 0.92rem; max-width: 260px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0; text-align: center; font-size: 0.85rem;
}

/* =========================================================
   WhatsApp float button
   ========================================================= */
.whatsapp-float {
  position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37,211,102,0.45);
  animation: float-pulse 2.4s ease-in-out infinite;
}
@keyframes float-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bubble, .sparkle, .whatsapp-float { animation: none !important; }
  .btn:hover { transform: none; }
}
