/* Ghatafan — Water Services & Solutions */
:root{
  --navy:#1b3a8a;
  --navy-deep:#0f2557;
  --aqua:#2ba3c9;
  --aqua-soft:#e3f3f9;
  --gold:#c49a2c;
  --ink:#1c2433;
  --muted:#5b6678;
  --line:#dde5ee;
  --bg:#ffffff;
  --bg-soft:#f3f8fc;
  --radius:14px;
  --shadow:0 10px 30px rgba(15,37,87,.08);
  --wrap:1160px;
  --font:"IBM Plex Sans Arabic","IBM Plex Sans",system-ui,-apple-system,"Segoe UI",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.8;font-size:17px;-webkit-font-smoothing:antialiased}
html[lang="en"] body{line-height:1.65}
img{max-width:100%;display:block}
a{color:var(--navy);text-decoration:none}
a:hover{color:var(--aqua)}
h1,h2,h3,h4{line-height:1.3;margin:0 0 .5em;color:var(--navy-deep)}
h1{font-size:clamp(2rem,4.6vw,3.2rem);font-weight:700}
h2{font-size:clamp(1.55rem,3vw,2.2rem);font-weight:700}
h3{font-size:1.2rem;font-weight:700}
p{margin:0 0 1em}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 20px}
.ltr{direction:ltr;unicode-bidi:isolate;display:inline-block}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex;align-items:center;gap:20px;min-height:76px}
.brand{display:flex;align-items:center;gap:12px;color:var(--navy-deep)}
.brand img{height:52px;width:auto}
.brand strong{display:block;font-size:1.2rem;line-height:1.2}
.brand small{display:block;font-size:.78rem;color:var(--aqua);line-height:1.3}
.nav{margin-inline-start:auto;display:flex;align-items:center;gap:4px}
.nav a{padding:8px 12px;border-radius:8px;color:var(--ink);font-weight:500;font-size:.98rem}
.nav a:hover{background:var(--bg-soft);color:var(--navy)}
.nav a[aria-current="page"]{color:var(--navy);background:var(--aqua-soft)}
.nav .lang{border:1px solid var(--line);margin-inline-start:6px}
.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 22px;border-radius:999px;font-weight:700;font-size:.98rem;border:2px solid transparent;cursor:pointer;font-family:inherit;transition:.2s}
.btn-primary{background:var(--aqua);color:#fff}
.btn-primary:hover{background:var(--navy);color:#fff}
.btn-outline{border-color:rgba(255,255,255,.7);color:#fff}
.btn-outline:hover{background:#fff;color:var(--navy)}
.btn-navy{background:var(--navy);color:#fff}
.btn-navy:hover{background:var(--navy-deep);color:#fff}
.btn svg{width:18px;height:18px}
.menu-toggle{display:none;margin-inline-start:auto;background:none;border:1px solid var(--line);border-radius:10px;padding:8px 10px;cursor:pointer}
.menu-toggle span{display:block;width:22px;height:2px;background:var(--navy);margin:5px 0}

/* Hero */
.hero{position:relative;color:#fff;background:var(--navy-deep);overflow:hidden}
.hero-bg{position:absolute;inset:0;background-size:cover;background-position:center}
.hero-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,rgba(15,37,87,.94) 0%,rgba(27,58,138,.82) 45%,rgba(43,163,201,.45) 100%)}
html[dir="rtl"] .hero-bg::after{background:linear-gradient(260deg,rgba(15,37,87,.94) 0%,rgba(27,58,138,.82) 45%,rgba(43,163,201,.45) 100%)}
.hero .wrap{position:relative;padding-top:110px;padding-bottom:150px}
.hero h1{color:#fff;max-width:720px}
.hero .kicker{display:inline-block;color:var(--gold);font-weight:700;letter-spacing:.02em;margin-bottom:12px}
.hero p.lead{font-size:1.2rem;max-width:620px;opacity:.95}
.hero .actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.wave{position:absolute;bottom:-1px;left:0;width:100%;height:90px}
.page-hero .wrap{padding-top:70px;padding-bottom:110px}
.page-hero h1{margin-bottom:.25em}
.page-hero p{opacity:.92;max-width:640px;font-size:1.1rem}

/* Stats */
.stats{position:relative;margin-top:-70px;z-index:2}
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.stat{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:24px;border-top:4px solid var(--aqua)}
.stat b{display:block;font-size:1.9rem;color:var(--navy);line-height:1.2}
.stat span{color:var(--muted);font-size:.97rem}

/* Sections */
section{padding:80px 0}
.soft{background:var(--bg-soft)}
.section-head{max-width:720px;margin-bottom:40px}
.eyebrow{color:var(--gold);font-weight:700;font-size:.95rem;display:block;margin-bottom:6px}
.split{display:grid;grid-template-columns:1.1fr .9fr;gap:56px;align-items:center}
.split img{border-radius:var(--radius);box-shadow:var(--shadow);width:100%;height:100%;max-height:520px;object-fit:cover}
.muted{color:var(--muted)}

/* Cards */
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:.25s}
.card:hover{box-shadow:var(--shadow);transform:translateY(-3px)}
.card img{aspect-ratio:4/3;object-fit:cover;width:100%}
.card .body{padding:22px}
.card h3{margin-bottom:.4em}
.card p{color:var(--muted);font-size:.97rem;margin:0}
.card .more{margin-top:auto;padding:0 22px 20px;font-weight:700;font-size:.95rem}
.pillar{background:#fff;border-radius:var(--radius);padding:30px;border:1px solid var(--line);position:relative}
.pillar .num{position:absolute;inset-inline-end:24px;top:18px;font-size:2.6rem;font-weight:700;color:var(--aqua-soft);line-height:1}
.pillar h3{color:var(--navy)}
.pillar p{margin:0;color:var(--muted)}

/* Sectors */
.sector{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 18px;font-weight:500}
.sector svg{flex:0 0 40px;width:40px;height:40px;padding:8px;border-radius:10px;background:var(--aqua-soft);color:var(--navy)}

/* Detail rows (services / products) */
.detail{display:grid;grid-template-columns:.9fr 1.1fr;gap:48px;align-items:center;padding:44px 0;border-bottom:1px solid var(--line)}
.detail:last-child{border-bottom:0}
.detail:nth-child(even) .detail-media{order:2}
.detail-media img{border-radius:var(--radius);width:100%;aspect-ratio:4/3;object-fit:cover;box-shadow:var(--shadow)}
.detail-media.contain img{object-fit:contain;background:#fff;padding:16px;border:1px solid var(--line);box-shadow:none}
.detail h2{font-size:1.6rem}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0;padding:0;list-style:none}
.tags li{background:var(--aqua-soft);color:var(--navy);border-radius:999px;padding:6px 14px;font-size:.92rem;font-weight:500}
.checks{list-style:none;padding:0;margin:12px 0 0}
.checks li{position:relative;padding-inline-start:28px;margin-bottom:8px}
.checks li::before{content:"";position:absolute;inset-inline-start:0;top:.62em;width:14px;height:14px;border-radius:50%;background:var(--aqua);box-shadow:inset 0 0 0 4px var(--aqua-soft)}
.subnav{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.subnav a{border:1px solid var(--line);border-radius:999px;padding:6px 14px;font-size:.92rem;background:#fff}

/* Product groups */
.pgroup{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px;display:grid;grid-template-columns:220px 1fr;gap:28px;align-items:start;margin-bottom:22px}
.pgroup img{border-radius:10px;aspect-ratio:1/1;object-fit:cover;width:100%}
.pgroup img.contain{object-fit:contain;background:#fff}
.pgroup h2{font-size:1.45rem}
.items{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:14px}
.item{background:var(--bg-soft);border-radius:10px;padding:12px 14px}
.item b{display:block;color:var(--navy-deep)}
.item small{color:var(--muted);font-size:.85rem;direction:ltr;unicode-bidi:isolate}

/* Partners */
.logos{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.logo-tile{background:#fff;border:1px solid var(--line);border-radius:12px;height:120px;display:flex;align-items:center;justify-content:center;padding:18px}
.logo-tile img{max-height:80px;width:auto;object-fit:contain}
.logo-tile.text{font-weight:700;font-size:1.25rem;color:var(--navy);letter-spacing:.04em;direction:ltr}
.partner-group{margin-bottom:40px}
.partner-group h3{display:flex;align-items:center;gap:10px}
.partner-group h3::before{content:"";width:6px;height:22px;border-radius:3px;background:var(--gold)}

/* CTA band */
.cta{background:linear-gradient(120deg,var(--navy-deep),var(--navy) 60%,var(--aqua));color:#fff;border-radius:20px;padding:44px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.cta h2{color:#fff;margin-bottom:.2em}
.cta p{margin:0;opacity:.9}
.cta .actions{display:flex;gap:12px;flex-wrap:wrap}

/* Contact */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.info-list{list-style:none;padding:0;margin:0}
.info-list li{display:flex;gap:14px;padding:16px 0;border-bottom:1px solid var(--line)}
.info-list svg{flex:0 0 22px;width:22px;height:22px;color:var(--aqua);margin-top:4px}
.info-list small{display:block;color:var(--muted);font-size:.85rem}
form.contact-form{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px;box-shadow:var(--shadow)}
.field{margin-bottom:16px}
.field label{display:block;font-weight:500;margin-bottom:6px;font-size:.95rem}
.field input,.field textarea,.field select{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:10px;font:inherit;font-size:1rem;background:var(--bg-soft)}
.field input:focus,.field textarea:focus,.field select:focus{outline:2px solid var(--aqua);border-color:transparent;background:#fff}
.form-note{font-size:.85rem;color:var(--muted);margin:10px 0 0}
.map{border:0;width:100%;height:360px;border-radius:var(--radius);margin-top:32px}

/* Footer */
.site-footer{background:var(--navy-deep);color:#c9d4ea;padding:60px 0 24px;margin-top:0}
.site-footer a{color:#fff}
.site-footer a:hover{color:var(--aqua)}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:40px}
.site-footer h4{color:#fff;font-size:1.05rem}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li{margin-bottom:8px}
.footer-brand{display:flex;gap:12px;align-items:center;margin-bottom:14px}
.footer-brand img{height:56px;background:#fff;border-radius:12px;padding:6px}
.footer-brand strong{color:#fff;font-size:1.15rem;display:block}
.social{display:flex;gap:10px;margin-top:12px}
.social a{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center}
.social svg{width:18px;height:18px;fill:#fff}
.copyright{border-top:1px solid rgba(255,255,255,.12);margin-top:40px;padding-top:20px;font-size:.88rem;text-align:center}

.wa-float{position:fixed;bottom:20px;inset-inline-start:20px;z-index:60;width:56px;height:56px;border-radius:50%;background:#25d366;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 20px rgba(0,0,0,.2)}
.wa-float svg{width:30px;height:30px;fill:#fff}

/* Responsive */
@media (max-width:960px){
  .split,.detail,.contact-grid{grid-template-columns:1fr;gap:28px}
  .detail:nth-child(even) .detail-media{order:0}
  .grid-3{grid-template-columns:repeat(2,1fr)}
  .grid-4,.logos{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
  .pgroup{grid-template-columns:1fr}
  .pgroup img{max-width:260px}
}
@media (max-width:860px){
  .menu-toggle{display:block}
  .nav{display:none;position:absolute;top:76px;inset-inline:0;background:#fff;flex-direction:column;align-items:stretch;padding:12px 20px 20px;border-bottom:1px solid var(--line);box-shadow:var(--shadow)}
  .nav.open{display:flex}
  .nav a{padding:12px}
  .nav .lang{margin:6px 0 0;text-align:center}
  .header-cta{display:none}
}
@media (max-width:600px){
  body{font-size:16px}
  section{padding:56px 0}
  .stats-grid,.grid-3,.grid-4,.items,.footer-grid{grid-template-columns:1fr}
  .stats{margin-top:-50px}
  .hero .wrap{padding-top:70px;padding-bottom:120px}
  .cta{padding:30px}
  .brand small{display:none}
}

/* product cards */
.card.product:hover{transform:none}
.card img.contain{object-fit:contain;background:#fff;padding:14px;border-bottom:1px solid var(--line)}
.card.product .tags{margin-top:14px}
.card.product .tags li{font-size:.85rem;padding:5px 12px}
#products .card p{font-size:.93rem}

/* ---- v4: lighter home ---- */
.home-hero .wrap{padding-top:96px;padding-bottom:140px}
.hero .kicker{font-size:clamp(1.35rem,2.6vw,2rem);color:var(--gold);margin-bottom:6px;letter-spacing:0}
.hero h1{margin-bottom:0}
.split.intro{align-items:center}
.split.intro p:first-child{font-size:1.15rem;color:var(--navy-deep);font-weight:500}
section.compact{padding:52px 0}
section.compact .section-head{margin-bottom:22px}
section.compact h2{font-size:clamp(1.35rem,2.4vw,1.75rem)}
.btn-sm{padding:9px 18px;font-size:.9rem}
.mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.mini{display:flex;gap:14px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px;color:var(--ink);transition:.2s}
.mini:hover{border-color:var(--aqua);box-shadow:var(--shadow);color:var(--ink)}
.mini img{flex:0 0 84px;width:84px;height:84px;border-radius:9px;object-fit:cover}
.mini h3{font-size:1rem;margin:0 0 4px}
.mini p{margin:0;font-size:.86rem;color:var(--muted);line-height:1.6}
.pgroups{display:grid;grid-template-columns:3fr 3fr 2fr;gap:18px}
.pg h3,.others h3{font-size:.95rem;margin-bottom:10px;display:flex;align-items:center;gap:8px}
.pg h3::before,.others h3::before{content:"";width:5px;height:16px;border-radius:3px;background:var(--gold)}
.pg-logos{display:grid;grid-template-columns:repeat(var(--n),1fr);gap:10px}
.pg .logo-tile{height:74px;padding:10px;border-radius:10px}
.pg .logo-tile img{max-height:46px}
.others{margin-top:22px}
.others .tags{margin:0}
.others .tags li{background:#fff;border:1px solid var(--line);font-weight:600;direction:ltr}
.contact-intro{text-align:center;max-width:720px;margin:0 auto 40px;padding:26px 28px;border-radius:var(--radius);background:var(--aqua-soft);border:1px solid #cfe9f2}
.contact-intro h2{font-size:clamp(1.3rem,2.4vw,1.7rem);margin-bottom:.3em}
.contact-intro p{margin:0;color:var(--muted)}
main{padding-bottom:0}
body{background:var(--bg)}
@media (max-width:960px){.mini-grid{grid-template-columns:repeat(2,1fr)}.pgroups{grid-template-columns:1fr}}
@media (max-width:600px){.mini-grid{grid-template-columns:1fr}.home-hero .wrap{padding-top:64px;padding-bottom:110px}.pg-logos{grid-template-columns:repeat(3,1fr)}}
.split.intro img{max-height:360px}

/* ---- v5: compact home page ---- */
.page-index section{padding:44px 0}
.page-index section.compact{padding:40px 0}
.page-index .section-head{margin-bottom:18px}
.page-index h2{font-size:clamp(1.25rem,2.2vw,1.6rem)}
.page-index .eyebrow{font-size:.85rem;margin-bottom:2px}
/* hero */
.page-index .home-hero .wrap{padding-top:52px;padding-bottom:92px}
.page-index .hero h1{font-size:clamp(1.8rem,3.6vw,2.5rem)}
.page-index .hero .kicker{font-size:clamp(1.2rem,2.2vw,1.6rem)}
.page-index .wave{height:56px}
/* stats */
.page-index .stats{margin-top:-46px}
.page-index .stats-grid{gap:12px}
.page-index .stat{padding:14px 18px;border-top-width:3px}
.page-index .stat b{font-size:1.3rem}
.page-index .stat span{font-size:.88rem}
/* intro */
.page-index .split.intro{grid-template-columns:1.5fr .5fr;gap:32px}
.page-index .split.intro img{max-height:220px;aspect-ratio:4/3}
.page-index .split.intro p{font-size:.98rem;margin-bottom:.6em}
.page-index .split.intro p:first-child{font-size:1.05rem}
/* services */
.page-index .mini-grid{gap:10px}
.page-index .mini{padding:8px;gap:12px}
.page-index .mini img{flex-basis:60px;width:60px;height:60px;border-radius:8px}
.page-index .mini h3{font-size:.93rem;margin-bottom:2px}
.page-index .mini p{font-size:.8rem;line-height:1.5}
/* sectors */
.page-index .grid-4{gap:10px}
.page-index .sector{padding:9px 12px;gap:10px;font-size:.9rem;border-radius:10px}
.page-index .sector svg{flex-basis:30px;width:30px;height:30px;padding:6px;border-radius:8px}
/* partners */
.page-index .pgroups{gap:14px}
.page-index .pg h3,.page-index .others h3{font-size:.88rem;margin-bottom:8px}
.page-index .pg-logos{gap:8px}
.page-index .pg .logo-tile{height:56px;padding:8px}
.page-index .pg .logo-tile img{max-height:36px}
.page-index .others{margin-top:16px}
.page-index .others .tags li{font-size:.82rem;padding:4px 12px}
.page-index #partners .section-head p{font-size:.92rem;margin:0}
@media (max-width:960px){.page-index .split.intro{grid-template-columns:1fr}.page-index .split.intro img{max-height:200px}}
@media (max-width:600px){
  .page-index .home-hero .wrap{padding-top:40px;padding-bottom:80px}
  .page-index .grid-4{grid-template-columns:1fr 1fr}
  .page-index .sector{font-size:.82rem;padding:8px}
  .page-index .sector svg{display:none}
  .page-index .stats-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:600px){.page-index .stat{padding:12px}.page-index .stat b{font-size:1.1rem}.page-index .stat span{font-size:.8rem;line-height:1.5;display:block}}
