/* Explain: Styles for various UI components including headers, sections, cards, forms, and media players. */
.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.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    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.52));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(88, 129, 87, 0.38);
    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: 500px;
    border-radius: 999px 999px 2.5rem 2.5rem;
}

.arch-frame-medium {
    height: 620px;
    max-width: 450px;
    border-radius: 999px 999px 2.1rem 2.1rem;
}

.floating-note {
    position: absolute;
    inset-inline-end: -1.5rem;
    bottom: 4rem;
    display: flex;
    max-width: 250px;
    align-items: center;
    gap: 0.85rem;
    border-radius: 999px;
    padding: 1rem 1.2rem;
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 600;
}

.detail-card {
    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.6rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
}

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

.event-card {
    min-height: 320px;
    border-radius: 2.2rem;
    padding: 2rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

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

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

.process-number {
    display: flex;
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--sage-dark);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.gallery-item {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: none;
}

.gallery-item img {
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    object-fit: cover;
    transition: transform 500ms ease, border-color 300ms ease;
}

.gallery-item:hover img {
    border-color: var(--accent-color);
    transform: scale(1.04);
}

.video-card {
    overflow: hidden;
    border-radius: 2rem;
    border: 1px solid var(--glass-border);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.video-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000;
}

.video-card iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.audio-player {
    border-radius: 2.4rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.audio-stage {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1.25rem;
}

.audio-art {
    display: flex;
    width: 5.5rem;
    height: 5.5rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 1.6rem;
    background: linear-gradient(145deg, var(--sage-soft), rgba(163, 177, 138, 0.35));
    color: var(--sage-dark);
    font-size: 2rem;
}

.audio-toggle {
    display: inline-flex;
    width: 3.2rem;
    height: 3.2rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--button-color);
    color: var(--text-color);
    box-shadow: var(--shadow-button);
    transition: background 300ms ease, transform 300ms ease;
}

.audio-toggle:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.audio-bar {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: var(--sage-soft);
    cursor: pointer;
}

.audio-bar:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.audio-bar-fill {
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: var(--accent-color);
}

.audio-list {
    display: grid;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.audio-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 1.2rem;
    background: rgba(250, 249, 246, 0.5);
    padding: 0.9rem 1.1rem;
    text-align: start;
    transition: background 250ms ease, border-color 250ms ease;
}

.audio-item:hover {
    border-color: var(--glass-border);
    background: var(--surface-color);
}

.audio-item.is-active {
    border-color: var(--accent-color);
    background: var(--surface-color);
}

.audio-item-icon {
    color: var(--accent-color);
}

.audio-item-title {
    font-weight: 600;
    color: var(--text-color);
}

.audio-item-sub {
    display: block;
    margin-top: 0.15rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.audio-item-time {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}

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

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

.lightbox-body {
    position: relative;
    display: flex;
    max-height: 88vh;
    max-width: 96vw;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-height: 88vh;
    max-width: 96vw;
    border-radius: 1.5rem;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
    transition: opacity 300ms ease;
}

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

.lightbox-close {
    position: absolute;
    top: 1.2rem;
    inset-inline-end: 1.2rem;
    z-index: 2;
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.92);
    color: var(--text-color);
}

.lightbox-loader {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-loader span {
    width: 2.6rem;
    height: 2.6rem;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 999px;
    animation: spin 800ms linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.contact-form {
    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;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.newsletter-form input {
    flex: 1 1 12rem;
    min-height: 2.9rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--field-bg);
    padding: 0 1.2rem;
    color: var(--text-color);
}

.newsletter-form input:focus {
    border-color: var(--accent-color);
    outline: none;
}

.social-link {
    display: inline-flex;
    width: 2.9rem;
    height: 2.9rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.6);
    color: var(--sage-dark);
    transition: background 300ms ease, color 300ms ease, transform 300ms ease;
}

.social-link:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: translateY(-3px);
}

.topic-card {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(250, 249, 246, 0.58);
    padding: 1.6rem;
    transition: border-color 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}

.topic-card:hover {
    border-color: rgba(88, 129, 87, 0.5);
    box-shadow: 0 22px 60px rgba(31, 46, 35, 0.09);
    transform: translateY(-4px);
}

.faq-item {
    border: 1px solid var(--glass-border);
    border-radius: 1.4rem;
    background: rgba(250, 249, 246, 0.58);
    padding: 0 1.3rem;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.5rem;
    padding: 1rem 0;
    cursor: pointer;
    list-style: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 0.6rem;
}

.faq-chevron {
    flex: 0 0 auto;
    color: var(--accent-color);
    transition: transform 300ms ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding-bottom: 1.2rem;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.85;
}

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

    .arch-frame-large,
    .arch-frame-medium {
        height: auto;
        min-height: 0;
        border-radius: 1.75rem;
    }

    .arch-frame::after {
        display: none;
    }

    .arch-frame img {
        height: auto;
        width: 100%;
        object-fit: contain;
        object-position: center top;
    }

    .arch-frame-large {
        margin-inline: auto;
        width: min(100%, 450px);
    }

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

    .audio-stage {
        grid-template-columns: auto 1fr;
    }

    .audio-art {
        width: 4.2rem;
        height: 4.2rem;
        font-size: 1.5rem;
    }
}