/* Explain: Styling for various UI components used across the site. */
.eyebrow {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.rule-gold {
    display: block;
    width: 68px;
    height: 1px;
    background: var(--primary-color);
    opacity: 0.65;
}

.rule-gold--center {
    margin-left: auto;
    margin-right: auto;
}

.btn-gold,
.btn-ghost,
.btn-ghost-light {
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 50px;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
    cursor: pointer;
}

.btn-gold {
    display: inline-flex;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #fffdf8;
}

.btn-gold:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-ghost {
    display: inline-flex;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-ghost:hover {
    border-color: var(--primary-color);
    background: var(--surface-color);
}

.btn-ghost-light {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #ffffff;
}

.btn-ghost-light:hover {
    background: #fffdf8;
    border-color: #fffdf8;
    color: var(--text-color);
}

.nav-link {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 0;
    background: var(--primary-color);
    transition: width 0.35s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text-color);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    width: 100%;
}

.nav-link--mobile {
    font-size: 0.85rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.nav-link--mobile:hover,
.nav-link--mobile.is-active {
    color: var(--primary-color);
}

.countdown {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(1.25rem, 5vw, 3.5rem);
}

.countdown-unit {
    min-width: 68px;
    text-align: center;
}

.countdown-value {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    line-height: 1;
    color: var(--text-color);
}

.countdown-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.card-wedding {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem 1.75rem;
    background: #fffdf8;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.card-wedding:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-3px);
}

.icon-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--champagne-soft);
    border-radius: 999px;
    color: var(--primary-color);
    background: var(--surface-color);
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2.25rem;
    border-left: 1px solid var(--border-color);
}

.timeline-item:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.timeline-dot {
    position: absolute;
    left: -4.5px;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--primary-color);
}

.gallery-item {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: var(--surface-color);
    cursor: pointer;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s ease;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(38, 40, 32, 0);
    transition: background-color 0.4s ease;
}

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

.gallery-item:hover::after {
    background: rgba(38, 40, 32, 0.18);
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 90;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(22, 23, 19, 0.95);
}

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

.lightbox-figure {
    position: relative;
    max-width: min(100%, 1100px);
    text-align: center;
}

.lightbox-figure img {
    display: block;
    max-width: 100%;
    max-height: 76vh;
    margin: 0 auto;
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.lightbox-loader {
    position: absolute;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(22, 23, 19, 0.9);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.lightbox-btn {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.7);
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
}

.lightbox-prev {
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
}

.field-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.66rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.field-input {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 0.8rem 1rem;
    background: #fffdf8;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.field-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(198, 164, 94, 0.18);
}

textarea.field-input {
    min-height: 130px;
    resize: vertical;
}

.choice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 50px;
    padding: 0.85rem 1rem;
    background: #fffdf8;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.choice:hover {
    border-color: var(--primary-color);
    background: var(--surface-color);
}

.choice input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.guest-block {
    display: grid;
    gap: 1.25rem;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
}

.guest-block-title {
    grid-column: 1 / -1;
    margin-bottom: 0;
    color: var(--primary-color);
}

@media (min-width: 640px) {
    .guest-block {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guest-block--single {
        grid-template-columns: minmax(0, 1fr);
    }
}

.gallery-columns {
    columns: 1;
    column-gap: 0.75rem;
}

.gallery-columns .gallery-item {
    margin-bottom: 0.75rem;
    break-inside: avoid;
}

@media (min-width: 640px) {
    .gallery-columns {
        columns: 2;
        column-gap: 1rem;
    }

    .gallery-columns .gallery-item {
        margin-bottom: 1rem;
    }
}

@media (min-width: 1024px) {
    .gallery-columns {
        columns: 3;
    }
}