/* Explain: Styling for various website components including cards, forms, and navigation. */
.site-header {
    background: linear-gradient(180deg, rgba(250, 249, 246, 0.86), rgba(250, 249, 246, 0.52));
    backdrop-filter: blur(18px);
}

.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: "";
}

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

.image-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(88, 129, 87, 0.38);
    border-radius: 2.6rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

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

.image-frame-large {
    height: min(74vh, 720px);
    min-height: 480px;
    border-radius: 999px 999px 2.6rem 2.6rem;
}

.image-frame-medium {
    height: 560px;
    max-width: 450px;
    border-radius: 999px 999px 2.2rem 2.2rem;
}

.detail-card,
.contact-note {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(250, 249, 246, 0.58);
    padding: 1.25rem;
}

.detail-card span {
    display: inline-flex;
    margin-bottom: 0.9rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
}

.detail-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.service-card {
    min-height: 340px;
    border-radius: 2.2rem;
    padding: 2rem;
    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 80px rgba(31, 46, 35, 0.11);
    transform: translateY(-6px);
}

.portfolio-tile {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 0;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
    transition: border-color 300ms ease, box-shadow 300ms ease;
}

.portfolio-tile:hover {
    border-color: rgba(88, 129, 87, 0.58);
    box-shadow: 0 26px 80px rgba(31, 46, 35, 0.14);
}

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

.portfolio-tile:hover img {
    transform: scale(1.06);
}

.portfolio-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: linear-gradient(180deg, rgba(31, 46, 35, 0) 0%, rgba(31, 46, 35, 0.78) 100%);
    padding: 2.5rem 1.25rem 1.15rem;
    color: #ffffff;
    text-align: left;
}

.portfolio-caption span {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.88;
}

.portfolio-caption strong {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
}

.process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(250, 249, 246, 0.58);
    padding: 1.25rem;
}

.process-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--sage-dark);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-form,
.contact-overlay-panel {
    border-radius: 2.4rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

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

.form-status.success {
    color: #4A6B53;
}

.form-status.error {
    color: #9B4A3D;
}

.mobile-cta-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    border-top: 1px solid var(--glass-border);
    background: rgba(250, 249, 246, 0.86);
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
}

.contact-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    overflow-y: auto;
    background: rgba(31, 46, 35, 0.32);
    padding: 1rem;
}

.contact-overlay.is-open {
    display: block;
}

.contact-overlay-panel {
    min-height: calc(100vh - 2rem);
    background: var(--background-color);
    box-shadow: 0 30px 90px rgba(31, 46, 35, 0.22);
}

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

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

.lightbox-figure {
    position: relative;
    width: 100%;
    max-width: min(1100px, 96vw);
    overflow: hidden;
    border-radius: 2rem;
    background: var(--surface-color);
    box-shadow: 0 30px 90px rgba(31, 46, 35, 0.45);
}

.lightbox-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    max-height: 78vh;
    overflow: hidden;
}

.lightbox-image {
    display: block;
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    transition: opacity 250ms ease;
}

.lightbox.is-loading .lightbox-image {
    opacity: 0;
}

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

.lightbox-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 3;
}

.lightbox-caption {
    margin: 0;
    background: var(--background-color);
    padding: 0.95rem 1.25rem;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.lightbox-caption:empty {
    display: none;
}

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

    .image-frame-large,
    .image-frame-medium {
        height: 500px;
        min-height: 0;
    }

    .image-frame-large {
        margin-right: auto;
        margin-left: auto;
        width: min(100%, 450px);
    }

    .lightbox-media {
        min-height: 220px;
    }
}

.protected-media,
.protected-media img {
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    user-select: none;
}

.protected-media img {
    pointer-events: none;
}