:root {
    --navy: #102c4e;
    --blue: #159ce8;
    --gold: #bd9135;
    --text: #405875;
    --pale: #f3f8fc;
    --white: #ffffff;
    --border: #d7e5f1;
    --shadow: 0 14px 35px rgba(20, 52, 82, .08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", Arial, sans-serif;
    color: var(--text);
    background: var(--pale);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1320px, 92%);
    margin: auto;
}

/* Header */
.header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e9eef3;
}

.nav-wrap {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo img {
    display: block;
    width: 125px;
    max-height: 65px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
    color: var(--navy);
    font-size: 16px;
    font-weight: 600;
}

.nav a:not(.gold-btn):not(.contact-btn):hover,
.nav a.active:not(.gold-btn) {
    color: var(--blue);
}

.gold-btn,
.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 30px;
}

.gold-btn {
    background: var(--gold);
    color: white;
}

.contact-btn {
    background: #eaf4fc;
    color: var(--navy);
}

.theme-toggle,
.menu-toggle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: white;
    color: var(--navy);
    cursor: pointer;
    font-size: 23px;
}

.menu-toggle {
    display: none;
}

/* Hero */
.hero {
    min-height: 300px;
    padding: 38px 0 100px;
    color: white;
    text-align: center;
    background:
        linear-gradient(90deg, rgba(7, 34, 61, .86), rgba(7, 34, 61, .72)),
        url("images/Dubai Water Support and Filtration Solutions.jpg") center 45% / cover no-repeat,
        #153e64;
}

.hero-content {
    max-width: 900px;
}

.breadcrumb {
    text-align: left;
    margin: 0 0 22px;
    font-size: 13px;
    color: #e2edf8;
}

.breadcrumb a {
    text-decoration: underline;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero .eyebrow {
    color: #f3cc72;
}

.hero h1 {
    margin: 0 auto 14px;
    font: 700 clamp(32px, 4vw, 48px)/1.2 "Fraunces", Georgia, serif;
}

.hero-text {
    max-width: 790px;
    margin: auto;
    color: #f0f6fc;
    font-size: 16px;
}

/* Contact cards */
.contact-section {
    padding: 0 0 75px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    position: relative;
    margin-top: -70px;
    z-index: 2;
}

.info-card {
    padding: 28px 30px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    min-width: 0;
}

.card-icon {
    color: var(--blue);
    font-size: 30px;
    display: block;
    margin-bottom: 7px;
}

.info-card h2 {
    margin: 0 0 8px;
    color: var(--navy);
    font: 700 23px "Fraunces", Georgia, serif;
}

.info-card p,
.info-card a {
    display: block;
    margin: 4px 0;
    overflow-wrap: anywhere;
}

.info-card a:hover,
.map-link {
    color: var(--blue);
}

.info-card .map-link {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
}

/* Main contact layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    gap: 34px;
    align-items: start;
    margin-top: 90px;
}

.form-card,
.hours-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 34px;
    box-shadow: var(--shadow);
}

.form-card h2,
.why-section h2 {
    margin: 0 0 12px;
    color: var(--navy);
    font: 700 clamp(30px, 3vw, 42px)/1.2 "Fraunces", Georgia, serif;
}

.form-intro {
    margin: 0 0 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

form>label,
.form-row label {
    display: block;
    margin-bottom: 18px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
}

input:not([type="radio"]),
select,
textarea {
    width: 100%;
    margin-top: 8px;
    padding: 14px 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--navy);
    background: #f6fafd;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(21, 156, 232, .12);
}

textarea {
    resize: vertical;
    min-height: 135px;
}

.contact-choice {
    border: 0;
    padding: 0;
    margin: 4px 0 22px;
}

.contact-choice legend {
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-choice label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-right: 18px;
    font-size: 14px;
}

.form-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 21px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
    transition: transform .2s, opacity .2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.whatsapp-btn {
    color: white;
    background: #18bd65;
}

.outline-btn {
    color: var(--navy);
    border-color: var(--border);
    background: white;
}

.form-error {
    color: #b42318;
    font-size: 14px;
}

/* Map and hours */
.side-column {
    display: grid;
    gap: 22px;
}

.map-card {
    overflow: hidden;
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.map-card iframe {
    width: 100%;
    height: 340px;
    display: block;
    border: 0;
}

.map-caption {
    display: block;
    padding: 14px 20px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
}

.hours-card h3 {
    margin: 0 0 7px;
    color: var(--navy);
    font: 700 21px "Fraunces", Georgia, serif;
}

.hours-card p {
    margin: 5px 0;
}

.hours-card strong {
    color: var(--text);
}

.hours-divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}

.muted {
    margin-top: 15px !important;
    color: #8292a4;
    font-size: 13px;
}

/* Benefits */
.why-section {
    padding: 75px 0 85px;
    background: white;
    text-align: center;
}

.centered {
    text-align: center;
}

.why-section h2 {
    max-width: 700px;
    margin: 0 auto 35px;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: left;
}

.benefit-grid article {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #f9fcff;
}

.benefit-grid h3 {
    color: var(--navy);
    font-size: 17px;
}

.benefit-grid p {
    margin-bottom: 0;
    font-size: 14px;
}

/* Footer */
.footer {
    background: #102944;
    color: #dce8f4;
    padding-top: 55px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
    gap: 38px;
    padding-bottom: 40px;
}

.footer-logo {
    width: 135px;
    height: auto;
    object-fit: contain;
    background: white;
    border-radius: 8px;
}

.footer h3 {
    color: white;
    font-size: 17px;
}

.footer-grid a:not(:has(img)) {
    display: block;
    margin: 8px 0;
    font-size: 14px;
}

.footer a:hover {
    color: #f3cc72;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, .15);
    text-align: center;
    padding: 18px 4%;
    font-size: 13px;
}

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #20c96b;
    color: white;
    font-size: 31px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .18);
}

/* Dark mode */
body.dark {
    --pale: #101c2a;
    --white: #17283a;
    --text: #d3dfec;
    --navy: #eff6ff;
    --border: #33485e;
    --shadow: 0 12px 30px rgba(0, 0, 0, .16);
}

body.dark .header,
body.dark .info-card,
body.dark .form-card,
body.dark .hours-card,
body.dark .map-card {
    background: #17283a;
}

body.dark .contact-btn,
body.dark .theme-toggle,
body.dark .outline-btn {
    background: #223950;
    color: #eff6ff;
}

body.dark input:not([type="radio"]),
body.dark select,
body.dark textarea,
body.dark .benefit-grid article {
    background: #203449;
    color: #eff6ff;
}

body.dark .why-section {
    background: #17283a;
}

/* Responsive */
@media (max-width: 1000px) {
    .nav {
        gap: 14px;
        font-size: 14px;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }

    .form-card,
    .hours-card {
        padding: 25px;
    }

    .benefit-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .nav-wrap {
        min-height: 75px;
    }

    .logo img {
        width: 105px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .theme-toggle {
        width: 42px;
        height: 42px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        right: 0;
        padding: 20px 5%;
        background: white;
        box-shadow: 0 12px 20px rgba(0, 0, 0, .08);
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    body.dark .nav {
        background: #17283a;
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        text-align: center;
    }

    .hero {
        min-height: 320px;
        padding: 28px 0 100px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-text {
        font-size: 14px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: -65px;
    }

    .info-card {
        padding: 22px 25px;
    }

    .card-icon {
        font-size: 25px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        margin-top: 45px;
    }

    .form-card,
    .hours-card {
        padding: 24px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .map-card iframe {
        height: 280px;
    }

    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .why-section {
        padding: 55px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        right: 17px;
        bottom: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}