/* ==========================================================================
   Zulal Water Solutions: stylesheet
   Edit the colours and fonts in the :root block below; everything else uses those variables.
   Written with logical properties (inline-start / inline-end) so it works in LTR and RTL.
   ========================================================================== */
/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --abyss: #062B3A;      /* deep water: navbar, hero, footer */
  --abyss-2: #0A3A4D;
  --tide: #0E5F78;       /* primary actions and links on light backgrounds */
  --current: #1BA3B5;    /* decorative accents only (low contrast on white) */
  --surf: #5FD3E0;       /* accents on dark backgrounds */
  --foam: #E4F2F5;      /* tinted sections */
  --salt: #F6FAFB;       /* page background */
  --ink: #10242C;        /* body text */
  --muted: #4C6670;      /* secondary text (5.4:1 on --salt) */
  --buoy: #5FD3E0;       /* the one warm accent: calls to action, active states */
  --line: #D3E3E8;

  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Public Sans', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 72px;
}
html[lang="ar"] {
  --font-display: 'Readex Pro', 'Segoe UI', Tahoma, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
html { scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--salt);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { line-height: 1.9; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 {
  line-height: 1.4;
  letter-spacing: 0; /* never letter-space Arabic */
}
a { color: var(--tide); }
a:hover { color: var(--abyss); }
img { max-width: 100%; height: auto; }
main:focus, h1:focus, .success-note:focus { outline: none; }

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

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 2000;
  background: var(--buoy); color: var(--abyss); padding: .6rem 1rem; border-radius: 6px;
  font-weight: 600; text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.section-pad { padding-block: clamp(3.5rem, 8vw, 6rem); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn { font-weight: 600; border-radius: 999px; padding: .7rem 1.5rem; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.btn-lg { padding: .85rem 1.8rem; font-size: 1.05rem; }
.btn-buoy { background: var(--buoy); color: var(--abyss); border: 2px solid var(--buoy); }
.btn-buoy:hover, .btn-buoy:focus-visible { background: #ffc15e; border-color: #ffc15e; color: var(--abyss); transform: translateY(-2px); }
.btn-tide { background: var(--tide); color: #fff; border: 2px solid var(--tide); }
.btn-tide:hover, .btn-tide:focus-visible { background: var(--abyss); border-color: var(--abyss); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn:disabled { opacity: .7; transform: none; }

/* ==========================================================================
   Navbar (sticky)
   ========================================================================== */
.site-nav { background: rgba(6, 43, 58, .94); backdrop-filter: blur(10px); min-height: var(--nav-h); border-bottom: 1px solid rgba(255,255,255,.08); }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand img { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1; display: block; }
.brand-sub { font-size: .72rem; color: rgba(255,255,255,.72); display: block; line-height: 1.3; margin-top: 2px; }
html[lang="ar"] .brand-name { font-size: 1.5rem; }
.site-nav .nav-link { color: rgba(255,255,255,.82); font-weight: 500; padding: .5rem .9rem; position: relative; transition: color .2s; }
.site-nav .nav-link:hover { color: #fff; }
.site-nav .nav-link::after {
  content: ""; position: absolute; inset-inline: .9rem; bottom: 2px; height: 2px; background: var(--buoy);
  transform: scaleX(0); transform-origin: center; transition: transform .3s var(--ease);
}
.site-nav .nav-link[aria-current="page"] { color: #fff; }
.site-nav .nav-link[aria-current="page"]::after, .site-nav .nav-link:hover::after { transform: scaleX(1); }
.lang-btn { display: inline-block; text-align: center; text-decoration: none; background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); border-radius: 999px; padding: .4rem 1.1rem; font-weight: 600; transition: background-color .2s, border-color .2s; }
.lang-btn:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.navbar-toggler { border-color: rgba(255,255,255,.4); }
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { padding-block: .75rem 1rem; }
  .site-nav .nav-link::after { inset-inline: 0; }
}

/* ==========================================================================
   Hero (the one orchestrated moment: headline rises line by line,
   ripples spread from a single drop, waves drift beneath)
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(60% 80% at 85% 40%, rgba(27,163,181,.35), transparent 70%),
    linear-gradient(170deg, var(--abyss) 20%, var(--abyss-2) 100%);
  padding-block: clamp(4.5rem, 12vw, 8.5rem) clamp(7rem, 14vw, 10rem);
}
.hero-inner { position: relative; z-index: 2; }
.hero-title { color: #fff; font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 700; max-width: 14ch; margin: 0 0 1.5rem; }
html[lang="ar"] .hero-title { max-width: 16ch; font-weight: 600; font-size: clamp(2.3rem, 6vw, 4.6rem); }
.hero-title .line { display: block; animation: rise .9s var(--ease) both; }
.hero-title .l2 { animation-delay: .18s; color: var(--surf); }
.hero-lead { max-width: 52ch; font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255,255,255,.86); animation: rise .9s var(--ease) .38s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; animation: rise .9s var(--ease) .55s both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

.hero-ripples { position: absolute; inset-block: 0; inset-inline-end: -8%; width: min(62vw, 720px); display: flex; align-items: center; z-index: 1; opacity: .9; pointer-events: none; }
@media (max-width: 767.98px) { .hero-ripples { opacity: .35; inset-inline-end: -30%; width: 120vw; } }
.ripple { width: 100%; height: auto; }
.ripple circle.ring { fill: none; stroke: var(--surf); stroke-width: 1.5; opacity: 0; transform-origin: center; transform-box: fill-box; animation: ripple 8s ease-out infinite; }
.ripple circle.ring:nth-of-type(2) { animation-delay: 1.6s; }
.ripple circle.ring:nth-of-type(3) { animation-delay: 3.2s; }
.ripple circle.ring:nth-of-type(4) { animation-delay: 4.8s; }
.ripple circle.ring:nth-of-type(5) { animation-delay: 6.4s; }
@keyframes ripple { 0% { transform: scale(.08); opacity: .6; } 100% { transform: scale(1); opacity: 0; } }

.hero-waves { position: absolute; inset-inline: 0; bottom: -1px; height: clamp(70px, 10vw, 130px); direction: ltr; z-index: 2; overflow: hidden; }
.hero-waves svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.hero-waves .w1 { animation: drift 26s linear infinite; opacity: .5; }
.hero-waves .w2 { animation: drift 40s linear infinite reverse; }
@keyframes drift { to { transform: translateX(-50%); } }

/* ==========================================================================
   Client logo slider
   ========================================================================== */
.clients { padding-block: 2.5rem 1rem; }
.clients-title { font-size: 1.05rem; font-weight: 600; color: var(--muted); font-family: var(--font-body); letter-spacing: 0; margin: 0; }
.btn-pause { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); padding: .25rem .8rem; font-size: .85rem; transition: border-color .2s, color .2s; }
.btn-pause:hover { border-color: var(--tide); color: var(--tide); }
.btn-pause svg { width: 14px; height: 14px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 3.5rem; padding-block: 1rem; animation: marquee 38s linear infinite; }
html[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
.marquee:hover .marquee-track, .marquee.is-paused .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
.logo-item { display: flex; align-items: center; gap: .7rem; color: #5B7782; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; white-space: nowrap; transition: color .3s; }
.logo-item:hover { color: var(--tide); }
.logo-item svg { width: 30px; height: 30px; }

/* ==========================================================================
   Section headings
   ========================================================================== */
.section-head { max-width: 62ch; margin-bottom: 2.25rem; }
.section-head h2, .page-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; margin-bottom: .75rem; }
.lead-text { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.page-head { background: var(--foam); border-bottom: 1px solid var(--line); padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.5rem); }
.page-head .lead-text { margin: 0; }

/* ==========================================================================
   Filters (underline tabs) and project cards
   ========================================================================== */
.filter-bar { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.filter-btn { background: none; border: 0; padding: .7rem 0; color: var(--muted); font-weight: 500; position: relative; display: inline-flex; align-items: baseline; gap: .4rem; transition: color .2s; }
.filter-btn::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 3px; background: var(--buoy); transform: scaleX(0); transition: transform .3s var(--ease); }
.filter-btn:hover { color: var(--ink); }
.filter-btn[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.filter-btn[aria-pressed="true"]::after { transform: scaleX(1); }
.filter-n { font-size: .8rem; color: var(--muted); font-weight: 400; }
.result-count { color: var(--muted); font-size: .92rem; margin-bottom: 1.5rem; min-height: 1.6em; }

.project-col { transition: opacity .2s ease, transform .2s ease; }
.project-col.is-leaving { opacity: 0; transform: scale(.97); }
.project-col.is-entering { animation: pop .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }

.project-card { position: relative; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s; }
.project-card:hover, .project-card:focus-within { border-color: var(--tide); }
.project-img { overflow: hidden; background: var(--foam); aspect-ratio: 8 / 5; }
.project-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.project-card:hover .project-img img { transform: scale(1.05); }
.project-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.tag { align-self: flex-start; display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 600; color: var(--ink); background: var(--foam); border-radius: 999px; padding: .2rem .75rem; }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--tide)); }
[data-cat="desalination"] .tag, .tag[data-cat="desalination"] { --dot: #1BA3B5; }
[data-cat="treatment"] .tag, .tag[data-cat="treatment"] { --dot: #2FA37A; }
[data-cat="infrastructure"] .tag, .tag[data-cat="infrastructure"] { --dot: #5B7DB5; }
[data-cat="consulting"] .tag, .tag[data-cat="consulting"] { --dot: #D9902B; }
.project-title { font-size: 1.25rem; margin: .1rem 0 0; }
.project-open { background: none; border: 0; padding: 0; text-align: start; font: inherit; color: inherit; letter-spacing: inherit; }
.project-open:focus-visible { outline-offset: -3px; }
.project-desc { color: var(--muted); margin: 0; font-size: .97rem; }
.project-meta { margin: auto 0 0; padding-top: .5rem; font-size: .88rem; color: var(--muted); display: flex; gap: 1rem; }

/* ==========================================================================
   Services list (home)
   ========================================================================== */
.services { background: var(--foam); }
.service-item { border-top: 2px solid var(--abyss); padding-top: 1.1rem; height: 100%; }
.service-item h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.service-item p { color: var(--muted); max-width: 40ch; }
.service-item a { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { background: var(--tide); color: #fff; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 20ch; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 52ch; font-size: 1.1rem; }

/* ==========================================================================
   Case studies and process (Projects page)
   ========================================================================== */
.case + .case { margin-top: clamp(3rem, 7vw, 5.5rem); }
.case-img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 10px; display: block; }
.case h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: .8rem 0 .3rem; }
.case-loc { color: var(--muted); margin-bottom: 1.2rem; }
.case dl { margin: 0 0 1.4rem; }
.case dt { font-family: var(--font-display); font-size: 1.05rem; margin-top: 1rem; color: var(--tide); }
.case dd { margin: .15rem 0 0; max-width: 58ch; }
.metric { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1rem; }
.metric strong { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--abyss); }
.metric span { color: var(--muted); }
.process-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.process-list li { counter-increment: step; position: relative; padding-block: 1.2rem; padding-inline-start: 4rem; border-top: 1px solid var(--line); }
.process-list li:last-child { border-bottom: 1px solid var(--line); }
.process-list li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: 1.05rem; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--abyss); color: #fff; font-family: var(--font-display); font-weight: 700; }
.process-list h3 { font-size: 1.3rem; margin-bottom: .15rem; }
.process-list p { margin: 0; color: var(--muted); }

/* ==========================================================================
   About
   ========================================================================== */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1.5rem; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--tide); line-height: 1; }
.stat span { color: var(--muted); }
.principles { margin: 0; }
.principles > div { display: grid; grid-template-columns: minmax(130px, 220px) 1fr; gap: 1rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.principles > div:last-child { border-bottom: 1px solid var(--line); }
.principles dt { font-family: var(--font-display); font-size: 1.5rem; }
.principles dd { margin: 0; max-width: 62ch; font-size: 1.08rem; }
@media (max-width: 575.98px) { .principles > div { grid-template-columns: 1fr; gap: .4rem; } }
.team-avatar { width: 100%; aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; margin-bottom: .9rem; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 8vw, 5rem); background: var(--tide); }
.av-1 { background: var(--tide); }
.av-2 { background: var(--current); }
.av-3 { background: var(--abyss); }
.av-4 { background: var(--buoy); color: var(--abyss); }
.team-name { font-size: 1.2rem; margin: 0; }
.team-role { color: var(--muted); margin: 0; }

/* ==========================================================================
   Contact
   ========================================================================== */
.form-label { font-weight: 600; }
.form-control { border-radius: 8px; border: 1.5px solid #B9CFD6; padding: .7rem .9rem; background: #fff; }
.form-control:focus { border-color: var(--tide); box-shadow: 0 0 0 .25rem rgba(14,95,120,.2); }
.invalid-feedback { font-size: .9rem; }
.trap { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error-note { background: #FBE9E7; border: 1px solid #E8A59B; color: #7A1F12; border-radius: 8px; padding: 1rem 1.2rem; }
.success-note { background: #E3F5EC; border: 1px solid #9ED5B7; color: #14452B; border-radius: 8px; padding: 1rem 1.2rem; margin-top: 1.2rem; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding-block: 1rem; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list h3 { font-size: 1.05rem; margin-bottom: .2rem; color: var(--tide); }
.contact-list p, .contact-list a { margin: 0; }
.ltr-text { direction: ltr; unicode-bidi: isolate; display: inline-block; }
html[dir="rtl"] input[type="email"] { text-align: right; }

/* ==========================================================================
   Modal
   ========================================================================== */
.modal-content { border: 0; border-radius: 12px; overflow: hidden; }
.modal-art { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; display: block; }
.modal-title { font-size: 1.8rem; }
.modal-facts { display: flex; flex-wrap: wrap; gap: .4rem 2rem; margin: 1rem 0; }
.modal-facts dt { font-size: .85rem; color: var(--muted); font-weight: 500; }
.modal-facts dd { margin: 0; font-weight: 600; }
.modal-case dt { font-family: var(--font-display); color: var(--tide); margin-top: .9rem; }
.modal-case dd { margin: .1rem 0 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--abyss); color: rgba(255,255,255,.8); padding-block: 3rem 1.5rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand-name { color: #fff; }
.footer-tag { max-width: 34ch; margin-top: .9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2rem; padding-top: 1.2rem; font-size: .9rem; color: rgba(255,255,255,.65); }
 .bg-info{
      --bs-bg-opacity: 1;
    background-color: rgb(14 95 120) !important;
    border: 3px solid #5fd3e0;}
    .service-list li{
      font-size:15px;
    }
/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee { overflow-x: auto; }
  .project-card:hover .project-img img { transform: none; }
}
  .cards-overlap { margin-top: -7.5rem; }
    @media (max-width: 767.98px) { .cards-overlap { margin-top: -3rem; } }
   