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

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Typography */
.font-serif {
    font-family: 'Homemade Apple', cursive;
}

.text-salmon {
    color: #E47B6A;
}

/* Keep numbers same size as title */
.date-number {
    font-size: 1em;
}

/* Keep numbers normal size in event dates */
.event-date .date-number,
.event-time-small .date-number {
    font-size: 1em;
}

.bg-salmon {
    background-color: #E47B6A;
}

/* Site Header */
.site-header {
    background: white;
    text-align: center;
    padding: 2rem 1rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1001;
}

.site-title {
    font-family: 'Homemade Apple', cursive;
    font-size: 2.5rem;
    color: #E47B6A;
    margin: 0;
    font-weight: 400;
}

/* Navigation */
nav {
    position: sticky;
    top: 5rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    border-top: 1px solid #f0f0f0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: #E47B6A;
}

.nav-link.active {
    color: #E47B6A;
    border-bottom-color: #E47B6A;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    padding: 0.25rem 0.5rem;
}

.lang-link:hover {
    color: #E47B6A;
}

.lang-link.active {
    color: #E47B6A;
    font-weight: 600;
}

.lang-separator {
    color: #ccc;
    font-size: 0.9rem;
}

.mobile-menu-btn {
    display: none;
}

/* Hero Section */
.hero-image-container {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Old hero styles - keeping for other pages */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-family: 'Crimson Text', serif;
    margin-bottom: 1rem;
}

/* Main Content Sections */
.section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-gray {
    background: #F0F9FF;
}

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

.names-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.names-section h2 {
    font-size: 2.5rem;
    font-family: 'Homemade Apple', cursive;
    color: #E47B6A;
    line-height: 1.2;
}

.names-section .ampersand {
    font-size: 2rem;
    color: #E47B6A;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
}

.countdown-label {
    font-size: 0.875rem;
    color: #666;
}

/* Button */
.btn {
    background: #E0F2FE;
    color: #333;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
    width: auto;
    max-width: 200px;
    font-family: inherit;
    line-height: 1.2;
}

.btn:hover {
    background: #BAE6FD;
}

/* Story Section */
.story-text {
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.photo-placeholder {
    width: 100%;
    max-width: 800px;
    height: 400px;
    background: #e5e7eb;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    margin: 3rem auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Schedule Cards */
.schedule-intro {
    text-align: center;
    color: #4b5563;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* New Event Cards */
.events-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

.event-card-new {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.event-card-new .btn-group {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    margin-top: 1.5rem;
    justify-content: center;
    align-items: center;
}

.event-card-new:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.event-image-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    background: #f0f9ff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

.event-name {
    font-family: 'Homemade Apple', cursive;
    font-size: 2.5rem;
    color: #E47B6A;
    margin-bottom: 0.75rem;
    font-weight: 400;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.event-datetime {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.event-date {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #666;
}

.event-time-small {
    font-size: 0.9rem;
    color: #999;
}

/* Old styles - keeping for compatibility */
.event-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 4rem;
}

.event-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.event-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.event-time {
    color: #666;
    margin-bottom: 1rem;
}

.event-location {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.event-location-sub {
    font-style: italic;
    margin-bottom: 1rem;
}

.event-description {
    color: #4b5563;
    margin-bottom: 1rem;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Weather Widget */
.weather-widget {
    margin-bottom: 4rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f97316 0%, #E47B6A 50%, #f59e0b 100%);
    border-radius: 1rem;
    color: white;
    text-align: center;
    box-shadow: 0 4px 12px rgba(228, 123, 106, 0.3);
}

.weather-widget h2 {
    color: white !important;
}

.weather-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.weather-main {
    text-align: center;
    margin-bottom: 2rem;
}

.weather-location {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.weather-temp {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.weather-desc {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.weather-range {
    font-size: 0.95rem;
    opacity: 0.9;
}

.weather-forecast-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.forecast-day {
    background: rgba(255, 255, 255, 0.15);
    padding: 1.25rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.forecast-date {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    text-align: center;
}

.forecast-temp {
    font-weight: bold;
    margin: 0.5rem 0;
    text-align: center;
}

.forecast-desc {
    font-size: 0.8rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .weather-container {
        grid-template-columns: 1fr;
    }

    .weather-forecast-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        padding: 0 0.25rem;
    }

    .forecast-day {
        padding: 1rem 0.5rem;
    }

    .forecast-date {
        text-align: center;
        font-size: 0.75rem;
    }

    .forecast-temp {
        text-align: center;
        font-size: 0.85rem;
    }

    .weather-temp {
        font-size: 2.5rem;
    }

    .weather-widget {
        padding: 1.5rem 1rem;
    }
}

/* Calendar Modal */
.calendar-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.calendar-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.calendar-modal-content h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
}

.calendar-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.calendar-btn {
    width: 100%;
    background: #E47B6A !important;
    color: white !important;
    padding: 1rem 2rem;
    font-size: 1rem;
}

.calendar-btn:hover {
    background: #d66a58 !important;
}

.calendar-close {
    background: #f3f4f6 !important;
    color: #666 !important;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.calendar-close:hover {
    background: #e5e7eb !important;
}

/* Family Event Styling */
.family-event {
    border: 2px solid #E47B6A;
    position: relative;
}

.family-badge {
    background: #E47B6A;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    display: inline-block;
}

/* Footer */
footer {
    background: #f9fafb;
    padding: 2rem;
    text-align: center;
    color: #666;
}

footer .title {
    font-family: 'Homemade Apple', cursive;
    font-size: 1.5rem;
    color: #E47B6A;
}

/* Page visibility */
.page {
    display: none;
    max-width: 100vw;
    overflow-x: hidden;
}

.page.active {
    display: block;
}

.page-blue {
    background: #F0F9FF;
    min-height: 100vh;
}

/* FAQs Page */
.faq-item {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e5e7eb;
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-question {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.3;
}

.faq-answer {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: left;
    font-size: 1rem;
}

.faq-answer:last-child {
    margin-bottom: 0;
}

/* Things To Do Page */
.things-hero {
    padding: 2rem;
    text-align: center;
    background: white;
}

.things-hero img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.things-section {
    margin-bottom: 5rem;
    text-align: center;
}

.things-icon-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.things-icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.things-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.things-content {
    max-width: 800px;
    margin: 0 auto;
}

.things-content p {
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.city-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.city-tile {
    background: #E47B6A;
    background-size: cover;
    background-position: center;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.city-tile:not(.expanded) {
    overflow: hidden;
}

.city-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(228, 123, 106, 0.3);
}

.city-tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    z-index: 1;
    transition: background 0.3s ease;
}

.city-tile-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    flex-shrink: 0;
    flex-grow: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.city-tile-name {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.city-tile-icon {
    color: white;
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.city-tile.expanded .city-tile-icon {
    transform: rotate(45deg);
}

.city-tile-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    color: white;
    line-height: 1.6;
    font-size: 0.9rem;
    z-index: 3;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.25rem;
    border-radius: 0 0 0.5rem 0.5rem;
}

.city-tile.expanded .city-tile-description {
    max-height: 150px;
    padding: 1rem 1.25rem;
    overflow-y: auto;
}

.city-tile.expanded .city-tile-overlay {
    background: rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .city-tiles {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .city-tile-name {
        font-size: 1.25rem;
    }
}

/* Dress Code Page */
.dress-code-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.dress-code-tile {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.dress-code-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.dress-code-tile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    background: #f0f9ff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.dress-code-tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dress-code-tile-title {
    font-family: 'Homemade Apple', cursive;
    font-size: 2.5rem;
    color: #E47B6A;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.dress-code-tile-subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.dress-code-tile-description {
    text-align: left;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.dress-code-tile-description p {
    margin-bottom: 1rem;
}

.dress-code-tile-description p:first-child {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.dress-code-tile-description p:last-child {
    margin-bottom: 0;
}

.dress-code-tile-description strong {
    display: block;
    color: #E47B6A;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.dress-code-tile-cta {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
    text-decoration: underline;
}

/* Dress Code Modal */
.dress-code-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 2rem;
}

.dress-code-modal-content {
    position: relative;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
}

.dress-code-modal-content img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.dress-code-modal-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.dress-code-modal-close:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .dress-code-tiles {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dress-code-tile {
        padding: 2rem 1.5rem;
    }

    .dress-code-tile-image {
        width: 120px;
        height: 120px;
    }

    .dress-code-tile-title {
        font-size: 2rem;
    }

    .dress-code-modal {
        padding: 1rem;
    }

    .dress-code-modal-close {
        top: -2rem;
        font-size: 1.5rem;
    }
}

/* Travel Page */
.travel-hero {
    padding: 2rem;
    text-align: center;
    background: transparent;
}

.travel-section {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 2.5rem 2rem;
    margin-bottom: 3rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.travel-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.travel-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.travel-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.travel-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.travel-subtitle {
    color: #666;
    margin-bottom: 2rem;
}

.travel-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.travel-content p {
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.travel-subheading {
    font-weight: 700;
    color: #E47B6A;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.hotel-links {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.hotel-links p {
    margin-bottom: 1rem;
}

.hotel-links a {
    color: #E47B6A;
    word-break: break-all;
}

.hotel-links a:hover {
    text-decoration: underline;
}

/* Placeholder pages */
.placeholder-page {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.placeholder-page h2 {
    font-family: 'Crimson Text', serif;
    font-size: 3rem;
    color: #E47B6A;
    margin-bottom: 1rem;
}

.placeholder-page p {
    color: #666;
    font-size: 1.125rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .names-section h2 {
        font-size: 2rem;
    }

    .event-name {
        font-size: 2rem;
    }

    .hero-image {
        object-position: 45% center;
    }

    .travel-section h3 {
        font-size: 2rem !important;
    }

    .travel-title {
        font-size: 2rem !important;
    }

    .events-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        max-width: 100%;
    }

    .event-card-new {
        padding: 2rem 1.5rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    .nav-container {
        display: none;
    }

    .nav-container.mobile-open {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .language-switcher {
        margin-left: 0;
        margin-top: 1rem;
        justify-content: center;
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 1rem;
        color: #E47B6A;
    }

    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
    }

    .mobile-nav-title {
        font-family: 'Open Sans', sans-serif;
        font-size: 1.25rem;
        color: #E47B6A;
        font-weight: 600;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3rem 1rem;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .names-section h2 {
        font-size: 1.5rem;
    }

    .logo-text {
        font-size: 2rem;
    }

    .event-name {
        font-size: 1.5rem;
        word-break: break-word;
    }

    .dress-code-tile-title {
        font-size: 1.5rem;
    }

    .travel-section h3 {
        font-size: 1.5rem !important;
    }

    .travel-title {
        font-size: 1.5rem !important;
    }

    .events-container {
        padding: 0 0.75rem;
    }

    .event-card-new {
        padding: 1.5rem 1rem;
        max-width: 100%;
    }

    .event-card-new .btn-group {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        width: 100%;
        white-space: normal;
        text-align: center;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.25rem;
    }

    .names-section h2 {
        font-size: 1.25rem;
    }

    .logo-text {
        font-size: 1.75rem;
    }

    .event-name {
        font-size: 1.25rem;
        word-break: break-word;
    }

    .dress-code-tile-title {
        font-size: 1.25rem;
    }

    .travel-section h3 {
        font-size: 1.25rem !important;
    }

    .travel-title {
        font-size: 1.25rem !important;
    }

    .events-container {
        padding: 0 0.5rem;
    }

    .event-card-new {
        padding: 1.25rem 0.75rem;
        max-width: 100%;
    }

    .btn {
        padding: 0.65rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (min-width: 769px) {
    .event-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mobile-nav-header {
        display: none;
    }
}

/* RSVP Styles */
.rsvp-container {
    max-width: 700px;
    margin: 0 auto;
}

.rsvp-step {
    display: none;
}

.rsvp-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

.rsvp-form-card {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
}

.btn-back {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: none;
    border: none;
    color: #E47B6A;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: opacity 0.3s;
}

.btn-back:hover {
    opacity: 0.7;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #E47B6A;
}

.form-group textarea {
    resize: vertical;
}

.form-help {
    font-size: 0.875rem;
    color: #999;
    margin-top: 0.5rem;
}

/* Name Dropdown */
.name-dropdown {
    position: absolute;
    width: calc(100% - 6rem);
    max-height: 250px;
    overflow-y: auto;
    background: white;
    border: 2px solid #e5e5e5;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 100;
    display: none;
}

.name-dropdown.show {
    display: block;
}

.name-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

.name-option:hover {
    background-color: #fff5f3;
}

.name-option:last-child {
    border-bottom: none;
}

.name-option-name {
    font-weight: 600;
    color: #333;
}

.name-option-email {
    font-size: 0.875rem;
    color: #999;
    margin-top: 0.25rem;
}

/* Partner Prompt */
.partner-prompt {
    background: #fff5f3;
    border: 2px solid #E47B6A;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.partner-prompt .btn-group {
    align-items: center;
}

.partner-question {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.partner-question strong {
    color: #E47B6A;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.3s;
}

.checkbox-label:hover {
    border-color: #E47B6A;
    background-color: #fff5f3;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #E47B6A;
}

.checkbox-label span {
    flex: 1;
}

.event-date-small {
    color: #999;
    font-size: 0.875rem;
}

/* Guest Section */
.guest-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid #f0f0f0;
}

.guest-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.guest-section-title {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    color: #E47B6A;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Success Icon */
.success-icon {
    width: 80px;
    height: 80px;
    background: #E47B6A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin: 0 auto 2rem;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* Button Styles */
.btn-outline {
    background: white;
    color: #E47B6A;
    border: 2px solid #E47B6A;
}

.btn-outline:hover {
    background: #E47B6A;
    color: white;
}

/* Center all RSVP buttons */
.rsvp-step .btn {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.rsvp-step .btn-group {
    align-items: center;
}

/* Responsive RSVP */
@media (max-width: 768px) {
    .rsvp-form-card {
        padding: 2rem 1.5rem;
    }

    .btn-back {
        top: 1rem;
        left: 1rem;
    }

    .name-dropdown {
        width: calc(100% - 3rem);
    }
}