/* Explain: Styles for UI components like headers, navigation, cards, and gallery tiles. */
.site-header {
    background: linear-gradient(180deg, rgba(250, 249, 246, 0.92), rgba(250, 249, 246, 0.62));
    backdrop-filter: blur(18px);
}

.nav-link {
    color: var(--text-color);
    transition: color 300ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--accent-color);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--sage-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: 2.4rem;
    height: 1px;
    background: var(--accent-color);
    content: "";
}

.section-kicker.kicker-no-line::before {
    display: none;
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, rgba(250, 249, 246, 0.82), rgba(255, 255, 255, 0.5));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.hero-image-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--glass-border);
    border-radius: 2.5rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.photo-frame {
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.floating-note {
    position: absolute;
    right: -0.75rem;
    bottom: 2rem;
    display: flex;
    max-width: 250px;
    align-items: center;
    gap: 0.75rem;
    border-radius: 1.35rem;
    padding: 1rem 1.15rem;
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.5;
}

.service-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    border-radius: 1.9rem;
    padding: 1.75rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.service-card:hover {
    border-color: rgba(88, 129, 87, 0.58);
    box-shadow: 0 26px 70px rgba(31, 46, 35, 0.1);
    transform: translateY(-6px);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: var(--sage-soft);
    color: var(--sage-dark);
    font-size: 1.15rem;
}

.gallery-tile {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
    text-align: left;
}

.gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.gallery-tile:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.6rem 1.2rem 1.1rem;
    background: linear-gradient(to top, rgba(31, 46, 35, 0.84), rgba(31, 46, 35, 0));
    color: var(--background-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(31, 46, 35, 0.85);
}

.lightbox.is-open {
    display: flex;
}

.lightbox-panel {
    position: relative;
    width: min(100%, 60rem);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    border-radius: 1.8rem;
    background: var(--background-color);
    padding: 1rem;
    box-shadow: var(--shadow-soft);
}

.lightbox-media {
    position: relative;
    overflow: hidden;
    border-radius: 1.2rem;
    background: var(--surface-color);
    min-height: 12rem;
}

.lightbox-media img {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    opacity: 1;
    transition: opacity 200ms ease;
}

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

.lightbox-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.6rem;
}

.lightbox-media.is-loading .lightbox-loader {
    display: flex;
}

.lightbox-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--background-color);
    color: var(--text-color);
    transition: background 300ms ease, color 300ms ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
    background: var(--sage-dark);
    color: var(--background-color);
}

.lightbox-video {
    width: 100%;
    max-height: 72vh;
    border-radius: 1.2rem;
    background: var(--surface-color);
}

.lightbox-video.hidden {
    display: none;
}

.lightbox-media.is-video img {
    display: none;
}

.lightbox-caption {
    margin-top: 0.9rem;
    padding: 0 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.gallery-tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: rgba(31, 46, 35, 0.55);
    color: var(--background-color);
    font-size: 1.1rem;
    backdrop-filter: blur(6px);
}

.testimonial-card,
.step-card,
.info-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    border-radius: 1.8rem;
    padding: 1.65rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-status {
    min-height: 1.25rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.form-status.success {
    color: var(--sage-dark);
}

.form-status.error {
    color: var(--logo-subtitle-color);
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.6rem;
    }

    .hero-image-frame {
        aspect-ratio: 1 / 1;
    }

    .floating-note {
        position: relative;
        right: auto;
        bottom: auto;
        margin: -2.2rem auto 0;
        max-width: 320px;
    }
}