:root {
    --navy: #1a2b4a;
    --navy-dark: #0f1a2e;
    --panel: #e8eef5;
    --panel-soft: #f4f7fb;
    --accent: #c45c26;
    --accent-hover: #a84d1f;
    --gold: #e8a317;
    --text: #1c2838;
    --muted: #5a6b7d;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 12px 40px rgba(26, 43, 74, 0.1);
    --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
ul { list-style: none; }

.sale-bar {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 10px 16px;
    font-size: 0.82rem;
    font-weight: 600;
}
.sale-bar strong { color: #7dd3fc; }
.sale-bar a { color: #7dd3fc; text-decoration: none; }

.site-header {
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--navy);
}

.brand img,
.brand-mark {
    height: 44px;
    width: 44px;
    border-radius: 10px;
    flex-shrink: 0;
}

.brand-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    font-weight: 700;
    line-height: 1.15;
    max-width: 11ch;
}
.brand-text span { color: var(--accent); }

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 600;
}
.nav a:hover { color: var(--accent); }
.nav .nav-cta {
    background: var(--navy);
    color: var(--white) !important;
    padding: 10px 14px;
    border-radius: 8px;
}
.nav .nav-cta:hover { background: var(--navy-dark); }

.dropdown {
    position: relative;
}
.dropdown summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
}
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown[open] summary { color: var(--accent); }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 8px;
    z-index: 60;
}
.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
}
.dropdown-menu a:hover { background: var(--panel-soft); }

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    max-width: var(--max);
    margin: 0 auto;
    padding: 28px 20px 48px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: start;
}

.panel {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 28px;
}

.panel h1, .page-hero h1 {
    font-size: clamp(1.55rem, 2.8vw, 2.15rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 10px;
}

.sub, .lede {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 18px;
}

.problem-list, .benefit-list, .check-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 22px;
}

.problem-list li, .check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy);
}

.icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(26, 43, 74, 0.08);
}
.icon-wrap svg { width: 22px; height: 22px; stroke: var(--accent); }

.benefit-list li, .check-list li {
    font-weight: 500;
    color: var(--text);
}
.benefit-list li::before, .check-list li::before {
    content: '';
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c45c26' stroke-width='2.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}

.cta, .btn {
    display: inline-block;
    padding: 14px 22px;
    background: var(--navy);
    color: var(--white) !important;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.cta:hover, .btn:hover {
    background: var(--navy-dark);
    transform: translateY(-1px);
}
.cta-block { width: 100%; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline {
    background: transparent;
    color: var(--navy) !important;
    border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--panel); }

.guarantee {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1.5px solid #d8e0ea;
    border-radius: 10px;
    background: var(--panel-soft);
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
}
.guarantee strong { color: var(--navy); }

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.stars { color: var(--gold); letter-spacing: 1px; }
.rating-text { font-size: 0.88rem; color: var(--muted); }
.rating-text strong { color: var(--text); }

.hero-card h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    color: var(--navy);
    margin-bottom: 8px;
}
.hero-card .hook { color: var(--muted); margin-bottom: 18px; }

.visual {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--panel-soft);
    aspect-ratio: 4/3;
}
.visual img { width: 100%; height: 100%; object-fit: cover; }

.page-hero {
    background: linear-gradient(135deg, var(--panel) 0%, var(--panel-soft) 100%);
    padding: 40px 0 36px;
    border-bottom: 1px solid #e2e8f0;
}
.page-hero .breadcrumb {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 12px;
}
.page-hero .breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}
.page-hero .breadcrumb a:hover { color: var(--accent); }

.section {
    padding: 48px 0;
}
.section.alt { background: var(--panel-soft); }
.section h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
    color: var(--navy);
    margin-bottom: 12px;
}
.section h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin: 22px 0 8px;
}
.section p { color: var(--text); margin-bottom: 12px; }
.section .muted { color: var(--muted); }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 22px;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 18px;
}

.card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 4px 16px rgba(26, 43, 74, 0.04);
    height: 100%;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.15s, box-shadow 0.15s;
}
a.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.05rem;
}
.card p {
    font-size: 0.92rem;
    color: var(--muted);
    margin-bottom: 0;
}
.card .more {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent);
}

.prose { max-width: 720px; }
.prose li {
    margin-bottom: 8px;
    padding-left: 0;
}

.faq details {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
}
.faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--navy);
}
.faq details p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.95rem;
}

.cta-band {
    background: var(--navy);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: #b8c9de; margin-bottom: 18px; }
.cta-band .btn { background: var(--accent); }
.cta-band .btn:hover { background: var(--accent-hover); }

.site-footer {
    background: var(--navy-dark);
    color: #9fb0c4;
    padding: 40px 20px 28px;
    font-size: 0.9rem;
}
.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}
.site-footer h4 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.site-footer a {
    color: #9fb0c4;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}
.site-footer a:hover { color: #7dd3fc; }
.site-footer .legal {
    max-width: var(--max);
    margin: 28px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8rem;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 8px;
}
.pill {
    background: var(--white);
    border: 1px solid #d8e0ea;
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }

.two-col-content {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 28px;
    align-items: start;
}

.side-card {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 22px;
    position: sticky;
    top: 88px;
}
.side-card h3 { margin-top: 0; }
.side-card p { font-size: 0.92rem; color: var(--muted); }

.enquiry-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}
.enquiry-form label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.enquiry-form input,
.enquiry-form textarea,
.enquiry-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c9d4e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
}
.enquiry-form textarea { min-height: 90px; resize: vertical; }

/* ── Landing hero (matches original roofing-landing.html top) ── */
.landing-top {
    background: var(--white);
}
.landing-top .sale-bar a {
    color: #7dd3fc;
    text-decoration: none;
}
.landing-logo-wrap {
    text-align: center;
    padding: 22px 20px 8px;
}
.landing-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
    text-decoration: none;
    display: inline-block;
}
.landing-logo span { color: var(--accent); }
.landing-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    padding: 0 16px 12px;
    font-size: 0.88rem;
}
.landing-nav a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
}
.landing-nav a:hover { color: var(--accent); }

.landing-hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 20px 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}
.landing-hero .panel {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 28px 28px 24px;
}
.landing-hero .panel h1 {
    font-size: clamp(1.55rem, 2.8vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 10px;
}
.landing-hero .panel .sub {
    color: var(--muted);
    font-size: 0.98rem;
    margin-bottom: 20px;
}
.landing-hero .problem-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.landing-hero .problem-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy);
}
.landing-hero .icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(26, 43, 74, 0.08);
}
.landing-hero .icon-wrap svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
}

.visual.carousel {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3.2;
    background: var(--panel-soft);
    box-shadow: var(--shadow);
}
.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}
.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}
.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.carousel-slide.map-slide img {
    object-fit: contain;
    background: #f8fafc;
    padding: 10px;
}
.visual-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--navy);
    max-width: calc(100% - 100px);
}
.carousel-nav {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    gap: 6px;
}
.carousel-nav button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--navy);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(26, 43, 74, 0.15);
}
.carousel-nav button:hover { background: var(--white); }
.carousel-dots {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 2;
    display: flex;
    gap: 6px;
}
.carousel-dots button {
    width: 7px;
    height: 7px;
    border: none;
    border-radius: 50%;
    padding: 0;
    background: rgba(26, 43, 74, 0.25);
    cursor: pointer;
}
.carousel-dots button.active {
    background: var(--navy);
    transform: scale(1.15);
}

.offer-col { padding-top: 4px; }
.offer-col h2 {
    font-size: clamp(1.45rem, 2.5vw, 1.85rem);
    font-weight: 700;
    line-height: 1.22;
    color: var(--navy);
    margin-bottom: 8px;
}
.offer-col .hook {
    font-size: 0.98rem;
    color: var(--muted);
    margin-bottom: 20px;
}
.offer-col .benefit-list {
    list-style: none;
    margin-bottom: 24px;
}
.offer-col .benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 11px;
    font-size: 0.92rem;
    color: var(--text);
}
.offer-col .benefit-list li::before {
    content: '';
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c45c26' stroke-width='2.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.offer-col .cta {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: var(--navy);
    color: var(--white) !important;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.offer-col .cta:hover {
    background: var(--navy-dark);
    transform: translateY(-1px);
}
.offer-col .enquiry-form {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.offer-col .enquiry-form label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.offer-col .enquiry-form input,
.offer-col .enquiry-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #cdd8e6;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
}
.offer-col .enquiry-form input:focus,
.offer-col .enquiry-form textarea:focus {
    outline: none;
    border-color: var(--navy);
}
.offer-col .enquiry-form textarea {
    min-height: 96px;
    resize: vertical;
}
.cta-secondary {
    display: block;
    width: 100%;
    padding: 13px 20px;
    background: var(--white);
    color: var(--navy);
    border: 2px solid var(--navy);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.cta-secondary:hover {
    background: var(--navy);
    color: var(--white);
}
.offer-col .guarantee {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1.5px solid var(--panel);
    border-radius: 10px;
    background: var(--panel-soft);
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
}
.offer-col .guarantee strong { color: var(--navy); }
.secondary-link {
    display: block;
    margin-top: 14px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--muted);
    text-decoration: none;
}
.secondary-link:hover { color: var(--accent); text-decoration: underline; }

@media (max-width: 900px) {
    .hero, .grid-3, .grid-2, .footer-inner, .two-col-content {
        grid-template-columns: 1fr;
    }
    .landing-hero {
        grid-template-columns: 1fr;
    }
    .offer-col { order: -1; }
    .side-card { position: static; }
    .nav { width: 100%; }
}
@media (max-width: 480px) {
    .landing-hero .panel { padding: 20px 18px; }
    .landing-logo { font-size: 1.55rem; }
}

/* ── Tools & calculators ── */
.calc-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: start;
}
.calc-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--panel);
    border-radius: var(--radius);
    padding: 22px;
}
.calc-form label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.calc-form .field { display: flex; flex-direction: column; gap: 6px; }
.calc-form .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.calc-form input,
.calc-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c9d4e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--white);
}
.calc-form .check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--navy);
    text-transform: none;
    letter-spacing: 0;
}
.calc-form .check-row input { width: auto; }
.calc-result {
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius);
    padding: 22px;
}
.calc-result h3 {
    color: #7dd3fc;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}
.calc-result dl {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 16px;
    font-size: 0.95rem;
}
.calc-result dt { color: #b6c5d6; }
.calc-result dd {
    font-weight: 700;
    text-align: right;
    color: var(--white);
}
.calc-result .calc-big {
    font-size: 1.45rem;
    color: #fff;
    margin: 8px 0 4px;
}
.calc-result .calc-note {
    margin-top: 16px;
    font-size: 0.82rem;
    color: #9fb0c3;
    line-height: 1.45;
}
.calc-error {
    color: #b91c1c;
    font-size: 0.88rem;
    font-weight: 600;
    min-height: 1.2em;
}
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.tool-card {
    display: block;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 22px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: border-color 0.15s, transform 0.15s;
}
.tool-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.tool-card .tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--panel);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 12px;
}
.tool-card h3 {
    color: var(--navy);
    font-size: 1.05rem;
    margin-bottom: 8px;
}
.tool-card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}
.tool-card .more {
    display: inline-block;
    margin-top: 12px;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.88rem;
}
.disclaimer-box {
    margin-top: 18px;
    padding: 14px 16px;
    background: #fff8eb;
    border: 1px solid #f0d59a;
    border-radius: 10px;
    font-size: 0.88rem;
    color: #6b5420;
}
@media (max-width: 820px) {
    .calc-layout { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: 1fr; }
    .calc-form .field-row { grid-template-columns: 1fr; }
}

/* ── Map measure tool ── */
.mm-toolbar {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 18px;
    margin-bottom: 14px;
    align-items: start;
}
.mm-search-wrap label,
.mm-pitch-wrap label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.mm-search-row {
    display: flex;
    gap: 10px;
}
.mm-search-row input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #c9d4e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
}
.mm-pitch-wrap input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c9d4e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.mm-check {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--navy);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.mm-check input { margin-top: 3px; }
.mm-search-wrap { position: relative; }
.mm-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1000;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 0 0 10px 10px;
    box-shadow: var(--shadow);
    max-height: 260px;
    overflow: auto;
}
.mm-suggest-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    background: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--navy);
    cursor: pointer;
}
.mm-suggest-item:hover,
.mm-suggest-item:focus {
    background: var(--panel-soft);
    outline: none;
}
.mm-map {
    height: min(62vh, 520px);
    min-height: 360px;
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
    z-index: 1;
    box-shadow: var(--shadow);
}
.mm-hint {
    font-size: 0.92rem;
    color: var(--muted);
    margin: 0 0 10px;
}
.mm-hint .muted { color: var(--muted); font-size: 0.88rem; }
.mm-actions { margin-top: 12px; }
.mm-send-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.mm-steps {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.55;
}
.mm-steps li { margin-bottom: 8px; }
.leaflet-container { font-family: inherit; }
@media (max-width: 820px) {
    .mm-toolbar { grid-template-columns: 1fr; }
    .mm-map { min-height: 300px; height: 50vh; }
    .mm-search-row { flex-direction: column; }
}

/* ── Build & price page ── */
.bp-page { padding-bottom: 72px; }
.bp-section { padding-top: 20px; }
.bp-hero { padding-bottom: 8px; }
.bp-hero .lede { max-width: 52rem; margin-bottom: 0; }
.bp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr) minmax(0, 0.95fr);
    gap: 16px;
    align-items: start;
}
.bp-col { min-width: 0; }
.bp-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 0;
    box-shadow: var(--shadow);
}
.bp-card-compact { padding: 14px; }
.bp-price-card {
    position: sticky;
    top: 72px;
}
.bp-card-title {
    font-size: 1.05rem;
    color: var(--navy);
    margin: 0 0 4px;
}
.bp-card-sub {
    color: var(--muted);
    font-size: 0.82rem;
    margin: 0 0 10px;
}
.bp-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 6px;
}
.bp-block { margin-bottom: 12px; }
.bp-block:last-of-type { margin-bottom: 10px; }
.bp-area-field input {
    width: 100%;
    font-size: 1.35rem;
    font-weight: 700;
    padding: 10px 12px;
    border: 1px solid #c9d4e0;
    border-radius: 8px;
    color: var(--navy);
}
.bp-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.bp-toggle {
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 6px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: var(--panel-soft);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: 0.15s;
    line-height: 1.2;
}
.bp-toggle:hover { border-color: var(--accent); color: var(--navy); }
.bp-toggle.is-active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
.bp-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 72px;
    padding: 8px 4px;
}
.bp-profile-icon {
    display: block;
    width: 42px;
    height: 12px;
    background: repeating-linear-gradient(
        90deg,
        currentColor 0 3px,
        transparent 3px 6px
    );
    opacity: 0.7;
    border-radius: 2px;
}
.bp-trimdek {
    background: repeating-linear-gradient(
        90deg,
        currentColor 0 8px,
        transparent 8px 11px
    );
}
.bp-kliplok {
    background: linear-gradient(
        90deg,
        currentColor 0 12%,
        transparent 12% 20%,
        currentColor 20% 32%,
        transparent 32% 40%,
        currentColor 40% 52%,
        transparent 52% 60%,
        currentColor 60% 72%,
        transparent 72% 80%,
        currentColor 80% 100%
    );
}
.bp-colours {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
}
.bp-swatch {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 999px;
    border: 2px solid #d0d7e2;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s, border-color 0.15s;
}
.bp-swatch:hover { transform: scale(1.08); }
.bp-swatch.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--accent);
    transform: scale(1.08);
}
.bp-addons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}
.bp-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--navy);
    margin: 0;
    cursor: pointer;
}
/* Roof colour preview — roof plane only (no house) */
.bp-preview {
    position: relative;
    height: 88px;
    margin-top: 10px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    background: #eef2f6;
}
.bp-preview-sky {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #c8dff0 0%, #e8eef5 55%, #dfe6ee 100%);
}
.bp-preview-roof {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 18%;
    bottom: 28%;
    background-color: #e4e2d5;
    border-radius: 2px 2px 3px 3px;
    box-shadow:
        0 4px 10px rgba(20, 30, 45, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: perspective(220px) rotateX(18deg);
    transform-origin: center bottom;
    overflow: hidden;
}
.bp-preview-ribs {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.35;
    background: repeating-linear-gradient(
        90deg,
        transparent 0,
        transparent 5px,
        rgba(0, 0, 0, 0.22) 5px,
        rgba(0, 0, 0, 0.22) 6px
    );
}
/* Profile-specific rib spacing */
.bp-preview[data-profile="corrugated"] .bp-preview-ribs {
    background: repeating-linear-gradient(
        90deg,
        transparent 0,
        transparent 4px,
        rgba(0, 0, 0, 0.2) 4px,
        rgba(0, 0, 0, 0.2) 5px
    );
}
.bp-preview[data-profile="trimdek"] .bp-preview-ribs {
    background: repeating-linear-gradient(
        90deg,
        transparent 0,
        transparent 10px,
        rgba(0, 0, 0, 0.28) 10px,
        rgba(0, 0, 0, 0.28) 13px
    );
}
.bp-preview[data-profile="kliplok"] .bp-preview-ribs {
    background: repeating-linear-gradient(
        90deg,
        transparent 0,
        transparent 14px,
        rgba(0, 0, 0, 0.3) 14px,
        rgba(0, 0, 0, 0.3) 18px
    );
}
.bp-preview #bp-preview-label {
    position: relative;
    z-index: 2;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #1a2b4a !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    text-shadow: none;
}
.bp-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin-bottom: 12px;
}
.bp-summary div {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 0.78rem;
}
.bp-summary-wide { grid-column: 1 / -1; }
.bp-summary span { color: var(--muted); }
.bp-summary strong { color: var(--navy); font-size: 0.9rem; }

/* Estimate box — lighter blue panel, white total + drop shadow */
.bp-price-hero {
    background: linear-gradient(165deg, #5b9fd4 0%, #4a8fc8 45%, #3d7eb8 100%);
    color: #fff;
    border-radius: 12px;
    padding: 16px 16px 14px;
    margin-bottom: 12px;
    border: 1px solid #7eb6e0;
    box-shadow: 0 8px 22px rgba(45, 100, 150, 0.22);
}
.bp-price-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #eaf5ff;
    margin-bottom: 4px;
}
.bp-total {
    font-size: clamp(1.7rem, 2.6vw, 2.15rem);
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
    color: #ffffff !important;
    line-height: 1.1;
    text-shadow:
        0 1px 0 rgba(15, 40, 70, 0.25),
        0 2px 8px rgba(15, 40, 70, 0.35),
        0 4px 14px rgba(15, 40, 70, 0.2);
}
.bp-scope-note {
    font-size: 0.78rem;
    line-height: 1.35;
    color: #f0f7ff;
    margin: 0 0 10px;
    font-weight: 500;
    opacity: 0.95;
}
.bp-range-line {
    font-size: 0.9rem;
    color: #eef6ff;
    margin: 0 0 10px;
    font-weight: 500;
}
.bp-range-line strong {
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(15, 40, 70, 0.25);
}
.bp-price-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}
.bp-price-meta span {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a3a5c;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    padding: 5px 10px;
    line-height: 1.2;
    box-shadow: 0 1px 4px rgba(20, 50, 80, 0.12);
}
.bp-scope-hint {
    font-size: 0.72rem;
    color: var(--muted);
    margin: 6px 0 0;
    line-height: 1.35;
}
.bp-breakdown-cta {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: var(--panel-soft);
    text-align: center;
}
.bp-breakdown-cta p {
    font-size: 0.88rem;
    color: var(--navy);
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.35;
}
.bp-breakdown-cta .btn {
    font-size: 0.88rem;
    padding: 10px 14px;
}
.bp-disclaimer {
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0 0 10px;
    line-height: 1.4;
}
.bp-cta-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.bp-cta-row .cta,
.bp-cta-row .btn {
    text-align: center;
    width: 100%;
}
.bp-map {
    min-height: 280px;
    height: min(38vh, 360px);
}
.bp-mm-toolbar {
    margin-top: 10px;
    grid-template-columns: 1fr;
    gap: 10px;
}
.bp-mm-toolbar .mm-search-row .cta {
    padding: 10px 14px;
    font-size: 0.85rem;
}
.bp-map-result { margin-top: 10px; padding: 12px; }
.mm-hint-tight { margin-top: -4px; }
.mm-link-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}
.bp-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: linear-gradient(90deg, #4a8fc8 0%, #3d7eb8 100%);
    color: #fff;
    border-top: 1px solid #7eb6e0;
    box-shadow: 0 -4px 18px rgba(45, 100, 150, 0.2);
    backdrop-filter: blur(8px);
}
.bp-sticky-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.bp-sticky-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #eaf5ff;
}
.bp-sticky strong,
#bp-sticky-total {
    font-size: 1.25rem;
    margin-right: 8px;
    color: #ffffff !important;
    text-shadow:
        0 1px 0 rgba(15, 40, 70, 0.25),
        0 2px 8px rgba(15, 40, 70, 0.35);
}
.bp-sticky-meta {
    color: #eef6ff;
    font-size: 0.85rem;
    font-weight: 600;
}
.bp-sticky .cta {
    background: #fff;
    color: #1a3a5c !important;
    box-shadow: 0 2px 8px rgba(15, 40, 70, 0.18);
}
.bp-sticky .cta:hover {
    background: #f0f7ff;
}
/* Site header Pricing pill — light blue */
.nav-pricing {
    background: #4a8fc8 !important;
    color: #fff !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
}
.nav-pricing:hover {
    background: #3d7eb8 !important;
    color: #fff !important;
}
/* Index landing menu: same shape as other links, light blue bold text */
.landing-nav .nav-pricing {
    background: transparent !important;
    color: #4a8fc8 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-weight: 700 !important;
    font-size: inherit;
}
.landing-nav .nav-pricing:hover {
    background: transparent !important;
    color: #2f6fa8 !important;
}
@media (max-width: 1100px) {
    .bp-layout {
        grid-template-columns: 1fr 1fr;
    }
    .bp-col-price {
        grid-column: 1 / -1;
    }
    .bp-price-card { position: static; }
}
@media (max-width: 780px) {
    .bp-layout { grid-template-columns: 1fr; }
    .bp-col-price { grid-column: auto; }
    .bp-colours { grid-template-columns: repeat(8, 1fr); }
    .bp-map { height: 46vh; min-height: 260px; }
}
@media (max-width: 520px) {
    .bp-colours { grid-template-columns: repeat(6, 1fr); }
    .bp-summary { grid-template-columns: 1fr 1fr; }
}
