/* ==================================================================
   1. TOP DECORATIVE BACKGROUNDS
   2. NAVIGATION
   3. HERO SECTIONS
   4. WELCOME SECTION
   5. SECTION DIVIDERS
   6. INFO SECTIONS (Getting There, Accommodation, etc.)
   7. HOTEL LISTINGS
   8. RSVP FORM
   9. PHOTO GALLERY
   10. THANK YOU PAGE
   11. FOOTER
   ================================================================== */


/* ==================================================================
   1. TOP DECORATIVE BACKGROUNDS
   ================================================================== */

.top-deco {
    background-image: url("../img/bg_grapes.svg");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
}

.top-deco-rsvp {
    background-image: url("../img/rsvp_bg.svg");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
    padding-top: clamp(4rem, 10vw, 7rem);
}


/* ==================================================================
   2. NAVIGATION
   ================================================================== */

.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(5px) saturate(115%);
    -webkit-backdrop-filter: blur(5px) saturate(115%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.20);
    z-index: 1000;
    padding: var(--space-4) 0;
}

.nav-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 2rem, 1000px);
    margin-inline: auto;
}

.nav-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.6rem, 1.2rem + 1vw, 3.2rem);
    letter-spacing: 0.02em;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    border-radius: 0.75rem;
    background: var(--blue-suit);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.nav-btn:hover,
.nav-btn:focus-visible {
    background: #556091;
    /* Fallback for older browsers */
    background: color-mix(in srgb, var(--blue-suit) 85%, black);
    transform: translateY(-1px);
    color: white;
}

.nav-btn:active {
    transform: translateY(0);
}


/* ==================================================================
   3. HERO SECTIONS
   ================================================================== */

/* Homepage Hero */
.hero-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    min-height: 70vh;
    padding-top: clamp(6rem, 10vw, 8rem);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: var(--space-5);
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.hero-date {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 1.2rem + 1vw, 2.2rem);
    font-weight: 700;
    margin-bottom: var(--space-6);
    color: var(--blue-suit);
}

.hero-time {
    font-size: 1rem;
}

.hero-location {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.95rem;
}

/* Hero Image */
.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* Countdown Timer */
.countdown {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    background: rgba(245, 244, 234, 0.8);
    /* Fallback */
    background: color-mix(in srgb, var(--paper) 80%, white);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    box-shadow: rgba(0, 0, 0, 0.09) 0 6px 18px;
}

.count-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
}

.count-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
}

/* RSVP Hero */
.hero-rsvp-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 40vh;
    padding-top: 4rem;
    text-align: center;
}

.hero-rsvp-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: var(--space-5);
}

.hero-rsvp-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.hero-rsvp-title {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 1.2rem + 1vw, 2.2rem);
    font-weight: 700;
    margin-bottom: var(--space-6);
    color: var(--blue-suit);
}

.hero-sub-title {
    font-size: 1rem;
}

/* Hero Responsive */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .hero-content {
        padding-top: var(--space-7);
    }
}


/* ==================================================================
   4. WELCOME SECTION
   ================================================================== */

.welcome-section {
    padding-top: clamp(2rem, 3vw, 1.5rem);
    padding-bottom: clamp(3rem, 6vw, 6rem);
    padding-left: 1rem;
    padding-right: 1rem;
}

.welcome-content {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.welcome-content p {
    font-size: 1rem;
    line-height: 1.7;
}


/* ==================================================================
   5. SECTION DIVIDERS
   ================================================================== */

.section-divider {
    width: min(100% - 2rem, 1000px);
    margin: clamp(1.25rem, 3vw, 2.25rem) auto;
}

.section-divider img {
    width: 100%;
    height: auto;
}


/* ==================================================================
   6. INFO SECTIONS
   Basic info sections (Getting There, Accommodation, etc.)
   ================================================================== */

.info-section {
    padding: clamp(2.5rem, 6vw, 5rem) 1rem;
    position: relative;
}

.info-grid {
    width: min(100% - 2rem, 1000px);
    margin-inline: auto;
    display: grid;
    gap: var(--space-6);
}

.info-title-wrapper {
    position: relative;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
}

.info-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 1.2rem + 1vw, 2.6rem);
    letter-spacing: 0.06em;
    text-align: center;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.info-text {
    text-align: left;
    max-width: 62ch;
}

.info-text p {
    margin-top: 5px;
    line-height: 1.8;
}

/* Background utilities for sections */
.bg-light {
    background: rgba(245, 244, 234, 0.6);
    /* Fallback */
    background: color-mix(in srgb, var(--paper) 60%, white);
}

/* Decorative background images for sections */
.section-deco-left {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(120px, 20vw, 200px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.section-deco-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(120px, 20vw, 200px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

/* Desktop 2-column layout */
@media (min-width: 900px) {
    .info-grid {
        grid-template-columns: 1fr 2fr;
        align-items: start;
    }

    .info-title {
        text-align: center;
        padding-right: 0;
        padding-top: 0.2rem;
    }
}

/* Hide decorative images on mobile */
@media (max-width: 768px) {

    .section-deco-left,
    .section-deco-right {
        display: none;
    }
}


/* ==================================================================
   7. HOTEL LISTINGS
   ================================================================== */

.hotels-section {
    padding: clamp(2.5rem, 6vw, 5rem) 1rem;
}

.hotels-wrap {
    width: min(100% - 2rem, 1000px);
    margin-inline: auto;
    text-align: center;
}

.hotels-title {
    font-family: var(--font-heading);
    letter-spacing: 0.06em;
    font-size: clamp(1.8rem, 1.2rem + 1vw, 2.6rem);
    margin-bottom: 1rem;
}

.hotels-note {
    max-width: 70ch;
    margin: 0 auto 2rem;
    line-height: 1.7;
    margin-bottom: var(--space-11);
}

/* Hotels with discount - 3 column grid */
.hotels-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
    align-items: stretch;
}

@media (min-width: 650px) {
    .hotels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 950px) {
    .hotels-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Hotels without discount - 2 column grid */
.hotels-grid-nodiscount {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
    align-items: stretch;
}

@media (min-width: 650px) {
    .hotels-grid-nodiscount {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Hotel card styling */
.hotel-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
    padding: 2.25rem 1.25rem;
    border-radius: 0.9rem;
    background: rgba(245, 215, 188, 0.35);
    /* Fallback */
    background: color-mix(in srgb, var(--skin) 35%, white);
    box-shadow: rgba(0, 0, 0, 0.04) 0 10px 24px;
    text-decoration: none;
    color: var(--text);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.hotel-card:hover,
.hotel-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: rgba(0, 0, 0, 0.10) 0 14px 32px;
}

.hotel-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    margin: 0 0 0.5rem;
    padding-bottom: var(--space-3);
}

.hotel-card p {
    margin: 0 0 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-weight: 400;
}

.hotel-link {
    margin-top: auto;
    display: inline-block;
    font-weight: 700;
    color: var(--blue-suit);
}

/* Decorative image card */
.hotel-card--image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
    pointer-events: none;
}

.hotel-card--image img {
    width: clamp(8rem, 60%, 14rem);
}


/* ==================================================================
   8. RSVP FORM
   ================================================================== */

.rsvp-section {
    padding: clamp(2.5rem, 6vw, 5rem) 1rem clamp(4rem, 8vw, 7rem);
}

.rsvp-wrap {
    width: min(100% - 2rem, 900px);
    margin-inline: auto;
}

.rsvp-form {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    border-radius: 1.5rem;
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow:
        rgba(0, 0, 0, 0.03) 0 2px 8px,
        rgba(0, 0, 0, 0.05) 0 12px 32px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Form grid layout */
.form-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: 1fr;
    align-items: start;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
        align-items: end;
    }

    .field-full {
        grid-column: 1 / -1;
    }

    .field-submit {
        grid-column: 1 / -1;
        margin-top: 1rem;
    }
}

/* Form fields */
.field {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.field label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    letter-spacing: 0.01em;
    min-height: 1.2rem;
    display: block;
}

/* Text inputs, selects, and textareas */
.field input:not([type="radio"]),
.field select,
.field textarea {
    width: 100%;
    padding: 1rem 1.15rem;
    border-radius: 0.85rem;
    border: 1.5px solid rgba(14, 14, 13, 0.15);
    /* Fallback */
    border: 1.5px solid color-mix(in srgb, var(--ink) 15%, white);
    background: #fff;
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: all 200ms ease;
}

.field textarea {
    font-family: var(--font-body);
    resize: vertical;
    min-height: 100px;
}

.field input:not([type="radio"]):focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue-suit);
    box-shadow:
        0 0 0 3px rgba(100, 114, 165, 0.15),
        /* Fallback */
        0 0 0 3px color-mix(in srgb, var(--blue-suit) 15%, white),
        rgba(0, 0, 0, 0.04) 0 4px 12px;
    transform: translateY(-1px);
}

.field textarea::placeholder,
.field input:not([type="radio"])::placeholder {
    color: rgba(14, 14, 13, 0.4);
    /* Fallback */
    color: color-mix(in srgb, var(--ink) 40%, white);
}

/* Custom select dropdown arrow */

.field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%230e0e0d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Radio button groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-group-horizontal {
    flex-direction: row;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .radio-group-horizontal .radio-pill {
        flex: 1;
        justify-content: center;
        text-align: center;
        min-width: 0;
    }
}

/* Radio pill styling */
.radio-pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-radius: 0.85rem;
    border: 1.5px solid rgba(14, 14, 13, 0.15);
    /* Fallback */
    border: 1.5px solid color-mix(in srgb, var(--ink) 15%, white);
    background: #fff;
    cursor: pointer;
    transition: all 200ms ease;
}

.radio-pill:hover {
    border-color: rgba(100, 114, 165, 0.6);
    /* Fallback */
    border-color: color-mix(in srgb, var(--blue-suit) 60%, white);
    box-shadow: rgba(0, 0, 0, 0.04) 0 2px 8px;
}

.radio-pill input[type="radio"] {
    width: 1.15rem;
    height: 1.15rem;
    cursor: pointer;
    accent-color: var(--blue-suit);
}

.radio-pill input[type="radio"]:checked+span {
    font-weight: 600;
}

.radio-pill:has(input:checked) {
    border-color: var(--blue-suit);
    background: rgba(100, 114, 165, 0.08);
    /* Fallback */
    background: color-mix(in srgb, var(--blue-suit) 8%, white);
    box-shadow:
        0 0 0 2px rgba(100, 114, 165, 0.2),
        /* Fallback */
        0 0 0 2px color-mix(in srgb, var(--blue-suit) 20%, white),
        rgba(0, 0, 0, 0.04) 0 4px 12px;
}

.radio-pill span {
    line-height: 1.4;
    font-size: 0.95rem;
}

/* Submit button */
.rsvp-submit {
    width: 100%;
    padding: 1.15rem 2rem;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    background: var(--blue-suit);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    box-shadow:
        rgba(0, 0, 0, 0.1) 0 4px 12px,
        rgba(0, 0, 0, 0.08) 0 12px 28px;
    transition: all 200ms ease;
}

.rsvp-submit:hover,
.rsvp-submit:focus-visible {
    transform: translateY(-2px);
    background: #5a6798;
    /* Fallback */
    background: color-mix(in srgb, var(--blue-suit) 90%, black);
    box-shadow:
        rgba(0, 0, 0, 0.12) 0 8px 20px,
        rgba(0, 0, 0, 0.1) 0 16px 36px;
}

.rsvp-submit:active {
    transform: translateY(0);
}

.rsvp-small {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.75;
    text-align: center;
    line-height: 1.5;
}


/* ==================================================================
   9. PHOTO GALLERY (Timeline)
   ================================================================== */

.gallery-section {
    padding: clamp(3rem, 8vw, 6rem) 1rem clamp(4rem, 10vw, 7rem);
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(245, 244, 234, 0.3) 100%);
}

.gallery-wrap {
    width: min(100% - 2rem, 1200px);
    margin-inline: auto;
}

.gallery-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 1.5rem + 1.5vw, 3rem);
    letter-spacing: 0.04em;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--blue-suit);
}

.gallery-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: clamp(3rem, 6vw, 5rem);
    max-width: 50ch;
    margin-left: auto;
    margin-right: auto;
}

/* Photo grid - responsive masonry layout */
.photo-gallery {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

/* Mobile: stack all photos */
@media (max-width: 767px) {
    .photo-gallery {
        gap: 1.5rem;
    }
}

/* Tablet: 2 columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Desktop: masonry-style grid with 3 columns */
@media (min-width: 1024px) {
    .photo-gallery {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 240px;
        gap: 1.25rem;
    }

    /* Portrait images span 2 rows */
    .photo-item:nth-child(2),
    /* 2018 */
    .photo-item:nth-child(3),
    /* 2019 */
    .photo-item:nth-child(4),
    /* 2020 */
    .photo-item:nth-child(7),
    /* 2023 */
    .photo-item:nth-child(8),
    /* 2024 */
    .photo-item:nth-child(9) {
        /* 2025 */
        grid-row: span 2;
    }

    /* Landscape images span 1 row */
    .photo-item:nth-child(1),
    /* 2017 */
    .photo-item:nth-child(5),
    /* 2021 */
    .photo-item:nth-child(6) {
        /* 2022 */
        grid-row: span 1;
    }
}

/* Photo item styling */
.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow:
        rgba(0, 0, 0, 0.06) 0 4px 12px,
        rgba(0, 0, 0, 0.04) 0 12px 28px;
    transition: all 300ms ease;
    background: #fff;
}

.photo-item:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        rgba(0, 0, 0, 0.1) 0 8px 20px,
        rgba(0, 0, 0, 0.08) 0 16px 40px;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Year label on photos */
.photo-year {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blue-suit);
    letter-spacing: 0.05em;
    box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
    transition: all 250ms ease;
}

.photo-item:hover .photo-year {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: rgba(0, 0, 0, 0.15) 0 6px 16px;
}

/* ==================================================================
   10. THANK YOU PAGE
   ================================================================== */

.thank-you-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: clamp(3rem, 8vw, 6rem) 1rem;
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-5);
}

.thank-you-icon {
    margin-bottom: var(--space-3);
    animation: checkmark-pop 0.5s ease-out;
}

@keyframes checkmark-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.thank-you-icon svg {
    width: clamp(60px, 15vw, 80px);
    height: clamp(60px, 15vw, 80px);
}

.thank-you-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--blue-suit);
    margin: 0;
    letter-spacing: 0.02em;
}

.thank-you-message {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 50ch;
}

.thank-you-message p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.thank-you-actions {
    margin-top: var(--space-4);
}

.thank-you-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 0.9rem;
    background: var(--blue-suit);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow:
        rgba(0, 0, 0, 0.1) 0 4px 12px,
        rgba(0, 0, 0, 0.08) 0 12px 28px;
    transition: all 200ms ease;
}

.thank-you-btn:hover,
.thank-you-btn:focus-visible {
    transform: translateY(-2px);
    background: #5a6798;
    /* Fallback */
    background: color-mix(in srgb, var(--blue-suit) 90%, black);
    box-shadow:
        rgba(0, 0, 0, 0.12) 0 8px 20px,
        rgba(0, 0, 0, 0.1) 0 16px 36px;
    color: white;
}

.thank-you-btn:active {
    transform: translateY(0);
}

.thank-you-reminder {
    margin-top: var(--space-4);
    padding-top: var(--space-5);
    border-top: 1px solid rgba(14, 14, 13, 0.1);
    /* Fallback */
    border-top: 1px solid color-mix(in srgb, var(--ink) 10%, white);
}

.thank-you-reminder p {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--muted);
    margin: 0;
}


/* ==================================================================
   11. FOOTER
   ================================================================== */

.site-footer {
    background: var(--blue-suit);
    color: #fff;
    padding: clamp(1.8rem, 4vw, 3rem) 1rem;
}

.footer-inner {
    width: min(100% - 2rem, 1000px);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer-credit a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* Desktop footer layout */
@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .footer-credit {
        text-align: right;
    }
}