/* Global Resets */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: #FAFAFA;
    font-family: 'Inter', sans-serif;
    color: #111;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Typography Reset */
h1, h2, h3, p {
    margin: 0;
    font-weight: 400;
}

select {
    color: black;
}

/* Navigation */
.navbar {
    background-color: #FAFAFA;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 500;
    color: #000;
    text-transform: uppercase;
}

/* Burger icon */
.burger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Nav links */
.navbar-right {
    display: flex;
    gap: 60px;
}

.navbar-right a {
    text-decoration: none;
    color: #111;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.navbar-right a:hover {
    color: #555;
}

/* Main Layout */
main {
    margin-top: 200px;
    padding: 60px 40px;
}

/* Banner */
.banner {
    text-align: center;
    font-family: 'Playfair Display', serif;
    margin-bottom: 60px;
}

.banner h1 {
    font-size: 56px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.banner p {
    font-size: 24px;
    font-style: italic;
    margin-bottom: 8px;
}

.logo {
    display: block;
    margin: 0 auto 1.5rem;
    max-width: 240px;
    height: auto;
}

.rsvp-button {
    width: 40%;
    max-width: 400px;
    display: inline-block;
    padding: 14px 32px;
    background-color: #111;
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    border: none;
    border-radius: 30px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.rsvp-button:hover {
    background-color: #333;
}

/* Venue */
.venue-section {
    background-color: #F5F5F5;
    width: 100%;
    padding: 80px 20px;
}

.venue-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.venue-text {
    flex: 1;
    font-size: 18px;
}

.venue-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.venue-map {
    flex: 1;
    min-width: 300px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

/* RSVP Section */
.rsvp-section {
    background-color: #FAFAFA;
    display: flex;
    justify-content: center;
    padding: 80px 0;
}

.rsvp-content {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.rsvp-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 32px;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
}

.rsvp-form label {
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    margin-top: 18px;
}

.rsvp-form input,
.rsvp-form select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 18px;
    background-color: white;
    font-family: 'Inter', sans-serif;
    margin-bottom: 10px;
}

.rsvp-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    padding-right: 40px;
}

.rsvp-form select:invalid {
    color: #777;
}

.rsvp-form input:focus,
.rsvp-form select:focus {
    outline: none;
    border-color: #999;
}

.rsvp-form button {
    width: 100%;
    padding: 14px 16px;
    background-color: #111;
    color: white;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 18px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 18px;
    height: 60px;
    font-family: 'Playfair Display', serif;
}

.rsvp-form button:hover {
    background-color: #333;
}

#additional-fields {
    margin-top: 16px;
}

#additional-fields input,
#additional-fields select {
    margin-bottom: 20px;
}

.thank-you-message {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-top: 40px;
}

/* FAQ Section */
.faq-section {
    background-color: #F5F5F5;
    width: 100%;
    padding: 80px 20px;
}

.faq-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 30px;
}

.faq-item h3 {
    font-size: 18px;
    font-weight: 600;
}

.faq-item p {
    font-size: 18px;
    font-weight: 400;
}

/* Itinerary Section */
.itinerary-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #FAFAFA;
}

.itinerary-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.itinerary-subtext {
    font-style: italic;
    font-size: 18px;
    color: #555;
    margin-bottom: 60px;
}

.timeline {
    display: inline-block;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    text-align: left;
    max-width: 800px;
}

.timeline li {
    margin-bottom: 40px;
}

.title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: nowrap;
}

.time {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 18px;
    min-width: 80px;
    text-align: right;
    flex-shrink: 0;
}

.icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    flex-grow: 0;
    flex-shrink: 1;
    white-space: normal;
}

.desc {
    font-size: 18px;
    color: #444;
    margin: 0;
    padding-left: 128px;
    max-width: 100%;
}

/* Footer */
.contact-footer {
    background-color: #FAFAFA;
    padding: 60px 20px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: #111;
    border-top: 1px solid #eee;
}

.contact-footer p {
    margin: 4px 0;
}

/* Phone link styling */
.phone-link {
    color: inherit;
    text-decoration: none;
}

.phone-link:hover,
.phone-link:focus {
    text-decoration: underline;
}

/* Add to calendar button */
.add-to-calendar-button {
    font-family: 'Playfair Display', serif;
    width: 80%;
    display: inline-block;
    padding: 14px 32px;
    background-color: #111;
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    border: none;
    border-radius: 30px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.add-to-calendar-button:hover {
    background-color: #444;
}

/* Input tweaks */
input,
select,
textarea {
    font-size: 16px !important;
}

/* Media Queries */
@media (max-width: 768px) {
    main {
        margin-top: 160px;
        padding: 32px 20px;
    }

    .burger {
        display: block;
    }

    .navbar-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .navbar-right {
        display: none;
        flex-direction: column;
        gap: 20px;
        margin-top: 12px;
        width: 100%;
    }

    .navbar-right.active {
        display: flex;
    }

    .logo {
        max-width: 160px;
    }

    .banner h1 {
        font-size: 40px;
    }

    .banner p {
        font-size: 18px;
    }

    .rsvp-button {
        width: 75%;
        font-size: 18px;
        padding: 14px 0;
    }

    .venue-content,
    .faq-list,
    .rsvp-content {
        width: 90%;
        max-width: 90%;
        margin: 0 auto;
    }

    .venue-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .venue-text {
      width: 100%;
    }

    .venue-map {
        width: 100%;
        height: 300px;
        margin-top: 20px;
    }

    .faq-section {
        padding: 60px 0;
    }

    .rsvp-form input,
    .rsvp-form select {
        font-size: 15px;
    }

    .timeline li {
        margin-bottom: 32px;
    }

    .title-row {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }

    .time {
        font-size: 18px;
        text-align: left;
        min-width: auto;
        margin: 0;
        flex: none;
    }

    .icon {
        font-size: 18px;
        margin: 0;
        flex: none;
    }

    .title {
        font-size: 18px;
        flex: 1;
        margin: 0;
        flex: none;
    }

    .desc {
        padding-left: 0;
        margin-top: 8px;
        width: 100%;
        text-align: center;
    }

    .add-to-calendar-button {
        width: 100%;
        display: block;
    }
}
