/* ===========================
   WEDDING WEBSITE CSS
   Alex & Jordan Rivera
   =========================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* White & Sage Green Colorado Color Palette */
    --color-primary: #87A96B;
    /* Sage green */
    --color-secondary: #6B8E5F;
    /* Darker sage */
    --color-accent: #A8B89B;
    /* Light sage */
    --color-dark: #3D4F3D;
    /* Deep forest */
    --color-light: #F5F7F5;
    /* Off-white/cream */
    --color-white: #FFFFFF;
    /* Pure white */
    --color-sage-light: #C8D5C0;
    /* Very light sage */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing */
    --section-padding: 80px 20px;
    --container-width: 1200px;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   NAVIGATION
   =========================== */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--color-primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    transition: all 0.3s ease;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(135, 169, 107, 0.3) 0%, rgba(107, 142, 95, 0.3) 100%);
    background-image: url('../images/hero-background.svg');
    /* Add your mountain/barn image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-dark);
    padding: 60px 80px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 40px;
    /* More modern rounded corners */
    box-shadow: 0 20px 60px rgba(135, 169, 107, 0.15);
    max-width: 900px;
}

.couple-names {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    /* Larger font */
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--color-primary);
    text-shadow: 2px 2px 4px rgba(135, 169, 107, 0.1);
    animation: fadeInUp 1s ease;
}

.hero-divider {
    width: 100px;
    height: 1px;
    background: var(--color-sage-light);
    margin: 0 auto 30px;
    animation: fadeInUp 1.2s ease;
}

.hero-details {
    margin-bottom: 20px;
}

.wedding-date {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    /* Premium letter spacing */
    margin-bottom: 15px;
    color: var(--color-secondary);
    animation: fadeInUp 1.3s ease;
}

.wedding-venue-info {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    animation: fadeInUp 1.4s ease;
}

.wedding-venue-info .venue {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--color-secondary);
}

.wedding-venue-info .dot {
    color: var(--color-dark);
    font-size: 0.8rem;
    opacity: 0.5;
}

.wedding-venue-info .location {
    font-weight: 300;
    letter-spacing: 1px;
}

.countdown {
    font-size: 1.1rem;
    margin-top: 40px;
    padding: 15px 30px;
    background: rgba(135, 169, 107, 0.05);
    border-radius: 50px;
    /* Pill shape */
    display: inline-block;
    animation: fadeInUp 1.6s ease;
    color: var(--color-dark);
    border: 1px solid var(--color-sage-light);
}

@media (max-width: 768px) {
    .hero-content {
        padding: 40px 20px;
        border-radius: 20px;
        width: 90%;
        margin-top: 20px; /* Slight push down by default */
    }

    .couple-names {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .hero-divider {
        margin-bottom: 20px;
    }

    .wedding-date {
        font-size: 1.1rem;
        letter-spacing: 3px;
    }

    .wedding-venue-info {
        flex-direction: column;
        gap: 5px;
    }

    .wedding-venue-info .dot {
        display: none;
    }

    .wedding-venue-info .venue {
        font-size: 1.2rem;
    }

    .countdown {
        font-size: 0.9rem;
        padding: 10px 20px;
        margin-top: 30px;
    }
}

/* Specific fix for Very Narrow screens (Logo overlap) */
@media (max-width: 450px) {
    .hero-content {
        margin-top: 80px; /* Force it below the Logo/Nav */
        padding-top: 30px;
    }
}

/* Specific fix for Short Screens (Bottom bleed) */
@media (max-height: 620px) and (max-width: 768px) {
    .hero-content {
        padding: 30px 20px;
        margin-top: 70px;
    }

    .couple-names {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .hero-divider {
        margin-bottom: 10px;
    }

    .wedding-date {
        margin-bottom: 8px;
    }

    .countdown {
        margin-top: 15px;
        padding: 8px 15px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   SECTIONS
   =========================== */
.section {
    padding: var(--section-padding);
}

.section.bg-light {
    background: var(--color-light);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--color-sage-light), var(--color-primary), var(--color-sage-light));
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ===========================
   OUR STORY
   =========================== */
.couple-photos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.couple-photo-item {
    text-align: center;
}

.couple-photo-circle {
    width: 280px; /* Slightly larger for emphasis */
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 25px;
    border: 4px solid var(--color-white);
    box-shadow: 0 12px 35px rgba(135, 169, 107, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.couple-photo-circle:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 45px rgba(135, 169, 107, 0.35);
    border-color: var(--color-primary);
}

.couple-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%; /* Focus on the top/faces */
    display: block;
    transition: transform 0.6s ease;
}

.couple-photo-circle:hover img {
    transform: scale(1.05);
}

.couple-photo-item h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-primary);
    margin: 0;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.story-content p {
    margin-bottom: 20px;
}

/* ===========================
   WEDDING PARTY
   =========================== */
.party-group {
    margin-bottom: 60px;
}

.party-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-secondary);
}

.slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: visible;
}

.party-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 10px 40px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.party-slider::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.party-member {
    flex: 0 0 calc(25% - 23px);
    max-width: 250px;
    text-align: center;
    scroll-snap-align: start;
    /* Align to the left of the container */
}

.party-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background-color: var(--color-sage-light);
    border: 3px solid var(--color-white);
    box-shadow: 0 5px 15px rgba(135, 169, 107, 0.2);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fallback icon for placeholder */
.party-photo:empty::after {
    content: '\f007'; /* User icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 3rem;
    color: var(--color-primary);
    opacity: 0.5;
}

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

.slider-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--color-white);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--color-primary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 6px 20px rgba(135, 169, 107, 0.3);
}

.slider-arrow.prev {
    left: -40px;
}

.slider-arrow.next {
    right: -40px;
}

@media (max-width: 1100px) {
    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .slider-arrow.prev {
        left: 5px;
        /* Bring them slightly inside to prevent clipping */
    }

    .slider-arrow.next {
        right: 5px;
    }
}

@media (max-width: 992px) {
    .party-member {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 576px) {
    .party-member {
        flex: 0 0 85%;
    }
}

.party-member {
    text-align: center;
}

.party-photo-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-sage-light) 0%, var(--color-accent) 100%);
    margin: 0 auto 15px;
    border: 4px solid var(--color-white);
    box-shadow: 0 5px 20px rgba(135, 169, 107, 0.2);
}

.party-member h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--color-dark);
}

.party-member p {
    color: var(--color-primary);
    font-style: italic;
}

/* ===========================
   SCHEDULE
   =========================== */
.schedule-timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.schedule-timeline::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-sage-light), var(--color-primary));
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-time {
    flex-shrink: 0;
    width: 100px;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.timeline-time::after {
    content: '';
    position: absolute;
    left: 95px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    border: 3px solid var(--color-white);
    box-shadow: 0 0 0 3px var(--color-sage-light);
}

.timeline-content {
    flex: 1;
    background: var(--color-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    margin-bottom: 10px;
}

/* ===========================
   FORMS (RSVP, Contact, etc.)
   =========================== */
.rsvp-form,
.contact-form,
.access-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.rsvp-intro,
.contact-intro,
.gallery-intro,
.livestream-intro,
.registry-intro {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: normal;
    height: auto;
    min-height: 48px;
    transition: border-color 0.3s ease;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234a7c4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-message {
    margin: 20px 0;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Buttons */
.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--color-sage-light);
    color: var(--color-dark);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.rsvp-form button[type="submit"] {
    display: block;
    /* makes margin:auto work */
    margin: 30px auto 0;
    /* centers horizontally and adds top spacing */
    width: fit-content;
    /* button shrinks to content width */
}

.contact-form button[type="submit"] {
    display: block;
    margin: 30px auto 0;
    width: fit-content;
}

button[type="submit"] {
    padding: 12px 30px;
    background-color: #4a7c4a;
    /* Green color to match theme */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #3a5c3a;
    /* Darker shade on hover */
}


/* ===========================
   GALLERY
   =========================== */
.gallery-access {
    max-width: 500px;
    margin: 40px auto;
    text-align: center;
}

.access-form {
    display: flex;
    gap: 10px;
    padding: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.access-form input {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

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

.access-form .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    /* Match input border radius */
    white-space: nowrap;
}

@media (max-width: 576px) {
    .access-form {
        flex-direction: column;
        padding: 15px;
    }

    .access-form input {
        width: 100%;
        min-width: unset;
    }

    .access-form .btn {
        width: 100%;
    }
}

.gallery-upload {
    background: var(--color-white);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-upload h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 20px;
}

.upload-form {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    aspect-ratio: 1;
}

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

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

/* Default upload dropzone style */
.upload-dropzone {
    padding: 40px;
    border: 2px dashed #ccc;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background-color: #fafafa;
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.upload-dropzone:hover {
    border-color: var(--color-primary);
    background-color: #f0f7f0;
}

.upload-dropzone.dragover {
    background-color: #e6f7e6;
    border-color: var(--color-primary);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.upload-dropzone:hover .upload-icon {
    transform: scale(1.1) rotate(5deg);
}

.dropzone-text {
    font-size: 1.1rem;
    color: #666;
}

/* File Input within Dropzone */
.upload-dropzone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    display: block;
    /* Ensure it covers the area */
}

/* Style the preview area */
.preview-area {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    color: #ff4d4d;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    z-index: 10;
}

.preview-remove:hover {
    background: #ff4d4d;
    color: white;
    transform: scale(1.1);
}

/* Progress Bar */
.progress-container {
    width: 100%;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
    position: relative;
    height: 24px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--color-dark);
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}




/* ===========================
   LIGHTBOX
   =========================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

#loadMorePhotos {
    display: none;
    margin: 40px auto 0;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}


/* ===========================
   LIVESTREAM
   =========================== */
.livestream-container {
    max-width: 900px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.livestream-note {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    color: var(--color-primary);
}

/* ===========================
   REGISTRY
   =========================== */
.registry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.registry-card {
    text-decoration: none;
    background: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.registry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.registry-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.registry-card h3 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    margin-bottom: 10px;
}

.registry-card p {
    color: var(--color-primary);
}

.honeymoon-fund {
    max-width: 800px;
    margin: 50px auto;
    text-align: center;
}

.donation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.single-card-grid {
    display: flex;
    justify-content: center;
}

.single-card-grid .donation-card {
    max-width: 500px;
    width: 100%;
}

.donation-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(135, 169, 107, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.donation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(135, 169, 107, 0.15);
    border-color: var(--color-primary);
}

.donation-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid var(--color-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.donation-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%; /* Shift focus up to prevent forehead cutoff */
}

.donation-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.donation-card p {
    color: var(--color-dark);
    font-size: 1rem;
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.6;
}

.donation-card .btn {
    width: 100%;
}

.honeymoon-fund p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--color-dark);
    color: var(--color-white);
    text-align: center;
    padding: 40px 20px;
}

.footer p {
    margin: 5px 0;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--color-white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 30px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .couple-names {
        font-size: 3rem;
    }

    .wedding-date {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .schedule-timeline::before {
        left: 20px;
    }

    /* Mobile Timeline Fix */
    .timeline-item {
        display: block;
        /* stack vertically */
        margin-left: 0;
        margin-bottom: 30px;
    }

    .timeline-time {
        position: relative;
        /* remove absolute positioning */
        width: auto;
        margin-left: 0;
        padding-left: 30px;
        /* space for the circle */
        font-size: 1rem;
    }

    .timeline-time::after {
        position: absolute;
        /* keep circle positioned correctly */
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .timeline-content {
        margin-left: 30px;
        /* move content away from the circle */
        padding: 15px;
    }

    .party-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
/* ===========================
   DEMO MODE BANNER
   =========================== */
.demo-banner {
    position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
    z-index: 2000; width: max-content; max-width: calc(100% - 32px);
    background: #3E5537; color: #fff; padding: 10px 44px 10px 16px; border-radius: 8px;
    font-size: 0.9rem; line-height: 1.4; box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.demo-banner a { color: #F3D9B1; margin-left: 6px; }
.demo-banner button {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.demo-note { text-align: center; color: #888; font-size: 0.9rem; }
