/* ============================================================
   HSC — Home Siding Calculator
   V1 Homepage
   Updated: navbar dropdowns + hero image proportions
   ============================================================ */

:root {
    --navy: #082b4c;
    --navy-deep: #061f38;
    --navy-soft: #123f67;
    --orange: #ff5a0a;
    --orange-dark: #e84b00;
    --orange-soft: #fff1e9;
    --blue-soft: #eef5fb;
    --text: #102d4f;
    --muted: #607089;
    --border: #dce5ee;
    --white: #ffffff;
    --page: #f7f9fc;
    --shadow: 0 12px 35px rgba(8, 43, 76, 0.09);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

button {
    cursor: pointer;
}

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

/* ============================================================
   TOP BAR
   ============================================================ */

.topbar {
    min-height: 36px;
    background: var(--navy-deep);
    color: #eaf3fb;
    font-size: 12px;
}

.topbar-inner {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar-message,
.topbar-contact {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-mark {
    color: var(--orange);
    font-size: 15px;
}

.topbar-contact a {
    opacity: .95;
}

.topbar-contact a:hover {
    color: var(--orange);
}

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar {
    position: relative;
    z-index: 50;
    background: var(--white);
    border-bottom: 1px solid #edf1f5;
}

.nav-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.brand-icon {
    position: relative;
    width: 76px;
    height: 57px;
    flex: 0 0 76px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    color: var(--navy);
}

.brand-icon strong {
    position: relative;
    z-index: 2;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -2px;
}

.brand-house {
    position: absolute;
    left: 13px;
    top: 7px;
    width: 47px;
    height: 30px;
    border-left: 7px solid var(--navy);
    border-top: 7px solid var(--navy);
    transform: rotate(45deg);
    border-radius: 2px;
}

.brand-house::after {
    content: "";
    position: absolute;
    left: 22px;
    top: -8px;
    width: 25px;
    height: 8px;
    background: var(--orange);
    transform: rotate(90deg);
    transform-origin: left center;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-name {
    font-size: 23px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -1.1px;
    white-space: nowrap;
}

.brand-name span,
.footer-logo > span > span {
    color: var(--orange);
}

.brand-tagline {
    margin-top: 5px;
    color: #738096;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2px;
}

/* Desktop navigation */

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.desktop-nav > a:hover,
.nav-dropdown-trigger:hover {
    color: var(--orange);
}

/* Dropdown wrapper */

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 76px;
}

/* Dropdown trigger is deliberately a button so it is accessible
   and can later be connected to JS for tap/click behavior. */

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.nav-dropdown-trigger .chevron {
    display: inline-block;
    font-size: 13px;
    line-height: 1;
    transition: transform .18s ease;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% - 5px);
    left: 50%;
    width: 255px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--white);
    box-shadow: 0 18px 40px rgba(8, 43, 76, .16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}

.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    width: 11px;
    height: 11px;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    background: var(--white);
    transform: translateX(-50%) rotate(45deg);
}

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

.nav-dropdown:hover .chevron,
.nav-dropdown:focus-within .chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 11px;
    border-radius: 7px;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
    background: var(--blue-soft);
    color: var(--orange-dark);
    outline: none;
}

.nav-dropdown-menu .dropdown-view-all {
    margin-top: 5px;
    padding-top: 11px;
    border-top: 1px solid var(--border);
    color: #005de8;
    font-weight: 800;
}

.search-button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 9px;
    background: #f5f8fb;
    color: var(--navy);
    font-size: 25px;
    line-height: 1;
}

.search-button:hover {
    background: var(--blue-soft);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--orange);
    color: var(--white) !important;
    font-weight: 800;
    box-shadow: 0 7px 18px rgba(255, 90, 10, .17);
}

.nav-cta:hover {
    background: var(--orange-dark) !important;
}

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

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

/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    background: #edf6fd;
}

/*
   The original hero photo is portrait-ish compared with the
   shallow website hero. A full-width object-fit: cover makes
   the house appear too large.

   V1 uses the photograph as a dedicated right-side visual.
   The left side remains clean for the headline, matching the
   supplied design while preserving more of the house.
*/

.hero-image-wrap {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 68%;
    z-index: 0;
    overflow: hidden;
}

.hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 73% center;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(237, 246, 253, 1) 0%,
            rgba(237, 246, 253, .82) 9%,
            rgba(237, 246, 253, .25) 30%,
            rgba(237, 246, 253, 0) 58%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 330px;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(530px, 100%);
    padding: 40px 0 45px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .4px;
}

.hero h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(42px, 6vw, 64px);
    line-height: .96;
    letter-spacing: -2.8px;
    font-weight: 900;
}

.hero h1 span {
    display: block;
    color: var(--orange);
}

.hero-description {
    max-width: 470px;
    margin: 15px 0 17px;
    color: #173657;
    font-size: 17px;
    line-height: 1.42;
    font-weight: 500;
}

.hero-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 505px;
}

.benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
    color: var(--navy);
    font-size: 10px;
    line-height: 1.3;
    font-weight: 600;
}

.benefit-icon {
    display: grid;
    place-items: center;
    height: 30px;
    color: var(--orange);
    font-size: 28px;
    font-weight: 800;
}

/* ============================================================
   CALCULATOR
   ============================================================ */

.calculator-section {
    position: relative;
    z-index: 5;
    margin-top: -2px;
    padding: 0 0 38px;
    background: var(--page);
}

.calculator-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, .9fr);
    overflow: hidden;
    border: 1px solid #e0e8f0;
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.calculator-panel {
    padding: 21px;
}

.estimate-panel {
    padding: 21px;
    border-left: 1px solid var(--border);
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.section-heading,
.estimate-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.heading-icon,
.estimate-icon {
    color: var(--orange);
    font-size: 28px;
    font-weight: 900;
}

.section-heading h2,
.estimate-heading h2 {
    margin: 0;
    color: var(--navy);
    font-size: 19px;
    line-height: 1.1;
    font-weight: 900;
}

.section-heading p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.calculator-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 17px;
}

.tab {
    min-height: 37px;
    border: 0;
    border-radius: 6px;
    background: #edf3f8;
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
}

.tab span {
    margin-right: 5px;
}

.tab.active {
    background: var(--orange);
    color: var(--white);
}

.wall-row {
    display: grid;
    grid-template-columns: 1fr 1fr 25px;
    gap: 12px;
    align-items: end;
    margin-top: 17px;
    padding: 0 4px;
}

.field label {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
}

.field input,
.field select {
    width: 100%;
    min-height: 38px;
    border: 1px solid #cfdbe7;
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    padding: 8px 10px;
    outline: none;
    font-size: 12px;
}

.field input:focus,
.field select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 90, 10, .1);
}

.delete-row {
    height: 38px;
    border: 0;
    background: transparent;
    color: #f04444;
    font-size: 18px;
}

.add-link {
    margin: 7px 0 12px 4px;
    border: 0;
    background: transparent;
    color: #005de8;
    font-size: 11px;
    font-weight: 800;
}

.form-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 12px;
}

.field-wide {
    grid-column: 1 / -1;
}

.calculate-button {
    width: 100%;
    min-height: 45px;
    margin-top: 16px;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(90deg, var(--orange), #ff6b19);
    color: white;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 8px 17px rgba(255, 90, 10, .18);
}

.calculate-button:hover {
    background: var(--orange-dark);
}

.calculate-button span:first-child {
    margin-right: 7px;
}

.calculate-button span:last-child {
    margin-left: 7px;
}

.estimate-heading {
    padding-bottom: 13px;
    border-bottom: 1px solid #edf1f5;
}

.estimate-lines,
.estimate-details {
    display: grid;
    gap: 8px;
    padding-top: 12px;
}

.estimate-lines > div,
.estimate-details > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: var(--text);
    font-size: 11px;
}

.estimate-lines strong,
.estimate-details strong {
    white-space: nowrap;
}

.divider {
    height: 1px;
    margin: 2px 0;
    background: #edf1f5;
}

.total-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 13px;
    padding: 9px 11px;
    background: var(--orange-soft);
    color: var(--orange-dark);
}

.total-area span {
    font-size: 12px;
    font-weight: 800;
}

.total-area strong {
    font-size: 22px;
    font-weight: 900;
    white-space: nowrap;
}

.estimate-details {
    padding: 13px 0 3px;
}

.download-button {
    width: 100%;
    min-height: 38px;
    margin-top: 13px;
    border: 1px solid #cbdbea;
    border-radius: 6px;
    background: #edf5ff;
    color: var(--navy);
    font-size: 11px;
    font-weight: 900;
}

.download-button:hover {
    background: #e1eefb;
}

.estimate-note {
    margin: 10px 0 0;
    color: #566a80;
    font-size: 9px;
    line-height: 1.45;
}

/* ============================================================
   EXPLORE TOOLS
   ============================================================ */

.explore-section {
    padding: 12px 0 35px;
    background: var(--white);
}

.section-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
}

.section-title-row h2 {
    margin: 0;
    color: var(--navy);
    font-size: 23px;
    line-height: 1.15;
    font-weight: 900;
}

.section-title-row p {
    margin: 4px 0 0;
    color: var(--text);
    font-size: 13px;
}

.section-title-row > a {
    color: #005de8;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.calculator-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.tool-card {
    min-height: 190px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: white;
    box-shadow: 0 6px 16px rgba(8, 43, 76, .045);
    transition: transform .2s ease, box-shadow .2s ease;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.tool-image {
    height: 64px;
    margin-bottom: 9px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1px rgba(8, 43, 76, .08);
}

/* Siding Calculator (general) — three material swatches side by
   side, each carrying the same lap-siding line texture, signaling
   "pick any material in one tool" */
.tool-image-one {
    background-image:
        repeating-linear-gradient(to bottom,
            rgba(255,255,255,.22) 0px, rgba(255,255,255,.22) 7px,
            rgba(0,0,0,.10) 7px, rgba(0,0,0,.10) 8px),
        linear-gradient(to right,
            #b8c2c9 0%, #b8c2c9 33.33%,
            #e7d9bd 33.33%, #e7d9bd 66.66%,
            #ba8b62 66.66%, #ba8b62 100%);
}

/* Vinyl Siding — smooth, tight, glossy lap lines */
.tool-image-two {
    background-image:
        linear-gradient(115deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 45%),
        repeating-linear-gradient(to bottom,
            #eef1f3 0px, #eef1f3 6px,
            #d3d9dd 6px, #d3d9dd 7px);
}

/* Fiber Cement — matte, wider board reveal, visible vertical seams */
.tool-image-three {
    background-image:
        repeating-linear-gradient(to right,
            transparent 0px, transparent 47px,
            rgba(120,100,70,.28) 47px, rgba(120,100,70,.28) 48px),
        repeating-linear-gradient(to bottom,
            #f4ead7 0px, #f4ead7 9px,
            #e3d4b6 9px, #e3d4b6 10px);
}

/* Wood Siding — warm cedar tone, grain texture layered under
   horizontal boards */
.tool-image-four {
    background-image:
        repeating-linear-gradient(97deg,
            rgba(255,255,255,.05) 0px, rgba(255,255,255,.05) 2px,
            rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
        repeating-linear-gradient(to bottom,
            #b98a5c 0px, #b98a5c 9px,
            #97673f 9px, #97673f 10px);
}

.tool-icon-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 48px;
    margin-bottom: 9px;
    border-radius: 4px;
    background: #0c3155;
    color: white;
    font-size: 28px;
    font-weight: 900;
}

.tool-icon-card span {
    color: var(--orange);
    font-size: 20px;
}

.tool-card h3 {
    margin: 0;
    color: var(--navy);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 900;
}

.tool-card p {
    min-height: 34px;
    margin: 6px 0 9px;
    color: #52657c;
    font-size: 10px;
    line-height: 1.35;
}

.tool-card a {
    display: block;
    padding-top: 7px;
    border-top: 1px solid #edf1f5;
    color: #005de8;
    font-size: 10px;
    font-weight: 700;
}

/* ============================================================
   TRUST
   ============================================================ */

.trust-section {
    background: #eef5fb;
    border-top: 1px solid #e1eaf2;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.trust-item {
    position: relative;
    min-height: 108px;
    padding: 22px 15px;
    text-align: center;
}

.trust-item + .trust-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 24px;
    bottom: 24px;
    width: 1px;
    background: #d5e1ec;
}

.trust-icon {
    display: block;
    margin-bottom: 4px;
    color: var(--orange);
    font-size: 26px;
    line-height: 1;
}

.trust-item h3 {
    margin: 0;
    color: var(--navy);
    font-size: 12px;
    line-height: 1.25;
    font-weight: 900;
}

.trust-item p {
    margin: 3px 0 0;
    color: #52657c;
    font-size: 9px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    background: var(--navy-deep);
    color: #dce9f4;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.25fr 1fr;
    gap: 40px;
    padding: 35px 0 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    color: white;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.7px;
}

.footer-logo-mark {
    position: relative;
    width: 76px;
    height: 57px;
    flex: 0 0 76px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    color: white;
}

.footer-logo-mark strong {
    position: relative;
    z-index: 2;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -2px;
    color: white;
}

.footer-house {
    position: absolute;
    left: 13px;
    top: 7px;
    width: 47px;
    height: 30px;
    border-left: 7px solid white;
    border-top: 7px solid white;
    transform: rotate(45deg);
    border-radius: 2px;
}

.footer-house::after {
    content: "";
    position: absolute;
    left: 22px;
    top: -8px;
    width: 25px;
    height: 8px;
    background: var(--orange);
    transform: rotate(90deg);
    transform-origin: left center;
}

.footer-tagline {
    margin: 8px 0 0 85px;
    color: #8fa7bd;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.footer-column h3 {
    margin: 0 0 5px;
    color: white;
    font-size: 12px;
    font-weight: 900;
}

.footer-column a {
    color: #bdcddd;
    font-size: 10px;
}

.footer-column a:hover {
    color: var(--orange);
}

.socials {
    display: flex;
    gap: 9px;
    margin-bottom: 12px;
}

.socials a {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: white;
    color: var(--navy);
    font-size: 11px;
    font-weight: 900;
}

.contact-heading {
    margin-top: 2px !important;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 43px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: #8fa7bd;
    font-size: 9px;
}

.footer-bottom > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom a:hover {
    color: white;
}

.anchor-target {
    height: 0;
    overflow: hidden;
}

/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 980px) {
    .desktop-nav {
        gap: 13px;
        font-size: 12px;
    }

    .nav-dropdown-trigger {
        font-size: 12px;
    }

    .nav-dropdown {
        height: 76px;
    }

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

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

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 620px);
    }

    .topbar-message {
        font-size: 10px;
    }

    .topbar-contact {
        display: none;
    }

    .nav-inner {
        min-height: 67px;
    }

    .brand-icon {
        width: 53px;
        height: 43px;
        flex-basis: 53px;
    }

    .brand-icon strong {
        font-size: 20px;
    }

    .brand-house {
        left: 8px;
        top: 4px;
        width: 34px;
        height: 22px;
        border-width: 5px;
    }

    .brand-name {
        font-size: 17px;
        letter-spacing: -.8px;
    }

    .brand-tagline {
        margin-top: 3px;
        font-size: 5px;
        letter-spacing: 1.1px;
    }

    .desktop-nav {
        display: none;
    }

    .desktop-nav.mobile-open {
        position: absolute;
        top: 67px;
        left: 12px;
        right: 12px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .desktop-nav.mobile-open > a,
    .desktop-nav.mobile-open .nav-dropdown-trigger {
        min-height: 44px;
        padding: 10px 12px;
    }

    .desktop-nav.mobile-open .nav-dropdown {
        display: block;
        height: auto;
    }

    .desktop-nav.mobile-open .nav-dropdown-menu {
        position: static;
        width: auto;
        transform: none;
        margin: 0 5px 6px;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
    }

    .desktop-nav.mobile-open .nav-dropdown.is-open .nav-dropdown-menu {
        display: block;
    }

    .mobile-menu-button {
        display: block;
    }

    .hero {
        min-height: 505px;
    }

    .hero-image-wrap {
        width: 100%;
        height: 235px;
        top: auto;
        bottom: 0;
    }

    .hero-image {
        object-position: 72% center;
    }

    .hero-image-overlay {
        background:
            linear-gradient(180deg,
                rgba(238, 246, 253, 1) 0%,
                rgba(238, 246, 253, .94) 18%,
                rgba(238, 246, 253, .42) 58%,
                rgba(238, 246, 253, .04) 100%);
    }

    .hero-content {
        min-height: 505px;
        align-items: flex-start;
    }

    .hero-copy {
        padding: 35px 0 0;
        text-align: center;
    }

    .hero h1 {
        font-size: clamp(39px, 12vw, 53px);
        letter-spacing: -2px;
    }

    .hero-description {
        margin-inline: auto;
        font-size: 15px;
    }

    .hero-benefits {
        margin-inline: auto;
        gap: 4px;
    }

    .benefit {
        font-size: 8px;
    }

    .benefit-icon {
        font-size: 23px;
    }

    .calculator-section {
        padding-bottom: 28px;
    }

    .calculator-shell {
        display: block;
        border-radius: 12px;
    }

    .calculator-panel {
        padding: 17px;
    }

    .estimate-panel {
        border-top: 1px solid var(--border);
        border-left: 0;
        padding: 17px;
    }

    .section-heading h2,
    .estimate-heading h2 {
        font-size: 18px;
    }

    .wall-row {
        grid-template-columns: 1fr 1fr;
        padding: 0;
    }

    .delete-row {
        display: none;
    }

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

    .field-wide {
        grid-column: auto;
    }

    .calculator-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .section-title-row h2 {
        font-size: 21px;
    }

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

    .trust-item {
        min-height: 105px;
        padding: 18px 8px;
    }

    .trust-item:nth-child(odd)::before {
        display: none;
    }

    .trust-item:nth-child(n+3) {
        border-top: 1px solid #d5e1ec;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 18px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 13px 0;
        gap: 7px;
    }

    .footer-bottom > div {
        flex-wrap: wrap;
    }
}

@media (max-width: 420px) {
    .calculator-cards {
        grid-template-columns: 1fr;
    }

    .tool-card {
        min-height: 170px;
    }

    .hero-benefits {
        grid-template-columns: repeat(4, 1fr);
    }

    .benefit-icon {
        font-size: 20px;
    }

    .benefit {
        font-size: 7px;
    }

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

    .footer-brand {
        grid-column: auto;
    }
}

/* ============================================================
   "COMING SOON" CARDS (Explore section)
   ============================================================ */

.tool-card-soon {
    opacity: 0.72;
}

.soon-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--navy-soft);
    font-size: 12px;
    font-weight: 600;
}

/* ============================================================
   PRINT / SAVE-AS-PDF ESTIMATE
   Triggered by the "Download Estimate (PDF)" button, which calls
   window.print(). Everything is hidden except a clean summary
   built specifically for the printed page.
   ============================================================ */

.print-only {
    display: none;
}

@page {
    size: letter portrait;
    margin: 0.7in;
}

@media print {
    html, body {
        background: #fff !important;
    }

    .topbar,
    .navbar,
    .hero,
    .calculator-panel,
    .explore-section,
    .trust-section,
    .footer,
    .download-button {
        display: none !important;
    }

    body.printing-estimate .print-only {
        display: block;
    }

    body.printing-estimate .calculator-section {
        padding: 0;
    }

    body.printing-estimate .container.calculator-shell {
        width: 100%;
        display: block;
    }

    body.printing-estimate .estimate-panel {
        box-shadow: none;
        border: none;
        padding: 0;
        width: 100%;
        max-width: none;
    }

    .print-header {
        border-bottom: 2px solid var(--navy);
        padding-bottom: 14px;
        margin-bottom: 24px;
    }

    .print-header h1 {
        font-size: 22px;
        margin: 0 0 6px;
        color: var(--navy);
    }

    .print-header p {
        margin: 0;
        color: var(--muted);
        font-size: 13px;
    }

    body.printing-estimate .estimate-heading {
        margin-bottom: 12px;
    }

    body.printing-estimate .estimate-lines,
    body.printing-estimate .estimate-details {
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 16px 20px;
        margin-bottom: 16px;
    }

    body.printing-estimate .estimate-lines > div,
    body.printing-estimate .estimate-details > div {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        font-size: 14px;
        border-bottom: 1px solid var(--border);
    }

    body.printing-estimate .estimate-lines > div:last-child,
    body.printing-estimate .estimate-details > div:last-child {
        border-bottom: none;
    }

    body.printing-estimate .total-area {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: var(--blue-soft);
        border-radius: 8px;
        padding: 14px 20px;
        margin-bottom: 16px;
        font-size: 16px;
        font-weight: 700;
    }

    body.printing-estimate .total-area strong {
        font-size: 22px;
        color: var(--orange);
    }

    body.printing-estimate .estimate-note {
        font-size: 12px;
        color: var(--muted);
        border-top: 1px solid var(--border);
        padding-top: 14px;
    }
}

/* ============================================================
   MATERIAL-SPECIFIC CALCULATOR PAGES
   ============================================================ */

.locked-material {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 48px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--blue-soft);
    color: var(--navy);
    font-weight: 600;
}

.locked-material span {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

.tool-switch-note {
    margin-top: 14px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

.tool-switch-note a {
    color: var(--orange);
    font-weight: 600;
}

/* ============================================================
   LEGAL / POLICY DOCUMENT LAYOUT
   A proper long-form document pattern (sticky contents rail +
   numbered clauses) instead of generic stacked cards — legal
   text is read top-to-bottom as a sequence, not browsed.
   ============================================================ */

.legal-page {
    padding: 56px 0 96px;
    background: #fff;
}

.legal-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 680px);
    gap: 64px;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 96px;
}

.legal-toc-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 12px;
}

.legal-toc nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-left: 2px solid var(--border);
}

.legal-toc a {
    padding: 7px 0 7px 16px;
    margin-left: -2px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--muted);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
    color: var(--navy);
    border-left-color: var(--orange);
}

.legal-header {
    margin-bottom: 6px;
}

.legal-updated {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    background: var(--blue-soft);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.legal-header h1 {
    font-size: 34px;
    line-height: 1.15;
    margin: 0 0 12px;
    color: var(--navy);
    letter-spacing: -0.5px;
}

.legal-standfirst {
    font-size: 17px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 60ch;
    margin: 0;
}

.legal-callout {
    display: flex;
    gap: 10px;
    padding: 18px 22px;
    border-left: 3px solid var(--orange);
    background: var(--blue-soft);
    border-radius: 0 10px 10px 0;
    margin: 28px 0 6px;
    font-size: 15px;
    line-height: 1.65;
    color: #133357;
    max-width: 65ch;
}

.legal-callout strong {
    color: var(--orange);
    white-space: nowrap;
}

.legal-sections {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.legal-sections > li {
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 24px;
}

.legal-sections > li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.legal-sections h2 {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 19px;
    color: var(--navy);
    margin: 0 0 12px;
}

.legal-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--orange);
    font-variant-numeric: tabular-nums;
    flex: 0 0 auto;
}

.legal-sections p {
    font-size: 15.5px;
    line-height: 1.75;
    color: #33465e;
    max-width: 65ch;
    margin: 0 0 12px;
}

.legal-sections p:last-child {
    margin-bottom: 0;
}

.legal-fineprint {
    font-size: 13px !important;
    color: var(--muted) !important;
    line-height: 1.6 !important;
}

.legal-footer-nav {
    margin-top: 44px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
}

.legal-footer-nav p {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    margin: 0 0 12px;
}

.legal-related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legal-related-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    background: var(--blue-soft);
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s ease;
}

.legal-related-links a:hover {
    background: #e3edf7;
}

.legal-related-links a[aria-current="page"] {
    background: var(--navy);
    color: #fff;
}

@media (max-width: 880px) {
    .legal-shell {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .legal-toc {
        position: static;
        order: -1;
    }

    .legal-toc-label {
        margin-bottom: 8px;
    }

    .legal-toc nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        border-left: none;
        border-bottom: 1px solid var(--border);
        padding-bottom: 10px;
        gap: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .legal-toc a {
        flex: 0 0 auto;
        white-space: nowrap;
        margin-left: 0;
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 6px 12px;
    }

    .legal-toc a:hover,
    .legal-toc a:focus-visible {
        border-bottom-color: var(--orange);
        border-left-color: transparent;
    }

    .legal-header h1 {
        font-size: 27px;
    }
}

/* ============================================================
   FAQ ACCORDION (cost-guide sections on calculator pages)
   ============================================================ */

.faq-list {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    padding: 4px 20px;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 28px 16px 0;
    font-weight: 600;
    color: var(--navy);
    font-size: 15.5px;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 14px;
    font-size: 20px;
    color: var(--orange);
    font-weight: 400;
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-item p {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.7;
    color: #33465e;
}

/* ============================================================
   TRIM & ACCESSORIES / PACKAGING (estimate panel additions)
   ============================================================ */

.estimate-subheading {
    margin: 4px 0 2px;
    padding-top: 12px;
    border-top: 1px solid #edf1f5;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--navy);
}

body.printing-estimate .estimate-subheading {
    font-size: 14px;
    margin-top: 6px;
    padding-top: 14px;
}

.tab-help {
    margin: 10px 0 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--muted);
}
