:root {
    --bg: #f4f1eb;
    --surface: #ffffff;
    --surface-alt: #f8f5ef;
    --text: #171717;
    --muted: #60584d;
    --line: rgba(23, 23, 23, 0.12);
    --gold: #b68a44;
    --gold-soft: rgba(182, 138, 68, 0.14);
    --dark: #151515;
    --dark-soft: #202020;
    --shadow: 0 22px 48px rgba(0, 0, 0, 0.08);
    --max: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Work Sans', sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f7f4ee 0%, #efe7dc 100%);
    line-height: 1.6;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

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

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid #e5e7eb;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.header-content {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    min-height: 76px;
    width: min(calc(100% - 2rem), 1460px);
    margin: 0 auto;
    padding: 0.35rem 3rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex: 0 0 auto;
}

.brand img {
    width: 270px;
    max-width: 100%;
    height: auto;
    flex: 0 0 auto;
}

.brand-copy {
    display: none;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.3rem;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 1.25rem;
}

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

.nav-dropdown-toggle {
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 0.93rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    white-space: nowrap;
    cursor: pointer;
    padding: 0;
}

.nav-dropdown-toggle::after,
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.35rem;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-dropdown-toggle:hover::after,
.nav-dropdown.open .nav-dropdown-toggle::after,
.nav-dropdown-toggle.active::after,
.main-nav a.active::after,
.main-nav a:hover::after {
    transform: scaleX(1);
}

.nav-dropdown-toggle.active,
.nav-dropdown-toggle:hover,
.main-nav a {
    color: var(--text);
    font-size: 0.93rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    white-space: nowrap;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--text);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    min-width: 220px;
    display: grid;
    gap: 0.15rem;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 60;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.dropdown-menu a {
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: rgba(182, 138, 68, 0.12);
}

.header-cta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex: 0 0 auto;
    min-width: 235px;
}

.phone {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.95rem 1.5rem;
    border: 1px solid transparent;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--dark);
    color: #fff;
    box-shadow: 0 14px 28px rgba(21, 21, 21, 0.18);
}

.btn-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.btn-light {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
}

.hero {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 15, 15, 0.2) 0%, rgba(15, 15, 15, 0.72) 78%),
        linear-gradient(120deg, rgba(10, 10, 10, 0.15) 0%, rgba(182, 138, 68, 0.12) 100%);
}

.hero-image {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.03);
}

.hero-content {
    position: relative;
    padding: 7rem 0 5rem;
    width: min(calc(100% - 2rem), var(--max));
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 800;
}

.hero h1 {
    margin: 0;
    max-width: 12ch;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.9rem, 7vw, 5.3rem);
    line-height: 0.96;
}

.hero p {
    max-width: 58rem;
    font-size: clamp(1.05rem, 2vw, 1.26rem);
    margin: 1.2rem 0 0;
    color: rgba(255, 255, 255, 0.88);
}

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

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.35rem;
}

.trust-strip span {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.section {
    padding: 5rem 0;
}

.section-surface {
    background: var(--surface);
}

.section-alt {
    background: var(--surface-alt);
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr);
    gap: 2rem;
    align-items: start;
}

.intro-copy h2,
.section-header h2,
.cta-panel h2,
.other-services h2 {
    margin: 0 0 1rem;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.02;
}

.intro-copy p,
.detail-card p,
.jobsite-card-content p,
.cta-panel p,
.other-services p {
    color: var(--muted);
}

.highlight-card {
    background: linear-gradient(180deg, rgba(182, 138, 68, 0.12) 0%, rgba(182, 138, 68, 0.03) 100%), var(--surface);
    border: 1px solid rgba(182, 138, 68, 0.22);
    border-radius: 28px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.highlight-card h3,
.detail-card h3,
.jobsite-card-content h3,
.other-service-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.highlight-list {
    margin: 1rem 0 1.4rem;
    padding-left: 1.1rem;
    color: var(--muted);
}

.highlight-list li + li {
    margin-top: 0.45rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.detail-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
}

.detail-card ul {
    padding-left: 1.1rem;
    margin: 0;
    color: var(--muted);
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.section-label {
    display: inline-block;
    margin-bottom: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: var(--gold);
}

.jobsite-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.jobsite-card {
    position: relative;
    min-height: 330px;
    border: 0;
    border-radius: 28px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    background-position: center;
    background-size: cover;
    box-shadow: var(--shadow);
    text-align: left;
}

.jobsite-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.14) 0%, rgba(12, 12, 12, 0.78) 100%);
}

.jobsite-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    pointer-events: none;
}

.jobsite-card:hover .jobsite-card-content {
    transform: translateY(-4px);
}

.jobsite-card-content {
    position: absolute;
    left: 1.4rem;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: 1;
    color: #fff;
    transition: transform 0.2s ease;
}

.jobsite-card-content p {
    color: rgba(255, 255, 255, 0.82);
}

.jobsite-card-meta {
    display: inline-flex;
    margin-top: 0.9rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cta-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto;
    gap: 1.5rem;
    align-items: center;
    background: var(--dark);
    color: #fff;
    border-radius: 32px;
    padding: 2.4rem;
    box-shadow: 0 24px 44px rgba(21, 21, 21, 0.22);
}

.cta-panel p {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: flex-end;
}

.quote-form {
    background: #fff;
    padding: 4rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
    border-top: 4px solid var(--gold);
    border-radius: 32px;
}

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

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(23, 23, 23, 0.12);
    border-radius: 18px;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    background: #fff;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: #fff;
}

.service-options {
    background: #fff;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(23, 23, 23, 0.12);
    border-radius: 24px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
}

.quote-form-note {
    margin: 0 0 1.5rem;
    text-align: center;
    color: var(--muted);
}

.quote-form-note a {
    color: var(--text);
    font-weight: 700;
}

.quote-submit-button {
    width: 100%;
    justify-content: center;
    padding: 1.2rem;
}

#quote-result {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
    padding: 3rem;
    text-align: center;
    border-radius: 32px;
    color: #fff;
}

#quote-result p {
    color: rgba(255, 255, 255, 0.82);
}

.other-services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
}

.other-service-card {
    border-radius: 24px;
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 1.35rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
}

.other-service-card.active {
    border-color: rgba(182, 138, 68, 0.4);
    background: linear-gradient(180deg, rgba(182, 138, 68, 0.1) 0%, rgba(182, 138, 68, 0.02) 100%);
}

.other-service-card p {
    margin-bottom: 1rem;
}

.footer {
    background: #fff;
    color: var(--steel);
    padding: 4.5rem 0 3rem;
    border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.footer-classic {
    text-align: center;
}

.footer-logo {
    width: 270px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 1.75rem;
    display: block;
}

.footer-tagline {
    margin: 0 0 0.9rem;
    font-size: 1.2rem;
    color: var(--coal);
}

.footer-trust {
    margin: 0;
    color: var(--steel);
    font-size: 0.98rem;
    line-height: 1.8;
}

.footer-copy {
    margin: 2.5rem 0 0;
    color: rgba(26, 26, 26, 0.5);
    font-size: 0.92rem;
}

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 100;
    background: rgba(12, 12, 12, 0.88);
    padding: 2rem;
}

.lightbox.open {
    display: grid;
    place-items: center;
}

.lightbox-panel {
    width: min(1120px, 100%);
    max-height: calc(100vh - 4rem);
    background: #111;
    color: #fff;
    border-radius: 28px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.4);
}

.lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.lightbox-close {
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 1.25rem;
    cursor: pointer;
}

.lightbox-grid {
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.lightbox-grid img {
    width: 100%;
    border-radius: 18px;
    background: #1b1b1b;
}

@media (max-width: 1080px) {
    .header-content {
        grid-template-columns: auto minmax(0, 1fr) auto;
        min-height: 62px;
        padding: 0.1rem 1.5rem;
        gap: 1rem;
    }

    .brand img {
        width: 220px;
    }

    .main-nav {
        gap: 1.35rem;
        padding: 0 0.75rem;
    }

    .main-nav a,
    .nav-dropdown-toggle {
        font-size: 0.84rem;
    }

    .header-cta {
        min-width: 210px;
    }

    .detail-grid,
    .jobsite-grid,
    .other-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-flex;
    }

    .header-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        min-height: 0;
        padding: 0.3rem 1.5rem;
    }

    .main-nav,
    .header-cta {
        width: 100%;
        display: none;
    }

    .main-nav.open,
    .header-cta.open {
        display: flex;
    }

    .main-nav {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 1rem;
        padding-top: 0.4rem;
    }

    .nav-dropdown {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-dropdown-toggle {
        font-size: 0.88rem;
    }

    .dropdown-menu {
        position: static;
        left: auto;
        min-width: 0;
        width: 100%;
        margin-top: 0.75rem;
        padding: 0.6rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        background: rgba(182, 138, 68, 0.08);
    }

    .nav-dropdown.open .dropdown-menu {
        display: grid;
    }

    .header-cta {
        justify-content: flex-start;
        flex-wrap: wrap;
        padding-bottom: 0.2rem;
    }

    .intro-grid,
    .cta-panel {
        grid-template-columns: 1fr;
    }

    .quote-form {
        padding: 2rem;
    }

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

    .footer-logo {
        width: 220px;
    }

    .brand img {
        width: 190px;
    }

    .phone {
        display: none;
    }

    .footer-logo {
        width: 190px;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 64vh;
    }

    .section {
        padding: 4rem 0;
    }

    .detail-grid,
    .jobsite-grid,
    .other-services-grid,
    .lightbox-grid {
        grid-template-columns: 1fr;
    }

    .jobsite-card {
        min-height: 280px;
    }

    .cta-panel {
        padding: 1.75rem;
    }
}
