:root {
    --copper: #CD7F32;
    --copper-dark: #A85F20;
    --navy: #1A303D;
    --blue: #30569A;
    --sky: #51A4CF;
    --paper: #F7F5F0;
    --white: #FFFFFF;
    --ink: #1A303D;
    --ink-soft: #526873;
    --line: #D7DEE1;
    --garden: #344C3F;
    --font-ui: "Helvetica Neue", Arial, Helvetica, sans-serif;
    --font-display: "DejaVu Serif", Georgia, "Times New Roman", serif;
    --shell: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-ui); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; color: var(--white); background: var(--navy); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.page-shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-family: var(--font-display); font-size: clamp(42px, 6.4vw, 82px); font-weight: 400; letter-spacing: -.045em; line-height: .98; }
h2 { margin-bottom: 18px; font-size: clamp(28px, 3.4vw, 46px); font-weight: 400; letter-spacing: -.035em; line-height: 1.06; }
h3 { margin-bottom: 10px; font-size: 22px; font-weight: 500; line-height: 1.2; }
.eyebrow { margin-bottom: 14px; color: var(--copper); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.site-header { position: relative; z-index: 20; border-bottom: 1px solid rgba(26, 48, 61, .12); background: rgba(247, 245, 240, .96); }
.site-header-inner { width: min(var(--shell), calc(100% - 48px)); min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-inline: auto; padding-block: 12px; }
.master-brand { min-width: 0; flex: 0 1 240px; display: block; text-decoration: none; }
.master-brand-logo { width: 100%; max-width: 240px; height: auto; display: block; }
.desktop-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); }
.desktop-nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.desktop-nav a:hover { color: var(--copper-dark); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 0; cursor: pointer; font-weight: 700; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav { position: absolute; top: 50px; right: 0; width: min(320px, calc(100vw - 32px)); display: grid; padding: 12px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 18px 45px rgba(26, 48, 61, .14); }
.mobile-nav nav a { min-height: 48px; display: flex; align-items: center; padding: 8px 10px; text-decoration: none; }

.home-intro { padding: clamp(70px, 10vw, 130px) 0 clamp(52px, 7vw, 92px); }
.home-intro-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .55fr); align-items: end; gap: clamp(40px, 8vw, 110px); }
.home-intro h1 { max-width: 890px; }
.home-lede { max-width: 390px; margin-bottom: 3px; color: var(--ink-soft); font-size: 19px; }
.service-gateway { padding-bottom: clamp(72px, 10vw, 130px); }
.gateway-grid { display: grid; grid-template-columns: 1fr 1fr; }
.gateway-card { min-height: 560px; position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: clamp(28px, 4vw, 52px); color: var(--white); text-decoration: none; }
.gateway-card::after { content: ""; position: absolute; z-index: -1; inset: 0; transition: opacity .4s ease; }
.gateway-garden::before { content: ""; position: absolute; z-index: -2; inset: 0; background: url("/static/img/house.4557abc7cf7e.webp") center / cover no-repeat; transition: transform .6s ease; }
.gateway-garden::after { background: linear-gradient(180deg, rgba(17, 34, 27, .36), rgba(17, 34, 27, .92)); }
.gateway-water::before { content: ""; position: absolute; z-index: -2; inset: 0; background: url("/static/img/rainwater-country-house.869a5f70e3cc.webp") 38% center / cover no-repeat; transition: transform .6s ease; }
.gateway-water::after { background: linear-gradient(180deg, rgba(20, 48, 65, .25), rgba(13, 37, 50, .94)); }
.gateway-card:hover::before { transform: scale(1.025); }
.gateway-card:hover::after { opacity: .78; }
.gateway-card-copy { max-width: 520px; }
.gateway-label { margin-bottom: 11px; color: #D8E6E1; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.gateway-water .gateway-label { color: var(--sky); }
.gateway-card h2 { max-width: 490px; margin-bottom: 18px; color: var(--white); font-size: clamp(34px, 4.6vw, 60px); }
.gateway-card-copy > p:not(.gateway-label) { max-width: 440px; margin-bottom: 28px; color: rgba(255, 255, 255, .82); font-size: 17px; }
.gateway-link { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-weight: 700; }
.home-principles { padding: clamp(72px, 10vw, 130px) 0; color: var(--white); background: var(--navy); }
.principles-grid { display: grid; grid-template-columns: .45fr 1.25fr .85fr; gap: clamp(28px, 6vw, 78px); align-items: start; }
.principles-grid h2 { margin: 0; color: var(--white); }
.principles-grid > div p { color: #D7E5EA; }
.principles-grid .text-link { color: var(--white); }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border: 1px solid transparent; border-radius: 4px; font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; transition: background-color .15s ease, border-color .15s ease; }
.button-copper { min-height: 52px; padding: 13px 24px; border-color: var(--copper); color: var(--white); background: var(--copper); font-size: 19px; font-weight: 700; }
.button-copper:hover { background: var(--copper-dark); border-color: var(--copper-dark); }
.button-outline-light { color: var(--white); border-color: rgba(255, 255, 255, .62); background: transparent; }
.button-outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .09); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.service-hero { min-height: 650px; display: grid; align-items: end; padding: clamp(100px, 14vw, 180px) 0 clamp(70px, 10vw, 120px); color: var(--white); }
.garden-hero { position: relative; isolation: isolate; background: url("/static/img/house.4557abc7cf7e.webp") center / cover no-repeat; }
.garden-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(20, 38, 31, .92), rgba(20, 38, 31, .38)); }
.water-hero { position: relative; isolation: isolate; background: url("/static/img/rainwater-country-house.869a5f70e3cc.webp") 52% center / cover no-repeat; }
.water-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(16, 42, 56, .96), rgba(16, 42, 56, .48)); }
.service-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .55fr); align-items: end; gap: clamp(42px, 9vw, 120px); }
.service-hero-copy { max-width: 780px; }
.service-hero h1 { color: var(--white); }
.service-lede { max-width: 650px; margin: 28px 0 0; color: rgba(255, 255, 255, .82); font-size: clamp(18px, 2.2vw, 23px); }
.calculator-summary { margin: 0; padding: 24px 28px; border-left: 3px solid var(--sky); background: rgba(81, 164, 207, .12); }
.calculator-summary > div { display: flex; justify-content: space-between; gap: 22px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.calculator-summary > div:last-child { border: 0; }
.calculator-summary dt { color: #BED9E6; font-size: 12px; }
.calculator-summary dd { margin: 0; text-align: right; font-weight: 700; }
.service-content, .calculator-callout { padding: clamp(80px, 11vw, 140px) 0; }
.service-columns { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 10vw, 140px); }
.service-list { display: grid; margin: 30px 0 0; padding: 0; list-style: none; }
.service-list li { padding: 15px 0; border-top: 1px solid var(--line); }
.calculator-callout { background: var(--white); }
.calculator-callout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(44px, 10vw, 130px); align-items: start; }
.calculator-callout-grid p { color: var(--ink-soft); }
.water-service-content { background: var(--paper); }
.section-heading { max-width: 700px; margin-bottom: 56px; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.process-grid article { padding: 30px clamp(20px, 3vw, 36px) 8px; border-left: 1px solid var(--line); }
.process-grid article:first-child { padding-left: 0; border-left: 0; }
.process-grid span { display: block; margin-bottom: 50px; color: var(--copper); font-size: 12px; font-weight: 700; }
.process-grid p { color: var(--ink-soft); }
.service-cta { padding: 60px 0; color: var(--white); background: var(--garden); }
.water-cta { background: var(--navy); }
.service-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.service-cta h2 { margin: 0; color: var(--white); }

.contact-intro { padding: clamp(72px, 10vw, 130px) 0; }
.contact-intro-grid { display: grid; grid-template-columns: 1.15fr .65fr; gap: clamp(42px, 10vw, 130px); align-items: end; }
.contact-intro-grid > p { margin-bottom: 4px; color: var(--ink-soft); font-size: 18px; }
.contact-section { padding: clamp(50px, 8vw, 100px) 0; background: var(--white); }
.contact-grid { display: grid; grid-template-columns: .6fr 1.4fr; gap: clamp(50px, 9vw, 120px); }
.contact-details p { color: var(--ink-soft); }
.contact-details a { color: var(--blue); font-weight: 700; }
.contact-form-panel { max-width: 760px; }
.contact-form { display: grid; gap: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field-group { display: grid; align-content: start; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field-group label { color: var(--navy); font-size: 13px; font-weight: 700; }
.field-group input, .field-group select, .field-group textarea { width: 100%; min-height: 50px; padding: 12px 13px; border: 1px solid #9EB0B8; border-radius: 4px; color: var(--ink); background: var(--white); }
.field-group textarea { min-height: 160px; resize: vertical; }
.field-group input:focus, .field-group select:focus, .field-group textarea:focus { border-color: var(--blue); outline: 3px solid rgba(81, 164, 207, .25); }
.field-help { color: var(--ink-soft); font-size: 13px; }
.field-errors, .form-errors { color: #812E2A; font-size: 13px; font-weight: 700; }
.field-errors ul, .form-errors ul { margin: 0; padding: 0; list-style: none; }
.form-success { display: grid; gap: 3px; margin-bottom: 24px; padding: 16px 18px; border-left: 4px solid #2C7439; background: #EAF4EC; }
.form-privacy-note { margin: -12px 0 0; color: var(--ink-soft); font-size: 13px; }
.form-privacy-note a { color: var(--blue); font-weight: 700; }

.privacy-intro { padding: clamp(72px, 10vw, 130px) 0; }
.privacy-heading { max-width: 900px; }
.privacy-heading > p:last-child { max-width: 720px; margin: 28px 0 0; color: var(--ink-soft); font-size: 19px; }
.privacy-content { padding: clamp(60px, 9vw, 110px) 0; background: var(--white); }
.privacy-layout { display: grid; grid-template-columns: minmax(220px, .45fr) minmax(0, 1.2fr); gap: clamp(44px, 9vw, 120px); align-items: start; }
.privacy-summary { position: sticky; top: 28px; display: grid; gap: 12px; padding: 24px; border-top: 4px solid var(--copper); background: var(--paper); }
.privacy-summary p { margin: 0; color: var(--ink-soft); }
.privacy-summary a, .privacy-copy a { color: var(--blue); font-weight: 700; }
.privacy-copy { max-width: 760px; }
.privacy-copy h2 { margin: 48px 0 14px; font-size: clamp(26px, 3vw, 36px); }
.privacy-copy h2:first-child { margin-top: 0; }
.privacy-copy p { color: var(--ink-soft); }
.privacy-updated { margin-top: 52px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }

.site-footer { padding: 58px 0; color: #D7E5EA; background: #10232D; }
.site-footer-inner { width: min(var(--shell), calc(100% - 48px)); display: grid; grid-template-columns: 1fr 1fr auto; gap: 60px; margin-inline: auto; }
.footer-brand { display: inline-block; text-decoration: none; }
.footer-brand-logo { width: min(230px, 100%); height: auto; display: block; }
.site-footer p { margin: 12px 0 0; color: #AFC2CB; font-size: 13px; }
.footer-contact a, .footer-links a { color: var(--white); text-decoration: none; }
.footer-links { display: grid; gap: 8px; justify-items: end; font-size: 13px; }
.footer-socials { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }
.footer-socials a:hover { text-decoration: underline; }
.footer-links span { margin-top: 10px; color: #AFC2CB; }

@media (max-width: 840px) {
    .desktop-nav { display: none; }
    .mobile-nav { display: block; }
    .home-intro-grid, .service-hero-grid, .contact-intro-grid, .contact-grid, .privacy-layout { grid-template-columns: 1fr; }
    .home-lede { max-width: 650px; }
    .gateway-card { min-height: 500px; }
    .principles-grid { grid-template-columns: 1fr 1fr; }
    .principles-grid .eyebrow { grid-column: 1 / -1; }
    .calculator-summary { max-width: 520px; }
    .privacy-summary { position: static; }
}

@media (max-width: 680px) {
    .page-shell, .site-header-inner, .site-footer-inner { width: min(100% - 32px, var(--shell)); }
    .site-header-inner { min-height: 76px; gap: 16px; }
    .master-brand { flex-basis: 180px; }
    .home-intro { padding-top: 58px; }
    .gateway-grid, .service-columns, .calculator-callout-grid, .process-grid, .form-grid, .site-footer-inner { grid-template-columns: 1fr; }
    .gateway-card { min-height: 450px; }
    .principles-grid { grid-template-columns: 1fr; }
    .principles-grid .eyebrow { grid-column: auto; }
    .service-hero { min-height: 620px; }
    .service-columns > div + div { padding-top: 20px; border-top: 1px solid var(--line); }
    .process-grid { border-top: 0; }
    .process-grid article, .process-grid article:first-child { padding: 28px 0; border-top: 1px solid var(--line); border-left: 0; }
    .process-grid span { margin-bottom: 20px; }
    .service-cta-inner { align-items: flex-start; flex-direction: column; }
    .field-wide { grid-column: auto; }
    .site-footer-inner { gap: 34px; }
    .footer-links { justify-items: start; }
    .footer-socials { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
