html {
    scroll-behavior: smooth;
    scroll-padding-top: 9rem;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: #3d3830;
    -webkit-font-smoothing: antialiased;
}

.font-serif { font-family: 'DM Serif Display', Georgia, serif; }

.hero-pattern {
    background-image:
        linear-gradient(to bottom, rgba(27, 57, 42, 0.72), rgba(27, 57, 42, 0.85)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: auto, 60px 60px;
}

.hero-image {
    isolation: isolate;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(27, 57, 42, 0.88), rgba(27, 57, 42, 0.72), rgba(27, 57, 42, 0.58));
}

.hero-image-expand {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}
.hero-image-expand:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}
.hero-image-expand:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.hero-subtitle {
    max-width: 42rem;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.625;
    color: #fff;
    filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.15)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.1));
}
@media (min-width: 640px) {
    .hero-subtitle { font-size: 1.5rem; }
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #204432;
    margin-bottom: 0.75rem;
}

.section-label--light {
    color: #dceee2;
}

.section-label--pill {
    border-radius: 9999px;
    background: #eef5f0;
    padding: 0.25rem 0.75rem;
    box-shadow: inset 0 0 0 1px rgba(45, 106, 73, 0.2);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    background: #25553c;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    transition: background 0.15s;
}
.btn-primary:hover { background: #204432; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    border: 1px solid #d4c8b8;
    background: #fff;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #3d3830;
    transition: border-color 0.15s, color 0.15s;
}
.btn-secondary:hover { border-color: #5fa67a; color: #2d6a49; }

.btn-water {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    background: #2f6688;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    transition: background 0.15s;
}
.btn-water:hover { background: #275470; }

.card {
    border-radius: 1rem;
    border: 1px solid rgba(232, 224, 212, 0.8);
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: box-shadow 0.15s;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.service-card {
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(232, 224, 212, 0.8);
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: box-shadow 0.15s;
}
.service-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.service-card__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3efe8;
}
.service-card__media img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.service-card:hover .service-card__media img {
    transform: scale(1.03);
}

.service-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease;
}
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }

.subnav-scroll {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.subnav-scroll::-webkit-scrollbar { display: none; }

.subnav-link {
    position: relative;
    white-space: nowrap;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #78716c;
    transition: color 0.15s;
}
@media (min-width: 640px) {
    .subnav-link { padding: 0.75rem 1rem; }
}

.subnav-link:hover { color: #2d6a49; }

.subnav-link.is-active {
    font-weight: 600;
    color: #204432;
}
.subnav-link.is-active::after {
    content: '';
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0;
    height: 2px;
    border-radius: 9999px;
    background: #2d6a49;
}
@media (min-width: 640px) {
    .subnav-link.is-active::after { left: 1rem; right: 1rem; }
}

.subnav-link--dark { color: rgba(220, 238, 226, 0.8); }
.subnav-link--dark:hover { color: #fff; }
.subnav-link--dark.is-active { color: #fff; }
.subnav--bellvital .subnav-link--dark.is-active::after { background: #3a7ca5; }

.subnav--bellvital { min-height: auto; }

.subnav-bellvital-rows {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.subnav-bellvital-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.125rem 0.25rem;
    align-items: center;
}

@media (min-width: 640px) {
    .subnav-bellvital-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.subnav-bellvital-row--teich {
    padding-top: 0.375rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.subnav-bellvital-row .subnav-link {
    justify-content: center;
    text-align: center;
    width: 100%;
}

.subnav-bellvital-break {
    height: 0;
    margin-top: 0.375rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.subnav-accent { min-height: 3rem; }

.reference-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.reference-lightbox[hidden] { display: none; }

.reference-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 38, 32, 0.88);
    backdrop-filter: blur(4px);
}

.reference-lightbox__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 72rem);
    max-height: calc(100vh - 2rem);
    overflow: auto;
}

.reference-lightbox__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.95);
    color: #204432;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transition: background 0.15s, color 0.15s;
}
.reference-lightbox__close:hover { background: #fff; color: #1b392a; }

.reference-lightbox__figure {
    margin: 0;
    overflow: hidden;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.reference-lightbox__image {
    display: block;
    width: 100%;
    max-height: calc(100vh - 10rem);
    object-fit: contain;
    background: #1b392a;
}

.reference-lightbox--image-only .reference-lightbox__image {
    max-height: calc(100vh - 4rem);
}

.reference-lightbox__caption { padding: 1.25rem 1.5rem 1.5rem; }

.reference-lightbox__category {
    display: inline-block;
    margin-bottom: 0.5rem;
    border-radius: 9999px;
    background: #dceee2;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #25553c;
}

.reference-lightbox__title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.5rem;
    line-height: 1.2;
    color: #1b392a;
}

.reference-lightbox__location {
    margin-top: 0.35rem;
    font-size: 0.95rem;
    color: #78716c;
}

body.reference-lightbox-open { overflow: hidden; }

.social-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition: background 0.15s, color 0.15s;
}

.social-link--dark {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.social-link--dark:hover { background: rgba(255, 255, 255, 0.25); }

.social-link--light {
    background: #f0f7f2;
    color: #25553c;
}
.social-link--light:hover {
    background: #dceee2;
    color: #204432;
}

.social-link--md { width: 2.25rem; height: 2.25rem; }
.social-link--lg { width: 2.75rem; height: 2.75rem; }

.social-link__icon { width: 1.125rem; height: 1.125rem; }
.social-link__icon--lg { width: 1.25rem; height: 1.25rem; }
