/* Explain: Styles for site header, sections, cards, forms, and navigation elements. */
.site-header {
    background: linear-gradient(180deg, rgba(211, 228, 244, 0.92), rgba(211, 228, 244, 0.55));
    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(211, 228, 244, 0.85), rgba(255, 255, 255, 0.55));
    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: 560px;
    max-width: 460px;
    border-radius: 999px 999px 2.1rem 2.1rem;
}

.card-activity {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 2.2rem;
    padding: 1.75rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

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

.info-row {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(211, 228, 244, 0.6);
    padding: 1.25rem;
}

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

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

.event-card {
    display: flex;
    gap: 1.25rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.8rem;
    background: rgba(211, 228, 244, 0.64);
    padding: 1.5rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

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

.event-icon {
    display: inline-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-size: 1.15rem;
}

.event-date {
    display: inline-block;
    margin-bottom: 0.4rem;
    color: var(--accent-color);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.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: #35513D;
}

.form-status.error {
    color: #7A3327;
}

.history-copy {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.9;
}

.history-copy p {
    margin-bottom: 1rem;
}

.history-copy p:last-child {
    margin-bottom: 0;
}

.history-copy strong {
    color: var(--text-color);
    font-weight: 600;
}

.history-copy a {
    color: var(--accent-color);
    text-decoration: underline;
}

.mobile-cta-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    border-top: 1px solid var(--glass-border);
    background: rgba(211, 228, 244, 0.92);
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
}

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

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

    .arch-frame-large {
        margin-right: auto;
        margin-left: auto;
        width: min(100%, 460px);
    }
}

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-dropdown-toggle {
    border: 0;
    background: none;
    padding: 0;
    color: inherit;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 60;
    display: flex;
    min-width: 13rem;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem;
    padding-top: 0.85rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
    pointer-events: none;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown-item {
    display: block;
    white-space: nowrap;
    border-radius: 0.85rem;
    padding: 0.6rem 1rem;
    color: var(--text-color);
    font-weight: 600;
    transition: background-color 200ms ease, color 200ms ease;
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus-visible {
    background: var(--glass-bg);
    color: var(--primary-color);
    outline: none;
}

@media (max-width: 767px) {
    .site-header {
        backdrop-filter: blur(8px);
    }

    .glass-panel {
        backdrop-filter: blur(10px);
    }
}