/* =============================================================
   دائرة العلمة — متابعة انقطاع الماء
   style.css — جميع الأنماط (مستخرجة من الملف الموحّد الأصلي)
   ============================================================= */

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root{
  --deep-blue:#073B6A;
  --blue:#0A4D8C;
  --teal:#17A2B8;
  --teal-light:#2EC4B6;
  --white:#FFFFFF;
  --bg:#F4F7FA;
  --ink:#0C2B45;
  --ink-soft:#4C6378;
  --line:#E1E9F0;
  --dz-green:#2E7D4F;
  --dz-red:#C8313A;
  --radius-lg:22px;
  --radius-md:16px;
  --shadow-soft:0 12px 30px -12px rgba(7,59,106,0.18);
  --shadow-pop:0 18px 40px -14px rgba(7,59,106,0.28);
  --font-display:'Tajawal', system-ui, sans-serif;
  --font-body:'Cairo', system-ui, sans-serif;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--bg);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
img,svg{display:block;max-width:100%;}
a{color:inherit;}
h1,h2,h3{font-family:var(--font-display);margin:0;line-height:1.25;}
p{margin:0;}
.container{
  width:100%;
  max-width:1140px;
  margin-inline:auto;
  padding-inline:24px;
}
.visually-hidden{
  position:absolute;width:1px;height:1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible{
  outline:3px solid var(--teal-light);
  outline-offset:3px;
  border-radius:8px;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,0.9);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-block:14px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.05rem;
  color:var(--deep-blue);
}
.brand-mark{
  width:38px;height:38px;border-radius:10px;
  background:linear-gradient(160deg, var(--blue), var(--teal));
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.brand-mark svg{width:20px;height:20px;}
.header-nav{
  display:none;
  align-items:center;
  gap:28px;
  font-weight:600;
  font-size:0.95rem;
  color:var(--ink-soft);
}
.header-nav a{text-decoration:none;transition:color .2s;}
.header-nav a:hover{color:var(--teal);}
.header-cta{
  display:none;
  background:var(--blue);
  color:var(--white);
  font-weight:700;
  font-size:0.9rem;
  padding:10px 20px;
  border-radius:999px;
  text-decoration:none;
  box-shadow:var(--shadow-soft);
  transition:transform .2s, box-shadow .2s, background .2s;
  white-space:nowrap;
}
.header-cta:hover{background:var(--teal);transform:translateY(-1px);}
@media (min-width:760px){
  .header-nav{display:flex;}
  .header-cta{display:inline-block;}
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position:relative;
  background:
    radial-gradient(circle at 85% 0%, rgba(46,196,182,0.35), transparent 55%),
    linear-gradient(150deg, var(--deep-blue) 0%, var(--blue) 55%, #0E5C92 100%);
  color:var(--white);
  padding-top:56px;
  overflow:hidden;
}
.hero-inner{
  display:grid;
  grid-template-columns:1fr;
  gap:36px;
  padding-bottom:90px;
  position:relative;
  z-index:2;
}
@media (min-width:880px){
  .hero-inner{
    grid-template-columns:1.05fr 0.95fr;
    align-items:center;
    padding-top:20px;
  }
}
.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.28);
  padding:7px 16px;
  border-radius:999px;
  font-size:0.82rem;
  font-weight:600;
  margin-bottom:22px;
  backdrop-filter:blur(4px);
}
.hero-badge .dot{
  width:7px;height:7px;border-radius:50%;
  background:var(--teal-light);
  box-shadow:0 0 0 4px rgba(46,196,182,0.25);
}
.hero h1{
  font-size:clamp(1.9rem, 4.2vw, 2.85rem);
  font-weight:900;
  letter-spacing:-0.01em;
  max-width:18ch;
}
.hero p.subtitle{
  margin-top:18px;
  font-size:1.05rem;
  color:rgba(255,255,255,0.86);
  max-width:48ch;
  font-weight:400;
}
.hero-actions{
  margin-top:32px;
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
}
.btn-primary{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:var(--white);
  color:var(--deep-blue);
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.05rem;
  padding:17px 32px;
  border-radius:999px;
  text-decoration:none;
  box-shadow:0 16px 32px -12px rgba(0,0,0,0.35);
  transition:transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.btn-primary svg{width:20px;height:20px;flex-shrink:0;transition:transform .25s ease;}
.btn-primary:hover{
  background:var(--teal-light);
  color:var(--deep-blue);
  transform:translateY(-3px);
  box-shadow:0 20px 38px -10px rgba(0,0,0,0.4);
}
.btn-primary:hover svg{transform:translateX(-4px);}

/* Solid (deep-blue) variant used for the final CTA button —
   replaces the inline style="" that was on that button */
.btn-primary--solid{
  background:var(--blue);
  color:#fff;
  box-shadow:var(--shadow-soft);
}

.hero-meta{
  font-size:0.85rem;
  color:rgba(255,255,255,0.7);
}

/* Signature element: water network illustration */
.network-wrap{
  position:relative;
  aspect-ratio:1/1;
  max-width:430px;
  margin-inline:auto;
}
.network-wrap svg{width:100%;height:100%;}
.net-node-label{
  font-family:var(--font-body);
  font-weight:700;
  fill:var(--white);
}
.net-pipe{
  fill:none;
  stroke:rgba(255,255,255,0.35);
  stroke-width:3;
  stroke-linecap:round;
}
.net-drop{
  fill:var(--teal-light);
}

/* Motion paths for the three traveling droplets — each circle keeps
   its unique trajectory here instead of an inline style attribute */
.flow-a{ offset-path:path('M 90 80 C 110 110, 150 150, 200 200'); }
.flow-b{ offset-path:path('M 310 80 C 290 110, 250 150, 200 200'); }
.flow-c{ offset-path:path('M 200 330 C 200 300, 200 260, 200 200'); }

@media (prefers-reduced-motion: no-preference){
  .flow-a{ animation: travel 3.4s ease-in-out infinite; }
  .flow-b{ animation: travel 3.4s ease-in-out infinite; animation-delay:1.13s; }
  .flow-c{ animation: travel 3.4s ease-in-out infinite; animation-delay:2.26s; }
}
@keyframes travel{
  0%{ offset-distance:0%; opacity:0; }
  8%{ opacity:1; }
  92%{ opacity:1; }
  100%{ offset-distance:100%; opacity:0; }
}

/* hero bottom wave */
.hero-wave{
  position:absolute;
  bottom:-1px;
  left:0;right:0;
  line-height:0;
  z-index:1;
}
.hero-wave svg{width:100%;height:auto;display:block;}
@media (prefers-reduced-motion: no-preference){
  .wave-path{ animation: wave-shift 14s ease-in-out infinite alternate; }
}
@keyframes wave-shift{
  0%{ transform:translateX(0px); }
  100%{ transform:translateX(-40px); }
}

/* =========================================================
   SECTIONS — shared
   ========================================================= */
section{padding-block:76px;}
.section-head{
  text-align:center;
  max-width:640px;
  margin-inline:auto;
  margin-bottom:46px;
}
.eyebrow{
  display:inline-block;
  font-size:0.82rem;
  font-weight:700;
  color:var(--teal);
  background:rgba(23,162,184,0.1);
  padding:6px 16px;
  border-radius:999px;
  margin-bottom:14px;
}
.section-head h2{
  font-size:clamp(1.5rem, 3vw, 2rem);
  color:var(--deep-blue);
  font-weight:800;
}
.section-head p{
  margin-top:12px;
  color:var(--ink-soft);
  font-size:1rem;
}

/* reveal-on-scroll */
.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .6s ease, transform .6s ease;
}
.reveal.is-visible{opacity:1;transform:translateY(0);}
@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1;transform:none;transition:none;}
}

/* =========================================================
   STEPS
   ========================================================= */
.steps-grid{
  display:grid;
  gap:22px;
  grid-template-columns:1fr;
}
@media (min-width:760px){
  .steps-grid{grid-template-columns:repeat(3,1fr);}
}
.step-card{
  background:var(--white);
  border-radius:var(--radius-lg);
  padding:30px 26px;
  box-shadow:var(--shadow-soft);
  border:1px solid var(--line);
  position:relative;
}
.step-number{
  font-family:var(--font-display);
  font-weight:900;
  font-size:0.95rem;
  color:var(--teal);
  margin-bottom:16px;
  display:flex;
  align-items:center;
  gap:10px;
}
.step-number .seq{
  width:30px;height:30px;
  border-radius:50%;
  background:linear-gradient(160deg, var(--blue), var(--teal));
  color:var(--white);
  display:flex;align-items:center;justify-content:center;
  font-size:0.85rem;
}
.step-icon{
  width:46px;height:46px;
  margin-bottom:16px;
  color:var(--blue);
}
.step-card h3{
  font-size:1.08rem;
  font-weight:700;
  color:var(--ink);
  margin-bottom:8px;
}
.step-card p{
  color:var(--ink-soft);
  font-size:0.95rem;
}
.step-connector{
  display:none;
}
@media (min-width:760px){
  .steps-grid{position:relative;}
}

/* =========================================================
   MUNICIPALITIES
   ========================================================= */
.muni-section{
  background:linear-gradient(180deg, var(--white), var(--bg));
}
.muni-grid{
  display:grid;
  gap:20px;
  grid-template-columns:1fr;
}
@media (min-width:760px){
  .muni-grid{grid-template-columns:repeat(3,1fr);}
}
.muni-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  padding:26px;
  display:flex;
  align-items:center;
  gap:16px;
  box-shadow:0 6px 16px -10px rgba(7,59,106,0.15);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.muni-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-pop);
  border-color:var(--teal-light);
}
.muni-icon{
  width:48px;height:48px;
  border-radius:12px;
  background:rgba(10,77,140,0.08);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.muni-icon svg{width:24px;height:24px;color:var(--blue);}
.muni-card h3{
  font-size:1.05rem;
  font-weight:700;
  color:var(--ink);
}
.muni-card span{
  display:block;
  font-size:0.84rem;
  color:var(--ink-soft);
  margin-top:3px;
}

/* =========================================================
   REASSURANCE BANNER
   ========================================================= */
.reassure{
  background:var(--deep-blue);
  color:var(--white);
  position:relative;
  overflow:hidden;
}
.reassure::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 10% 50%, rgba(46,196,182,0.25), transparent 60%);
}
.reassure-inner{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:18px;
  padding-block:54px;
}
.reassure-icon{
  width:52px;height:52px;
  color:var(--teal-light);
}
.reassure p{
  font-size:1.08rem;
  font-weight:600;
  max-width:46ch;
  line-height:1.8;
}
.flag-accent{
  display:flex;
  gap:6px;
  margin-top:4px;
}
.flag-accent span{
  width:26px;height:5px;border-radius:99px;
}
.flag-accent .g{background:var(--dz-green);}
.flag-accent .w{background:rgba(255,255,255,0.6);}
.flag-accent .r{background:var(--dz-red);}

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta{
  text-align:center;
}
.final-cta h2{
  font-size:clamp(1.4rem, 3vw, 1.9rem);
  color:var(--deep-blue);
  margin-bottom:16px;
}
.final-cta p{
  color:var(--ink-soft);
  max-width:50ch;
  margin-inline:auto;
  margin-bottom:28px;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer{
  background:#06304F;
  color:rgba(255,255,255,0.78);
  padding-block:34px;
  font-size:0.88rem;
}
.footer-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  text-align:center;
}
.footer-inner strong{
  color:var(--white);
  font-family:var(--font-display);
  font-weight:700;
}
.footer-sub{
  color:rgba(255,255,255,0.5);
  font-size:0.82rem;
}
