/* Font Face Declaration for Luthon Southard Serif */
@font-face {
    font-family: 'Luthon Southard Serif';
    src: url('../fonts/Luthon Southard Serif.otf') format('opentype'),
        url('../fonts/Luthon Southard Serif.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Font Face Declaration for Luthon Southard Script */
@font-face {
    font-family: 'Luthon Southard Script';
    src: url('../fonts/Luthon Southard Script.otf') format('opentype'),
        url('../fonts/Luthon Southard Script.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* CSS Custom Properties (Variables) */
:root {
    --primary-color: #4C5633;
    --secondary-color: #EFECE6;
    --font-color: #4C5633;
    --nav-height: 60px;
    --mobile-width-padding: 40px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Luthon Southard Serif', Georgia, serif;
    line-height: 1.6;
    color: var(--font-color);
    background-color: #EFECE6;
}

a {
    color: var(--font-color);
    text-decoration: underline;
}

/* Navigation */
.nav {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    height: var(--nav-height);
}

.nav-container {
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px;
}

/* Hamburger Menu Button - Hidden on desktop */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: none;
    /* Hidden by default on desktop */
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
}

.hamburger-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    /* Makes the SVG white */
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.hamburger.active .hamburger-icon {
    opacity: 0.6;
}

.hamburger:hover .hamburger-icon {
    opacity: 0.8;
}

/* Navigation Menu - Desktop styles */
.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    transition: color 0.3s ease;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link.active {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Overlay - Hidden on desktop */
.nav-overlay {
    display: none;
}

/* Combined Hero and Names Section */
.hero-names-section {
    height: calc(100vh - var(--nav-height));
    min-height: 600px;
    display: flex;
    align-items: stretch;
}

.hero-names-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.hero-part {
    flex: 0 0 60%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}

.hero-content {
    position: absolute;
    bottom: 58px;
    left: 63px;
    text-align: left;
    color: white;
    z-index: 2;
}

.hero-title {
    font-size: 100px;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero-title .ampersand {
    font-family: 'Luthon Southard Script';
    font-style: normal;
    font-size: 60px;
    font-weight: 200;
    display: inline-block;
    vertical-align: middle;
    margin: 0 20px;
    line-height: 1;
    transform: translateY(-10px);
    letter-spacing: 0px;
}

.names-part {
    flex: 0 0 40%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.names-content {
    text-align: center;
    padding: 40px;
}

.decorative-element {
    margin-bottom: 20px;
}

.decorative-element img {
    width: 235px;
    height: auto;
}

.tagline {
    font-family: 'Source Serif 4', serif;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 300;
}

.date {
    font-family: 'Source Serif 4', serif;
    font-weight: 300;
    font-size: 20px;
    margin-bottom: 28px;
}

.rsvp-link-button {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 14px 30px;
    font-family: 'Luthon Southard Serif', serif;
    font-size: 20px;
    border-radius: 40px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 300;
}

.rsvp-link-button:hover {
    background: white;
    color: var(--primary-color);
}

.registry-link-button {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 14px 30px;
    font-family: 'Luthon Southard Serif', serif;
    font-size: 20px;
    border-radius: 40px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 300;
    margin-top: 25px;
    margin-bottom: 28px;
}

.registry-link-button:hover {
    background: var(--primary-color);
    color: white;
}

.wishing-well-title {
    margin-top: 20px;
}

/* Split Container Section */
.split-container {
    background-color: #f0ede8;
    color: var(--primary-color);
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 200px 0px;
}

.column {
    display: flex;
    justify-content: flex-start;
    padding: 0px 100px;
}

.column:first-child {
    flex: 0 0 60%;
}

.column:last-child {
    flex: 0 0 40%;
}

.column-inner {
    text-align: left;
    width: 100%;
    max-width: 350px;
}

.column h3 {
    font-size: 40px;
    margin-bottom: 20px;
    margin-top: 60px;
}

.column h3:first-child {
    margin-top: 0;
}

.column h4 {
    font-size: 24px;
    font-weight: 300;
    margin-top: 50px;
    margin-bottom: 8px;
}

.column h4:first-of-type {
    margin-top: 0px;
}

.column p {
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 18px;
}

.info-content {
    text-align: left;
    width: 100%;
    max-width: 750px;
    font-family: 'Source Serif 4', serif;
}

.info-content h3 {
    font-family: 'Luthon Southard Serif', serif;
}

.timeline {
    display: flex;
    flex-direction: column;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.timeline-item:first-child {
    padding-top: 0;
}

.time {
    font-weight: 600;
    font-size: 18px;
    min-width: 45px;
    text-align: left;
}

.tilde {
    margin-left: -8px;
}

.event {
    font-size: 18px;
    text-align: left;
    flex: 1;
    margin-left: 15px;
}

/* Combined RSVP and Image Section */
.rsvp-image-section {
    display: flex;
    position: relative;
    z-index: 0;
}

.rsvp-image-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.image-part {
    flex: 0 0 40%;
    overflow: hidden;
}

.image-container {
    width: 100%;
    height: 100%;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rsvp-part {
    flex: 0 0 60%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 200px 0;
}

.rsvp-content {
    max-width: 500px;
    margin: 0 15px;
    /* This is to keep the form field from touching the edge at awkward widths*/
}

.rsvp-content h2 {
    font-size: 40px;
    font-family: 'Luthon Southard Serif', serif;
    margin-bottom: 16px;
    font-weight: 100;
    letter-spacing: 2px;
}

.rsvp-content p {
    font-size: 18px;
    margin-bottom: 18px;
    font-family: 'Luthon Southard Serif', serif;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto 75px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.rsvp-label {
    font-size: 18px;
    font-family: 'Source Serif 4', serif;
    margin-bottom: 4px;
    text-align: left;
    color: white;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid white;
    background: transparent;
    color: white;
    font-family: 'Source Serif 4', serif;
    font-size: 18px;
    font-weight: 300;
    border-radius: 10px;
    outline: none;
    transition: border 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #e6e6e6;
}

.form-group input::placeholder {
    color: #e6e6e6;
    opacity: 0.5;
    font-size: 20px;
    font-family: 'Source Serif 4', serif;
}

.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url('../images/select_arrow.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 1;
    transition: transform 0.2s ease;
}

.select-wrapper:focus-within::after,
.select-wrapper.dropdown-open::after {
    transform: translateY(-50%) rotate(180deg);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
}

.form-group select option {
    background: #414A2C;
    color: white;
    font-weight: 300;
}

.submit-button {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 14px 30px;
    font-family: 'Luthon Southard Serif', serif;
    font-size: 20px;
    border-radius: 40px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0 0 0;
    align-self: flex-start;
}

.submit-button:hover {
    background: white;
    color: var(--primary-color);
}

.rsvp-contact p {
    margin-top: 36px;
    font-size: 18px;
    font-weight: 300;
    font-family: 'Source Serif 4', serif !important;
    color: white;
}

.rsvp-contact a {
    color: white;
    text-decoration: underline;
}

/* Final Section */
.final-section {
    position: relative;
    height: 75vh;
    overflow: hidden;
}

.final-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.final-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.final-overlay {
    position: absolute;
    bottom: 125px;
    left: 100px;
    text-align: left;
    color: white;
    z-index: 2;
}

.final-overlay h2 {
    font-family: 'Source Serif 4', serif;
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.2;
}

.final-love {
    font-family: 'Source Serif 4', serif;
    font-size: 15px;
    font-weight: 300;
    margin-bottom: 5px;
}

.final-names {
    font-family: 'Luthon Southard Script', cursive;
    font-size: 40px;
    font-weight: normal;
}

.watermark {
    position: absolute;
    bottom: 25px;
    right: 25px;
    font-family: 'Source Serif 4', serif;
    font-size: 16px;
    opacity: 0.75;
    color: #fff;
    font-weight: 300;
    z-index: 3;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        justify-content: flex-end;
    }

    /* Show hamburger menu on mobile */
    .hamburger {
        display: flex;
    }

    /* Mobile navigation menu */
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        width: 280px;
        height: calc(100vh - var(--nav-height));
        background-color: var(--secondary-color);
        flex-direction: column;
        padding: 30px 25px;
        gap: 10px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

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

    .nav-link {
        color: var(--primary-color);
        font-size: 18px;
        padding: 12px 0;
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        color: var(--font-color);
        transform: translateX(10px);
    }

    /* Show overlay on mobile */
    .nav-overlay {
        display: block;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hero-names-section {
        height: auto;
        min-height: auto;
    }

    .hero-names-container {
        flex-direction: column;
    }

    .hero-part {
        height: calc(100vh - var(--nav-height));
        min-height: calc(100vh - var(--nav-height));
    }

    .names-part {
        height: calc(100vh - var(--nav-height));
        min-height: calc(100vh - var(--nav-height));
    }

    .names-content {
        padding: 200px 20px;
    }

    .hero-title {
        font-size: 60px;
    }

    .hero-title .ampersand {
        font-size: 40px;
        margin: 0 10px;
        transform: translateY(-6px);
    }

    .names-part {
        flex: 0 0 40%;
        background-color: var(--primary-color);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .names-content {
        text-align: center;
        padding: 40px;
    }

    .decorative-element {
        margin-bottom: 20px;
    }

    .decorative-element img {
        width: 235px;
        height: auto;
    }

    .tagline {
        font-family: 'Source Serif 4', serif;
        font-size: 20px;
        margin-bottom: 10px;
        font-weight: 300;
    }

    .date {
        font-family: 'Source Serif 4', serif;
        font-weight: 300;
        font-size: 20px;
        margin-bottom: 28px;
    }

    .rsvp-link-button {
        background: transparent;
        border: 1px solid white;
        color: white;
        padding: 14px 30px;
        font-family: 'Luthon Southard Serif', serif;
        font-size: 20px;
        border-radius: 40px;
        letter-spacing: 1px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 300;
    }

    .rsvp-link-button:hover {
        background: white;
        color: var(--primary-color);
    }

    /* Split Container Section */
    .split-container {
        background-color: #f0ede8;
        color: var(--primary-color);
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 200px 0px;
    }

    .column {
        display: flex;
        justify-content: flex-start;
        padding: 0px 100px;
    }

    .column:first-child {
        flex: 0 0 60%;
    }

    .column:last-child {
        flex: 0 0 40%;
    }

    .column-inner {
        text-align: left;
        width: 100%;
        max-width: 350px;
    }

    .column h3 {
        font-size: 40px;
        margin-bottom: 20px;
        margin-top: 60px;
    }

    .column h3:first-child {
        margin-top: 0;
    }

    .column h4 {
        font-size: 24px;
        font-weight: 300;
        margin-top: 50px;
        margin-bottom: 8px;
    }

    .column h4:first-of-type {
        margin-top: 0px;
    }

    .column p {
        margin-bottom: 12px;
        line-height: 1.5;
        font-size: 18px;
    }

    .info-content {
        text-align: left;
        width: 100%;
        font-family: 'Source Serif 4', serif;
    }

    .info-content h3 {
        font-family: 'Luthon Southard Serif', serif;
    }

    .timeline {
        display: flex;
        flex-direction: column;
    }

    .timeline-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
    }

    .timeline-item:first-child {
        padding-top: 0;
    }

    .time {
        font-weight: 600;
        font-size: 18px;
        min-width: 45px;
        text-align: left;
    }

    .tilde {
        margin-left: -8px;
    }

    .event {
        font-size: 18px;
        text-align: left;
        flex: 1;
        margin-left: 15px;
    }

    /* Combined RSVP and Image Section */
    .rsvp-image-section {
        display: flex;
        position: relative;
        z-index: 0;
    }

    .rsvp-image-container {
        display: flex;
        width: 100%;
        height: 100%;
    }

    .image-part {
        flex: 0 0 40%;
        overflow: hidden;
    }

    .image-container {
        width: 100%;
        height: 100%;
    }

    .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .rsvp-part {
        flex: 0 0 60%;
        background-color: var(--primary-color);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 200px 0;
    }

    .rsvp-content {
        max-width: 500px;
        margin: 0 15px;
        /* This is to keep the form field from touching the edge at awkward widths*/
    }

    .rsvp-content h2 {
        font-size: 40px;
        font-family: 'Luthon Southard Serif', serif;
        margin-bottom: 16px;
        font-weight: 100;
        letter-spacing: 2px;
    }

    .rsvp-content p {
        font-size: 18px;
        margin-bottom: 18px;
        font-family: 'Luthon Southard Serif', serif;
    }

    .rsvp-form {
        max-width: 600px;
        margin: 0 auto 75px;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .form-group {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .rsvp-label {
        font-size: 18px;
        font-family: 'Source Serif 4', serif;
        margin-bottom: 4px;
        text-align: left;
        color: white;
    }

    .form-group input,
    .form-group select {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid white;
        background: transparent;
        color: white;
        font-family: 'Source Serif 4', serif;
        font-size: 20px;
        font-weight: 300;
        border-radius: 10px;
        outline: none;
        transition: border 0.2s;
    }

    .form-group input:focus,
    .form-group select:focus {
        border-color: #e6e6e6;
    }

    .form-group input::placeholder {
        color: #e6e6e6;
        opacity: 0.5;
        font-size: 20px;
        font-family: 'Source Serif 4', serif;
    }

    .select-wrapper {
        position: relative;
        display: inline-block;
        width: 100%;
    }

    .select-wrapper::after {
        content: '';
        position: absolute;
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        background-image: url('../images/select_arrow.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        pointer-events: none;
        z-index: 1;
        transition: transform 0.2s ease;
    }

    .select-wrapper:focus-within::after,
    .select-wrapper.dropdown-open::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .form-group select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        padding-right: 40px;
    }

    .form-group select option {
        background: #414A2C;
        color: white;
        font-weight: 300;
    }

    .submit-button {
        background: transparent;
        border: 1px solid white;
        color: white;
        padding: 14px 30px;
        font-family: 'Luthon Southard Serif', serif;
        font-size: 20px;
        border-radius: 40px;
        letter-spacing: 1px;
        cursor: pointer;
        transition: all 0.3s ease;
        margin: 20px 0 0 0;
        align-self: flex-start;
    }

    .submit-button:hover {
        background: white;
        color: var(--primary-color);
    }

    .rsvp-contact p {
        margin-top: 36px;
        font-size: 18px;
        font-weight: 300;
        font-family: 'Source Serif 4', serif !important;
        color: white;
    }

    .rsvp-contact a {
        color: white;
        text-decoration: underline;
    }

    /* Final Section */
    .final-section {
        position: relative;
        height: 75vh;
        overflow: hidden;
    }

    .final-image {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .final-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(0.6);
        object-position: 40% center;
    }

    .final-overlay {
        position: absolute;
        bottom: 125px;
        left: 100px;
        text-align: left;
        color: white;
        z-index: 2;
    }

    .final-overlay h2 {
        font-family: 'Source Serif 4', serif;
        font-size: 15px;
        font-weight: 300;
        line-height: 1.2;
    }

    .final-love {
        font-family: 'Source Serif 4', serif;
        font-size: 15px;
        font-weight: 300;
    }

    .final-names {
        font-family: 'Luthon Southard Script', cursive;
        font-size: 40px;
        font-weight: normal;
    }

    .watermark {
        position: absolute;
        font-family: 'Source Serif 4', serif;
        font-size: 12px;
        color: #fff;
        font-weight: 300;
        z-index: 3;
        letter-spacing: 0.5px;
        bottom: 12px;
        right: 15px;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .nav-container {
            justify-content: flex-end;
        }

        /* Show hamburger menu on mobile */
        .hamburger {
            display: flex;
        }

        /* Mobile navigation menu */
        .nav-menu {
            position: fixed;
            top: var(--nav-height);
            right: -100%;
            width: 280px;
            height: calc(100vh - var(--nav-height));
            background-color: var(--secondary-color);
            flex-direction: column;
            padding: 30px 25px;
            gap: 10px;
            transition: right 0.3s ease;
            box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        }

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

        .nav-link {
            color: var(--primary-color);
            font-size: 18px;
            padding: 12px 0;
            transition: all 0.3s ease;
        }

        .nav-link:hover {
            color: var(--font-color);
            transform: translateX(10px);
        }

        /* Show overlay on mobile */
        .nav-overlay {
            display: block;
            position: fixed;
            top: var(--nav-height);
            left: 0;
            width: 100%;
            height: calc(100vh - var(--nav-height));
            background-color: rgba(0, 0, 0, 0.5);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 999;
        }

        .nav-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .hero-names-section {
            height: auto;
            min-height: auto;
        }

        .hero-names-container {
            flex-direction: column;
        }

        .hero-part {
            height: calc(100vh - var(--nav-height));
            min-height: calc(100vh - var(--nav-height));
        }

        .names-part {
            height: calc(100vh - var(--nav-height));
            min-height: calc(100vh - var(--nav-height));
        }

        .names-content {
            padding: 200px 20px;
        }

        .hero-title {
            font-size: 60px;
        }

        .split-container {
            flex-direction: column;
            min-height: calc(100vh - var(--nav-height));
            padding: 100px 0px;
        }

        .column {
            width: 100%;
            padding: 0px var(--mobile-width-padding);
        }

        .rsvp-part {
            padding: 100px 0;
        }

        .rsvp-image-section {
            height: auto;
            min-height: auto;
        }

        .rsvp-image-container {
            flex-direction: column;
        }

        .image-part {
            flex: none;
        }

        .image-container {
            height: 100%;
            min-height: 100%;
        }

        .image-container img {
            height: 100%;
            min-height: 100%;
        }

        .rsvp-content {
            padding: 0px var(--mobile-width-padding);
            margin: 0;
        }

        .final-overlay {
            bottom: 40px;
            left: 24px;
        }

        .final-section {
            max-height: 500px;
        }

        .final-names {
            font-size: 50px;
        }
    }

    @media (max-width: 480px) {
        .hero-title {
            font-size: 40px;
        }

        .hero-content {
            left: 35px;
        }
    }
}