:root {
    --anthracite: #202522;
    --charcoal: #3a433d;
    --paper: #faf7f1;
    --warm: #efe5d8;
    --wood: #9a6034;
    --green: #0a9a4a;
    --green-dark: #31523a;
    --red: #d71920;
    --white: #ffffff;
    --shadow: 0 20px 55px rgba(32, 37, 34, 0.14);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

html,
body {
    overflow-x: hidden;
}

body {
    background: var(--paper);
    color: var(--anthracite);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

h1,
h2,
h3 {
    color: var(--anthracite);
    font-weight: 780;
    letter-spacing: 0;
    line-height: 1.08;
}

h1 {
    font-size: clamp(2.45rem, 6.7vw, 5.15rem);
    max-width: 11ch;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.site-nav {
    background: rgba(255, 252, 247, 0.96);
    border-bottom: 1px solid rgba(32, 37, 34, 0.08);
    backdrop-filter: blur(14px);
}

.navbar-brand {
    align-items: center;
    display: inline-flex;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.35rem 0;
}

.brand-logo {
    background: var(--white);
    border-radius: 4px;
    display: block;
    height: 56px;
    object-fit: contain;
    padding: 0.14rem;
    width: auto;
}

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

.brand-copy strong {
    color: var(--anthracite);
    font-size: 1rem;
    font-weight: 800;
}

.brand-copy small {
    color: #657069;
    font-size: 0.72rem;
    font-weight: 650;
    margin-top: 0.25rem;
}

.navbar-nav .nav-link {
    color: var(--charcoal);
    font-weight: 700;
    padding-inline: 0.75rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--green);
}

.navbar-toggler {
    border: 0;
}

.eyebrow {
    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.18em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.btn {
    border-radius: 6px;
    font-weight: 780;
    padding: 0.85rem 1.15rem;
}

.btn-primary {
    background: var(--green);
    border-color: var(--green);
}

.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
}

.btn-outline-dark {
    border-color: rgba(32, 37, 34, 0.38);
}

.section-padding {
    padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.intro-band {
    background: var(--green-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0;
}

.intro-band h2,
.dark-section h2 {
    color: var(--white);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2.2rem;
}

.service-card,
.contact-card,
.reference-list {
    background: var(--white);
    border: 1px solid rgba(32, 37, 34, 0.08);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(32, 37, 34, 0.08);
}

.service-card {
    align-items: flex-start;
    display: flex;
    gap: 0.8rem;
    min-height: 88px;
    padding: 1rem;
}

.service-card i,
.reference-list i,
.contact-card i {
    color: var(--green);
}

.service-card span {
    font-weight: 720;
    line-height: 1.35;
}

.feature-image {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    box-shadow: var(--shadow);
    object-fit: cover;
    width: 100%;
}

.muted-section {
    background: var(--warm);
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.4rem;
}

.pill-list span {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(32, 37, 34, 0.1);
    border-radius: 999px;
    font-weight: 700;
    padding: 0.52rem 0.82rem;
}

.dark-section {
    background: var(--green-dark);
    color: rgba(255, 255, 255, 0.82);
}

.reference-list {
    padding: 1.2rem;
}

.reference-list div {
    align-items: flex-start;
    border-bottom: 1px solid rgba(32, 37, 34, 0.08);
    display: flex;
    gap: 0.55rem;
    padding: 0.8rem 0;
}

.reference-list div:last-child {
    border-bottom: 0;
}

.gallery-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.gallery-grid img {
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(32, 37, 34, 0.1);
    object-fit: cover;
    width: 100%;
}

.gallery-modal[hidden] {
    display: none;
}

.gallery-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 1500;
}

.gallery-modal-backdrop {
    background: rgba(12, 16, 13, 0.78);
    inset: 0;
    position: absolute;
}

.gallery-modal-dialog {
    background: var(--paper);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    max-height: 92vh;
    max-width: 1320px;
    overflow: hidden;
    position: relative;
    width: 100%;
    z-index: 1;
}

.gallery-modal-header {
    align-items: flex-start;
    background: var(--paper);
    border-bottom: 1px solid rgba(32, 37, 34, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1.2rem;
}

.gallery-modal-header .eyebrow {
    margin-bottom: 0.45rem;
}

.gallery-modal-header h2 {
    margin-bottom: 0.5rem;
}

.gallery-modal-header p:last-child {
    margin-bottom: 0;
}

.gallery-modal-close {
    align-items: center;
    background: var(--white);
    border: 1px solid rgba(32, 37, 34, 0.16);
    border-radius: 50%;
    color: var(--anthracite);
    display: flex;
    flex: 0 0 auto;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.gallery-modal-close:hover {
    border-color: var(--green);
    color: var(--green);
}

.gallery-modal-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.5rem;
}

.gallery-item {
    aspect-ratio: 4 / 3;
    background: var(--white);
    border: 1px solid rgba(32, 37, 34, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(32, 37, 34, 0.08);
    color: var(--anthracite);
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: hidden;
    padding: 0;
    text-align: left;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    width: 100%;
}

.gallery-item:hover {
    border-color: rgba(10, 154, 74, 0.45);
    box-shadow: 0 16px 36px rgba(32, 37, 34, 0.14);
    transform: translateY(-3px);
}

.gallery-item:focus-visible,
.gallery-modal button:focus-visible,
.gallery-lightbox button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px var(--green);
}

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

.gallery-empty {
    background: var(--white);
    border: 1px solid rgba(32, 37, 34, 0.1);
    border-radius: 8px;
    margin: 0;
    padding: 1.25rem;
}

body.gallery-modal-open,
body.gallery-open {
    overflow: hidden;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 2000;
}

.gallery-lightbox-backdrop {
    background: rgba(12, 16, 13, 0.94);
    inset: 0;
    position: absolute;
}

.gallery-lightbox-dialog {
    display: flex;
    flex-direction: column;
    max-height: 96vh;
    max-width: 95vw;
    position: relative;
    width: 100%;
    z-index: 1;
}

.gallery-lightbox-stage {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 12rem;
    position: relative;
    touch-action: pan-y;
}

.gallery-lightbox-stage img {
    border-radius: 6px;
    display: block;
    height: auto;
    max-height: 88vh;
    max-width: 95vw;
    object-fit: contain;
    opacity: 1;
    transition: opacity 140ms ease;
    width: auto;
}

.gallery-lightbox-stage img.is-loading {
    opacity: 0;
}

.gallery-lightbox-loader {
    color: var(--white);
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.gallery-lightbox-loader[hidden] {
    display: none;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border: 0;
    border-radius: 50%;
    color: var(--anthracite);
    display: flex;
    height: 48px;
    justify-content: center;
    position: absolute;
    width: 48px;
    z-index: 3;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
    background: var(--white);
    color: var(--green);
}

.gallery-lightbox-close {
    right: 0.5rem;
    top: 0.5rem;
}

.gallery-lightbox-nav {
    font-size: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-lightbox-prev {
    left: 0.5rem;
}

.gallery-lightbox-next {
    right: 0.5rem;
}

.gallery-lightbox-meta {
    align-items: center;
    color: var(--white);
    display: flex;
    gap: 1rem;
    justify-content: center;
    min-height: 3rem;
    padding: 0.8rem 4rem 0;
    text-align: center;
}

.gallery-lightbox-meta p {
    margin: 0;
}

.gallery-lightbox-meta span {
    flex: 0 0 auto;
    font-weight: 750;
}

.contact-card {
    padding: clamp(1.4rem, 4vw, 2.2rem);
}

.contact-card a {
    align-items: center;
    color: var(--anthracite);
    display: flex;
    font-weight: 760;
    gap: 0.7rem;
    margin-top: 0.75rem;
    text-decoration: none;
}

.site-footer {
    background: var(--green-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 2.5rem 0;
}

.footer-logo {
    background: var(--white);
    border-radius: 4px;
    height: 82px;
    object-fit: contain;
    padding: 0.25rem;
    width: auto;
}

.hero-classic {
    background:
        linear-gradient(135deg, #fffdf8 0%, #f8f1e8 54%, #eee3d6 100%);
    min-height: 86vh;
    overflow: hidden;
    position: relative;
}

.hero-classic::before {
    background: var(--green);
    border-radius: 999px;
    content: "";
    height: 70px;
    opacity: 0.09;
    position: absolute;
    right: -4rem;
    top: 10rem;
    transform: rotate(-18deg);
    width: 360px;
}

.hero-classic-row {
    min-height: 86vh;
    padding: 8.4rem 0 4rem;
    position: relative;
    z-index: 2;
}

.hero-copy .lead {
    color: #526057;
    font-size: clamp(1.12rem, 2vw, 1.36rem);
    margin: 1.45rem 0 2rem;
    max-width: 42rem;
}

.hero-image-shell {
    margin-inline: auto;
    max-width: 590px;
    position: relative;
}

.hero-image-shell img.hero-main-image {
    aspect-ratio: 5 / 4;
    border-radius: 8px;
    box-shadow: var(--shadow);
    object-fit: cover;
    width: 100%;
}

.hero-logo-badge {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(32, 37, 34, 0.18);
    padding: 0.55rem;
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: clamp(112px, 11vw, 152px);
}

.hero-logo-badge img {
    display: block;
    height: auto;
    width: 100%;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1.15fr 0.85fr;
    }

    .gallery-grid img:first-child {
        grid-row: span 2;
        height: 100%;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem 0;
    }

    .hero-classic-row {
        padding: 7rem 0 3.5rem;
    }

}

@media (min-width: 360px) and (max-width: 767.98px) {
    .gallery-collection > .col-12 {
        flex: 0 0 auto;
        width: 50%;
    }
}

@media (max-width: 575.98px) {
    .brand-logo {
        height: 46px;
    }

    .brand-copy strong {
        font-size: 0.9rem;
    }

    .brand-copy small {
        font-size: 0.64rem;
        max-width: 150px;
    }

    h1 {
        max-width: 9ch;
    }

    .hero-logo-badge {
        width: 112px;
    }

    .gallery-modal {
        padding: 0.5rem;
    }

    .gallery-modal-dialog {
        max-height: calc(100dvh - 1rem);
    }

    .gallery-modal-header {
        padding: 1rem;
    }

    .gallery-modal-header h2 {
        font-size: 2rem;
    }

    .gallery-modal-header p:last-child {
        font-size: 0.9rem;
    }

    .gallery-modal-body {
        padding: 1rem;
    }

    .gallery-lightbox {
        padding: 0.5rem;
    }

    .gallery-lightbox-close,
    .gallery-lightbox-nav {
        height: 44px;
        width: 44px;
    }

    .gallery-lightbox-close {
        right: 0.25rem;
        top: 0.25rem;
    }

    .gallery-lightbox-prev {
        left: 0.25rem;
    }

    .gallery-lightbox-next {
        right: 0.25rem;
    }

    .gallery-lightbox-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
        padding-inline: 0.5rem;
        text-align: left;
    }

}

@media (max-width: 359.98px) {
    .navbar-brand {
        gap: 0.5rem;
    }

    .brand-logo {
        height: 42px;
    }

    .brand-copy strong {
        font-size: 0.82rem;
    }

    .brand-copy small {
        font-size: 0.58rem;
        max-width: 135px;
    }

    .navbar-toggler {
        padding: 0.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-item,
    .gallery-lightbox-stage img {
        transition: none;
    }
}
