:root {
    --bg: #dddddd;
    --panel: #fbfaf7;
    --panel-border: #d7d1c7;
    --text: #2a2926;
    --muted: #5f5a53;
    --nav: #3F4144;
    --nav-hover: #313336;
    --gold: #d6b284;
    --brown: #8C5F3B;
    --brown-hover: #4E3521;
    --green: #7DB02D;
    --green-hover: #5D8222;
    --shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
    --container: 1100px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

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

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.page-home .container {
    width: min(1120px, calc(100% - 22px));
}

.site-shell {
    padding: 18px 0 28px;
}

.skip-link,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 14px;
    clip: auto;
    background: #ffffff;
    z-index: 999;
    box-shadow: var(--shadow);
}

.site-frame,
.panel,
.footer-card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
}

.site-frame {
    position: relative;
    overflow: visible;
    z-index: 10;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 36px;
    background: var(--panel);
}

.site-logo,
.panel h1,
.panel h2,
.panel h3 {
    font-family: Georgia, "Times New Roman", serif;
}

.site-logo {
    font-size: clamp(1.45rem, 2.4vw, 1.95rem);
    font-weight: 700;
}

.site-phone {
    font-size: 2rem;
    color: #3b3b3b;
}

.nav-shell {
    position: relative;
    background: var(--nav);
    color: #ffffff;
}

.menu-toggle {
    display: none;
    width: 100%;
    padding: 10px 16px;
    border: 0;
    background: var(--nav);
    color: #ffffff;
    text-align: left;
    font-weight: 700;
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0 12px;
}

.nav-item {
    position: relative;
}

.nav-parent,
.nav-link {
    display: flex;
    align-items: center;
}

.nav-link {
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

.nav-item.is-active > .nav-link,
.nav-item.is-active > .nav-parent > .nav-link,
.nav-link:hover,
.nav-link:focus-visible {
    background: var(--nav-hover);
}

.submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    color: #ffffff;
}

.submenu-toggle span {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 170px;
    display: none;
    background: #ffffff;
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
    z-index: 30;
}

.dropdown a {
    display: block;
    padding: 10px 12px;
    color: var(--text);
    font-size: 0.95rem;
}

.dropdown a:hover,
.dropdown a:focus-visible {
    background: #f1ede7;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown {
    display: block;
}

.site-main {
    padding-top: 16px;
}

.page-home .site-main {
    padding-top: 0;
}

.alerts {
    padding-top: 14px;
}

.alert {
    padding: 12px 16px;
}

.home-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.95fr);
    gap: 14px;
}

.dashboard-main,
.dashboard-side,
.content-stack {
    display: grid;
    gap: 14px;
}

.hero-panel {
    overflow: hidden;
}

.home-hero-panel {
    background: var(--panel);
    overflow: hidden;
}

.home-hero-media {
    position: relative;
    height: 40vh;
    min-height: 240px;
    max-height: 420px;
    background: #e8e2d7;
}

.home-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 26px 20px;
    text-align: center;
    color: #ffffff;
}

.home-hero-title {
    margin: 0 0 6px;
    font-size: clamp(2.35rem, 4.5vw, 3.7rem);
    line-height: 1.05;
    text-shadow: 0 2px 7px rgba(0, 0, 0, 0.7);
}

.home-hero-subtitle {
    margin: 0;
    font-size: clamp(1rem, 1.9vw, 1.3rem);
    font-weight: 700;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
}

.home-hero-actions .btn {
    min-width: 150px;
    padding: 11px 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.home-service-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
}

.home-service-card {
    display: block;
    border: 1px solid #cfc7bc;
    background: #ffffff;
}

.home-service-card-media {
    aspect-ratio: 20 / 9;
    overflow: hidden;
    background: #e7e0d4;
}

.home-service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-service-card-label {
    display: block;
    padding: 9px 12px 8px;
    background: #ffffff;
    color: #2f2f2f;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.15rem, 2.1vw, 1.75rem);
    font-weight: 700;
    line-height: 1.1;
}

.hero-media {
    position: relative;
    min-height: 390px;
    background: #e8e2d7;
}

.hero-media img,
.detail-media img {
    height: 100%;
    min-height: 390px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.55));
}

.hero-overlay h1 {
    margin: 0 0 8px;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-overlay p {
    max-width: 640px;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 11px 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 700;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-small {
    min-width: 120px;
    padding: 10px 16px;
}

.btn-block {
    width: 100%;
}

.btn-green {
    background: var(--green);
    color: #ffffff;
}

.btn-gold {
    background: var(--brown);
    color: #ffffff;
}

.btn-green:hover,
.btn-green:focus-visible {
    background: var(--green-hover);
}

.btn-gold:hover,
.btn-gold:focus-visible {
    background: var(--brown-hover);
}

.hero-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
}

.hero-service-tile {
    position: relative;
    display: block;
    min-height: 150px;
    overflow: hidden;
    border: 1px solid var(--panel-border);
}

.hero-service-tile img,
.card-media img,
.preview-tile img,
.gallery-thumb img {
    height: 100%;
    object-fit: cover;
}

.hero-service-tile span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.65));
    color: #ffffff;
    text-align: center;
    font-size: 1.9rem;
    font-size: clamp(1.45rem, 3vw, 1.95rem);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
}

.content-panel {
    padding: 16px;
}

.panel-heading {
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd6cc;
    margin-bottom: 16px;
}

.panel-heading h2,
.page-intro-panel h1,
.cta-card h2,
.detail-copy h1 {
    margin: 0 0 6px;
    font-size: clamp(1.9rem, 4vw, 2.4rem);
}

.panel-heading p,
.page-intro-panel p,
.detail-copy p,
.service-card-body p,
.info-block p,
.benefit-item p,
.cta-card p,
.empty-state p {
    margin: 0;
    color: var(--muted);
}

.page-intro-panel {
    padding: 20px;
}

.service-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    border: 1px solid #ddd6cc;
    background: #ffffff;
}

.card-media {
    aspect-ratio: 16 / 10;
    background: #e7e0d4;
}

.service-card-body {
    display: grid;
    gap: 12px;
    padding: 14px;
    text-align: center;
}

.service-card-body h3,
.info-block h3,
.benefit-item h3 {
    margin: 0;
    font-size: 1.7rem;
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
}

.gallery-viewer {
    display: grid;
    gap: 10px;
}

.gallery-main {
    margin: 0;
    background: #e7e0d4;
    border: 1px solid #ddd6cc;
}

.home-gallery .gallery-main img,
.detail-gallery .gallery-main img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.gallery-main figcaption {
    padding: 8px 10px;
    font-size: 0.95rem;
    color: var(--muted);
    border-top: 1px solid #ddd6cc;
}

.gallery-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

.gallery-control {
    width: 100%;
    padding: 9px 14px;
    border: 1px solid #b8b1a6;
    background: #f1ece5;
    color: var(--text);
    font-weight: 700;
}

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

.gallery-thumb {
    padding: 0;
    border: 2px solid transparent;
    background: #ffffff;
}

.gallery-thumb.is-active {
    border-color: var(--brown);
}

.panel-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
}

.panel-links a {
    color: var(--brown);
    font-weight: 700;
}

.callout-line {
    margin: 0 0 16px;
    font-weight: 700;
}

.callout-line a {
    color: var(--text);
}

.contact-preview-grid,
.contact-page-grid,
.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.map-placeholder {
    position: relative;
    min-height: 260px;
    border: 1px solid #d1cbc2;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.7) 0 2%, transparent 2% 100%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.75) 0 2%, transparent 2% 100%),
        linear-gradient(135deg, #dfe8d6, #eaf0da 45%, #d9e6ef 46%, #cedde9 60%, #dfe8d6 61%);
    background-size: 64px 64px, 64px 64px, cover;
    overflow: hidden;
}

.map-placeholder::before,
.map-placeholder::after {
    content: "";
    position: absolute;
    background: rgba(245, 198, 92, 0.95);
    opacity: 0.85;
}

.map-placeholder::before {
    inset: 18% -12% auto;
    height: 12px;
    transform: rotate(-18deg);
}

.map-placeholder::after {
    inset: 56% -8% auto;
    height: 10px;
    transform: rotate(11deg);
}

.map-label {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #d1cbc2;
    font-size: 0.88rem;
    font-weight: 700;
}

.map-pin {
    position: absolute;
    left: 56%;
    top: 58%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #b33a2b;
    box-shadow: 0 0 0 6px rgba(179, 58, 43, 0.2);
}

.map-pin::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 10px;
    height: 18px;
    background: #b33a2b;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    transform: translateX(-50%);
}

.large-map {
    min-height: 320px;
}

.quote-form,
.compact-form {
    display: grid;
    gap: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.field-group {
    display: grid;
    gap: 6px;
}

.field-group-full {
    grid-column: 1 / -1;
}

.form-control {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cfc7bc;
    background: #ffffff;
    color: var(--text);
}

.form-control:focus {
    outline: 2px solid rgba(140, 95, 59, 0.2);
    border-color: var(--brown);
}

textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.field-errors {
    color: #972a1d;
    font-size: 0.9rem;
}

.detail-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panel-kicker {
    margin: 0 0 8px;
    color: var(--brown);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}

.detail-media {
    background: #e7e0d4;
    border: 1px solid #ddd6cc;
}

.detail-section-grid,
.benefit-list-grid {
    display: grid;
    gap: 14px;
}

.detail-section-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefit-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-block,
.benefit-item {
    padding: 14px;
    background: #ffffff;
    border: 1px solid #ddd6cc;
}

.preview-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.preview-tile {
    margin: 0;
    border: 1px solid #ddd6cc;
    background: #ffffff;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.empty-state,
.cta-card {
    text-align: left;
}

.placeholder-panel {
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 16px;
    background: linear-gradient(135deg, #d9d1c4, #efe7dc);
    color: #54493d;
    text-align: center;
}

.hero-placeholder {
    min-height: 390px;
}

.gallery-placeholder {
    min-height: 220px;
}

.tile-placeholder {
    min-height: 100%;
}

.site-footer {
    padding-top: 16px;
}

.footer-card {
    padding: 14px 18px;
    font-size: 0.95rem;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 960px) {
    .menu-toggle {
        display: block;
    }

    .site-nav {
        display: none;
    }

    .site-nav.is-open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }

    .nav-link {
        justify-content: space-between;
    }

    .dropdown {
        position: static;
        min-width: 100%;
        box-shadow: none;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
    }

    .home-dashboard,
    .contact-preview-grid,
    .contact-page-grid,
    .detail-hero,
    .detail-section-grid,
    .benefit-list-grid {
        grid-template-columns: 1fr;
    }

    .service-card-grid,
    .preview-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-hero-media,
    .home-hero-image {
        height: 34vh;
        min-height: 220px;
        max-height: 340px;
    }
}

@media (max-width: 640px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-service-grid,
    .gallery-thumbnails,
    .service-card-grid,
    .preview-strip,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .home-service-strip {
        grid-template-columns: 1fr;
    }

    .button-row,
    .panel-links {
        flex-direction: column;
    }

    .btn,
    .gallery-control {
        width: 100%;
    }

    .hero-overlay {
        padding: 22px 18px;
    }

    .home-hero-overlay {
        padding: 18px 14px;
    }

    .home-hero-title {
        font-size: 2rem;
    }

    .home-hero-subtitle {
        font-size: 0.98rem;
    }
}
