/* ============================================================
   Mighty Waters — Modern blue "water" theme
   Palette pulled from the brand logo (navy → blue → cyan).
   No external dependencies; CSP-safe (served from 'self').
   ============================================================ */

:root {
    --navy-900: #0b1a3d;
    --navy-800: #0f2350;
    --navy-700: #11224f;
    --blue-600: #1f6fc4;
    --blue-500: #2b8fd6;
    --blue-400: #4aa6e6;
    --cyan-400: #5bc5f2;
    --cyan-200: #b9e6f9;
    --green-500: #27ae60;
    --green-600: #1f9354;

    --ink: #14233d;
    --muted: #4d5b73;
    --line: #e3e9f2;
    --bg: #ffffff;
    --bg-tint: #f3f8fc;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 4px 16px rgba(15, 35, 80, .08);
    --shadow-md: 0 14px 40px rgba(15, 35, 80, .14);
    --shadow-lg: 0 24px 60px rgba(15, 35, 80, .22);

    --container: 1180px;
    --gutter: clamp(1rem, 4vw, 2.5rem);

    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-500); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.01em; color: var(--navy-800); margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }
li { list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--navy-800); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--blue-600);
    display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
    font-family: var(--font-head); font-weight: 600; font-size: 1rem;
    padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 20px rgba(31, 111, 196, .3); }
.btn--primary:hover { background: var(--blue-500); color: #fff; }

.btn--call { background: var(--green-500); color: #fff; box-shadow: 0 8px 20px rgba(39, 174, 96, .32); }
.btn--call:hover { background: var(--green-600); color: #fff; }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: #fff; color: var(--navy-800); border-color: #fff; }

.btn--text { background: transparent; color: var(--blue-600); padding-inline: .25rem; border-radius: 6px; }
.btn--text:hover { color: var(--blue-500); }

.btn--block { width: 100%; }
.btn--lg { padding: .95rem 1.8rem; font-size: 1.05rem; }
.btn--xl { padding: 1.1rem 2.2rem; font-size: 1.25rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-900); color: #cfe0f3; font-size: .86rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; flex-wrap: wrap; }
.topbar__meta { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar__actions { display: flex; align-items: center; gap: 1.2rem; }
.topbar__social, .topbar__phone { color: #cfe0f3; font-weight: 600; }
.topbar__social:hover, .topbar__phone:hover { color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__name {
    font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
    color: var(--navy-800); letter-spacing: -.02em; line-height: 1; white-space: nowrap;
}
@media (max-width: 380px) { .brand__name { font-size: 1.1rem; } }

.primary-nav__list { display: flex; align-items: center; gap: .35rem; }
.primary-nav__link {
    display: inline-block; padding: .6rem .9rem; border-radius: 8px;
    font-family: var(--font-head); font-weight: 600; color: var(--navy-800);
}
.primary-nav__link:hover { background: var(--bg-tint); color: var(--blue-600); }
.primary-nav__link.is-active { color: var(--blue-600); }
.primary-nav__link.is-active::after {
    content: ""; display: block; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--blue-500), var(--cyan-400)); margin-top: 3px;
}
.primary-nav__cta { margin-left: .6rem; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; width: 46px; height: 42px;
    align-items: center; justify-content: center; background: var(--bg-tint);
    border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle__bar { width: 22px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tint { background: var(--bg-tint); }
.eyebrow {
    font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
    letter-spacing: .14em; font-size: .8rem; color: var(--blue-500); margin: 0 0 .6rem;
}
.eyebrow--light { color: var(--cyan-400); }
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.section__head { max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3.2rem); text-align: center; }
.section__intro { color: var(--muted); font-size: 1.08rem; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero__bg {
    position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(1100px 500px at 85% -10%, rgba(91, 197, 242, .45), transparent 60%),
        linear-gradient(160deg, var(--navy-800) 0%, var(--blue-600) 100%);
}
.hero__bg::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 22px 22px; opacity: .6;
}
.hero__inner {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem);
    align-items: center; padding-bottom: clamp(4rem, 9vw, 7rem);
}
.hero__eyebrow {
    font-family: var(--font-head); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    font-size: .92rem; color: var(--cyan-200); margin: 0 0 1rem;
}
.hero__title { color: #fff; font-size: clamp(2.1rem, 5.2vw, 3.6rem); margin-bottom: 1rem; }
.hero__lead { color: rgba(255, 255, 255, .9); font-size: 1.15rem; max-width: 33ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero__media img {
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    border: 5px solid rgba(255, 255, 255, .12); aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
}

/* ---------- Wave divider ---------- */
.wave-divider { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: -1; }
.wave-divider svg { width: 100%; height: clamp(40px, 6vw, 80px); display: block; }
.wave-divider path { fill: var(--bg); }
.section--tint + * .wave-divider path { fill: var(--bg-tint); }

/* ---------- About ---------- */
.about__inner, .feature__inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.about__media img, .feature__media img {
    border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
}
.about__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.4rem; }

/* ---------- Services ---------- */
.services__grid {
    display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.service-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.8rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--cyan-200); }
.service-card--feature { border-top: 4px solid var(--blue-500); }
.service-card__icon {
    width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(150deg, var(--blue-500), var(--cyan-400)); color: #fff; margin-bottom: 1.1rem;
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card__title { font-size: 1.28rem; margin-bottom: .7rem; }
.service-card__steps { display: flex; flex-direction: column; gap: .45rem; margin: 0 0 1rem; }
.service-card__steps li { position: relative; padding-left: 1.6rem; color: var(--muted); }
.service-card__steps li::before {
    content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%;
    background: var(--cyan-400); box-shadow: 0 0 0 4px rgba(91, 197, 242, .2);
}
.service-card p { color: var(--muted); }
.service-card__fineprint { font-size: .82rem; color: #8592a8; margin-top: auto; margin-bottom: 1rem; }
.service-card .btn--text { margin-top: auto; align-self: flex-start; }

/* ---------- Feature rows ---------- */
.feature--reverse .feature__inner > .feature__media { order: 2; }
.feature__content p { color: var(--muted); }
.feature__media { position: relative; }
.feature__badge {
    position: absolute; bottom: -18px; right: -10px; background: #fff; border-radius: 14px;
    padding: .8rem 1.2rem; box-shadow: var(--shadow-md); display: grid; line-height: 1.2;
    border-left: 4px solid var(--green-500);
}
.feature__badge strong { color: var(--navy-800); font-family: var(--font-head); }
.feature__badge span { color: var(--muted); font-size: .85rem; }

.feature__steps {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.8rem; box-shadow: var(--shadow-sm);
}
.feature__steps h3 { font-size: 1.2rem; }
.process-list { display: flex; flex-direction: column; gap: 1rem; }
.process-list li { display: flex; align-items: center; gap: 1rem; color: var(--ink); font-weight: 500; }
.process-list span {
    flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(150deg, var(--blue-600), var(--cyan-400)); color: #fff; font-family: var(--font-head); font-weight: 700;
}

.tag-list { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .5rem; }
.tag-list li {
    background: var(--bg-tint); border: 1px solid var(--line); color: var(--navy-800);
    padding: .4rem .95rem; border-radius: 999px; font-size: .9rem; font-weight: 600;
}

/* ---------- CTA ---------- */
.cta { position: relative; color: #fff; text-align: center; isolation: isolate; }
.cta__bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(800px 400px at 50% -20%, rgba(91, 197, 242, .4), transparent 60%),
        linear-gradient(150deg, var(--navy-800), var(--blue-600));
}
.cta__inner { max-width: 760px; margin-inline: auto; }
.cta__title { color: #fff; font-size: clamp(1.8rem, 4.4vw, 2.8rem); }
.cta__lead { color: rgba(255, 255, 255, .9); font-size: 1.1rem; }
.cta__phoneline { font-family: var(--font-head); font-weight: 600; color: var(--cyan-200); margin-bottom: 1.2rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Page hero (gallery / legal) ---------- */
.page-hero {
    position: relative; color: #fff; text-align: center; isolation: isolate;
    padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
    background:
        radial-gradient(900px 400px at 70% -20%, rgba(91, 197, 242, .4), transparent 60%),
        linear-gradient(155deg, var(--navy-800), var(--blue-600));
}
.page-hero--slim { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.page-hero__title { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .4rem; }
.page-hero__meta { color: var(--cyan-200); font-weight: 600; }
.page-hero__lead { color: rgba(255, 255, 255, .9); max-width: 60ch; margin-inline: auto; }

/* ---------- Gallery ---------- */
.gallery__grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery__item:nth-child(7n+1) { grid-column: span 2; }
.gallery__btn {
    position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
    border-radius: var(--radius); overflow: hidden; background: var(--navy-800); box-shadow: var(--shadow-sm);
}
.gallery__btn img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease, opacity .3s ease; }
.gallery__btn:hover img { transform: scale(1.06); opacity: .9; }
.gallery__badge {
    position: absolute; top: 12px; left: 12px; background: rgba(15, 35, 80, .85); color: #fff;
    font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .06em;
    text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px; backdrop-filter: blur(4px);
}
.gallery__caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 1rem .9rem; color: #fff;
    font-family: var(--font-head); font-weight: 600; text-align: left;
    background: linear-gradient(to top, rgba(11, 26, 61, .85), transparent);
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
    background: rgba(7, 16, 38, .92); padding: clamp(1rem, 4vw, 3rem); backdrop-filter: blur(6px);
}
.lightbox.is-open { display: flex; }
.lightbox__figure { margin: 0; max-width: min(1000px, 92vw); text-align: center; }
.lightbox__img { max-width: 100%; max-height: 80vh; border-radius: 12px; box-shadow: var(--shadow-lg); margin-inline: auto; }
.lightbox__caption { color: #dce8f7; margin-top: 1rem; font-family: var(--font-head); font-weight: 500; }
.lightbox__close, .lightbox__nav {
    position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; cursor: pointer;
    width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; line-height: 1; display: grid; place-items: center;
    transition: background .2s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .28); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Legal ---------- */
.legal__inner { max-width: 820px; margin-inline: auto; }
.legal__inner > p { color: var(--muted); }
.legal__heading { font-size: 1.35rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.legal__inner > p:first-child { font-size: 1.08rem; color: var(--ink); }
.legal__list { margin: 0 0 1.1em; display: grid; gap: .4rem; }
.legal__list li { position: relative; padding-left: 1.5rem; color: var(--muted); }
.legal__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9c7de; }
.site-footer__grid {
    display: grid; gap: 2rem; padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
}
.site-footer__brand img { margin-bottom: 1rem; }
.site-footer__brand p { color: #91a3c2; max-width: 32ch; }
.site-footer__fb { color: var(--cyan-400); font-weight: 600; }
.site-footer__col h2 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.site-footer__col ul { display: grid; gap: .55rem; }
.site-footer__col a, .site-footer__contact li { color: #b9c7de; }
.site-footer__col a:hover { color: #fff; }
.site-footer__contact { display: grid; gap: .55rem; }
.site-footer__bar { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.site-footer__bar p { margin: 0; padding: 1.1rem 0; color: #8497b6; text-align: center; }

/* ---------- Scroll reveal (progressive enhancement) ----------
   Hidden only when JS is available (html.js); without JS everything shows. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero__inner, .about__inner, .feature__inner { grid-template-columns: 1fr; }
    .hero__media { order: -1; }
    .feature--reverse .feature__inner > .feature__media { order: 0; }
    .hero__lead { max-width: none; }

    .nav-toggle { display: flex; }
    .primary-nav {
        position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw);
        background: #fff; box-shadow: var(--shadow-lg); padding: 5.5rem 1.5rem 2rem;
        transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
    }
    .primary-nav.is-open { transform: translateX(0); }
    .primary-nav__list { flex-direction: column; align-items: stretch; gap: .25rem; }
    .primary-nav__link { padding: .85rem 1rem; border-radius: 10px; }
    .primary-nav__link.is-active::after { display: none; }
    .primary-nav__cta { margin: 1rem 0 0; }
    .primary-nav__cta .btn { width: 100%; }
    body.nav-open { overflow: hidden; }
    .nav-scrim { position: fixed; inset: 0; background: rgba(11, 26, 61, .5); z-index: 99; opacity: 0; visibility: hidden; transition: opacity .3s ease; }
    .nav-scrim.is-open { opacity: 1; visibility: visible; }
}

@media (max-width: 720px) {
    .topbar__meta { display: none; }
    .gallery__item:nth-child(7n+1) { grid-column: span 1; }
    .feature__badge { position: static; margin-top: 1rem; display: inline-grid; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .btn:hover, .service-card:hover, .gallery__btn:hover img { transform: none; }
}
