/* Base Styles */
:root {
    --black-10-percent: rgba(0, 0, 0, 0.1);
    --black-50-percent: rgba(0, 0, 0, 0.5);
    --white-0-percent: rgba(255, 255, 255, 0);
    --white-20-percent: rgba(255, 255, 255, 0.2);
    --white-90-percent: rgba(255, 255, 255, 0.9);
    --dark-sage-background: #557c66;
    --dark-sage-with-20-white: #779685;
    --light-foreground-1: #f6f5eb;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Cormorant Garamond', serif;
    overflow-x: hidden;
    background-color: var(--dark-sage-background);
}

/* Menu Button */
.menu-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1002;
    background: var(--dark-sage-with-alpha);
    border: none;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px var(--black-10-percent);
}

.menu-button span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--light-foreground-1);
    margin: 2px 0;
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    left: -50%;
    width: 50%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--dark-sage-with-20-white);
    padding: 80px 40px;
    transition: all 0.3s ease;
    z-index: 1001;
    box-sizing: border-box;
    box-shadow: 2px 0 10px var(--black-10-percent);
}

.nav-menu.active {
    left: 0;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.nav-menu li {
    margin-bottom: 20px;
}

.nav-menu a, .nav-menu span {
    color: var(--light-foreground-1);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: block;
    padding: 10px 0;
    position: relative;
}

.nav-menu li > ul > li {
    margin-left: 2em;
}

.nav-menu span.underline-on-hover {
    /* Remove extra padding so the underline is positioned correctly */
    padding: 0;
}

/* Underline on hover should apply to all items in the nav pane, 
   including the Travel and FAQ headers */
.nav-menu a::after, .nav-menu span.underline-on-hover::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--light-foreground-1);
    transition: all 0.3s ease;
}

.nav-menu a:hover::after, .nav-menu span.underline-on-hover:hover::after {
    width: 100px;
}

.nav-menu .dropdown-toggle::after {
    /* Adjusts the size and position of the caret */
    font-size: .6em;
}

/* Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black-50-percent);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 3em;
}

.hero-content {
    width: 100%;
    display: flex;
    padding: 2rem;
    row-gap: 4rem;
    column-gap: 2rem;
    display: flex;
    flex: 2;
    flex-direction: row;
    align-items: center;
}

.left-content {
    flex: 2;
    color: var(--light-foreground-1);
    padding-top: 13rem;
    padding-bottom: 10rem;
    padding-left: 4rem;
    padding-right: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
}

.left-content-background {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-image: url('../images/website-flower-wreath.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.right-content {
    flex: 1;
    background: var(--white-90-percent);
    padding: 2.5rem;
    border-radius: 8px;
    justify-content: right;
    position: relative;
    /* Match the photo grid height plus padding */
    min-height: calc(var(--total-height) + 5rem);
}

/* Typography */
.names {
    font-family: 'Ephesis', 'Brush Script MT', cursive;
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-style: normal;
}

.announcement {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #333;
}

.form-check {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    margin: 0;
    width: 18px;
    height: 18px;
}

.form-check-label {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
    cursor: pointer;
}

/* Event Styles */
.event-card {
    border-bottom: 1px solid #eee;
    padding: 1.8rem 0;
    text-align: left;
}

.event-card:last-child {
    border-bottom: none;
}

.event-name {
    /*font-size: 1.5rem;*/
    color: #333;
    margin-bottom: 0.8rem;
}

.event-date {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.8rem;
}

.event-location {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.event-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.event-rsvp-deadline {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Buttons */
.rsvp-button, .submit-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid var(--dark-sage-background);
    color: var(--dark-sage-background);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.submit-button {
    background-color: var(--dark-sage-background);
    color: var(--light-foreground-1);
    width: 100%;
}

.submit-button:hover {
    background-color: white;
    color: #333;
}

/* Disabled Submit Button */
.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #6c757d;
    color: #fff;
}

.submit-button:disabled:hover {
    background-color: #6c757d;
    transform: none;
}

.btn.attendance-button {
    background-color: white;
    padding: 0.8rem;
    border: 1px solid var(--dark-sage-background);
    border-radius: 4px;
    color: #333;
    width: 100%;
}

.btn.attendance-button:hover {
    background-color: var(--dark-sage-background);
    color: var(--light-foreground-1);
    width: 100%;
}

.btn-check:checked+.attendance-button {
    background-color: var(--dark-sage-background);
    color: white;
}

.rsvp-button:hover {
    background-color: var(--dark-sage-background);
    color: var(--light-foreground-1);
}


.add-guest-btn {
    font-size: 1rem;
    background-color: white;
    padding: 0.8rem 2rem;
    border: 1px solid var(--dark-sage-background);
    border-radius: 4px;
    color: #333;
    width: 100%;
}

.add-guest-btn:hover {
    background-color: var(--dark-sage-background);
    color: var(--light-foreground-1);
}

.remove-guest {
    padding: 0.7rem;
}

/* Thank you section */
.thank-you-content-buttons {
    display: flex;
    flex-direction: column;
}


/* Registry Styles */
.registry-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.registry-button {
    width: 100%;
    max-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.registry-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.registry-button i {
    font-size: 1.2em;
}

@media (max-width: 1300px) {
    .names {
        font-size: 3rem;
    }

    .announcement {
        font-size: 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        padding: 1rem;
    }

    .left-content, .right-content {
        text-align: center;
    }

    .names {
        font-size: 2rem;
    }

    .announcement {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        width: 70%;
        left: -70%;
        padding: 60px 20px;
    }

    .menu-button {
        top: 10px;
        left: 10px;
        width: 45px;
        height: 45px;
    }

    .nav-menu a, .nav-menu span {
        font-size: 1.3rem;
        padding: 8px 0;
    }

    .nav-menu li {
        margin-bottom: 15px;
    }

    .right-content {
        min-height: auto;
    }

    .hero-content {
        flex-direction: column;
    }

    .left-content {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .photo-grid {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .photo-item {
        position: relative;
        width: 100%;
        height: 250px;
        top: auto !important;
        left: auto !important;
    }

    .left-content-background {
        top: -40px;
        left: -40px;
        right: -40px;
        bottom: -40px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        width: 85%;
        left: -85%;
    }

    .menu-button {
        top: 10px;
        left: 10px;
        width: 45px;
        height: 45px;
    }

    

    .nav-menu a, .nav-menu span {
        font-size: 1.2rem;
    }

    .names {
        font-size: 1.4rem;
        margin-block-end: 6px;
    }

    .announcement {
        font-size: 0.8rem;
        margin-block-end: 6px;
    }

    .hero-content {
        padding: 0.5rem;
    }

    .left-content-background {
        top: -40px;
        left: -40px;
        right: -40px;
        bottom: -40px;
    }
}


.hero-content.travel {
    flex: 1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content.photos {
    flex: 1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Form feedback styles */
.form-feedback {
    margin-bottom: 1rem;
}

.form-feedback .alert {
    margin-bottom: 0;
    opacity: 1;
}

.form-feedback .alert.fade {
    transition: opacity 0.15s linear;
}

.form-feedback .alert.fade:not(.show) {
    opacity: 0;
}

.alert-warning {
    background-color: #fff3cd !important;
    border-color: #ffecb5 !important;
    color: #664d03 !important;
}

.alert-danger {
    background-color: #f8d7da !important;
    border-color: #f5c2c7 !important;
    color: #842029 !important;
}

.d-none {
    display: none !important;
}

.thank-you-content {
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
}

.thank-you-content h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.thank-you-content p {
    color: #666;
    font-size: 1.2rem;
}

.thank-you-content .submit-button {
    min-width: 120px;
}

/* Hotel Smart Chips */
.hotel-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.hotel-list li {
    margin-bottom: 0.5rem;
}

.hotel-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.hotel-link:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    color: #000;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hotel-link i {
    color: #557c66;
    font-size: 1rem;
}

/* Photo Grid Styles */
.photo-grid {
    position: relative;
    width: 100%;
    margin: 2rem auto;
    /* Calculate height dynamically based on number of photos */
    --photo-height: 300px;
    --photo-overlap: 75px;
    --photo-spacing: calc(var(--photo-height) - var(--photo-overlap));
    --number-of-photos: 11;  /* Default value, will be overridden by inline style */
    --total-height: calc((var(--number-of-photos) - 1) * var(--photo-spacing) + var(--photo-height));
    height: var(--total-height);
    min-height: 800px;
}

.photo-item {
    position: absolute;
    width: 400px;
    height: 300px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background-color: white;
}

/* Alternating left/right positioning with sequential overlap */
.photo-item {
    /* Calculate vertical position based on index */
    top: calc((var(--photo-index) - 1) * 225px); /* 300px - 75px overlap */
    /* Alternate between left and right */
    left: 50px;
    z-index: calc(100 - var(--photo-index)); /* Higher index = lower z-index */
}

/* Even numbered photos go on the right */
.photo-item:nth-child(even) {
    left: 250px;
}

/* Set the photo index for each photo */
.photo-item:nth-child(1) { --photo-index: 1; }
.photo-item:nth-child(2) { --photo-index: 2; }
.photo-item:nth-child(3) { --photo-index: 3; }
.photo-item:nth-child(4) { --photo-index: 4; }
.photo-item:nth-child(5) { --photo-index: 5; }
.photo-item:nth-child(6) { --photo-index: 6; }
.photo-item:nth-child(7) { --photo-index: 7; }
.photo-item:nth-child(8) { --photo-index: 8; }
.photo-item:nth-child(9) { --photo-index: 9; }
.photo-item:nth-child(10) { --photo-index: 10; }
.photo-item:nth-child(11) { --photo-index: 11; }
/* Add more if needed */

/* Hover effects */
.photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000; /* Always on top when hovered */
}

/* Our Story Photo Grid */
.hero-content.ourstory {
    flex: 1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.photo-item-content {
    padding: 3em;
    display: flex;
    background-color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.photo-item-content p {
    font-size: 1.2em;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

/* FAQ Styles */
.hero-content.faq {
    flex: 1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


/* Travel Styles */
.travel-buttons {
    display: flex;
    justify-content: center;
}   

.travel-buttons-header {
    text-align: center;
    padding: 3em;
}


