* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #17231f;
    background: #f7f6f1;
    font-family: var(--font);
}

a {
    color: inherit;
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px clamp(18px, 5vw, 72px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(247, 246, 241, 0.92);
    border-bottom: 1px solid rgba(23, 35, 31, 0.08);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: var(--primary);
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
}

.brand img {
    width: auto;
    max-width: 170px;
    height: 42px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    gap: 18px;
    font-size: 14px;
    font-weight: 700;
}

.main-nav a,
.admin-link,
.quote-link {
    text-decoration: none;
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.admin-link,
.quote-link {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.quote-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(23, 107, 93, 0.18);
    border-radius: 999px;
    background: #fff;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    min-height: calc(100vh - 88px);
    padding: clamp(36px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.hero-copy {
    max-width: 720px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    color: #10211c;
    line-height: 1.03;
}

h1 {
    max-width: 760px;
    font-size: clamp(42px, 8vw, 86px);
}

h2 {
    font-size: clamp(30px, 4vw, 52px);
}

p {
    line-height: 1.7;
}

.hero-copy > p:not(.eyebrow),
.content-band p,
.cta-band p,
.page-shell p {
    max-width: 640px;
    color: #4f5d58;
    font-size: 18px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
}

.button-rounded .button {
    border-radius: 999px;
}

.button-square .button {
    border-radius: 0;
}

.button.primary {
    color: #fff;
    background: var(--primary);
}

.button.secondary {
    color: var(--primary);
    background: #fff;
    border-color: rgba(23, 107, 93, 0.2);
}

.button.light {
    color: var(--primary);
    background: #fff;
}

.hero-media {
    overflow: hidden;
    border-radius: 8px;
    background: #e5e1d5;
    aspect-ratio: 16 / 9;
}

.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(44px, 7vw, 88px) clamp(18px, 5vw, 72px);
    background: #fff;
}

.featured-products {
    padding: clamp(44px, 7vw, 88px) clamp(18px, 5vw, 72px);
    background: #f7f6f1;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.section-head p:not(.section-kicker) {
    max-width: 620px;
    color: #5d6964;
}

.cta-band {
    display: grid;
    gap: 16px;
    justify-items: start;
    padding: clamp(46px, 7vw, 88px) clamp(18px, 5vw, 72px);
    color: #fff;
    background: var(--primary);
}

.cta-band h2,
.cta-band p {
    color: #fff;
}

.page-shell {
    min-height: 70vh;
    padding: clamp(54px, 9vw, 120px) clamp(18px, 5vw, 72px);
}

.error-shell {
    display: grid;
    align-content: center;
}

.error-code {
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
}

.product-page {
    min-height: auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 32px;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.category-pills a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid rgba(23, 35, 31, 0.12);
    border-radius: 999px;
    color: #40504a;
    background: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.category-pills a.active {
    color: #fff;
    background: var(--primary);
}

.product-card {
    overflow: hidden;
    border: 1px solid rgba(23, 35, 31, 0.1);
    border-radius: 8px;
    background: #fff;
}

.product-image {
    aspect-ratio: 1 / 1;
    background: #e5e1d5;
}

.service-image {
    aspect-ratio: 4 / 3;
}

.product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-body {
    padding: 16px;
}

.product-body h2 {
    font-size: 22px;
}

.product-body p {
    color: #5d6964;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.product-meta span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 850;
}

.product-meta strong {
    color: var(--primary);
    white-space: nowrap;
}

.service-button {
    width: 100%;
    margin-top: 14px;
}

.quote-add-form {
    margin-top: 14px;
}

.quote-add-form .button {
    width: 100%;
}

.quote-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 22px;
    margin-top: 32px;
}

.quote-items {
    display: grid;
    gap: 12px;
}

.quote-item,
.quote-panel {
    border: 1px solid rgba(23, 35, 31, 0.1);
    border-radius: 8px;
    background: #fff;
}

.quote-item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
}

.quote-item img {
    width: 110px;
    aspect-ratio: 1 / 1;
    border-radius: 7px;
    object-fit: cover;
    background: #e5e1d5;
}

.quote-item span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
}

.quote-item h2 {
    margin-top: 4px;
    font-size: 22px;
}

.quote-item p {
    margin: 8px 0;
    color: #5d6964;
}

.quote-item strong {
    color: var(--primary);
}

.quote-panel {
    align-self: start;
    display: grid;
    gap: 14px;
    padding: 18px;
}

.quote-panel h2 {
    font-size: 24px;
}

.quote-panel form {
    display: grid;
    gap: 12px;
}

.quote-panel label {
    display: grid;
    gap: 7px;
    color: #37423f;
    font-size: 13px;
    font-weight: 850;
}

.quote-panel input,
.quote-panel textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(23, 35, 31, 0.16);
    border-radius: 7px;
    color: #17231f;
    background: #fff;
    font: inherit;
}

.quote-panel textarea {
    resize: vertical;
}

.link-button {
    border: 0;
    padding: 0;
    color: var(--primary);
    background: transparent;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.services-band {
    background: #fff;
}

.empty-state {
    margin-top: 28px;
    padding: 18px;
    border: 1px dashed rgba(23, 35, 31, 0.18);
    border-radius: 8px;
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 32px;
}

.gallery-card {
    overflow: hidden;
    border: 1px solid rgba(23, 35, 31, 0.1);
    border-radius: 8px;
    background: #fff;
}

.gallery-card img,
.video-tile {
    display: grid;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    place-items: center;
    background: #e5e1d5;
}

.video-tile span {
    color: var(--primary);
    font-weight: 900;
}

.gallery-card div:not(.video-tile) {
    padding: 16px;
}

.gallery-card h2 {
    font-size: 22px;
}

.gallery-card a {
    display: inline-flex;
    margin-right: 10px;
    color: var(--primary);
    font-weight: 850;
    text-decoration: none;
}

.custom-page {
    max-width: 980px;
}

.page-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0;
}

.page-images img {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.page-content {
    max-width: 760px;
    color: #2c3834;
    font-size: 18px;
    line-height: 1.8;
}

.site-footer {
    color: #60706b;
    border-top: 1px solid rgba(23, 35, 31, 0.08);
}

.site-footer > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links {
    justify-content: flex-end;
}

.footer-links a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 32px;
}

.contact-block {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 20px;
    border: 1px solid rgba(23, 35, 31, 0.1);
    border-radius: 8px;
    background: #fff;
}

.contact-block h2 {
    font-size: 24px;
}

.contact-block a {
    color: var(--primary);
    font-weight: 850;
    text-decoration: none;
}

.hours-list {
    display: grid;
    gap: 8px;
}

.hours-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(23, 35, 31, 0.08);
}

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

.social-links a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: #f2f4ef;
}

.map-frame {
    overflow: hidden;
    margin-top: 18px;
    border-radius: 8px;
    aspect-ratio: 16 / 6;
    background: #e5e1d5;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 820px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .main-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .hero-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .content-band {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .quote-item {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .quote-item img {
        width: 82px;
    }

    .quote-item form {
        grid-column: 2;
    }

    .gallery-grid,
    .page-images {
        grid-template-columns: 1fr;
    }

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

    .footer-links {
        justify-content: flex-start;
    }

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

    .map-frame {
        aspect-ratio: 4 / 3;
    }
}
