:root {
    --red: #d21f2f;
    --red-dark: #a91522;
    --blue: #10253f;
    --blue-soft: #183a62;
    --ink: #172033;
    --muted: #657083;
    --line: #dfe6ef;
    --soft: #f5f7fb;
    --white: #ffffff;
    --shadow: 0 18px 48px rgba(16, 37, 63, .12);
    --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    font-size: 16px;
}

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

a { color: inherit; text-decoration: none; }

p { margin: 0 0 1rem; }

h1, h2, h3 {
    margin: 0;
    color: var(--blue);
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: 0;
}

h1 {
    font-size: 3.65rem;
    max-width: 900px;
    font-weight: 900;
}
h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); }
h3 { font-size: 1.08rem; }

ul { margin: 0; padding: 0; }

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.narrow { width: min(820px, calc(100% - 32px)); }

.skip-link {
    position: absolute;
    left: -999px;
    top: 10px;
    z-index: 99;
    background: var(--blue);
    color: var(--white);
    padding: .65rem 1rem;
    border-radius: var(--radius);
}

.skip-link:focus { left: 10px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.logo, .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-weight: 900;
    color: var(--blue);
    white-space: nowrap;
}

.logo-image {
    width: 230px;
    height: auto;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--blue);
    color: var(--white);
    position: relative;
    overflow: hidden;
    font-size: .82rem;
    isolation: isolate;
}

.logo-mark::before {
    content: "";
    position: absolute;
    inset: 7px 8px auto;
    height: 12px;
    transform: skewY(-18deg);
    background: var(--red);
    z-index: -1;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-left: auto;
    color: #344054;
    font-size: .95rem;
    font-weight: 700;
}

.main-nav a,
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: .55rem .82rem;
    border: 1px solid rgba(16, 37, 63, .14);
    border-radius: var(--radius);
    background: var(--white);
    color: inherit;
    font: inherit;
    line-height: 1.1;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, color .18s ease, background .18s ease;
}

.main-nav a:hover,
.nav-dropdown-toggle:hover,
.nav-dropdown.is-open .nav-dropdown-toggle {
    color: var(--red);
    border-color: rgba(210, 31, 47, .36);
    box-shadow: 0 8px 18px rgba(16, 37, 63, .08);
}

.nav-dropdown {
    display: inline-flex;
    align-self: stretch;
    align-items: center;
}

.nav-dropdown-toggle::after {
    content: "";
    width: .42rem;
    height: .42rem;
    margin-left: .55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.nav-dropdown-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .6rem;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 28px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    justify-content: flex-start;
    min-height: 44px;
    padding: .78rem .9rem;
}

.header-phone {
    padding: .72rem 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(210, 31, 47, .35);
    background: var(--red);
    color: var(--white);
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(210, 31, 47, .18);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--blue);
    margin: 5px 0;
}

.hero {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    padding: 72px 0 56px;
    border-bottom: 1px solid rgba(16, 37, 63, .1);
    box-shadow: 0 12px 28px rgba(16, 37, 63, .055);
    position: relative;
    z-index: 1;
}

.page-hero {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    padding: 56px 0;
    border-bottom: 1px solid rgba(16, 37, 63, .1);
    box-shadow: 0 12px 28px rgba(16, 37, 63, .055);
    position: relative;
    z-index: 1;
}

.hero-grid, .page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
    gap: 48px;
    align-items: center;
}

.hero-media img, .page-hero-grid > img {
    width: 100%;
    height: clamp(260px, 30vw, 380px);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--soft);
}

.service-hero-image {
    width: 100%;
    height: clamp(260px, 30vw, 380px);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

.hero-copy > p:not(.eyebrow), .page-hero p:not(.eyebrow) {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 680px;
    margin-top: 1.2rem;
}

.hero-points {
    display: grid;
    gap: .55rem;
    margin-top: 1.4rem;
    color: var(--blue);
    font-weight: 700;
    list-style: none;
}

.hero-points li {
    position: relative;
    padding-left: 1.25rem;
}

.hero-points li::before {
    content: "";
    width: 8px;
    height: 8px;
    position: absolute;
    left: 0;
    top: .62rem;
    border-radius: 999px;
    background: var(--red);
}

.eyebrow {
    color: var(--red);
    text-transform: uppercase;
    font-weight: 900;
    font-size: .78rem;
    letter-spacing: 0;
    margin-bottom: .75rem;
}

.hero-actions, .contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 46px;
    padding: .78rem 1.08rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 900;
    line-height: 1.1;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(16, 37, 63, .14);
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(210, 31, 47, .18);
}

.btn-primary:hover { background: var(--red-dark); }

.btn-outline {
    color: var(--blue);
    background: var(--white);
    border-color: var(--line);
}

.btn-light {
    background: var(--white);
    color: var(--blue);
}

.full { width: 100%; }

.section { padding: 68px 0; }
.section.alt { background: var(--soft); }

.section-head {
    margin-bottom: 28px;
    max-width: 760px;
}

.section-head p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.05rem;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
}

.breadcrumbs a { color: var(--blue); }
.breadcrumbs a:hover { color: var(--red); }

.service-grid, .cards-3, .cards-5, .process-grid, .locality-grid, .check-grid {
    display: grid;
    gap: 18px;
}

.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.locality-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.service-card, .cards-3 article, .cards-5 article, .process-grid article, .locality-card, .check-grid span {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(16, 37, 63, .06);
}

.service-card, .cards-3 article, .cards-5 article, .process-grid article {
    padding: 22px;
}

.service-card-image {
    width: 100%;
    height: clamp(160px, 18vw, 220px);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
    margin-bottom: 1rem;
}

.roof-type-image {
    width: 100%;
    height: 130px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
    margin-bottom: .9rem;
}

.service-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.service-gallery-wide {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gallery-item {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: var(--soft);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(16, 37, 63, .08);
}

.gallery-item img {
    width: 100%;
    height: clamp(120px, 13vw, 170px);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    transition: transform .22s ease;
}

.gallery-item:hover img {
    transform: scale(1.035);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(16, 37, 63, .86);
}

.lightbox.is-open {
    display: flex;
}

.lightbox-image {
    max-width: min(1120px, calc(100vw - 96px));
    max-height: calc(100vh - 96px);
    border-radius: var(--radius);
    box-shadow: 0 22px 70px rgba(0, 0, 0, .36);
    object-fit: contain;
    background: var(--soft);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: var(--radius);
    background: rgba(255,255,255,.94);
    color: var(--blue);
    font-weight: 900;
    cursor: pointer;
}

.lightbox-close {
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
}

.lightbox-nav {
    top: 50%;
    width: 46px;
    height: 56px;
    transform: translateY(-50%);
    font-size: 1.35rem;
}

.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

.cookie-popup {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(12, 20, 34, .72);
}

.cookie-popup.is-open { display: flex; }

.cookie-popup-card {
    position: relative;
    width: min(520px, calc(100vw - 40px));
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 22px 20px;
}

.cookie-popup-card p {
    margin: 0;
    color: var(--ink);
}

.cookie-popup-title {
    margin: 0 52px 30px 0;
    font-size: 1.2rem;
    color: var(--blue);
}

.cookie-popup-text {
    color: var(--muted);
    line-height: 1.5;
}

.cookie-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--blue);
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.cookie-popup-close:hover {
    color: var(--red);
    border-color: rgba(210, 31, 47, .36);
    box-shadow: 0 8px 18px rgba(16, 37, 63, .08);
}

.cookie-popup-links {
    margin-top: 0;
    padding-top: 10px;
    padding-bottom: 5px;
    color: var(--muted);
}

.cookie-popup-links a {
    color: var(--red);
    font-weight: 800;
}

.cookie-popup-links a:hover { color: var(--red-dark); }

.cookie-popup-accept {
    margin-top: 1rem;
    width: 100%;
}

.service-card p, .cards-3 p, .cards-5 p, .process-grid p {
    color: var(--muted);
    margin-top: .65rem;
}

.text-link {
    display: inline-flex;
    margin-top: .4rem;
    color: var(--red);
    font-weight: 900;
}

.text-link:hover { color: var(--red-dark); }

.check-grid span {
    padding: 14px 16px;
    color: var(--blue);
    font-weight: 800;
}

.locality-card {
    padding: 15px;
    color: var(--blue);
    font-weight: 900;
    text-align: center;
}

.locality-card:hover {
    border-color: rgba(210, 31, 47, .34);
    color: var(--red);
}

.process-grid article span {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--red);
    color: var(--white);
    font-weight: 900;
    margin-bottom: 1rem;
}

.two-col, .contact-grid, .content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
    gap: 36px;
    align-items: start;
}

.content-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); }

.content-main {
    display: grid;
    gap: 24px;
}

.text-block {
    border-bottom: 1px solid var(--line);
    padding-bottom: 22px;
}

.text-block:last-child { border-bottom: 0; }

.text-block p {
    color: var(--muted);
    margin-top: .9rem;
}

.side-panel {
    position: sticky;
    top: 96px;
    background: var(--blue);
    color: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.side-panel h2 { color: var(--white); font-size: 1.4rem; }

.side-panel ul {
    display: grid;
    gap: .65rem;
    margin: 1rem 0 1.2rem;
    list-style: none;
}

.side-panel li {
    position: relative;
    padding-left: 1rem;
    color: rgba(255,255,255,.9);
}

.side-panel li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62rem;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--red);
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 22px 0;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--blue);
    color: var(--white);
    box-shadow: var(--shadow);
}

.cta-band h2 { color: var(--white); font-size: clamp(1.45rem, 2.4vw, 2rem); }
.cta-band p { color: rgba(255,255,255,.82); margin: .55rem 0 0; }

.faq-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.faq-list details {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0 18px;
    box-shadow: 0 8px 24px rgba(16, 37, 63, .05);
}

.faq-list summary {
    cursor: pointer;
    padding: 18px 0;
    color: var(--blue);
    font-weight: 900;
}

.faq-list p {
    color: var(--muted);
    padding-bottom: 18px;
}

.link-list {
    display: grid;
    gap: 10px;
    list-style: none;
}

.link-list a {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--blue);
    font-weight: 800;
}

.link-list a:hover {
    color: var(--red);
    border-color: rgba(210, 31, 47, .34);
}

.contact-section {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.contact-form {
    display: grid;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

.contact-form label {
    color: var(--blue);
    font-weight: 900;
    font-size: .92rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .82rem .9rem;
    font: inherit;
    color: var(--ink);
    background: var(--white);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: 2px solid rgba(210, 31, 47, .18);
    border-color: var(--red);
}

.form-status {
    min-height: 1.3em;
    color: var(--muted);
    margin: 0;
}

.site-footer {
    background: var(--blue);
    color: rgba(255,255,255,.78);
    padding: 54px 0 22px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.15fr repeat(3, 1fr);
    gap: 30px;
}

.footer-logo, .site-footer h2 { color: #fff; }
.footer-logo { font-size: 1.05rem; margin-bottom: 1rem; }
.footer-logo-image { width: 220px; height: auto; }
.site-footer h2 { font-size: 1rem; margin-bottom: .9rem; }

.site-footer p { margin-bottom: .8rem; }

.site-footer ul {
    display: grid;
    gap: .45rem;
    list-style: none;
}

.site-footer a:hover { color: #fff; }

.footer-phone {
    display: inline-flex;
    margin-top: .35rem;
    color: #fff;
    font-weight: 900;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.14);
    font-size: .92rem;
}

.mobile-call { display: none; }

@media (max-width: 1060px) {
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards-5, .locality-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    h1 { font-size: 2.85rem; }
    .service-hero-image { height: 320px; }
    .service-card-image { height: 210px; }
    .roof-type-image { height: 170px; }
    .service-gallery, .service-gallery-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-item img { height: 180px; }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: .55rem;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 10px;
        box-shadow: var(--shadow);
        max-height: calc(100vh - 96px);
        overflow-y: auto;
    }

    .main-nav.is-open { display: flex; }
    .main-nav a {
        justify-content: flex-start;
        min-height: 46px;
        padding: .85rem 1rem;
        border-radius: var(--radius);
    }
    .main-nav a:hover, .nav-dropdown-toggle:hover { background: var(--soft); }
    .nav-dropdown {
        display: grid;
        gap: .55rem;
        align-self: auto;
    }
    .nav-dropdown-toggle {
        justify-content: space-between;
        width: 100%;
        min-height: 46px;
        padding: .85rem 1rem;
    }
    .nav-dropdown-menu {
        position: static;
        display: none;
        grid-template-columns: 1fr;
        gap: .45rem;
        padding: .6rem;
        background: var(--soft);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }
    .nav-dropdown-menu::before { display: none; }
    .nav-dropdown.is-open .nav-dropdown-menu { display: grid; }
    .menu-toggle { display: block; margin-left: auto; }
    .header-phone { display: none; }
    .hero-grid, .page-hero-grid, .two-col, .contact-grid, .content-layout { grid-template-columns: 1fr; }
    .hero-media img, .page-hero-grid > img { height: 320px; max-height: none; }
    .service-grid, .cards-3, .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards-5, .locality-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .side-panel { position: static; }
}

@media (max-width: 640px) {
    h1 { font-size: 2rem; }
    .hero-media img, .page-hero-grid > img { height: 220px; }
    .service-hero-image { height: 220px; }
    .service-card-image { height: 190px; }
    .roof-type-image { height: 190px; }
    .service-gallery, .service-gallery-wide { grid-template-columns: 1fr; }
    .gallery-item img { height: 210px; }
    .lightbox { padding: 18px; }
    .lightbox-image {
        max-width: calc(100vw - 36px);
        max-height: calc(100vh - 110px);
    }
    .cookie-popup { padding: 14px; }
    .cookie-popup-card {
        width: min(100vw - 28px, 520px);
        padding: 18px 16px 16px;
    }
    .cookie-popup-title {
        margin-right: 46px;
        font-size: 1.1rem;
    }
    .cookie-popup-close {
        top: 8px;
        right: 8px;
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }
    .lightbox-nav {
        top: auto;
        bottom: 18px;
        transform: none;
    }

    body { padding-bottom: 68px; }
    .container, .narrow { width: min(100% - 24px, 1120px); }
    .header-inner { min-height: 66px; }
    .logo-image { width: min(190px, 48vw); }
    .main-nav { top: 66px; }
    .hero, .page-hero { padding: 38px 0; }
    .section { padding: 48px 0; }
    .service-grid, .cards-3, .process-grid, .cards-5, .locality-grid, .check-grid { grid-template-columns: 1fr; }
    .cta-band { align-items: stretch; flex-direction: column; padding: 22px; }
    .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { display: grid; }
    .mobile-call {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 60;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 50px;
        border-radius: var(--radius);
        background: var(--red);
        color: var(--white);
        font-weight: 900;
        box-shadow: 0 14px 30px rgba(210, 31, 47, .28);
    }
}
