/* =========================================================
   نبع — كشف تسربات المياه وعزل الخزانات والأسطح — الرياض
   Design tokens
   ========================================================= */
:root{
  /* Color: desert sand meets petrol-teal water line, rust for urgency */
  --sand-50:  #F4EEDD;
  --sand-100: #EBE1C6;
  --sand-200: #DFD1AC;
  --ink-900:  #1C2422;
  --petrol-900: #072E2C;
  --petrol-800: #0B3F3B;
  --petrol-700: #0F534C;
  --petrol-600: #156B61;
  --petrol-500: #1C8A7B;
  --teal-200: #BFE4DA;
  --teal-100: #E1F2EC;
  --rust-700: #8F3417;
  --rust-600: #B8461F;
  --rust-500: #D25A2C;
  --white: #FFFFFF;

  --font-display: "Tajawal", "IBM Plex Sans Arabic", sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Tajawal", sans-serif;
  --font-data: "Space Mono", monospace;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  --shadow-1: 0 1px 2px rgba(7,46,44,.08);
  --shadow-2: 0 12px 32px -12px rgba(7,46,44,.35);

  --container: 1180px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  background: var(--sand-50);
  color: var(--ink-900);
  direction: rtl;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family: var(--font-display); margin:0; line-height:1.25; }
p{ margin:0; }
.container{ max-width: var(--container); margin-inline:auto; padding-inline: 24px; }

:focus-visible{ outline: 3px solid var(--rust-500); outline-offset: 3px; border-radius: 4px; }

/* ---------- utility ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-data);
  font-size: 13px; letter-spacing:.04em;
  color: var(--rust-600);
  background: rgba(210,90,44,.1);
  border: 1px solid rgba(210,90,44,.25);
  padding: 6px 14px; border-radius: 999px;
}
.eyebrow::before{ content:""; width:7px; height:7px; border-radius:50%; background: var(--rust-500); box-shadow:0 0 0 4px rgba(210,90,44,.18); }

.section{ padding: 88px 0; }
.section--tight{ padding: 56px 0; }
.section-head{ max-width: 640px; margin-bottom: 44px; }
.section-head h2{ font-size: clamp(28px,4vw,40px); font-weight:900; color: var(--petrol-900); margin-top:14px; }
.section-head p{ margin-top:14px; color:#3E4C48; font-size:17px; }

.section--dark{ background: var(--petrol-900); color: var(--sand-50); }
.section--dark .section-head h2{ color: var(--white); }
.section--dark .section-head p{ color: var(--teal-200); }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family: var(--font-display); font-weight:700; font-size:16px;
  padding: 15px 28px; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor:pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn--rust{ background: var(--rust-500); color:var(--white); box-shadow: var(--shadow-2); }
.btn--rust:hover{ background: var(--rust-600); }
.btn--ghost{ border-color: rgba(255,255,255,.35); color: var(--white); }
.btn--ghost:hover{ border-color: var(--white); }
.btn--outline{ border-color: var(--petrol-700); color: var(--petrol-800); }
.btn--outline:hover{ background: var(--petrol-800); color:var(--white); }
.btn--block{ width:100%; }
.btn-row{ display:flex; flex-wrap:wrap; gap:14px; }

.tel{ font-family: var(--font-data); direction: ltr; unicode-bidi: isolate; }

/* ---------- header ---------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(244,238,221,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(7,46,44,.08);
}
.site-header .container{ display:flex; align-items:center; justify-content:space-between; padding-block:14px; gap:20px; }
.brand{ display:flex; align-items:center; gap:10px; font-family: var(--font-display); font-weight:900; font-size:20px; color:var(--petrol-900); }
.brand-mark{ width:38px; height:38px; flex:none; }
.brand small{ display:block; font-family: var(--font-body); font-weight:500; font-size:11.5px; color: var(--rust-600); }

.nav{ display:flex; align-items:center; gap:32px; }
.nav a{ font-weight:600; font-size:15px; color: var(--petrol-800); position:relative; padding-block:4px; }
.nav a::after{ content:""; position:absolute; right:0; bottom:-2px; width:0; height:2px; background:var(--rust-500); transition:width .2s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after{ width:100%; }
.nav a[aria-current="page"]{ color: var(--rust-600); }

.header-cta{ display:flex; align-items:center; gap:12px; }
.menu-toggle{ display:none; background:none; border:2px solid var(--petrol-800); border-radius:8px; width:44px; height:44px; align-items:center; justify-content:center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after{ content:""; display:block; width:20px; height:2px; background:var(--petrol-900); position:relative; transition:.2s; }
.menu-toggle span::before{ position:absolute; top:-6px; }
.menu-toggle span::after{ position:absolute; top:6px; }

/* ---------- hero / pipe signature ---------- */
.hero{
  position:relative; overflow:hidden;
  background: radial-gradient(120% 140% at 100% -10%, var(--petrol-700) 0%, var(--petrol-900) 55%, var(--ink-900) 100%);
  color: var(--white);
  padding: 76px 0 0;
}
.hero .container{ display:grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items:center; }
.hero-copy h1{ font-size: clamp(34px,5vw,54px); font-weight:900; color:var(--white); }
.hero-copy h1 em{ font-style:normal; color: var(--sand-100); text-decoration: underline; text-decoration-color: var(--rust-500); text-decoration-thickness:4px; text-underline-offset:6px; }
.hero-copy p{ margin-top:20px; font-size:18px; color: var(--teal-200); max-width:46ch; }
.hero-copy .btn-row{ margin-top:32px; }
.hero-stats{ display:flex; gap:28px; margin-top:44px; flex-wrap:wrap; }
.hero-stats div strong{ display:block; font-family:var(--font-data); font-size:28px; color:var(--white); }
.hero-stats div span{ font-size:13px; color: var(--teal-200); }

.pipe-wrap{ position:relative; align-self:stretch; min-height:380px; }
.pipe-svg{ width:100%; height:100%; }
.pipe-line{ fill:none; stroke: var(--teal-200); stroke-width:3; stroke-linecap:round; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.2s ease forwards .3s; }
@keyframes draw{ to{ stroke-dashoffset:0; } }
.leak-dot{ fill: var(--rust-500); }
.leak-pulse{ fill:none; stroke:var(--rust-500); stroke-width:2; opacity:.7; transform-origin:center; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse{ 0%{ transform:scale(.4); opacity:.8;} 100%{ transform:scale(2.6); opacity:0;} }
.pipe-label{ font-family:var(--font-data); font-size:11px; fill: var(--sand-100); }
.pipe-value{ font-family:var(--font-data); font-size:15px; font-weight:700; fill: var(--white); }

.hero-bottom{ margin-top:56px; border-top:1px solid rgba(255,255,255,.14); }
.hero-bottom .container{ display:flex; flex-wrap:wrap; gap:14px 40px; padding-block:20px; grid-template-columns:none; }
.hero-bottom span{ font-size:13.5px; color: var(--teal-200); display:flex; align-items:center; gap:8px; }
.hero-bottom span::before{ content:"✓"; color: var(--rust-500); font-weight:900; }

/* ---------- process ---------- */
.process{ counter-reset: step; }
.process-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; position:relative; }
.process-grid::before{ content:""; position:absolute; top:34px; right:6%; left:6%; height:2px; background: repeating-linear-gradient(90deg, var(--petrol-500) 0 10px, transparent 10px 18px); }
.step{ position:relative; padding-inline-end: 18px; }
.step-num{
  counter-increment: step; width:68px; height:68px; border-radius:50%;
  background: var(--white); border:2px solid var(--petrol-700); color:var(--petrol-800);
  display:flex; align-items:center; justify-content:center; font-family:var(--font-data); font-size:22px; font-weight:700;
  position:relative; z-index:1; margin-bottom:20px;
}
.step h3{ font-size:18px; color: var(--petrol-900); margin-bottom:8px; }
.step p{ font-size:14.5px; color:#3E4C48; }

/* ---------- cards ---------- */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.card{
  background: var(--white); border-radius: var(--radius-md); padding: 30px;
  border:1px solid var(--sand-200); box-shadow: var(--shadow-1);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card .icon{ width:52px; height:52px; margin-bottom:18px; }
.card h3{ font-size:20px; color: var(--petrol-900); margin-bottom:10px; }
.card p{ color:#3E4C48; font-size:15px; }
.card a.more{ display:inline-flex; align-items:center; gap:6px; margin-top:16px; font-weight:700; color:var(--rust-600); font-size:14.5px; }
.card a.more:hover{ text-decoration:underline; }

.why-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px 32px; }
.why-item{ display:flex; gap:16px; }
.why-item .num{ font-family:var(--font-data); font-size:15px; color:var(--rust-600); border:1px solid var(--rust-600); border-radius:50%; width:34px; height:34px; flex:none; display:flex; align-items:center; justify-content:center; }
.why-item h4{ font-size:16.5px; color:var(--petrol-900); margin-bottom:4px; }
.why-item p{ font-size:14.5px; color:#3E4C48; }

/* ---------- districts ---------- */
.districts{ display:flex; flex-wrap:wrap; gap:10px; }
.districts span{
  font-size:14px; padding:9px 16px; border-radius:999px; background: var(--white);
  border:1px solid var(--sand-200); color: var(--petrol-800); font-weight:600;
}

/* ---------- testimonials ---------- */
.quote-card{ background: var(--teal-100); border-radius: var(--radius-md); padding:28px; border:1px solid var(--teal-200); }
.quote-card p{ font-size:15.5px; color:var(--petrol-900); }
.quote-card footer{ margin-top:16px; font-size:13.5px; color:var(--petrol-700); font-weight:700; }

/* ---------- table ---------- */
.table-wrap{ overflow-x:auto; border-radius: var(--radius-md); border:1px solid var(--sand-200); background:var(--white); }
table{ width:100%; border-collapse:collapse; min-width:640px; }
th,td{ text-align:right; padding:16px 18px; font-size:14.5px; border-bottom:1px solid var(--sand-100); }
th{ background: var(--petrol-900); color:var(--white); font-family:var(--font-display); font-weight:700; }
tr:last-child td{ border-bottom:none; }
tr:nth-child(even) td{ background: var(--sand-50); }

/* ---------- CTA band ---------- */
.cta-band{
  background: linear-gradient(120deg, var(--rust-600), var(--rust-700));
  color:var(--white); border-radius: var(--radius-lg); padding: 48px;
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.cta-band h3{ font-size:26px; }
.cta-band p{ margin-top:8px; color: rgba(255,255,255,.85); }
.cta-band .btn--rust{ background:var(--white); color:var(--rust-700); }
.cta-band .btn--rust:hover{ background:var(--sand-100); }

/* ---------- forms ---------- */
.field{ display:flex; flex-direction:column; gap:8px; margin-bottom:20px; }
.field label{ font-size:14.5px; font-weight:700; color:var(--petrol-900); }
.field input, .field select, .field textarea{
  font-family: var(--font-body); font-size:15px; padding:13px 16px; border-radius: var(--radius-sm);
  border:1.5px solid var(--sand-200); background:var(--white); color:var(--ink-900);
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color: var(--petrol-600); }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.form-card{ background:var(--white); border-radius: var(--radius-lg); padding:36px; border:1px solid var(--sand-200); box-shadow: var(--shadow-1); }
.form-note{ font-size:13px; color:#5C6864; margin-top:6px; }

.contact-info{ display:flex; flex-direction:column; gap:22px; }
.contact-row{ display:flex; gap:16px; align-items:flex-start; }
.contact-row .ic{ width:44px; height:44px; border-radius:12px; background:var(--teal-100); color:var(--petrol-700); display:flex; align-items:center; justify-content:center; flex:none; }
.contact-row h4{ font-size:15.5px; color:var(--petrol-900); margin-bottom:3px; }
.contact-row p, .contact-row a{ font-size:14.5px; color:#3E4C48; }

/* ---------- article / blog ---------- */
.article-body{ max-width:760px; margin-inline:auto; }
.article-body h2{ font-size:24px; color:var(--petrol-900); margin-top:40px; margin-bottom:14px; }
.article-body h3{ font-size:19px; color:var(--petrol-900); margin-top:26px; margin-bottom:10px; }
.article-body p{ color:#3E4C48; font-size:16px; margin-bottom:16px; }
.article-body ul, .article-body ol{ margin:0 0 18px; padding-inline-start:22px; color:#3E4C48; font-size:16px; }
.article-body li{ margin-bottom:8px; }
.article-body strong{ color:var(--petrol-900); }
.article-meta{ display:flex; gap:14px; align-items:center; font-size:13.5px; color: var(--teal-200); margin-top:14px; }
.article-meta span{ display:flex; align-items:center; gap:6px; }
.article-meta span::before{ content:"•"; color: var(--rust-500); }
.article-meta span:first-child::before{ display:none; }

.blog-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.blog-card{
  background:var(--white); border-radius:var(--radius-md); overflow:hidden;
  border:1px solid var(--sand-200); box-shadow:var(--shadow-1); transition:transform .18s ease, box-shadow .18s ease;
  display:flex; flex-direction:column;
}
.blog-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-2); }
.blog-card .tag{ display:inline-block; font-family:var(--font-data); font-size:11.5px; color:var(--rust-600); background:rgba(210,90,44,.1); padding:4px 10px; border-radius:999px; width:fit-content; margin:22px 22px 0; }
.blog-card h3{ font-size:18px; color:var(--petrol-900); margin:14px 22px 8px; }
.blog-card p{ font-size:14px; color:#3E4C48; margin:0 22px 20px; flex:1; }
.blog-card .more{ margin:0 22px 22px; font-weight:700; color:var(--rust-600); font-size:14px; }
@media (max-width:980px){ .blog-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:720px){ .blog-grid{ grid-template-columns:1fr; } }

/* ---------- faq accordion ---------- */
.faq-list{ display:flex; flex-direction:column; gap:12px; }
.faq-item{
  background: var(--white); border:1px solid var(--sand-200); border-radius: var(--radius-md);
  padding: 6px 22px;
}
.faq-item summary{
  cursor:pointer; list-style:none; padding:16px 0; font-family: var(--font-display);
  font-weight:700; font-size:16.5px; color: var(--petrol-900);
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:"+"; font-size:22px; color: var(--rust-500); flex:none; line-height:1;
  transition: transform .18s ease;
}
.faq-item[open] summary::after{ transform: rotate(45deg); }
.faq-item p{ padding-bottom:18px; color:#3E4C48; font-size:15px; }

/* ---------- footer ---------- */
.site-footer{ background: var(--petrol-900); color: var(--teal-200); padding: 60px 0 24px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,.1); }
.footer-grid h4{ color:var(--white); font-size:15px; margin-bottom:16px; }
.footer-grid li{ margin-bottom:10px; font-size:14px; }
.footer-grid a:hover{ color:var(--white); }
.footer-brand p{ font-size:14px; margin-top:14px; max-width:32ch; color: rgba(191,228,218,.8); }
.footer-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; padding-top:20px; font-size:13px; color: rgba(191,228,218,.65); }

/* ---------- page hero (inner pages) ---------- */
.page-hero{ background: var(--petrol-900); color:var(--white); padding: 56px 0; }
.page-hero .eyebrow{ background: rgba(210,90,44,.18); color: var(--sand-100); border-color: rgba(210,90,44,.4); }
.page-hero h1{ font-size: clamp(30px,4.4vw,44px); margin-top:16px; }
.page-hero p{ margin-top:14px; color: var(--teal-200); max-width:60ch; font-size:16.5px; }
.breadcrumb{ font-size:13.5px; color: var(--teal-200); }
.breadcrumb a:hover{ color:var(--white); }

/* ---------- service detail blocks ---------- */
.service-block{ display:grid; grid-template-columns:.9fr 1.1fr; gap:48px; align-items:center; }
.service-block:nth-child(even) .service-visual{ order:2; }
.service-visual{ background: var(--teal-100); border-radius: var(--radius-lg); padding:32px; border:1px solid var(--teal-200); }
.method-list li{ display:flex; gap:12px; padding:12px 0; border-bottom:1px dashed var(--sand-200); }
.method-list li:last-child{ border-bottom:none; }
.method-list strong{ display:block; color:var(--petrol-900); font-size:15px; }
.method-list span{ font-size:14px; color:#3E4C48; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .hero .container{ grid-template-columns:1fr; }
  .pipe-wrap{ min-height:260px; order:-1; }
  .process-grid{ grid-template-columns:repeat(2,1fr); gap:32px 0; }
  .process-grid::before{ display:none; }
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .why-grid{ grid-template-columns:1fr; }
  .service-block{ grid-template-columns:1fr; }
  .service-block:nth-child(even) .service-visual{ order:0; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 720px){
  .nav{
    position:fixed; inset-inline:0; top:70px; background: var(--sand-50);
    flex-direction:column; align-items:flex-start; padding:20px 24px; gap:18px;
    border-bottom:1px solid var(--sand-200); box-shadow: var(--shadow-2);
    transform: translateY(-8px); opacity:0; pointer-events:none; transition:.18s ease;
  }
  .nav.is-open{ transform:none; opacity:1; pointer-events:auto; }
  .menu-toggle{ display:flex; }
  .header-cta .btn span.long{ display:none; }
  .grid-3, .grid-2{ grid-template-columns:1fr; }
  .field-row{ grid-template-columns:1fr; }
  .cta-band{ flex-direction:column; text-align:center; }
  .footer-grid{ grid-template-columns:1fr; }
  .footer-bottom{ flex-direction:column; text-align:center; }
  .section{ padding:64px 0; }
}
