/* Explain: Styles for UI components like headers, buttons, and modals. */
.site-header {
    background: linear-gradient(180deg, rgba(244, 247, 250, 0.97), rgba(244, 247, 250, 0.78));
    box-shadow: 0 10px 30px rgba(18, 35, 58, 0.08);
    backdrop-filter: blur(18px);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--accent-hover);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    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(255, 255, 255, 0.95), rgba(226, 234, 243, 0.72));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(30, 58, 95, 0.28);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

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

.arch-frame-large {
    height: min(74vh, 720px);
    min-height: 460px;
    border-radius: 999px 999px 2.5rem 2.5rem;
}

.arch-frame-medium {
    height: 560px;
    border-radius: 999px 999px 2.1rem 2.1rem;
}

.contact-note {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.68);
    padding: 1.25rem;
}

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

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

.form-status.error {
    color: #A8323F;
}

.kitchen-viewer {
    height: 420px;
    cursor: grab;
}

.kitchen-viewer:active {
    cursor: grabbing;
}

.kitchen-viewer canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    border-radius: 1.5rem;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    background: var(--background-color);
}

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

.color-swatch.is-active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--terracotta-soft);
}

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

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

    .arch-frame-large,
    .arch-frame-medium {
        height: 420px;
        min-height: 0;
    }

    .kitchen-viewer {
        height: 320px;
    }
}

.video-card-thumb {
    overflow: hidden;
}

.video-card-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.video-card-video.is-ready {
    opacity: 1;
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.video-modal.is-open {
    display: flex;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 12, 14, 0.88);
    backdrop-filter: blur(6px);
}

.video-modal-panel {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(100%, 30rem);
    max-height: calc(100vh - 2rem);
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.video-modal-stage {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #0f1712;
    box-shadow: var(--shadow-soft);
}

.video-modal-player {
    display: block;
    width: 100%;
    max-height: 78vh;
    background: #0f1712;
}

.video-modal-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.75rem;
    pointer-events: none;
}

.video-modal-loader.is-visible {
    display: flex;
}

.video-modal-close {
    position: absolute;
    top: -0.5rem;
    inset-inline-end: -0.5rem;
    z-index: 2;
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--background-color);
    color: var(--text-color);
    box-shadow: var(--shadow-soft);
}

.video-modal-title {
    width: 100%;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
}