/* Explain: Reusable component styles for the website. */
.site-header {
    background: linear-gradient(180deg, rgba(250, 249, 246, 0.9), rgba(250, 249, 246, 0.58));
    backdrop-filter: blur(18px);
}

.rune-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--sage-dark);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.rune-kicker::before {
    display: inline-block;
    width: 2.4rem;
    height: 1px;
    background: var(--accent-color);
    content: "";
}

.panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, rgba(250, 249, 246, 0.84), rgba(255, 255, 255, 0.5));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

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

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

.frame-tall {
    height: min(72vh, 680px);
    min-height: 440px;
}

.frame-medium {
    height: 560px;
    max-width: 440px;
    border-radius: 1.5rem;
}

.floating-note {
    position: absolute;
    right: -1.25rem;
    bottom: 2.5rem;
    display: flex;
    max-width: 16rem;
    align-items: center;
    gap: 0.75rem;
    border-radius: 1.2rem;
    padding: 0.9rem 1.1rem;
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.5;
}

.quiet-note,
.occasion-item {
    border: 1px solid var(--glass-border);
    border-radius: 1.4rem;
    background: rgba(250, 249, 246, 0.62);
    padding: 1.35rem;
}

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

.quiet-note p,
.occasion-item p {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.75;
}

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

.service-card img {
    transition: transform 500ms ease;
}

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

.service-card:hover img {
    transform: scale(1.04);
}

.occasion-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-card {
    border: 1px solid var(--glass-border);
    border-radius: 1.4rem;
    background: rgba(250, 249, 246, 0.72);
    padding: 1.5rem;
}

.step-number {
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
}

.gallery-item {
    display: block;
    width: 100%;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--glass-border);
    border-radius: 1.4rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
    transition: transform 300ms ease, border-color 300ms ease;
}

.gallery-item img {
    transition: transform 500ms ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
    border-color: var(--accent-color);
    transform: translateY(-4px);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.quote-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    border-radius: 1.6rem;
    padding: 1.6rem;
}

.contact-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.2rem;
    background: rgba(250, 249, 246, 0.62);
    padding: 0.9rem 1.1rem;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 300ms ease, border-color 300ms ease;
}

.contact-note:hover {
    border-color: var(--accent-color);
    background: rgba(250, 249, 246, 0.9);
}

.contact-panel {
    border-radius: 2rem;
    padding: clamp(1.4rem, 4vw, 2.25rem);
}

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    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-contact-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.88);
    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.34);
    padding: 1rem;
}

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

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

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

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

.lightbox-panel {
    width: min(100%, 56rem);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: var(--background-color);
    padding: 0.9rem;
    box-shadow: 0 30px 90px rgba(31, 46, 35, 0.32);
}

.lightbox-stage {
    display: flex;
    min-height: 40vh;
    align-items: center;
    justify-content: center;
    border-radius: 1.1rem;
    background: var(--surface-color);
    padding: 0.5rem;
}

.lightbox-image {
    width: 100%;
    max-height: calc(100vh - 12rem);
    border-radius: 0.9rem;
    object-fit: contain;
    opacity: 0;
    transition: opacity 300ms ease;
}

.lightbox-image.is-ready {
    opacity: 1;
}

.lightbox-loader {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.lightbox-loader.is-hidden {
    display: none;
}

.gallery-filter {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.62);
    padding: 0.6rem 1.1rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease;
}

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

.gallery-filter.is-active {
    border-color: var(--accent-color);
    background: var(--button-color);
    color: var(--text-color);
}

.gallery-item.is-hidden,
.gallery-group.is-hidden,
[data-gallery-event].is-hidden {
    display: none;
}

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

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

.member-year {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    background: var(--sage-soft);
    padding: 0.35rem 0.8rem;
    color: var(--sage-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

    .frame-tall,
    .frame-medium {
        height: 460px;
        min-height: 0;
    }

    .frame-tall {
        width: 100%;
    }

    .frame-medium {
        margin-right: auto;
        margin-left: auto;
    }

    .floating-note {
        position: relative;
        right: auto;
        bottom: auto;
        max-width: 20rem;
        margin: -2.5rem auto 0;
    }
}

.hub-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 1.8rem;
    padding: 1.2rem;
    color: var(--text-color);
    text-decoration: none;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.hub-card img {
    transition: transform 500ms ease;
}

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

.hub-card:hover img,
.hub-card:focus-visible img {
    transform: scale(1.04);
}

.hub-arrow {
    transition: transform 300ms ease;
}

.hub-card:hover .hub-arrow,
.hub-card:focus-visible .hub-arrow {
    transform: translateX(5px);
}

.hub-more {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 1.1rem;
    color: var(--sage-dark);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 300ms ease;
}

.hub-card:hover .hub-more,
.hub-more:hover,
.hub-more:focus-visible {
    color: var(--primary-color);
}

.hub-more:hover .hub-arrow,
.hub-more:focus-visible .hub-arrow {
    transform: translateX(5px);
}

.gallery-slider {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.8rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
    touch-action: pan-y;
}

.gallery-slider-track {
    display: flex;
    transition: transform 600ms ease;
    will-change: transform;
}

.gallery-slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 100%;
    margin: 0;
}

.gallery-slide img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.gallery-slide-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.gallery-slide-link:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: -2px;
}

.gallery-slide figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 4rem 1.25rem 1.25rem;
    background: linear-gradient(180deg, rgba(31, 46, 35, 0) 0%, rgba(31, 46, 35, 0.86) 100%);
    color: #ffffff;
}

.gallery-slide-place {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.88;
}

.gallery-slide-caption {
    margin-top: 0.45rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.slider-dots {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.slider-dot {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: none;
}

.slider-dot::before {
    width: 0.7rem;
    height: 0.7rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--sage-soft);
    content: "";
    transition: width 300ms ease, background-color 300ms ease;
}

.slider-dot.is-active::before {
    width: 2rem;
    background: var(--accent-color);
}

@media (max-width: 639px) {
    .gallery-slide img {
        aspect-ratio: 4 / 3;
    }

    .gallery-slide-caption {
        font-size: 1rem;
    }
}