/* ═══════════════════════════════════════════════
   BLUE WATER — style.css  (v2 with dark mode)
═══════════════════════════════════════════════ */

/* ── Theme Variables ── */
:root {
    /* Light Mode */
    --bg-body: #f0f7ff;
    --bg-card: #ffffff;
    --bg-card2: #f7fbff;
    --bg-nav: rgba(255, 255, 255, 0.95);
    --bg-footer: #0a1628;
    --text-h: #0a1628;
    --text-body: #2c3e50;
    --text-muted: #607d8b;
    --text-light: #90a4ae;
    --border: rgba(30, 107, 181, 0.14);
    --border-card: rgba(30, 107, 181, 0.12);
    --shadow-sm: 0 2px 14px rgba(10, 22, 40, 0.07);
    --shadow-md: 0 8px 36px rgba(10, 22, 40, 0.11);
    --shadow-lg: 0 20px 64px rgba(10, 22, 40, 0.16);

    /* Brand */
    --navy: #0a1628;
    --navy-mid: #0d1f3c;
    --blue-deep: #1a4a7a;
    --blue-mid: #1e6bb5;
    --blue: #2196f3;
    --blue-light: #64b5f6;
    --water: #00b4d8;
    --orange: #f07c26;
    --orange-l: #ffb347;
    --green: #25d366;

    /* Glass */
    --glass: rgba(255, 255, 255, 0.12);
    --glass2: rgba(255, 255, 255, 0.18);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;
    --trans: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-ar: "Cairo", sans-serif;
    --font-en: "DM Sans", sans-serif;
    --section-py: 96px;
    --container: 1200px;
}

/* Dark Mode */
body.dark-mode {
    --bg-body: #06101e;
    --bg-card: #0d1f3c;
    --bg-card2: #0a1828;
    --bg-nav: rgba(6, 16, 30, 0.96);
    --text-h: #e8f4fd;
    --text-body: #b0c4d8;
    --text-muted: #6b8aa0;
    --text-light: #4a6070;
    --border: rgba(100, 181, 246, 0.12);
    --border-card: rgba(100, 181, 246, 0.1);
    --shadow-sm: 0 2px 14px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 36px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 64px rgba(0, 0, 0, 0.5);
    --glass: rgba(255, 255, 255, 0.05);
    --glass2: rgba(255, 255, 255, 0.09);
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    /* animation:floatLogo 20s ease-in-out infinite;margin-bottom:6px; */
    font-family: var(--font-ar);
    background: var(--bg-body);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    transition:
        background var(--trans),
        color var(--trans);
}
html[lang="en"] body {
    font-family: var(--font-en);
}
img {
    max-width: 100%;
    display: block;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
section {
    padding: var(--section-py) 0;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Section Headers ── */
.sec-eyebrow {
    display: inline-block;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue-mid);
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.25);
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 14px;
}
.warm-eyebrow {
    color: var(--orange);
    background: rgba(240, 124, 38, 0.1);
    border-color: rgba(240, 124, 38, 0.25);
}
.sec-title {
    font-size: clamp(1.75rem, 3.5vw, 2.7rem);
    font-weight: 700;
    color: var(--text-h);
    line-height: 1.28;
    margin-bottom: 14px;
}
html[lang="en"] .sec-title {
    font-family: "Playfair Display", serif;
}
.sec-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 640px;
    line-height: 1.8;
}
.sec-center {
    text-align: center;
    margin-bottom: 56px;
}
.sec-center .sec-desc {
    margin: 0 auto;
}

/* ════════════════════════════════
   NAVBAR
════════════════════════════════ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    background: transparent;
    transition:
        background var(--trans),
        box-shadow var(--trans),
        padding var(--trans),
        backdrop-filter var(--trans);
}
#navbar.scrolled {
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.12);
    padding: 10px 40px;
}
.nav-brand {
    display: flex;
    align-items: center;
}
.nav-logo-img {
    height: 50px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
    transition: transform var(--trans);
}
.nav-logo-img:hover {
    transform: scale(1.06);
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}
.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 7px 13px;
    border-radius: 8px;
    transition: all var(--trans);
    white-space: nowrap;
}
.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
#navbar.scrolled .nav-links a {
    color: var(--text-body);
}
#navbar.scrolled .nav-links a:hover {
    color: var(--blue-mid);
    background: rgba(33, 150, 243, 0.08);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Theme toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 6px 12px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all var(--trans);
}
.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}
#navbar.scrolled .theme-toggle {
    color: var(--text-body);
    background: var(--bg-card);
    border-color: var(--border);
}
.theme-icon {
    line-height: 1;
}
body.light-mode .moon {
    display: none;
}
body.dark-mode .sun {
    display: none;
}
body.dark-mode .moon {
    display: inline;
}

/* Lang switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 4px 8px;
}
.desktop-lang-switcher {
    display: flex;
}
#navbar.scrolled .lang-switcher {
    background: var(--bg-card);
    border-color: var(--border);
}
.lang-sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}
#navbar.scrolled .lang-sep {
    color: var(--text-light);
}
.lang-btn {
    font-size: 0.74rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    padding: 3px 9px;
    border-radius: 50px;
    transition: all var(--trans);
}
.lang-btn.active,
.lang-btn:hover {
    color: #fff;
    background: var(--blue-mid);
}
#navbar.scrolled .lang-btn {
    color: var(--text-muted);
}
#navbar.scrolled .lang-btn.active,
#navbar.scrolled .lang-btn:hover {
    color: #fff;
    background: var(--blue-mid);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    border-radius: 8px;
    transition: background var(--trans);
}
.hamburger:hover {
    background: rgba(255, 255, 255, 0.12);
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all var(--trans);
}
#navbar.scrolled .hamburger span {
    background: var(--text-h);
}
.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay + menu */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}
.mobile-overlay.show {
    display: block;
}
.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    width: min(300px, 85vw);
    background: var(--bg-card);
    padding: 80px 24px 32px;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
html[dir="ltr"] .mobile-menu {
    right: auto;
    left: 0;
    transform: translateX(-100%);
}
.mobile-menu.open {
    transform: translateX(0);
}
html[dir="ltr"] .mobile-menu.open {
    transform: translateX(0);
}
.mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--trans);
}
html[dir="ltr"] .mobile-close {
    right: auto;
    left: 20px;
}
.mobile-close:hover {
    background: var(--blue-mid);
    color: #fff;
    border-color: var(--blue-mid);
}
.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mobile-menu ul a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-body);
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--trans);
}
.mobile-menu ul a:hover {
    background: rgba(33, 150, 243, 0.08);
    color: var(--blue-mid);
}
.mobile-controls {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mobile-controls .theme-toggle {
    color: var(--text-body);
    background: var(--bg-card2);
    border-color: var(--border);
    justify-content: center;
}
.mobile-controls .lang-switcher {
    background: var(--bg-card2);
    border-color: var(--border);
    justify-content: center;
}
.mobile-controls .lang-sep {
    color: var(--text-light);
}
.mobile-controls .lang-btn {
    color: var(--text-muted);
}

/* ════════════════════════════════
   HERO
════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-layer-1 {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        #061020 0%,
        #0d1f3c 40%,
        #1a4a7a 75%,
        #0d2b50 100%
    );
}
.hero-layer-2 {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 75% 55% at 50% 0%,
            rgba(33, 150, 243, 0.38) 0%,
            transparent 65%
        ),
        radial-gradient(
            ellipse 45% 35% at 15% 85%,
            rgba(0, 180, 216, 0.22) 0%,
            transparent 55%
        );
    animation: heroGrad 14s ease-in-out infinite alternate;
}
.hero-layer-3 {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 35% 45% at 85% 25%,
            rgba(240, 124, 38, 0.14) 0%,
            transparent 55%
        ),
        radial-gradient(
            ellipse 25% 35% at 8% 50%,
            rgba(240, 124, 38, 0.08) 0%,
            transparent 50%
        );
    animation: heroGrad 18s ease-in-out infinite alternate-reverse;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
}
@keyframes heroGrad {
    0% {
        opacity: 0.65;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.06);
    }
}

.hero-rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.h-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(33, 150, 243, 0.13);
    animation: ringPulse 7s ease-in-out infinite;
}
.r1 {
    width: 580px;
    height: 580px;
    animation-delay: 0s;
}
.r2 {
    width: 880px;
    height: 880px;
    animation-delay: 2.5s;
}
.r3 {
    width: 1180px;
    height: 1180px;
    animation-delay: 5s;
}
@keyframes ringPulse {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.97);
    }
    50% {
        opacity: 0.65;
        transform: scale(1.03);
    }
}

.bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.bub {
    position: absolute;
    bottom: -130px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(100, 181, 246, 0.32),
        rgba(30, 107, 181, 0.08)
    );
    border: 1px solid rgba(100, 181, 246, 0.28);
    backdrop-filter: blur(2px);
    animation: bubUp linear infinite;
}
@keyframes bubUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.55;
    }
    90% {
        opacity: 0.25;
    }
    100% {
        transform: translateY(-115vh) scale(1.15);
        opacity: 0;
    }
}

.hero-glow-warm {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(240, 124, 38, 0.18) 0%,
        transparent 70%
    );
    top: -100px;
    right: -100px;
    filter: blur(60px);
    animation: glowPulse 8s ease-in-out infinite alternate;
    pointer-events: none;
}
.hero-glow-cool {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(0, 180, 216, 0.14) 0%,
        transparent 70%
    );
    bottom: -150px;
    left: -150px;
    filter: blur(80px);
    animation: glowPulse 10s ease-in-out infinite alternate-reverse;
    pointer-events: none;
}
@keyframes glowPulse {
    0% {
        opacity: 0.6;
        transform: scale(0.92);
    }
    100% {
        opacity: 1;
        transform: scale(1.08);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 120px 24px 160px;
    max-width: 880px;
    margin: 0 auto;
}

/* Logo card — keep the original rectangular logo ratio on every screen. */
.hero-logo-card {
    width: min(420px, 82vw);
    height: auto;
    border-radius: 18px;
    /* background:rgba(255,255,255,.13);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px); */
    /* border:1px solid rgba(255,255,255,.22); */
    /* box-shadow:0 10px 48px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.2); */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    animation: floatLogo 5.5s ease-in-out infinite;
    margin-bottom: 6px;
}
.hero-logo-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 170px;
    object-fit: contain;
    border-radius: 8px;
}
@keyframes floatLogo {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-11px);
    }
}

.hero-eyebrow {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--blue-light);
    opacity: 0.9;
}
.hero-h1 {
    font-size: clamp(1.7rem, 4.5vw, 3.3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
html[lang="en"] .hero-h1 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
}
.h1-line1 {
    display: block;
}
.h1-line2 {
    display: block;
    background: linear-gradient(90deg, var(--blue-light), var(--orange-l));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: normal;
}
.hero-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 620px;
    line-height: 1.82;
}

/* CTA */
.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 6px;
}
.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--blue-mid), var(--blue));
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(33, 150, 243, 0.3);
    transition: all var(--trans);
}
.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 44px rgba(33, 150, 243, 0.48);
}
.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    transition: all var(--trans);
}
.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

/* Stats bar */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
}
.h-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 16px;
}
.h-stat-div {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
}
.hs-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hs-icon svg {
    width: 17px;
    height: 17px;
}
.blue-icon {
    background: rgba(33, 150, 243, 0.3);
}
.warm-icon {
    background: rgba(240, 124, 38, 0.3);
}
.hs-label {
    font-size: 0.83rem;
    font-weight: 600;
    color: #fff;
}
.hs-sub {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
}

.hero-wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 2;
}

/* ════════════════════════════════
   ABOUT
════════════════════════════════ */
.section-about {
    background: var(--bg-body);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}
.about-paras {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}
.about-paras p {
    font-size: 0.96rem;
    color: var(--text-body);
    line-height: 1.8;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-card);
    border-right: 3px solid var(--blue-mid);
    box-shadow: var(--shadow-sm);
    transition: all var(--trans);
}
html[dir="ltr"] .about-paras p {
    border-right: none;
    border-left: 3px solid var(--blue-mid);
}
.about-paras p:hover {
    transform: translateX(-4px);
    box-shadow: var(--shadow-md);
}
html[dir="ltr"] .about-paras p:hover {
    transform: translateX(4px);
}

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.about-feat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: all var(--trans);
}
.about-feat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.afc-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.afc-icon svg {
    width: 22px;
    height: 22px;
}
.blue-grad {
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
}
.warm-grad {
    background: linear-gradient(135deg, #c44a00, var(--orange));
}
.afc-text h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-h);
    margin-bottom: 4px;
}
.afc-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ════════════════════════════════
   GATEWAY
════════════════════════════════ */
.section-gateway {
    background: var(--bg-card);
}
.gateway-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.gw-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    transition:
        transform var(--trans),
        box-shadow var(--trans);
}
.water-card {
    box-shadow: 0 12px 48px rgba(33, 150, 243, 0.22);
}
.thermal-card {
    box-shadow: 0 12px 48px rgba(240, 124, 38, 0.18);
}
.gw-card:hover {
    transform: translateY(-7px);
}
.water-card:hover {
    box-shadow: 0 22px 70px rgba(33, 150, 243, 0.38);
}
.thermal-card:hover {
    box-shadow: 0 22px 70px rgba(240, 124, 38, 0.32);
}

.gw-anim {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.water-anim {
    background: linear-gradient(
        155deg,
        var(--navy) 0%,
        var(--blue-deep) 45%,
        var(--blue-mid) 100%
    );
}
.thermal-anim {
    background: linear-gradient(
        155deg,
        var(--navy) 0%,
        #2d1806 45%,
        #7a3208 100%
    );
}

.gw-wave {
    position: absolute;
    bottom: 0;
    left: -50%;
    width: 200%;
    border-radius: 50%;
    opacity: 0.12;
    animation: gwWave linear infinite;
}
.w1 {
    background: var(--blue-light);
    height: 120px;
    animation-duration: 7s;
}
.w2 {
    background: var(--water);
    height: 140px;
    animation-duration: 10s;
    animation-delay: -3s;
    opacity: 0.09;
}
.w3 {
    background: #87ceeb;
    height: 100px;
    animation-duration: 13s;
    animation-delay: -6s;
    opacity: 0.07;
}
@keyframes gwWave {
    0% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(28px) translateY(-14px);
    }
    100% {
        transform: translateX(0) translateY(0);
    }
}

.gw-heat {
    position: absolute;
    border-radius: 50%;
    filter: blur(44px);
    animation: hPulse 4s ease-in-out infinite alternate;
}
.h1 {
    width: 340px;
    height: 340px;
    background: rgba(240, 124, 38, 0.28);
    bottom: -110px;
    right: -70px;
}
.h2 {
    width: 220px;
    height: 220px;
    background: rgba(255, 140, 0, 0.18);
    top: 60px;
    left: 40px;
    animation-delay: 1.5s;
}
.h3 {
    width: 160px;
    height: 160px;
    background: rgba(255, 180, 0, 0.12);
    top: -60px;
    right: 90px;
    animation-delay: 3s;
}
@keyframes hPulse {
    0% {
        opacity: 0.55;
        transform: scale(0.93);
    }
    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.gw-body {
    position: relative;
    z-index: 1;
    padding: 40px 36px;
    background: linear-gradient(
        to top,
        rgba(10, 22, 40, 0.88) 0%,
        rgba(10, 22, 40, 0.3) 60%,
        transparent 100%
    );
    color: #fff;
}
.gw-icon-wrap {
    width: 66px;
    height: 66px;
    border-radius: var(--radius);
    background: rgba(33, 150, 243, 0.25);
    border: 1px solid rgba(33, 150, 243, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
    transition: all var(--trans);
}
.gw-card:hover .gw-icon-wrap {
    transform: scale(1.1);
}
.warm-icon-wrap {
    background: rgba(240, 124, 38, 0.25);
    border-color: rgba(240, 124, 38, 0.4);
}
.gw-icon-wrap svg {
    width: 32px;
    height: 32px;
}
.gw-body h3 {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.gw-body p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
    margin-bottom: 18px;
}
.gw-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
}
.gw-list li {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.62);
    padding-right: 14px;
    position: relative;
}
html[dir="ltr"] .gw-list li {
    padding-right: 0;
    padding-left: 14px;
}
.gw-list li::before {
    content: "•";
    position: absolute;
    right: 0;
    color: var(--blue-light);
}
html[dir="ltr"] .gw-list li::before {
    right: auto;
    left: 0;
}
.thermal-card .gw-list li::before {
    color: var(--orange-l);
}
.gw-btn {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue-light);
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid rgba(33, 150, 243, 0.35);
    padding: 9px 18px;
    border-radius: 50px;
    transition: all var(--trans);
}
.gw-card:hover .gw-btn {
    background: var(--blue-mid);
    border-color: var(--blue-mid);
    color: #fff;
}
.gw-btn-warm {
    color: var(--orange-l);
    background: rgba(240, 124, 38, 0.15);
    border-color: rgba(240, 124, 38, 0.35);
}
.thermal-card:hover .gw-btn-warm {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

/* ════════════════════════════════
   SERVICE SECTIONS
════════════════════════════════ */
.water-section {
    background: var(--bg-body);
}
.thermal-section {
    background: var(--bg-card);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.srv-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--trans);
}
.thermal-section .srv-card {
    background: var(--bg-card2);
}
.srv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.srv-icon-area {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blue-srv {
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
}
.warm-srv {
    background: linear-gradient(135deg, #8b3000, var(--orange));
}
.srv-icon-area svg {
    width: 44px;
    height: 44px;
    opacity: 0.9;
}

.srv-body {
    padding: 22px;
}
.srv-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-h);
    margin-bottom: 8px;
}
.srv-body p {
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.68;
}

/* Thermal groups */
.thermal-group {
    margin-bottom: 52px;
    padding-bottom: 52px;
    border-bottom: 1px solid var(--border);
}
.thermal-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.tg-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(240, 124, 38, 0.1);
    border: 1px solid rgba(240, 124, 38, 0.25);
    color: var(--orange);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 28px;
}
.tg-label svg {
    width: 18px;
    height: 18px;
}

/* ════════════════════════════════
   PRODUCTS
════════════════════════════════ */
.section-products {
    background: var(--bg-body);
}

/* Toolbar */
.prod-toolbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}
.search-box {
    position: relative;
    max-width: 440px;
}
.search-box svg {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-light);
    pointer-events: none;
}
html[dir="ltr"] .search-box svg {
    right: auto;
    left: 14px;
}
.search-box input {
    width: 100%;
    padding: 12px 46px 12px 18px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: 0.92rem;
    font-family: inherit;
    background: var(--bg-card);
    color: var(--text-body);
    outline: none;
    transition: all var(--trans);
}
html[dir="ltr"] .search-box input {
    padding: 12px 18px 12px 46px;
}
.search-box input:focus {
    border-color: var(--blue-mid);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}
.filter-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.f-tag {
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    padding: 7px 16px;
    border-radius: 50px;
    transition: all var(--trans);
    white-space: nowrap;
    cursor: pointer;
}
.f-tag:hover {
    color: var(--blue-mid);
    border-color: rgba(33, 150, 243, 0.4);
}
.f-tag.active {
    background: var(--blue-mid);
    color: #fff;
    border-color: var(--blue-mid);
}

/* Product grid */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}

/* Product card */
.prod-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--trans);
    cursor: pointer;
}
.prod-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(33, 150, 243, 0.3);
}

/* Product image placeholder */
.prod-img-wrap {
    height: 195px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}
.prod-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.prod-img-wrap.bg-water {
    background: linear-gradient(135deg, #dbeffe, #bdddf8);
}
.prod-img-wrap.bg-ro {
    background: linear-gradient(135deg, #e5eaf8, #c7d0ef);
}
.prod-img-wrap.bg-pool {
    background: linear-gradient(135deg, #d5f5f8, #aae6ec);
}
.prod-img-wrap.bg-dom {
    background: linear-gradient(135deg, #dcf5e7, #b2e8c5);
}
.prod-img-wrap.bg-solar {
    background: linear-gradient(135deg, #fef0d8, #ffd78a);
}
.prod-img-wrap.bg-oil {
    background: linear-gradient(135deg, #f8e4d2, #f0b982);
}
.prod-img-wrap.bg-heat {
    background: linear-gradient(135deg, #f5e5dc, #edb992);
}
.prod-img-wrap.bg-pump {
    background: linear-gradient(135deg, #f0e2f5, #d8a8ec);
}

.prod-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}
.prod-img-placeholder svg {
    width: 44px;
    height: 44px;
    opacity: 0.4;
}
.prod-img-placeholder .ph-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0.7;
}
.prod-img-placeholder .ph-size {
    font-size: 0.65rem;
    color: var(--text-light);
}

.prod-badge-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--blue-mid);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
}
html[dir="ltr"] .prod-badge-tag {
    right: auto;
    left: 10px;
}
.prod-badge-warm {
    background: var(--orange);
}

.prod-card-body {
    padding: 18px 20px;
}
.prod-cat {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue-mid);
    margin-bottom: 6px;
}
.prod-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-h);
    margin-bottom: 5px;
    line-height: 1.35;
}
.prod-spec {
    font-size: 0.81rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 14px;
}
.prod-card-actions {
    display: flex;
    gap: 8px;
}
.btn-detail {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--blue-mid);
    background: rgba(33, 150, 243, 0.08);
    border: 1px solid rgba(33, 150, 243, 0.22);
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all var(--trans);
    cursor: pointer;
}
.btn-detail:hover {
    background: var(--blue-mid);
    color: #fff;
    border-color: var(--blue-mid);
}
.btn-wa-sm {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.28);
    color: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--trans);
}
.btn-wa-sm:hover {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}
.btn-wa-sm svg {
    width: 16px;
    height: 16px;
}

/* No results */
.no-results {
    text-align: center;
    padding: 72px 20px;
    color: var(--text-muted);
}
.no-results svg {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    opacity: 0.3;
}
.no-results p {
    font-size: 1rem;
}

/* ════════════════════════════════
   PROJECTS
════════════════════════════════ */
.section-projects {
    background: var(--navy);
}
.section-projects .sec-eyebrow {
    color: var(--blue-light);
    background: rgba(100, 181, 246, 0.14);
    border-color: rgba(100, 181, 246, 0.28);
}
.section-projects .sec-title {
    color: #fff;
}
.section-projects .sec-desc {
    color: rgba(255, 255, 255, 0.58);
}

.proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 26px;
}

.proj-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--trans);
    cursor: pointer;
}
.proj-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.proj-img-wrap {
    height: 230px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    border-radius: 20px;
}
.proj-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* .pi-ro{background:linear-gradient(135deg,var(--blue-deep),var(--blue-mid))} */
/* .pi-uf{background:linear-gradient(135deg,#2d1806,var(--orange))} */
/* .pi-pool{background:linear-gradient(135deg,#083d62,#0984e3)}
.pi-dom{background:linear-gradient(135deg,#064420,#27ae60)} */
.proj-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.55), transparent);
}

.proj-body {
    padding: 22px;
}
.proj-cat {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: 8px;
}
.proj-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 7px;
    line-height: 1.38;
}
.proj-card p {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.65;
    margin-bottom: 12px;
}
.proj-products-used {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.42);
    padding: 9px 13px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 14px;
    border-right: 2px solid var(--blue-mid);
    line-height: 1.55;
}
html[dir="ltr"] .proj-products-used {
    border-right: none;
    border-left: 2px solid var(--blue-mid);
}
.btn-gallery {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--blue-light);
    background: rgba(33, 150, 243, 0.12);
    border: 1px solid rgba(33, 150, 243, 0.28);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--trans);
}
.btn-gallery:hover {
    background: var(--blue-mid);
    color: #fff;
    border-color: var(--blue-mid);
}
.btn-gallery svg {
    width: 14px;
    height: 14px;
}

/* ════════════════════════════════
   LOCATIONS
════════════════════════════════ */
.section-locations {
    background: var(--bg-body);
}
.loc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.loc-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--trans);
}
.loc-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Map area */
.loc-map {
    height: 210px;
    position: relative;
    background: var(--bg-card2);
    overflow: hidden;
}
.loc-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
.map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(
        135deg,
        var(--navy-mid, #0d1f3c),
        var(--blue-deep)
    );
}
.map-placeholder svg {
    width: 44px;
    height: 44px;
    color: rgba(255, 255, 255, 0.4);
}
.map-placeholder p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}
.loc-open-map {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--blue-light);
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid rgba(33, 150, 243, 0.3);
    padding: 7px 14px;
    border-radius: 50px;
    transition: all var(--trans);
}
.loc-open-map:hover {
    background: var(--blue-mid);
    color: #fff;
    border-color: var(--blue-mid);
}
.loc-open-map svg {
    width: 14px;
    height: 14px;
}

.loc-body {
    padding: 24px;
}
.loc-branch-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-h);
    margin-bottom: 10px;
}
.loc-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 14px;
}
.loc-address svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--blue-mid);
}
.loc-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.87rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    direction: ltr;
}
.loc-phone svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--blue-mid);
}

.loc-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}
.btn-loc-wa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #25d366;
    color: #fff;
    padding: 9px 14px;
    border-radius: 50px;
    transition: all var(--trans);
}
.btn-loc-wa:hover {
    background: #20c15c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}
.btn-loc-call {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--bg-card2);
    color: var(--text-body);
    border: 1px solid var(--border);
    padding: 9px 14px;
    border-radius: 50px;
    transition: all var(--trans);
}
.btn-loc-call:hover {
    background: var(--blue-mid);
    color: #fff;
    border-color: var(--blue-mid);
}
.btn-loc-maps {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(33, 150, 243, 0.1);
    color: var(--blue-mid);
    border: 1px solid rgba(33, 150, 243, 0.25);
    padding: 9px 14px;
    border-radius: 50px;
    transition: all var(--trans);
}
.btn-loc-maps:hover {
    background: var(--blue-mid);
    color: #fff;
    border-color: var(--blue-mid);
}
.btn-loc-wa svg,
.btn-loc-call svg,
.btn-loc-maps svg {
    width: 15px;
    height: 15px;
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
#footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.65);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}
.footer-glow {
    position: absolute;
    top: -220px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 450px;
    background: radial-gradient(
        ellipse,
        rgba(33, 150, 243, 0.07) 0%,
        transparent 70%
    );
    pointer-events: none;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 48px;
    margin-bottom: 52px;
}

.ft-logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.ft-logo {
    height: 44px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    border-radius: 8px;
}
.ft-name {
    font-size: 1.18rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
}
.ft-name strong {
    color: #fff;
    font-weight: 700;
}
.ft-tagline {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    margin-bottom: 18px;
    max-width: 260px;
}
.ft-socials {
    display: flex;
    gap: 8px;
}
.ft-soc {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: all var(--trans);
}
.ft-soc:hover {
    background: var(--blue-mid);
    color: #fff;
    border-color: var(--blue-mid);
}
.ft-soc svg {
    width: 15px;
    height: 15px;
}

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    margin-bottom: 18px;
}
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-col li a {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.52);
    transition: color var(--trans);
}
.footer-col li a:hover {
    color: #fff;
}

.ft-contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.ft-ci {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}
.ft-ci svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 3px;
    opacity: 0.55;
}
.ft-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.81rem;
    font-weight: 600;
    color: #25d366;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.25);
    padding: 9px 14px;
    border-radius: 50px;
    transition: all var(--trans);
}
.ft-wa-btn:hover {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
}
.ft-powered {
    font-size: 0.76rem;
}

/* ════════════════════════════════
   MODALS
════════════════════════════════ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(6, 16, 30, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: mFadeIn 0.25s ease;
}
.modal-overlay.open {
    display: flex;
}
@keyframes mFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-box {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
    animation: mSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes mSlideUp {
    from {
        transform: translateY(28px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(10, 22, 40, 0.1);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--trans);
}
html[dir="ltr"] .modal-close-btn {
    left: auto;
    right: 16px;
}
.modal-close-btn:hover {
    background: var(--navy);
    color: #fff;
}
.modal-close-btn svg {
    width: 16px;
    height: 16px;
}

.modal-content {
    padding: 28px;
}
.modal-prod-img {
    height: 500px;
    border-radius: var(--radius-lg);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    position: relative;
}
.modal-prod-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modal-cat-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue-mid);
    margin-bottom: 6px;
}
.modal-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-h);
    margin-bottom: 10px;
}
.modal-desc-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 20px;
}
.modal-specs-box {
    background: var(--bg-card2);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 20px;
}
.modal-specs-box h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-light);
    margin-bottom: 12px;
}
.modal-specs-box ul {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.modal-specs-box li {
    font-size: 0.87rem;
    color: var(--text-body);
    display: flex;
    align-items: flex-start;
    gap: 7px;
}
.modal-specs-box li::before {
    content: "✓";
    color: var(--blue-mid);
    font-weight: 700;
    flex-shrink: 0;
}
.modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.modal-wa-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 13px 20px;
    border-radius: 50px;
    transition: all var(--trans);
}
.modal-wa-btn:hover {
    background: #20c15c;
    transform: translateY(-2px);
}
.modal-wa-btn svg {
    width: 18px;
    height: 18px;
}

/* Gallery modal */
.gallery-modal-box {
    max-width: 880px;
}
.gallery-main-img {
    height: 550px;
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    position: relative;
}
.gallery-main-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    margin-bottom: 22px;
}
.g-thumb {
    height: 100px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity var(--trans);
}
.g-thumb:hover,
.g-thumb.active {
    opacity: 1;
    outline: 2px solid var(--blue-mid);
}
.g-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.g-thumb svg {
    width: 26px;
    height: 26px;
    color: #fff;
    opacity: 0.5;
    z-index: 1;
}
.gallery-proj-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-h);
    margin-bottom: 7px;
}
.gallery-proj-desc {
    font-size: 0.89rem;
    color: var(--text-muted);
    line-height: 1.72;
    margin-bottom: 14px;
}
.gallery-products-label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-light);
    margin-bottom: 6px;
}
.gallery-products-val {
    font-size: 0.85rem;
    color: var(--text-body);
    padding: 12px 16px;
    background: var(--bg-card2);
    border-radius: var(--radius-sm);
    border-right: 2px solid var(--blue-mid);
    line-height: 1.6;
    margin-bottom: 18px;
}
html[dir="ltr"] .gallery-products-val {
    border-right: none;
    border-left: 2px solid var(--blue-mid);
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1100px) {
    .nav-links {
        display: none;
    }
    .desktop-lang-switcher {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    #navbar {
        padding: 12px 20px;
    }
    #navbar.scrolled {
        padding: 9px 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .mobile-controls .lang-switcher {
    display: none !important;
}
/* الزائر: نخفي تسجيل الدخول وإنشاء الحساب من الهيدر */
.auth-links-guest {
    display: none !important;
}

/* المستخدم المسجل: نظهر طلباتي والسلة */
.auth-links-user {
    display: flex !important;
    gap: 5px !important;
}

/* نخفي تسجيل الخروج من الهيدر على الجوال لأنه موجود داخل القائمة */
.auth-links-user form {
    display: none !important;
}

/* تصغير الأزرار قليلًا حتى لا يزدحم الهيدر */
.auth-links-user .lang-btn {
    padding: 4px 7px;
    font-size: 0.7rem;
    white-space: nowrap;
}
}
@media (max-width: 900px) {
    :root {
        --section-py: 68px;
    }
    .gateway-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    .loc-grid {
        grid-template-columns: 1fr 1fr;
    }
    .gallery-main-img {
        height: 300px;
    }
    .prod-img-wrap {
        height: 300px;
    }
}
@media (max-width: 640px) {
    :root {
        --section-py: 52px;
    }
    .hero-content {
        padding: 100px 18px 140px;
        gap: 14px;
    }
    .hero-h1 {
        font-size: 1.65rem;
    }
    .hero-sub {
        font-size: 0.93rem;
    }
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    .hero-cta a {
        width: 100%;
        justify-content: center;
    }
    .hero-stats {
        gap: 0;
        padding: 12px;
    }
    .h-stat {
        padding: 4px 10px;
    }
    .h-stat-div {
        display: none;
    }
    .hs-label,
    .hs-sub {
        display: none;
    }
    .about-cards {
        grid-template-columns: 1fr;
    }
    .prod-grid {
        grid-template-columns: 1fr;
    }
    .proj-grid {
        grid-template-columns: 1fr;
    }
    .loc-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }
    .modal-box {
        border-radius: var(--radius-lg);
    }
    .r2,
    .r3 {
        display: none;
    }
    .loc-actions {
        flex-direction: column;
    }
    .about-paras p:hover {
        transform: none;
    }
    .gallery-main-img {
        height: 100px;
    }
    .prod-img-wrap {
        height: 100px;
    }
    /* Mobile footer cleanup */
.footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

/* إخفاء الروابط السريعة والخدمات على الهاتف */
.footer-grid > .footer-col:nth-child(2),
.footer-grid > .footer-col:nth-child(3) {
    display: none;
}

/* إخفاء عناوين الفروع والإبقاء على رقم الهاتف فقط */
.ft-contact-list .ft-ci:not(:last-child) {
    display: none;
}

/* إخفاء السطر التسويقي الأخير */
.ft-powered {
    display: none;
}

/* ترتيب الفوتر في المنتصف */
.footer-brand,
.footer-grid > .footer-col:last-child {
    text-align: center;
}

.ft-logo-row,
.ft-socials {
    justify-content: center;
}

.ft-tagline {
    margin-left: auto;
    margin-right: auto;
}

.ft-contact-list {
    align-items: center;
}

.ft-ci {
    justify-content: center;
}

.footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
}
/* =========================
   PROJECT GALLERY - MOBILE
========================= */

.modal-overlay {
    padding: 8px;
}

.gallery-modal-box {
    width: 100%;
    max-width: 100%;
    border-radius: 18px;
}

.gallery-modal-box .modal-content {
    padding: 16px;
}

/* الصورة الرئيسية أكبر وأريح */
.gallery-main-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    margin-bottom: 16px;
    border-radius: 14px;
}

.gallery-main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* الصور المصغرة 2 × 2 بدل 3 + 1 */
.gallery-thumbs {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.g-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    border-radius: 10px;
}

.g-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* النصوص */
.gallery-proj-title {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.gallery-proj-desc {
    font-size: 0.9rem;
    line-height: 1.8;
}

.gallery-products-val {
    padding: 14px;
    font-size: 0.85rem;
    line-height: 1.8;
}

/* زر الاستفسار */
.gallery-modal-box .modal-wa-btn {
    width: 100%;
    min-height: 50px;
}
}
@media (max-width: 380px) {
    .hero-h1 {
        font-size: 1.4rem;
    }
    .hero-logo-card {
        width: min(300px, 86vw);
        height: auto;
        padding: 10px 14px;
    }
    .filter-wrap {
        gap: 5px;
    }
    .f-tag {
        padding: 6px 12px;
        font-size: 0.76rem;
    }
    .gallery-main-img {
        height: 300px;
    }
    .prod-img-wrap {
        height: 300px;
    }
}

/* RTL/LTR direction helpers */
html[dir="rtl"] .sec-header:not(.sec-center) {
    text-align: right;
}
html[dir="ltr"] .sec-header:not(.sec-center) {
    text-align: left;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: var(--blue-light);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--blue-mid);
}
::selection {
    background: rgba(33, 150, 243, 0.2);
    color: var(--navy);
}
/* Product catalog pagination */
.product-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
    direction: ltr;
}
.product-page-arrow {
    width: 46px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--blue-deep);
    font-size: 1.25rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}
.product-page-arrow:hover:not(:disabled) {
    transform: translateY(-2px);
    background: var(--blue-mid);
    color: #fff;
}
.product-page-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.product-page-label {
    font-weight: 700;
    color: var(--text-muted);
    min-width: 120px;
    text-align: center;
}
.products-loading {
    grid-column: 1/-1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-weight: 700;
}
.products-error {
    color: #b91c1c;
}

/* ════════════════════════════════
   RESPONSIVE IMAGES ONLY
   تم تعديل الصور فقط بدون تغيير باقي التصميم
════════════════════════════════ */

/* جميع الصور تتكيّف مع عرض العنصر الأب بدون تمدد أو تشويه */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* صور الشعارات */
.nav-logo-img {
    width: auto;
    height: clamp(38px, 5vw, 50px);
    max-width: min(180px, 42vw);
    object-fit: contain;
}
.hero-logo-img {
    width: 100%;
    height: auto;
    max-height: 170px;
    object-fit: contain;
}
.ft-logo {
    width: auto;
    height: clamp(36px, 5vw, 44px);
    max-width: min(160px, 45vw);
    object-fit: contain;
}

/* صور المنتجات */
.prod-img-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
}
.prod-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* صور المشاريع */
.proj-img-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
}
.proj-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* صورة المنتج داخل النافذة المنبثقة */
.modal-prod-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
}
.modal-prod-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* صور معرض المشاريع */
.gallery-main-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}
.gallery-main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-thumbs {
    width: 100%;
}
.g-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
}
.g-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
