:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-alt: #eef3f8;
    --ink: #122033;
    --muted: #536176;
    --line: #d8e2ee;
    --brand: #1270c9;
    --brand-deep: #0a4d8a;
    --accent: #11a8a5;
    --shadow: 0 20px 60px rgba(18, 32, 51, 0.12);
    --radius: 24px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(17, 168, 165, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(18, 112, 201, 0.1), transparent 24%),
        var(--bg);
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    margin: 0 0 0.75rem;
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.1;
}

p,
ul {
    margin: 0;
}

ul {
    padding-left: 1.2rem;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.section {
    padding: 5.5rem 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(238, 243, 248, 0.9));
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 100;
    background: var(--ink);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(245, 247, 251, 0.84);
    border-bottom: 1px solid rgba(216, 226, 238, 0.8);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 5.2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    min-width: 0;
}

.brand-logo {
    width: 10.5rem;
    height: auto;
    display: block;
    flex: 0 0 auto;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand-text {
    display: grid;
    gap: 0.1rem;
}

.brand-text strong {
    font-size: 1rem;
}

.brand-text span {
    color: var(--muted);
    font-size: 0.88rem;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1.25rem;
    padding: 0;
    list-style: none;
}

.site-nav a {
    text-decoration: none;
}

.site-nav ul a {
    color: var(--muted);
    font-weight: 500;
}

.site-nav ul a:hover,
.site-nav ul a:focus-visible,
.footer-list a:hover,
.footer-list a:focus-visible {
    color: var(--brand);
}

.menu-toggle {
    display: none;
    padding: 0.35rem;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 1.5rem;
    height: 2px;
    margin: 0.3rem 0;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.9rem 1.4rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(18, 112, 201, 0.25);
}

.button:hover,
.button:focus-visible {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.button-small {
    min-height: 2.6rem;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
}

.button-secondary {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: none;
}

.button-light {
    background: #fff;
    color: var(--ink);
    box-shadow: none;
}

.button-outline-light {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: none;
}

.hero {
    padding-top: 4.5rem;
}

.hero-grid,
.split-layout,
.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
}

.compact-split {
    grid-template-columns: 0.95fr 1.05fr;
}

.hero-copy h1 {
    font-size: clamp(2.6rem, 6vw, 4.9rem);
    max-width: 12ch;
}

.lead,
.section-heading p,
.split-copy p,
.contact-copy p,
.faq-answer p,
.project-card p,
.site-footer p,
.legal-shell p {
    color: var(--muted);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--brand-deep);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
}

.eyebrow::before {
    content: "";
    width: 2rem;
    height: 1px;
    background: currentColor;
}

.eyebrow-light {
    color: rgba(255, 255, 255, 0.8);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    list-style: none;
    padding: 0;
    margin-top: 1.6rem;
}

.trust-list li,
.town-grid span,
.project-tag {
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.hero-panel,
.info-panel {
    position: relative;
}

.panel-card,
.info-panel-inner,
.form-card,
.card,
.project-card,
.contact-card,
.faq-item,
.legal-shell {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(216, 226, 238, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.panel-card,
.info-panel-inner,
.form-card,
.legal-shell {
    padding: 2rem;
}

.panel-label,
.project-tag {
    color: var(--brand-deep);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.service-summary {
    margin: 1.3rem 0 1.8rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1rem;
}

.service-summary li,
.info-stat {
    display: grid;
    gap: 0.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.service-summary li:last-child,
.info-stat:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.service-summary span,
.panel-note,
.info-stat span,
.contact-card span {
    color: var(--muted);
}

.section-heading {
    max-width: 46rem;
    margin-bottom: 2rem;
}

.section-heading h2,
.split-copy h2,
.contact-copy h2,
.cta-shell h2,
.legal-shell h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    max-width: 16ch;
}

.card-grid,
.project-grid,
.footer-grid,
.town-grid,
.contact-cards,
.faq-list {
    display: grid;
    gap: 1.2rem;
}

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

.card,
.project-card,
.contact-card,
.faq-item {
    padding: 1.5rem;
}

.card h3,
.project-card h3,
.footer-grid h3,
.legal-section h2 {
    font-size: 1.3rem;
}

.card ul,
.check-list,
.footer-list {
    margin-top: 1rem;
}

.card li,
.check-list li,
.footer-list li {
    margin-bottom: 0.55rem;
    color: var(--muted);
}

.check-list {
    padding-left: 1.2rem;
}

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

.project-card {
    min-height: 15rem;
    background:
        linear-gradient(160deg, rgba(18, 112, 201, 0.1), rgba(17, 168, 165, 0.06)),
        rgba(255, 255, 255, 0.92);
}

.town-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.town-grid span {
    text-align: center;
    font-weight: 700;
}

.faq-shell {
    max-width: 56rem;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
}

.faq-symbol {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--brand-deep);
    font-weight: 700;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.faq-item.is-open .faq-answer {
    margin-top: 1rem;
    max-height: 12rem;
}

.faq-item.is-open .faq-symbol {
    transform: rotate(45deg);
}

.contact-cards {
    margin-top: 1.4rem;
}

.contact-card {
    display: grid;
    gap: 0.3rem;
    text-decoration: none;
}

.form-card form,
.legal-shell {
    display: grid;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    font: inherit;
    color: var(--ink);
}

input:focus,
select:focus,
textarea:focus,
.faq-question:focus-visible,
.menu-toggle:focus-visible,
.button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(17, 168, 165, 0.25);
    outline-offset: 2px;
}

.form-note {
    font-size: 0.95rem;
    color: var(--muted);
}

.cta-section {
    background: linear-gradient(135deg, #0f172a, #163656 70%, #16687f);
    color: #fff;
}

.cta-shell {
    text-align: center;
}

.cta-shell h2 {
    max-width: 18ch;
    margin-inline: auto;
}

.cta-actions {
    justify-content: center;
}

.site-footer {
    padding: 4rem 0 2rem;
    background: #0f172a;
    color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
}

.brand-footer {
    margin-bottom: 1rem;
}

.brand-footer .brand-logo {
    width: 11.5rem;
    padding: 0.55rem 0.7rem;
    border-radius: 1rem;
    background: #ffffff;
}

.brand-footer .brand-text strong,
.site-footer h3,
.site-footer a {
    color: #fff;
}

.footer-list {
    list-style: none;
    padding: 0;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-single {
    margin-top: 0;
    text-align: center;
}

.legal-page .section {
    padding-top: 4rem;
}

.legal-shell {
    max-width: 54rem;
}

.legal-section {
    display: grid;
    gap: 0.6rem;
}

.js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .hero-grid,
    .split-layout,
    .contact-grid,
    .compact-split,
    .services-grid,
    .project-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .section-heading h2,
    .split-copy h2,
    .contact-copy h2,
    .cta-shell h2,
    .legal-shell h1 {
        max-width: none;
    }

    .js .menu-toggle {
        display: inline-block;
    }

    .js .site-nav {
        position: fixed;
        inset: 5.2rem 1rem auto 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1.1rem;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--line);
        border-radius: 20px;
        box-shadow: var(--shadow);
    }

    .js .site-nav.is-open {
        display: flex;
    }

    .js .site-nav ul {
        flex-direction: column;
        gap: 0.75rem;
        margin: 0;
    }

    .town-grid,
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 4.5rem 0;
    }

    .nav-shell {
        min-height: 4.8rem;
    }

    .brand-logo {
        width: 8.5rem;
    }

    .hero-actions,
    .trust-list {
        flex-direction: column;
        align-items: stretch;
    }

    .button,
    .button-secondary,
    .button-light,
    .button-outline-light {
        width: 100%;
    }

    .panel-card,
    .info-panel-inner,
    .form-card,
    .legal-shell,
    .card,
    .project-card,
    .contact-card,
    .faq-item {
        padding: 1.25rem;
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
