/* Explain: Base styles for site components and utility classes. */
.site-header {
    background: linear-gradient(180deg, rgba(250, 249, 246, 0.92), 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.74rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    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.84), rgba(255, 255, 255, 0.52));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

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

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

.metric-card {
    border: 1px solid var(--glass-border);
    border-radius: 1.4rem;
    background: var(--glass-bg);
    padding: 1.1rem 1.25rem;
}

.metric-value {
    display: block;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1;
}

.metric-label {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.info-card {
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    background: var(--glass-bg);
    padding: 1.35rem;
}

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

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

.service-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    border: 1px solid var(--glass-border);
    border-radius: 1.75rem;
    background: rgba(250, 249, 246, 0.72);
    padding: clamp(1.5rem, 3vw, 2rem);
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

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

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

.project-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.75rem;
    background: var(--background-color);
    box-shadow: var(--shadow-soft);
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.project-card:hover {
    box-shadow: 0 28px 90px rgba(31, 46, 35, 0.13);
    transform: translateY(-5px);
}

.project-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1.5rem;
}

.project-tag {
    display: inline-flex;
    width: max-content;
    border-radius: 999px;
    background: var(--sage-soft);
    padding: 0.4rem 0.85rem;
    color: var(--sage-dark);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.process-step {
    border-top: 2px solid var(--glass-border);
    padding-top: 1.15rem;
}

.process-number {
    display: inline-flex;
    height: 2.25rem;
    width: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--background-color);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
}

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

.form-status {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.form-status.success {
    color: #3A5A40;
}

.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);
}

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

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

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

.filter-chip {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--glass-bg);
    padding: 0.55rem 1.15rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: color 300ms ease, background 300ms ease, border-color 300ms ease;
}

.filter-chip:hover {
    border-color: var(--accent-color);
    color: var(--text-color);
}

.filter-chip.is-active {
    border-color: transparent;
    background: var(--primary-color);
    color: var(--background-color);
    box-shadow: var(--shadow-button);
}

.project-card.card-hidden {
    display: none;
}

.sold-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    background: rgba(58, 90, 64, 0.94);
    padding: 0.45rem 1rem;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgba(31, 46, 35, 0.3);
    backdrop-filter: blur(6px);
}

.sold-badge i {
    font-size: 0.72rem;
}

.case-empty {
    display: none;
    border: 1px dashed var(--glass-border);
    border-radius: 1.5rem;
    background: var(--glass-bg);
    padding: 1.75rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.case-empty.is-visible {
    display: block;
}

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