/* Explain: Styles for interactive components like navbars, buttons, and panels. */
.site-header {
    background: linear-gradient(180deg, rgba(250, 249, 246, 0.92), rgba(250, 249, 246, 0.62));
    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: "";
}

.panel {
    border: 1px solid var(--glass-border);
    border-radius: 1.8rem;
    background: linear-gradient(150deg, rgba(250, 249, 246, 0.88), rgba(255, 255, 255, 0.55));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

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

.media-frame img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.media-frame-tall {
    height: clamp(440px, 62vh, 640px);
}

.media-frame-medium {
    height: clamp(380px, 54vh, 540px);
}

.hero-badge {
    position: absolute;
    left: 1.25rem;
    bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.92);
    padding: 0.7rem 1.1rem;
    color: var(--text-color);
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.stat-card {
    border: 1px solid var(--border-color);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.55);
    padding: 0.9rem 1rem;
}

.stat-value {
    color: var(--sage-dark);
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.1;
}

.stat-label {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.5;
    text-transform: uppercase;
}

.service-card {
    padding: 1.9rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

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

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

.competency-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.9rem 1rem;
}

.competency-index {
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.6;
}

.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.success {
    color: var(--sage-dark);
}

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

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

.nav-overlay {
    display: none;
}

.nav-overlay.is-open {
    display: flex;
}

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

    .media-frame-tall,
    .media-frame-medium {
        height: 420px;
    }

    .service-card {
        padding: 1.5rem;
    }

    .hero-badge {
        left: 0.9rem;
        bottom: 0.9rem;
        font-size: 0.72rem;
    }
}

@media (min-width: 1024px) {
    .nav-overlay.is-open {
        display: none;
    }
}