/* Explain: Styles for various UI components and layout elements. */
.site-header {
    background: linear-gradient(180deg, rgba(250, 249, 246, 0.9), rgba(250, 249, 246, 0.6));
    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.82), rgba(255, 255, 255, 0.5));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

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

.media-frame::after {
    position: absolute;
    inset: 0.9rem;
    border: 1px solid rgba(250, 249, 246, 0.28);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.media-frame-tall {
    height: min(72vh, 680px);
    min-height: 460px;
}

.floating-note {
    position: absolute;
    right: -1.25rem;
    bottom: 2.5rem;
    display: flex;
    max-width: 260px;
    align-items: center;
    gap: 0.85rem;
    border-radius: 1.4rem;
    padding: 1rem 1.2rem;
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 600;
}

.stat-inline {
    min-width: 8.5rem;
    border-left: 2px solid var(--accent-color);
    padding-left: 1rem;
}

.service-card {
    min-height: 260px;
    border-radius: 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);
}

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

.project-card {
    overflow: hidden;
    border-radius: 2rem;
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.project-card:hover {
    box-shadow: 0 26px 80px rgba(31, 46, 35, 0.13);
    transform: translateY(-6px);
}

.project-frame {
    overflow: hidden;
}

.project-card:hover .project-frame img {
    transform: scale(1.06);
}

.project-tag {
    display: inline-block;
    border-radius: 999px;
    background: var(--terracotta-soft);
    padding: 0.35rem 0.9rem;
    color: var(--sage-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.process-step {
    border: 1px solid var(--glass-border);
    border-radius: 1.8rem;
    background: rgba(250, 249, 246, 0.6);
    padding: 1.75rem;
}

.process-num {
    display: inline-flex;
    margin-bottom: 0.9rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
}

.contact-form,
.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.9);
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
}

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

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

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

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

    .media-frame-tall {
        height: 460px;
        min-height: 0;
    }

    .floating-note {
        position: relative;
        right: auto;
        bottom: auto;
        margin: -2.5rem auto 0;
    }
}