/* ==========================================================================
   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.

   Contents
     1. Tokens        5. Panels (home hero)     9. Solutions, CTA
     2. Base          6. Tiles, stats, intro   10. Inner pages
     3. Buttons       7. Client slider         11. Footer, modal
     4. Navbar + mega 8. Filters + projects    12. Reveal + reduced motion
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #050D12;          /* page background */
  --bg-2: #08161E;        /* alternate sections */
  --panel: #0D1E28;       /* cards, modal */
  --line: rgba(255, 255, 255, .14);
  --text: #EAF4F7;
  --muted: #A3B8C0;       /* 9:1 contrast on --bg */
  --aqua: #5FD3E0;        /* hover + highlights */
  --tide: #0E5F78;
  --buoy: #F2A93B;        /* small warm accent (tags, drop) */

  --font-display: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 76px;
  
  --sp-page: #050c14;
      --sp-card: #0e1c27;
      --sp-border: #22313d;
      --sp-border-hover: #3a8fa3;
      --sp-tag-bg: #1b2a36;
      --sp-title: #f2f6f8;
      --sp-text: #93a3ad;
      --sp-meta: #8396a1;
      --sp-orange: #e8a23c;
      --sp-light: #e4f1f6;
}
html[lang="ar"] {
  --font-display: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --font-body: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}
[data-bs-theme="dark"] {
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-border-color: var(--line);
  --bs-link-color-rgb: 95, 211, 224;
  --bs-link-hover-color-rgb: 255, 255, 255;
}

/* ---------- 2. Base ---------- */
html { scroll-padding-top: calc(var(--nav-h) + 16px); }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.7; font-weight: 300; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html[lang="ar"] body { line-height: 1.95; font-weight: 400; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 300; line-height: 1.12; letter-spacing: -.01em; color: #fff; }
h1 strong, h2 strong, h3 strong { font-weight: 600; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { line-height: 1.4; letter-spacing: 0; }
a { color: var(--aqua); text-underline-offset: 4px; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }
main:focus, h1:focus { outline: none; }
:focus-visible { outline: 3px solid var(--buoy); outline-offset: 3px; border-radius: 2px; }
.section-pad { padding-block: clamp(4rem, 9vw, 7rem); }
.lead-text { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

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

.block-title { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 2.2rem; }

/* ---------- 3. Buttons ---------- */
.btn { font-weight: 500; border-radius: 3px; padding: .75rem 1.7rem; transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease); }
html[lang="en"] .btn { letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; }
.btn-lg { padding: .95rem 2.2rem; }
.btn-solid { background: #fff; color: #050D12; border: 1.5px solid #fff; }
.btn-solid:hover, .btn-solid:focus-visible { background: var(--aqua); border-color: var(--aqua); color: #050D12; transform: translateY(-2px); }
.btn-line { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .7); }
.btn-line:hover, .btn-line:focus-visible { background: #fff; border-color: #fff; color: #050D12; transform: translateY(-2px); }
.btn:disabled { opacity: .7; transform: none; }
/*background: rgba(31, 78, 102, .92);*/
/* ---------- 4. Navbar (sticky) + mega menu ---------- */
.site-nav { background:rgb(5 13 17) !important; backdrop-filter: blur(12px); min-height: var(--nav-h); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .7rem; 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: 600; font-size: 1.3rem; line-height: 1; display: block;padding:0 5px; }
.brand-sub { font-size: .7rem; color: var(--muted); display: block; line-height: 1.3; margin-top: 3px; }
html[lang="en"] .brand-sub { letter-spacing: .14em; text-transform: uppercase; }
html[lang="ar"] .brand-name { font-size: 1.5rem; }

.site-nav .nav-link { color: rgba(255, 255, 255, .82); font-weight: 500; padding: .5rem 1rem; position: relative; transition: color .2s; }
html[lang="en"] .site-nav .nav-link { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.site-nav .nav-link:hover, .site-nav .nav-link[aria-current="page"] { color: #fff; }
.site-nav .nav-link::after { content: ""; position: absolute; inset-inline: 1rem; bottom: 0; height: 2px; background: var(--aqua); transform: scaleX(0); transition: transform .3s var(--ease); }
.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; color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 3px; padding: .4rem 1.1rem; font-weight: 500; transition: background-color .2s, color .2s; }
.lang-btn:hover { background: #fff; color: #050D12; border-color: #fff; }
.navbar-toggler { border-color: rgba(255, 255, 255, .4); }

.has-mega { display: flex; flex-wrap: wrap; align-items: center; }
.mega-toggle { background: none; border: 0; color: var(--muted); width: 28px; height: 28px; display: grid; place-items: center; margin-inline-start: -.6rem; border-radius: 50%; }
.mega-toggle svg { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.mega-toggle:hover { color: #fff; }
.has-mega.is-open .mega-toggle svg { transform: rotate(180deg); }
.mega { display: none; width: 100%; background: rgba(5, 13, 18, .98); border-top: 1px solid var(--line); padding-block: 2rem; }
.has-mega.is-open .mega { display: block; animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } }
@media (min-width: 992px) {
  .site-nav .navbar-nav { align-items: stretch; }
  .has-mega { align-self: stretch; }
  .mega { position: absolute; inset-inline: 0; top: 100%; padding-block: 2.8rem; box-shadow: 0 30px 50px rgba(0, 0, 0, .45); }
}
.mega-head { font-size: .78rem; color: var(--muted); margin-bottom: .9rem; }
html[lang="en"] .mega-head { letter-spacing: .16em; text-transform: uppercase; }
.mega-list { list-style: none; margin: 0; padding: 0; }
.mega-list a { display: inline-block; padding: .35rem 0; color: #fff; text-decoration: none; font-size: 1.1rem; transition: color .2s, transform .25s var(--ease); }
.mega-list a:hover { color: var(--aqua); transform: translateX(6px); }
html[dir="rtl"] .mega-list a:hover { transform: translateX(-6px); }
.mega-all { color: var(--aqua) !important; font-size: .95rem !important; }
.mega-promo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: center; text-decoration: none; color: #fff; }
.mega-promo img { border-radius: 4px; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.mega-promo-text { display: block; }
.mega-promo-text strong { display: block; font-weight: 600; margin-bottom: .3rem; }
.mega-promo-text span { color: var(--muted); font-size: .92rem; line-height: 1.5; display: block; }
.mega-promo:hover img { filter: brightness(1.15); }
@media (max-width: 991.98px) { .mega-promo { grid-template-columns: 1fr; } }

/* ---------- 5. Panels: full-screen sections at the top of the home page ---------- */
.panel { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: max(560px, calc(100svh - var(--nav-h))); isolation: isolate; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.panel-bg { position: absolute; inset: -6%; z-index: -4; background: radial-gradient(70% 90% at 78% 28%, var(--g1), transparent 70%), linear-gradient(160deg, var(--g2), #050D12 80%); animation: slow 28s ease-in-out infinite alternate; }
@keyframes slow { to { transform: scale(1.08) translate(-2%, -1.5%); } }
.tone-1 { --g1: #0F4D68; --g2: #06202D; }
.tone-2 { --g1: #11808F; --g2: #05202A; }
.tone-3 { --g1: #13705F; --g2: #05201C; }
.tone-4 { --g1: #2B52A0; --g2: #07122B; }
.panel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.panel-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(5, 13, 18, .82), rgba(5, 13, 18, .05) 60%); }
.panel-inner { padding-block: 6rem 5rem; position: relative; z-index: 3; }
.panel-title { font-size: clamp(2.2rem, 5.6vw, 4.8rem); max-width: 18ch; margin-bottom: 1.2rem; }
.panel-title-xl { font-size: clamp(2.8rem, 8vw, 6.6rem); max-width: 14ch; }
html[lang="ar"] .panel-title { font-weight: 500; max-width: 20ch; }
.panel-title .line { display: block; animation: rise 1s var(--ease) both; }
.panel-title .l2 { animation-delay: .18s; color: var(--aqua); }
.panel-sub { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: rgba(255, 255, 255, .86); max-width: 46ch; }
.panel:first-of-type .panel-sub { animation: rise 1s var(--ease) .38s both; }
.panel-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.panel:first-of-type .panel-actions { animation: rise 1s var(--ease) .55s both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

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

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

.fx-bubbles { inset: 0; overflow: hidden; }
.fx-bubbles span { position: absolute; bottom: -50px; inset-inline-start: var(--x); width: var(--s); height: var(--s); border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .4); background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .25), transparent 60%); opacity: 0; animation: rise-bubble var(--t) linear var(--d) infinite; }
@keyframes rise-bubble { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .8; } 100% { transform: translateY(-115svh); opacity: 0; } }

.fx-rays { inset: 0; overflow: hidden; }
.fx-rays span { position: absolute; top: -12%; inset-inline-start: var(--x); width: var(--w); height: 135%; background: linear-gradient(to bottom, rgba(95, 211, 224, .3), transparent 78%); filter: blur(9px); transform: rotate(14deg); transform-origin: top center; opacity: .8; animation: sway 9s ease-in-out var(--d) infinite alternate; }
@keyframes sway { to { transform: rotate(5deg); opacity: .35; } }

/* ---------- 6. Category tiles, stats, introduction ---------- */
.tile-row { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .tile-row { grid-template-columns: repeat(4, 1fr); } }
.tile { position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 3; overflow: hidden; padding: 1.2rem 1.3rem; color: #fff; text-decoration: none; background:radial-gradient(60% 120% at 50% 100%, rgba(14, 95, 120, .55), transparent 70%), var(--bg-2); isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(5, 13, 18, .85), rgba(5, 13, 18, .1) 70%); }
.tile span { font-weight: 500; font-size: 1.05rem; transition: transform .4s var(--ease), color .3s; }
.tile:hover img { transform: scale(1.08); }
.tile:hover span { transform: translateY(-4px); color: var(--aqua); }
.tile-all { background: radial-gradient(60% 120% at 50% 100%, rgba(14, 95, 120, .55), transparent 90%), var(--bg-2); }
.tile-all::after { display: none; }
.tile-all:hover { background: radial-gradient(60% 120% at 50% 100%, rgba(14, 95, 120, .55), transparent 70%), var(--bg-2); }
.tile-all:hover span { color: #fff; }

.stats { list-style: none; margin: 0 0 3.5rem; padding: 1.6rem 0; display: flex; flex-wrap: wrap; gap: 1rem 0; border-block: 1px solid var(--line); }
.stats li { flex: 1 1 200px; font-size: clamp(1.2rem, 2.6vw, 1.9rem); font-weight: 300; padding-inline: 1.5rem; }
html[lang="en"] .stats li { letter-spacing: .18em; text-transform: uppercase; }
.stats li + li { border-inline-start: 1px solid var(--line); }
.stats li:first-child { padding-inline-start: 0; }
@media (max-width: 575.98px) { .stats li { border: 0 !important; padding-inline: 0; } }
.intro-lead { font-size: clamp(1.25rem, 2.3vw, 1.85rem); line-height: 1.55; color: var(--muted); margin-bottom: 1.8rem; }
.intro-lead strong { color: #fff; font-weight: 600; }
.intro-text { font-size: 1.1rem; color: var(--muted); max-width: 70ch; }

/* ---------- 7. Client logo slider ---------- */
.clients { padding-block: 1rem 3rem; }
.clients-title { font-size: .95rem; font-weight: 500; 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: 3px; color: var(--muted); padding: .25rem .8rem; font-size: .85rem; transition: border-color .2s, color .2s; }
.btn-pause:hover { border-color: var(--aqua); color: #fff; }
.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: 4rem; padding-block: 1.2rem; 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: #7E98A3; font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; white-space: nowrap; transition: color .3s; }
.logo-item:hover { color: var(--aqua); }
.logo-item svg { width: 30px; height: 30px; }

/* ---------- 8. Filters + projects ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .25rem 1.8rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.filter-btn { background: none; border: 0; padding: .8rem 0; color: var(--muted); font-weight: 500; position: relative; display: inline-flex; align-items: baseline; gap: .45rem; transition: color .2s; }
html[lang="en"] .filter-btn { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.filter-btn::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--aqua); transform: scaleX(0); transition: transform .3s var(--ease); }
.filter-btn:hover, .filter-btn[aria-pressed="true"] { color: #fff; }
.filter-btn[aria-pressed="true"]::after { transform: scaleX(1); }
.filter-n { font-size: .75rem; color: var(--muted); }
.result-count { color: var(--muted); font-size: .9rem; margin-bottom: 1.4rem; min-height: 1.6em; }

/* animation used while filtering (classes are added by main.js) */
.project-col { transition: opacity .2s ease, transform .2s ease; }
.project-col.is-leaving { opacity: 0; transform: scale(.98); }
.project-col.is-entering { animation: pop .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } }

.tag { align-self: flex-start; display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 500; color: #fff; background: rgba(255, 255, 255, .08); border-radius: 3px; padding: .2rem .7rem; white-space: nowrap; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--aqua)); }
[data-cat="desalination"] .tag { --dot: #1BA3B5; }
[data-cat="treatment"] .tag { --dot: #35C28F; }
[data-cat="infrastructure"] .tag { --dot: #6E94E0; }
[data-cat="consulting"] .tag { --dot: #F2A93B; }

/* spotlight list (home) */
.spot-list { border-top: 1px solid var(--line); }
.spot-item { border-bottom: 1px solid var(--line); }
.spot-row { position: relative; display: grid; grid-template-columns: minmax(110px, 16%) 1fr auto; align-items: center; gap: .6rem 2rem; padding: 1.7rem 0; transition: padding .4s var(--ease); }
.spot-row:hover, .spot-row:focus-within { padding-inline-start: 1rem; }
.spot-loc { margin: 0; color: var(--muted); font-size: .95rem; }
.spot-title { font-size: clamp(1.4rem, 3.2vw, 2.6rem); margin: 0; }
.spot-title .project-open { transition: color .25s; }
.spot-row:hover .project-open, .spot-row:focus-within .project-open { color: var(--aqua); }
.spot-desc { margin: .3rem 0 0; color: var(--muted); font-size: .98rem; max-width: 60ch; }
.spot-thumb { position: absolute; inset-inline-end: 0; top: 50%; width: 260px; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 4px; opacity: 0; transform: translateY(-50%) scale(.92); transition: opacity .35s, transform .45s var(--ease); pointer-events: none; z-index: 2; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
.spot-row:hover .spot-thumb, .spot-row:focus-within .spot-thumb { opacity: 1; transform: translateY(-50%) scale(1); }
@media (max-width: 991.98px) {
  .spot-row { grid-template-columns: 1fr; padding: 1.4rem 0; }
  .spot-thumb { position: static; opacity: 1; transform: none; width: 100%; max-width: 280px; }
}

.project-open { background: none; border: 0; padding: 0; text-align: start; font: inherit; color: inherit; letter-spacing: inherit; text-transform: none; }
.project-open:focus-visible { outline-offset: 4px; }

/* cards (portfolio page) */
.project-card { position: relative; height: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .3s, transform .4s var(--ease); }
.project-card:hover, .project-card:focus-within { border-color: var(--aqua); transform: translateY(-4px); }
.project-img { overflow: hidden; aspect-ratio: 8 / 5; }
.project-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.project-card:hover .project-img img { transform: scale(1.06); }
.project-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.project-title { font-size: 1.3rem; margin: .1rem 0 0; font-weight: 400; }
.project-desc { color: var(--muted); margin: 0; font-size: .97rem; }
.project-meta { margin: auto 0 0; padding-top: .6rem; font-size: .86rem; color: var(--muted); display: flex; gap: 1rem; }

/* ---------- 9. Featured solutions + call to action ---------- */
.sol-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1.4rem; }
@media (min-width: 768px) { .sol-grid { grid-template-columns: repeat(3, 1fr); } }
.sol { display: block; position: relative; text-decoration: none; color: #fff; }
.sol-img { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--panel); border-radius: 4px; }
.sol-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sol:hover .sol-img img { transform: scale(1.07); }
.sol-name { display: block; margin-top: .9rem; font-size: 1.15rem; font-weight: 400; transition: color .25s; }
.sol:hover .sol-name { color: var(--aqua); }
.sol-tag { position: absolute; top: .8rem; inset-inline-start: .8rem; background: var(--buoy); color: #050D12; font-weight: 600; font-size: .72rem; padding: .15rem .6rem; border-radius: 3px; }
html[lang="en"] .sol-tag { letter-spacing: .1em; text-transform: uppercase; }

.cta-band { text-align: center; padding-block: clamp(5rem, 12vw, 9rem); background: radial-gradient(60% 120% at 50% 100%, rgba(14, 95, 120, .55), transparent 70%), var(--bg-2); border-top: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(2rem, 5.4vw, 4.2rem); max-width: 20ch; margin-inline: auto; }
.cta-band .panel-actions { justify-content: center; }

/* ---------- 10. Inner pages ---------- */
.page-head { background: radial-gradient(60% 140% at 85% 0%, rgba(14, 95, 120, .45), transparent 70%), var(--bg-2); border-bottom: 1px solid var(--line); padding-block: clamp(4rem, 9vw, 7rem) clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); margin-bottom: 1rem; }
.page-head .lead-text { margin: 0; }
.section-head { max-width: 62ch; margin-bottom: 2.4rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.services { background: var(--bg-2); }

.case + .case { margin-top: clamp(3.5rem, 8vw, 6rem); }
.case-img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 4px; display: block; }
.case h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: .9rem 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-weight: 500; font-size: 1rem; margin-top: 1.1rem; color: var(--aqua); }
.case dd { margin: .2rem 0 0; max-width: 58ch; color: var(--text); }
.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-weight: 300; font-size: 2.8rem; line-height: 1; color: #fff; }
.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.4rem; padding-inline-start: 4.2rem; 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.25rem; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--aqua); color: var(--aqua); font-family: var(--font-display); font-weight: 500; }
.process-list h3 { font-size: 1.4rem; margin-bottom: .15rem; font-weight: 400; }
.process-list p { margin: 0; color: var(--muted); }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
.stat strong { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(2.4rem, 4.4vw, 3.4rem); color: var(--aqua); line-height: 1; }
.stat span { color: var(--muted); }
.principles { margin: 0; }
.principles > div { display: grid; grid-template-columns: minmax(130px, 240px) 1fr; gap: 1rem 2rem; padding-block: 1.7rem; border-top: 1px solid var(--line); }
.principles > div:last-child { border-bottom: 1px solid var(--line); }
.principles dt { font-family: var(--font-display); font-weight: 300; font-size: 1.6rem; }
.principles dd { margin: 0; max-width: 62ch; font-size: 1.1rem; color: var(--muted); }
@media (max-width: 575.98px) { .principles > div { grid-template-columns: 1fr; gap: .4rem; } }
.team-avatar { width: 100%; aspect-ratio: 1; border-radius: 4px; display: grid; place-items: center; margin-bottom: .9rem; color: #fff; font-family: var(--font-display); font-weight: 300; font-size: clamp(3rem, 8vw, 5rem); background: var(--tide); }
.av-1 { background: linear-gradient(150deg, #0E5F78, #06202D); }
.av-2 { background: linear-gradient(150deg, #11808F, #072A33); }
.av-3 { background: linear-gradient(150deg, #13705F, #06241F); }
.av-4 { background: linear-gradient(150deg, #2B52A0, #0A1633); }
.team-name { font-size: 1.2rem; margin: 0; font-weight: 400; }
.team-role { color: var(--muted); margin: 0; }

/* contact */
.form-label { font-weight: 500; color: var(--muted); font-size: .85rem; }
html[lang="en"] .form-label { letter-spacing: .1em; text-transform: uppercase; }
.form-control { background: transparent; color: #fff; border: 0; border-bottom: 1.5px solid rgba(255, 255, 255, .3); border-radius: 0; padding: .7rem 0; }
.form-control:focus { background: transparent; color: #fff; border-color: var(--aqua); box-shadow: none; }
.form-control::placeholder { color: #6F8791; }
textarea.form-control { resize: vertical; }
.invalid-feedback { font-size: .9rem; }
.trap { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error-note { background: rgba(220, 70, 60, .12); border: 1px solid rgba(220, 70, 60, .5); color: #FFC9C2; border-radius: 4px; padding: 1rem 1.2rem; }
.success-note { background: rgba(53, 194, 143, .12); border: 1px solid rgba(53, 194, 143, .55); color: #C5F3DE; border-radius: 4px; padding: 1rem 1.2rem; }
.success-note:focus { outline: none; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding-block: 1.1rem; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list h3 { font-size: .85rem; margin-bottom: .2rem; color: var(--muted); font-weight: 500; }
html[lang="en"] .contact-list h3 { letter-spacing: .14em; text-transform: uppercase; }
.contact-list p { margin: 0; font-size: 1.1rem; }
.ltr-text { direction: ltr; unicode-bidi: isolate; display: inline-block; }
html[dir="rtl"] input[type="email"] { text-align: right; }

/* ---------- 11. Footer + modal ---------- */
.site-footer { background: #03090D; border-top: 1px solid var(--line); padding-block: 4rem 1.8rem; color: var(--muted); }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--aqua); }
.footer-tag { max-width: 36ch; margin-top: 1.1rem; }
.footer-since { color: var(--aqua); font-size: .85rem; margin-bottom: 1rem; }
html[lang="en"] .footer-since { letter-spacing: .16em; text-transform: uppercase; }
.footer-h { font-size: .8rem; font-weight: 500; color: #fff; font-family: var(--font-body); margin-bottom: 1rem; }
html[lang="en"] .footer-h { letter-spacing: .16em; text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.social { list-style: none; display: flex; gap: .7rem; padding: 0; margin: 0; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; transition: border-color .2s; }
.social a:hover { border-color: var(--aqua); }
.social svg { width: 18px; height: 18px; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.4rem; font-size: .88rem; }

.modal-content { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.modal-art { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; display: block; }
.modal-title { font-size: 1.9rem; }
.modal-facts { display: flex; flex-wrap: wrap; gap: .4rem 2rem; margin: 1rem 0; }
.modal-facts dt { font-size: .82rem; color: var(--muted); font-weight: 400; }
.modal-facts dd { margin: 0; font-weight: 500; }
.modal-case dt { font-family: var(--font-display); color: var(--aqua); margin-top: .9rem; font-weight: 500; }
.modal-case dd { margin: .1rem 0 0; }

/* ---------- 12. Reveal on scroll + reduced motion ---------- */
/* The .js class is added in header.php, so content is never hidden if JavaScript fails. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
  .fx-bubbles, .fx-rays, .panel-video { display: none; }
}
 .service-card {
      height: 100%;
      background: var(--sp-card);
      border: 1px solid var(--sp-border);
      border-radius: 6px;
      overflow: hidden;
      transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;

      /* reveal start state */
      opacity: 0;
      transform: translateY(28px);
    }
    .service-card.is-visible {
      opacity: 1;
      transform: translateY(0);
      transition:
        opacity .7s ease calc(var(--i, 0) * 140ms),
        transform .7s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 140ms),
        border-color .35s ease,
        box-shadow .35s ease;
    }
    .service-card.is-visible:hover,
    .service-card.is-visible:focus-within {
      transform: translateY(-6px);
      border-color: var(--sp-border-hover);
      box-shadow: 0 18px 40px -18px rgba(43, 179, 192, .45);
      transition-delay: 0s;
    }

    .service-card__media {
      display: block;
      aspect-ratio: 780 / 490;
      overflow: hidden;
    }
    .service-card__media img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform .6s ease;
    }
    .service-card:hover .service-card__media img,
    .service-card:focus-within .service-card__media img { transform: scale(1.04); }

    .service-card__body { padding: 2.25rem 2.6rem 2.6rem; }

    .service-tag {
      display: inline-flex;
      align-items: center;
      gap: .55rem;
      padding: .45rem 1rem;
      background: var(--sp-tag-bg);
      border-radius: 4px;
      color: var(--sp-title);
      font-size: .9rem;
      font-weight: 500;
      margin-bottom: 1rem;
    }
    .service-tag::before {
      content: "";
      width: 8px; height: 8px;
      border-radius: 50%;
      background: var(--dot, #2bb3c0);
    }

    .service-card__title {
      color: var(--sp-title);
      font-weight: 400;
      font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem);
      margin-bottom: .9rem;
      letter-spacing: -.005em;
    }
    .service-card__title a {
      color: inherit;
      text-decoration: none;
    }
    .service-card__title a:focus-visible {
      outline: 2px solid var(--sp-border-hover);
      outline-offset: 4px;
      border-radius: 2px;
    }

    .service-card__text {
      font-weight: 300;
      font-size: 1.05rem;
      line-height: 1.75;
      max-width: 34ch;
      margin-bottom: 1.9rem;
    }

    .service-card__meta {
      display: flex;
      gap: 1.25rem;
      font-weight: 300;
      color: var(--sp-meta);
      font-size: 1rem;
      margin: 0;
    }

    /* ---------- Reduced motion ---------- */
    @media (prefers-reduced-motion: reduce) {
      .service-card, .service-card.is-visible { opacity: 1; transform: none; transition: border-color .2s ease; }
      .service-card.is-visible:hover, .service-card.is-visible:focus-within { transform: none; }
      .service-card__media img { transition: none; }
    }

    @media (max-width: 575.98px) {
      .service-card__body { padding: 1.75rem 1.5rem 2rem; }
    }
    
 
  /*    #carouselExampleAutoplaying {*/
  /*  height: 80vh;*/
  /*  max-height: 600px;*/
  /*  border-radius: 1rem;*/
  /*  overflow: hidden;*/
  /*}*/

  /*@media (max-width: 768px) {*/
  /*  #carouselExampleAutoplaying {*/
  /*    height: 60vh;*/
  /*  }*/
 #luxuryWaterCarousel {
    height: 80vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }

  #luxuryWaterCarousel img {
    filter: brightness(0.8);
    transition: transform 0.5s ease;
  }

  #luxuryWaterCarousel .carousel-item.active img {
    transform: scale(1.02);
  }

  .custom-caption {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
    padding: 2rem;
    border-radius: 0 0 12px 12px;
    max-width: 700px;
    
  }
    /*.carousel.caption{*/
    /*    position: absolute;*/
    /*   top:35% !important; */
    /*}*/
  .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
  }

  .carousel-indicators button.active {
    background-color: white;
    width: 24px;
  }
 .carousel-control-next, .carousel-control-prev {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2% !important;
    padding: 0;
    color: #fff;
    text-align: center;
    background: 0 0;
    border: 0;
    opacity: .5;
    transition: opacity .15s ease;
}

[data-bs-theme=dark] .carousel .carousel-control-next-icon, [data-bs-theme=dark] .carousel .carousel-control-prev-icon, [data-bs-theme=dark].carousel .carousel-control-next-icon, [data-bs-theme=dark].carousel .carousel-control-prev-icon {
    filter: invert(0) grayscale(1);}
 @media (max-width: 990px) { #luxuryWaterCarousel {
    height: 50vh;}
    }
 @media (max-width: 575.98px) {
      #luxuryWaterCarousel {
    height: 30vh;}
    }
   .carousel-caption {
        top:25% !important;
    }
    .cards-overlap {
    padding-bottom: 35px;
}

.cards-overlap .card {
    position: relative;
    /*background: linear-gradient(145deg, #0b5773 0%, #094967 100%);*/
    background:radial-gradient(60% 140% at 85% 0%, rgba(14, 95, 120, .45), transparent 70%), var(--bg-2);
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 30px rgba(10, 45, 70, 0.07) !important;
    padding-top: 55px !important;
    padding-bottom: 28px !important;
    overflow: visible;
    transition: all 0.35s ease;
}

/* Card hover effect */
.cards-overlap .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(10, 65, 95, 0.15) !important;
    border-color: rgba(24, 150, 170, 0.35) !important;
}

/* Icon container */
.cards-overlap .card > span {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 76px !important;
    height: 76px !important;
    padding: 15px !important;
    background: linear-gradient(135deg, #073b5c, #1596a6) !important;
    border: 5px solid #ffffff;
    border-radius: 20px !important;
    box-shadow: 0 8px 20px rgba(10, 75, 100, 0.18);
    z-index: 2;
    transition: all 0.35s ease;
}

.cards-overlap .card:hover > span {
    background: linear-gradient(135deg, #1596a6, #073b5c) !important;
    transform: translate(-50%, -50%) rotate(-5deg);
}

.cards-overlap .card > span img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Card content */
.cards-overlap .card-body {
    padding: 15px 8px !important;
}

/* Card heading */
.cards-overlap .card-title {
    color: #fff;
    font-size: 19px !important;
    font-weight: 700 !important;
    letter-spacing: -0.3px;
    line-height: 1.5;
    margin-bottom: 20px !important;
    transition: color 0.3s ease;
}

.cards-overlap .card:hover .card-title {
    color: #1596a6;
}

/* Service list */
.cards-overlap .service-list {
    border: 0;
    background: transparent;
    margin-top: 10px;
}

.cards-overlap .service-list .list-group-item {
    position: relative;
    background: transparent;
    color: #fff;
    border: 0;
    border-bottom: 1px solid rgba(20, 90, 125, 0.09);
    padding: 11px 8px;
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.cards-overlap .service-list .list-group-item:last-child {
    border-bottom: 0;
}

.cards-overlap .service-list .list-group-item:hover {
    color: #087e94;
    background: rgba(21, 150, 166, 0.055);
    padding-left: 15px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .cards-overlap {
        padding-top: 45px !important;
    }

    .cards-overlap .card {
        margin-bottom: 35px;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .cards-overlap .card-title {
        font-size: 18px !important;
    }

    .cards-overlap .service-list .list-group-item {
        font-size: 14px;
    }
}

.logo-marquee {
  width: 100%;
  background: transparent; /* No background */
  position: relative;
}

.logo-track {
  display: flex;
  width: max-content;
  animation: scrollMarquee 25s linear infinite;
}

/* Pause animation on hover optional */
.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item img {
  background: transparent; /* Ensures transparent background */
  box-shadow: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.logo-item img:hover {
  opacity: 1;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}