/*
Theme Name: FlowWise Stormwater Solutions
Theme URI: https://flow-wise.ca/
Author: FlowWise
Description: Purpose-built FlowWise stormwater drainage website with coded pages, responsive navigation, SEO metadata, optimized assets and accessibility features.
Version: 6.2.0
Requires at least: 6.0
*/

:root {
    --navy: #06223f;
    --navy-2: #0a2d4e;
    --blue: #176fbd;
    --blue-dark: #0f5c9e;
    --green: #788f4f;
    --ink: #173554;
    --muted: #61758a;
    --line: #dbe5ed;
    --soft: #f4f8fb;
    --soft-blue: #edf5fa;
    --white: #ffffff;
    --max: 1180px;
    --radius: 6px;
    --shadow: 0 16px 40px rgba(6, 34, 63, 0.08);
}


/* FlowWise icon normalization. Inline SVG presentation is intentionally
   isolated from generic theme SVG rules so icons remain small line-art. */
svg.flowwise-icon {
    display: block !important;
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    flex: 0 0 56px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    overflow: visible !important;
}

svg.flowwise-icon > g,
svg.flowwise-icon > g * {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

svg.flowwise-icon.service-icon {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    flex-basis: 50px !important;
    margin: 0 auto 12px !important;
    color: var(--blue) !important;
}

svg.flowwise-icon.service-icon-detail {
    width: 58px !important;
    height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
    flex-basis: 58px !important;
    margin: 0 0 12px !important;
}

svg.flowwise-icon.problem-icon {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    flex: 0 0 36px !important;
    margin: 0 !important;
    color: var(--blue) !important;
}

svg.flowwise-icon.approach-icon {
    width: 52px !important;
    height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
    flex-basis: 52px !important;
    margin: 0 0 14px !important;
    color: var(--blue) !important;
}


* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(var(--max), calc(100% - 48px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: -60px;
    left: 14px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: 4px;
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
}

.skip-link:focus {
    top: 14px;
}

:focus-visible {
    outline: 3px solid rgba(23, 111, 189, 0.55);
    outline-offset: 3px;
}

.site-header {
    position: relative;
    z-index: 20;
    display: flex;
    min-height: 82px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}

.brand img {
    display: block;
    width: 226px;
    height: auto;
    max-height: 66px;
    object-fit: contain;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 15px;
}

.primary-nav a {
    position: relative;
    padding: 8px 0;
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
}

.primary-nav a::after {
    position: absolute;
    right: 100%;
    bottom: 2px;
    left: 0;
    height: 2px;
    background: var(--blue);
    content: "";
    transition: right 0.2s ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a.is-current::after {
    right: 0;
}

.primary-nav a.is-current {
    color: var(--blue-dark);
}

.menu-toggle {
    display: none;
    padding: 6px;
    border: 0;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.hero {
    padding: 66px 0 74px;
    background: linear-gradient(100deg, #ffffff 0%, #ffffff 53%, var(--soft-blue) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 64px;
    align-items: center;
}

.eyebrow {
    margin-bottom: 17px;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 2.2px;
}

.hero h1 {
    max-width: 650px;
    margin: 0 0 24px;
    color: var(--navy);
    font-size: clamp(46px, 4.9vw, 64px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -2.6px;
}

.hero-lead {
    max-width: 580px;
    margin: 0 0 30px;
    color: #244665;
    font-size: 20px;
    line-height: 1.55;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
}

.btn {
    display: inline-block;
    padding: 14px 22px;
    border-radius: var(--radius);
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(23, 111, 189, 0.18);
}

.btn-primary:hover {
    background: var(--blue-dark);
    box-shadow: 0 10px 24px rgba(23, 111, 189, 0.24);
}

.text-link {
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}

.text-link span {
    color: var(--blue);
    font-size: 19px;
}

.hero-media {
    min-width: 0;
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1400 / 788;
    object-fit: cover;
    box-shadow: 18px 18px 0 #dfe8ee;
}

.section {
    padding: 86px 0;
}

.soft {
    background: var(--soft);
}

.intro-grid {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 90px;
    align-items: start;
}

.section h2 {
    margin: 0 0 19px;
    color: var(--navy);
    font-size: clamp(34px, 3.5vw, 46px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -1.4px;
}

.large {
    margin-top: 0;
    color: #284967 !important;
    font-size: 21px;
    line-height: 1.55;
}

.section p {
    color: #526a80;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
}

.section-heading.stacked {
    display: block;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.flowwise-icon {
    display: block;
    width: 64px;
    height: 64px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-icon {
    margin: 0 auto 14px;
    color: var(--blue);
}

.service-card {
    text-align: center;
}

.service-card .card-number {
    margin-top: 2px;
}

.service-icon-detail {
    width: 72px;
    height: 72px;
    margin-bottom: 8px;
}

.service-detail .card-number {
    margin-top: 0;
}

.hero-problems {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 44px;
    padding-top: 19px;
    border-top: 1px solid var(--line);
    color: #5d7186;
    font-size: 15px;
}

.problem-item {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 58px;
    padding: 0 18px 0 0;
}

.problem-item + .problem-item {
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

.problem-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    color: var(--blue);
    stroke-width: 2.1;
}

.problem-item span {
    display: block;
}

.approach-intro {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: end;
    margin-bottom: 42px;
}

.approach-enhanced article {
    min-height: 290px;
}

.approach-icon {
    width: 66px;
    height: 66px;
    margin-bottom: 16px;
    color: var(--blue);
}

.service-card {
    min-height: 230px;
    padding: 29px;
    border: 1px solid var(--line);
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
    border-color: #c9d8e3;
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.card-number {
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.service-card h3,
.process-card h3 {
    margin: 15px 0 10px;
    color: var(--navy);
    font-size: 20px;
    line-height: 1.3;
}

.service-card p {
    margin: 0;
    font-size: 15.5px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
}

.process-card {
    padding: 32px;
    background: var(--white);
}

.process-card span {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.process-card p {
    margin-bottom: 0;
}

.cta {
    padding: 68px 0;
    background: var(--navy);
    color: var(--white);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta h2 {
    margin-bottom: 8px;
    color: var(--white);
}

.cta p {
    margin: 0;
    color: #c8d5e1;
}

.btn-light {
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-hero {
    padding: 68px 0;
    border-bottom: 1px solid var(--line);
    background: var(--soft);
}

.page-hero h1 {
    max-width: 850px;
    margin: 0;
    color: var(--navy);
    font-size: clamp(42px, 5vw, 58px);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -1.8px;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.6;
}

.not-found .actions {
    margin-top: 28px;
}

.service-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.service-detail {
    padding: 28px;
    border-top: 3px solid var(--blue);
    background: var(--white);
    box-shadow: 0 1px 0 rgba(6, 34, 63, 0.02);
}

.service-detail h2 {
    margin: 9px 0;
    font-size: 26px;
}

.service-detail p {
    margin: 0;
}

.approach {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.approach article {
    padding: 30px;
    border: 1px solid var(--line);
    background: var(--white);
}

.approach h3 {
    margin: 8px 0;
    color: var(--navy);
    font-size: 21px;
}

.portfolio-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.portfolio-placeholder {
    display: flex;
    min-height: 340px;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, #eef4f7, #f8fafb);
    color: var(--muted);
    text-align: center;
}

.portfolio-placeholder strong {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 20px;
}

.video-box {
    display: flex;
    min-height: 280px;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    padding: 35px;
    background: var(--navy-2);
    color: var(--white);
    text-align: center;
}

.video-box .eyebrow {
    color: #a5bb77;
}

.video-box h2 {
    color: var(--white);
}

.video-box p {
    max-width: 600px;
    margin-inline: auto;
    color: #cbd7e2;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
}

.contact-details {
    padding: 34px;
    border: 1px solid var(--line);
    background: var(--soft);
}

.contact-details h2,
.contact-form h2 {
    font-size: 30px;
}

.contact-details a {
    color: var(--blue);
}

.contact-form {
    padding: 34px;
    border: 1px solid var(--line);
    background: var(--white);
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--navy);
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-bottom: 20px;
    padding: 13px;
    border: 1px solid #cbd7e1;
    border-radius: 4px;
    background: var(--white);
    color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid rgba(23, 111, 189, 0.13);
    border-color: var(--blue);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.notice {
    margin-bottom: 20px;
    padding: 14px 18px;
    background: #edf7ee;
}

.notice.error {
    background: #fff0f0;
}

.site-footer {
    padding: 58px 0 24px;
    background: var(--navy);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.7fr 0.85fr;
    gap: 60px;
}

.footer-logo {
    width: 235px;
    max-width: 100%;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.site-footer h3 {
    margin: 4px 0 16px;
    font-size: 13px;
    letter-spacing: 2px;
}

.site-footer a {
    color: #d4e0ea;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--white);
}

.site-footer p {
    color: #c3d1dd;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 42px;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #aec0d0;
    font-size: 13px;
}

@media (max-width: 900px) {
    .site-header {
        min-height: 76px;
    }

    .brand img {
        width: 190px;
        max-height: 60px;
    }

    .primary-nav {
        position: absolute;
        top: 76px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 18px 24px;
        border-bottom: 1px solid var(--line);
        background: var(--white);
        box-shadow: 0 12px 24px rgba(6, 34, 63, 0.08);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding: 52px 0 62px;
    }

    .hero-grid,
    .intro-grid,
    .approach-intro,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .hero-image {
        max-width: 850px;
        margin-inline: auto;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-problems {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .problem-item,
    .problem-item + .problem-item {
        padding: 10px 0;
        border-left: 0;
    }

    .process-grid,
    .approach {
        grid-template-columns: 1fr;
    }

    .cta-inner {
        display: block;
    }

    .cta .btn {
        margin-top: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(var(--max), calc(100% - 30px));
    }

    .site-header {
        min-height: 70px;
    }

    .brand img {
        width: 170px;
        max-height: 54px;
    }

    .primary-nav {
        top: 70px;
    }

    .hero h1 {
        font-size: 43px;
        letter-spacing: -1.6px;
    }

    .hero-lead {
        font-size: 18px;
    }

    .hero-image {
        box-shadow: 10px 10px 0 #dfe8ee;
    }

    .hero-problems {
        font-size: 14px;
    }

    .section {
        padding: 62px 0;
    }

    .services-grid,
    .service-list {
        grid-template-columns: 1fr;
    }

    .hero-problems {
        grid-template-columns: 1fr;
    }

    .problem-item {
        min-height: 52px;
    }

    .section-heading {
        display: block;
    }

    .section-heading .text-link {
        display: inline-block;
        margin-top: 10px;
    }

    .page-hero {
        padding: 50px 0;
    }

    .page-hero h1 {
        font-size: 39px;
    }

    .page-hero p {
        font-size: 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        display: block;
    }

    .footer-bottom span {
        display: block;
        margin-top: 7px;
    }

    .contact-form,
    .contact-details {
        padding: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .service-card,
    .btn,
    .primary-nav a::after {
        transition: none;
    }
}


.footer-context { font-size: 0.82rem; line-height: 1.5; opacity: 0.82; max-width: 28rem; }
