/* Sophisticated Polaroid Wedding Website - Sage & Dusty Rose */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Cormorant+Garamond:wght@300;400;500;600;700&family=Source+Sans+Pro:wght@300;400;600;700&family=Dancing+Script:wght@400;500;600;700&display=swap');

:root {
    /* Primary - Sage */
    --color-primary: #3d5c4a;
    --color-primary-light: #5c7a6b;
    --color-primary-dark: #2d4538;
    /* Accent - Dusty rose */
    --color-accent: #b8958c;
    --color-accent-light: #d4bcb5;
    --color-accent-dark: #9a7a72;
    /* Backgrounds */
    --color-bg: #f2f0eb;
    --color-bg-card: #faf8f6;
    --color-bg-elevated: #ffffff;
    /* Text */
    --color-text: #2d3530;
    --color-text-muted: #5a6560;
    --color-text-light: #6b7671;
    /* Borders & UI */
    --color-border: #d8ddd9;
    --color-border-light: #e8ebe9;
    /* Shadows (use with primary for tint) */
    --shadow-sm: 0 2px 8px rgba(45, 53, 48, 0.06);
    --shadow-md: 0 4px 20px rgba(45, 53, 48, 0.08);
    --shadow-lg: 0 8px 30px rgba(45, 53, 48, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: linear-gradient(135deg, var(--color-bg) 0%, #e8e6e1 50%, var(--color-bg) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Tab Navigation - Overlay on Hero */
.tab-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 248, 246, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

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

.tab-button {
    background: rgba(61, 92, 74, 0.08);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-primary-dark);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.tab-button:hover {
    color: var(--color-primary);
    border-color: var(--color-primary-light);
    background: rgba(61, 92, 74, 0.12);
    transform: translateY(-1px);
}

.tab-button.active {
    background: var(--color-primary);
    color: var(--color-bg-card);
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(61, 92, 74, 0.35);
}

/* Main Content */
.main-content {
    margin-top: 0;
    min-height: 100vh;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
    background: linear-gradient(160deg, var(--color-bg) 0%, #eae8e3 40%, var(--color-bg-card) 70%, #e6e4df 100%);
    min-height: 100vh;
    position: relative;
}

.tab-content > * {
    position: relative;
    z-index: 1;
}

.tab-content::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(61, 92, 74, 0.04) 0%, transparent 50%),
                      radial-gradient(circle at 80% 70%, rgba(184, 149, 140, 0.05) 0%, transparent 45%),
                      repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(45, 53, 48, 0.02) 40px, rgba(45, 53, 48, 0.02) 41px);
    pointer-events: none;
}

.tab-content.active {
    display: block;
}

/* Home tab (hero) should not have background */
.tab-content#home {
    background: transparent;
    padding: 0;
    max-width: none;
    margin: 0;
    margin-bottom: 0;
}
.tab-content#home::before {
    display: none;
}

/* Sophisticated Polaroid Frame */
.polaroid-frame {
    background: var(--color-bg-elevated);
    padding: 20px 20px 90px 20px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm), 0 4px 12px rgba(45, 53, 48, 0.08), 0 8px 24px rgba(45, 53, 48, 0.06);
    transform: rotate(-1deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    max-width: 320px;
    margin: 0 auto;
    border: 1px solid var(--color-border-light);
}

.polaroid-frame:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: var(--shadow-md), 0 12px 32px rgba(45, 53, 48, 0.1);
}

.polaroid-photo {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* This creates a square aspect ratio */
    overflow: hidden;
    border-radius: 2px;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.polaroid-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    transition: transform 0.3s ease;
    background: var(--color-bg);
}

/* Fallback for missing images */
.polaroid-photo img:not([src]),
.polaroid-photo img[src=""] {
    background: linear-gradient(135deg, var(--color-bg) 0%, #e8e6e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.polaroid-photo img:not([src])::after,
.polaroid-photo img[src=""]::after {
    content: '📷';
    font-size: 2rem;
    color: var(--color-accent);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.polaroid-frame:hover .polaroid-photo img {
    transform: scale(1.05);
}

.polaroid-caption {
    position: absolute;
    bottom: 8px;
    left: 20px;
    right: 20px;
    text-align: center;
    font-family: 'Dancing Script', cursive;
    color: var(--color-text-muted);
    padding: 5px 0;
}

.polaroid-caption h1,
.polaroid-caption h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--color-primary-dark);
    line-height: 1.2;
}

.polaroid-caption p {
    font-size: 1rem;
    color: var(--color-text-light);
    margin: 0;
    font-weight: 400;
    line-height: 1.3;
}

/* Hero Section - Full Screen */
.hero-section {
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    position: relative;
    height: 100vh;
    width: 100%;
    left: 0;
    right: 0;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    left: 0;
    right: 0;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(0, 0, 0, 0.5) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    margin: 8rem auto 0;
}

.hero-content .couple-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    line-height: 1.1;
}

.hero-content .wedding-date {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-content .wedding-venue {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    margin: 2rem auto;
}

.hero-spacer {
    height: 4rem;
}

.hero-content .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.hero-content .hero-subtitle {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Countdown Timer */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 80px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.countdown-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.countdown-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.countdown-separator {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0 0.5rem;
    padding-top: 1rem;
}

/* Section Styling - Refined */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(45, 53, 48, 0.05);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
    letter-spacing: 0.3px;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2.5rem 0;
}

.section-divider::before,
.section-divider::after {
    content: '';
    height: 1px;
    width: 80px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
    margin: 0 1.5rem;
}

.heart-decoration {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin: 0 1rem;
    animation: heartbeat 3s ease-in-out infinite;
}

/* Story Section - Sophisticated */
.story-section {
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 4rem;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
    border: 1px solid var(--color-border-light);
}

.story-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

/* Story timeline: one block per year with its photo */
.story-timeline {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 3.5rem;
}

.story-year-item {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    align-items: flex-start;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-border-light);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    isolation: isolate;
}

.story-year-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Photo on left (default) */
.story-year-item.polaroid-left {
    flex-direction: row;
}

/* Photo on right */
.story-year-item.polaroid-right {
    flex-direction: row-reverse;
}

/* No photo (e.g. 2018) */
.story-year-item.no-polaroid .story-year-body {
    max-width: 720px;
}

.story-year-photo {
    flex-shrink: 0;
    width: 260px;
    min-width: 260px;
}

.story-year-photo .polaroid-frame {
    margin: 0;
}

.story-year-body {
    flex: 1;
    min-width: 0;
}

.story-year-body.story-markdown p {
    margin-bottom: 0;
    font-size: 1.35rem;
    line-height: 1.75;
    color: var(--color-text-muted);
    font-weight: 400;
}

.story-year-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.85rem;
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.story-text p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 1.8rem;
    line-height: 1.8;
    font-weight: 400;
}

.story-intro {
    font-size: 1.3rem !important;
    color: var(--color-primary-dark) !important;
    font-weight: 500;
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.6;
}

.story-polaroid {
    transform: rotate(2deg);
}

.story-markdown h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.story-markdown h2:first-child { margin-top: 0; }
.story-markdown h3 { font-size: 1.2rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }

/* FAQ Section */
.faq-section {
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 4rem;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
    border: 1px solid var(--color-border-light);
}

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

.faq-item {
    border-bottom: 1px solid var(--color-border-light);
    padding: 1.5rem 0;
}

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

.faq-question {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.faq-answer {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Team Section - Elegant */
.team-section {
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 4rem;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
    border: 1px solid var(--color-border-light);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.team-group-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 2px rgba(45, 53, 48, 0.05);
    letter-spacing: -0.3px;
}

.team-members {
    display: grid;
    gap: 2.5rem;
}

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

.team-polaroid {
    margin-bottom: 1.5rem;
    transform: rotate(-0.5deg);
}

.team-member:nth-child(even) .team-polaroid {
    transform: rotate(0.5deg);
}

.team-polaroid-clickable {
    cursor: pointer;
}

/* Team Bio Modal */
.bio-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bio-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.bio-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.bio-modal-content {
    position: relative;
    background: var(--color-bg-elevated);
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    border: 1px solid var(--color-border-light);
}

.bio-modal.is-open .bio-modal-content {
    transform: scale(1);
}

.bio-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: rgba(45, 53, 48, 0.08);
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: background 0.2s, color 0.2s;
    z-index: 1;
}

.bio-modal-close:hover {
    background: rgba(45, 53, 48, 0.12);
    color: var(--color-primary-dark);
}

.bio-modal-body {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    overflow-y: auto;
}

.bio-modal-photo {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 4px solid var(--color-border-light);
}

.bio-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-modal-info {
    text-align: center;
}

.bio-modal-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 0.25rem;
}

.bio-modal-role {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.bio-modal-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    text-align: left;
}

@media (min-width: 600px) {
    .bio-modal-body {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }

    .bio-modal-photo {
        margin: 0;
        flex-shrink: 0;
    }

    .bio-modal-info {
        text-align: left;
        flex: 1;
    }
}

.member-bio {
    background: var(--color-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 3px solid var(--color-accent-light);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    font-weight: 400;
    transition: all 0.3s ease;
}

.member-bio:hover {
    background: #eae8e3;
    border-left-color: var(--color-accent);
}

/* Details Section - Refined */
.details-section {
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 4rem;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
    border: 1px solid var(--color-border-light);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.detail-card {
    background: var(--color-bg);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--color-border-light);
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-border);
    background: var(--color-bg-elevated);
}

.detail-card:hover::before {
    transform: scaleX(1);
}

.detail-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* Location card with full image background */
.location-card-image {
    padding: 0;
    background: transparent;
    border: none;
}

.venue-image-bg {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    min-height: 280px;
}

.venue-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.venue-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(0, 0, 0, 0.6) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: white;
}

.venue-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: white !important;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.venue-overlay p {
    font-size: 1rem;
    color: white !important;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.location-card:hover .venue-bg-image {
    transform: scale(1.05);
}

.detail-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.2px;
}

.detail-card p {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    font-weight: 400;
}

/* Clickable location card */
.location-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.location-card:hover::before {
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent));
}

.location-hint {
    font-size: 0.85rem;
    color: white !important;
    font-style: italic;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.location-card:hover .location-hint {
    opacity: 1;
}

/* RSVP Section - Elegant */
/* RSVP Page Navigation */
.rsvp-navigation {
    background: rgba(45, 53, 48, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.rsvp-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.back-to-site-link {
    color: var(--color-bg-card);
    text-decoration: none;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.back-to-site-link:hover {
    color: var(--color-bg-elevated);
    transform: translateX(-5px);
}

/* RSVP Page Main Container */
.rsvp-page-main {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-bg) 0%, #e8e6e1 50%, var(--color-bg) 100%);
    background-attachment: fixed;
    padding: 3rem 2rem;
}

.rsvp-page-container {
    max-width: 800px;
    margin: 0 auto;
}

.rsvp-section {
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 4rem;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
    border: 1px solid var(--color-border-light);
}

.rsvp-success-message,
.rsvp-error-message {
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.rsvp-error-message {
    background: #fef2f2;
    border-color: #fca5a5;
}

.rsvp-success-message p,
.rsvp-error-message p {
    margin: 0;
    color: #166534;
    font-weight: 500;
    font-size: 1rem;
}

.rsvp-error-message p {
    color: #991b1b;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    font-size: 1rem;
    font-family: 'Source Sans Pro', sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--color-bg-elevated);
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--color-text);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.character-count {
    text-align: right;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    font-family: 'Source Sans Pro', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-bg-elevated);
    box-shadow: 0 0 0 3px rgba(61, 92, 74, 0.12);
    transform: translateY(-1px);
}

.rsvp-form button {
    background: var(--color-primary);
    color: var(--color-bg-card);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Source Sans Pro', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(61, 92, 74, 0.25);
}

.rsvp-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 92, 74, 0.35);
    background: var(--color-primary-dark);
}

/* Order of the Day Section - Timeline */
.order-section {
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 4rem;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
    border: 1px solid var(--color-border-light);
}

.timeline-container {
    max-width: 650px;
    margin: 3rem auto;
    position: relative;
    padding: 2rem 0;
}

/* Central timeline line */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--color-border) 0%, var(--color-primary-light) 50%, var(--color-border) 100%);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
}

/* Timeline dot - centered on the line */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    background: var(--color-bg-elevated);
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    box-shadow: var(--shadow-sm);
}

/* Odd items: time on left, content on right */
.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(odd) .timeline-time {
    width: 160px;
    margin-right: calc(50% - 80px - 0.25rem);
    flex-shrink: 0;
}

.timeline-item:nth-child(odd) .timeline-content {
    width: 280px;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

/* Even items: content on left, time on right */
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-time {
    width: 160px;
    margin-left: calc(50% - 80px - 0.25rem);
    flex-shrink: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    width: 280px;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.timeline-time {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    padding: 0.8rem 1rem;
    background: var(--color-bg);
    border-radius: 8px;
    border: 2px solid var(--color-border-light);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.timeline-content {
    background: var(--color-bg-elevated);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
}

.timeline-item:hover .timeline-content {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.timeline-item:hover .timeline-time {
    background: #eae8e3;
    border-color: var(--color-primary-light);
}

.timeline-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.2px;
}

.timeline-description {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* Location Section - Elegant */
.location-section {
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 4rem;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
    border: 1px solid var(--color-border-light);
}

.location-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.maps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.map-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.location-map {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

.entry-map-container {
    background: var(--color-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--color-border-light);
    text-align: center;
}

.entry-map-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.2px;
}

.entry-map-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-weight: 400;
}

.entry-map-wrapper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--color-bg-elevated);
    padding: 1rem;
}

.entry-map-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.directions-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.directions-section {
    background: var(--color-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--color-accent-light);
    transition: all 0.3s ease;
}

.directions-section:hover {
    background: var(--color-bg-elevated);
    border-left-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.directions-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.2px;
}

.directions-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.directions-content p {
    margin-bottom: 1.2rem;
    font-weight: 400;
}

.directions-content p:last-child {
    margin-bottom: 0;
}

.directions-content strong {
    color: var(--color-primary-dark);
    font-weight: 600;
}

.important-note {
    background: #fef3c7;
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 3px solid #f59e0b;
    margin-top: 1.5rem !important;
    color: #92400e !important;
    font-weight: 500 !important;
}

.important-note strong {
    color: #78350f !important;
}

/* Photos Section - Placeholder */
.photos-section {
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 4rem;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
    border: 1px solid var(--color-border-light);
}

.photo-placeholder {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.placeholder-content {
    background: linear-gradient(135deg, var(--color-bg) 0%, #eae8e3 100%);
    border-radius: 20px;
    padding: 4rem 2rem;
    border: 2px solid var(--color-border-light);
    position: relative;
    overflow: hidden;
}

.placeholder-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(61, 92, 74, 0.06) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.placeholder-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    position: relative;
    z-index: 2;
}

.placeholder-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.placeholder-content p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.placeholder-content p:last-of-type {
    margin-bottom: 2.5rem;
}

.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-bg-card);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(61, 92, 74, 0.3);
    position: relative;
    z-index: 2;
    animation: pulse 2s ease-in-out infinite;
}

.coming-soon-badge span {
    position: relative;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(61, 92, 74, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(61, 92, 74, 0.4);
    }
}



/* Accommodation Section - Sophisticated */
.accommodation-section {
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 4rem;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
    border: 1px solid var(--color-border-light);
}

.accommodation-content {
    max-width: 100%;
}

.accommodation-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--color-text-muted);
    font-style: italic;
    font-weight: 400;
}

.booking-info {
    background: var(--color-bg);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    border-left: 4px solid var(--color-accent-light);
}

.booking-info h3 {
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
}

.booking-info p {
    margin: 0.8rem 0;
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.hotel-card {
    background: var(--color-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border-light);
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.hotel-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-border);
    background: var(--color-bg-elevated);
    text-decoration: none;
    color: inherit;
}

.hotel-card:visited {
    color: inherit;
    text-decoration: none;
}

/* Taxi cards (not links) */
.hotel-card.taxi-card {
    cursor: default;
    display: block;
}

.hotel-card.taxi-card .hotel-contact a {
    color: var(--color-primary);
    text-decoration: none;
}

.hotel-card.taxi-card .hotel-contact a:hover {
    text-decoration: underline;
}

.hotel-card h3 {
    color: var(--color-primary-dark);
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.hotel-type {
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.hotel-distance, .hotel-contact p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.accommodation-tips {
    background: var(--color-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--color-accent-light);
}

.accommodation-tips h3 {
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
}

.accommodation-tips ul {
    list-style: none;
    padding: 0;
}

.accommodation-tips li {
    margin: 1.2rem 0;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--color-border-light);
    line-height: 1.7;
    color: var(--color-text-muted);
    font-weight: 400;
}

.accommodation-tips li:last-child {
    border-bottom: none;
}

/* Footer - Elegant */
footer {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--color-bg-card);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 0;
}

footer p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(0.5deg);
    }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tab-container {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .tab-button {
        width: 200px;
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .story-year-item.polaroid-left,
    .story-year-item.polaroid-right {
        flex-direction: column;
    }

    .story-year-item .story-year-photo {
        width: 100%;
        min-width: 0;
        max-width: 280px;
        margin: 0 auto;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    
    .hotels-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-image-container {
        height: 100vh;
        min-height: 100vh;
    }
    
    .hero-content {
        margin-top: 6rem;
    }
    
    .hero-content .couple-names {
        font-size: 2.8rem;
    }
    
    .hero-content .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-content .wedding-date {
        font-size: 1.1rem;
    }
    
    .hero-content .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .countdown-container {
        gap: 0.5rem;
        margin-top: 2rem;
    }
    
    .countdown-item {
        padding: 1rem 0.8rem;
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
    
    .countdown-separator {
        font-size: 1.5rem;
        margin: 0 0.2rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .polaroid-frame {
        max-width: 280px;
    }
    
    .story-section,
    .team-section,
    .details-section,
    .faq-section,
    .rsvp-section,
    .order-section,
    .location-section,
    .photos-section,
    .accommodation-section {
        padding: 2.5rem 2rem;
    }
    
    .timeline-container::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 4rem;
    }
    
    .timeline-item::before {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd) .timeline-time,
    .timeline-item:nth-child(even) .timeline-time {
        width: 120px;
        margin-right: 1.5rem !important;
        margin-left: 0 !important;
        font-size: 1.2rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: auto;
        flex: 1;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .rsvp-page-main {
        padding: 2rem 1rem;
    }
    
    .rsvp-nav-container {
        padding: 0 1rem;
    }
    
    .maps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .directions-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .location-map {
        height: 350px;
    }
    
    .placeholder-content {
        padding: 3rem 1.5rem;
    }
    
    .placeholder-icon {
        font-size: 4rem;
    }
    
    .placeholder-content h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .tab-button {
        width: 180px;
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .hero-image-container {
        height: 100vh;
        min-height: 100vh;
    }
    
    .hero-content {
        margin-top: 5rem;
    }
    
    .hero-content .couple-names {
        font-size: 2.2rem;
    }
    
    .hero-content .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-content .wedding-date {
        font-size: 1rem;
    }
    
    .hero-content .wedding-venue {
        font-size: 0.95rem;
    }
    
    .hero-content .hero-subtitle {
        font-size: 1rem;
    }
    
    .countdown-container {
        gap: 0.3rem;
        margin-top: 1rem;
    }
    
    .countdown-item {
        padding: 0.8rem 0.6rem;
        min-width: 50px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    .countdown-separator {
        font-size: 1.2rem;
        margin: 0 0.1rem;
        padding-top: 0.5rem;
    }
    
    .hero-divider {
        width: 60px;
        margin: 1.5rem auto;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .polaroid-frame {
        max-width: 240px;
    }
    
    .polaroid-photo {
        padding-bottom: 100%; /* Maintain square aspect ratio on mobile */
    }
    
    .story-section,
    .team-section,
    .details-section,
    .faq-section,
    .rsvp-section,
    .order-section,
    .location-section,
    .photos-section,
    .accommodation-section {
        padding: 2rem 1.5rem;
    }
    
    .timeline-time {
        flex: 0 0 100px;
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .timeline-title {
        font-size: 1.3rem;
    }
    
    .timeline-description {
        font-size: 0.95rem;
    }
    
    .rsvp-page-main {
        padding: 1.5rem 1rem;
    }
    
    .back-to-site-link {
        font-size: 0.9rem;
    }
    
    .maps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .location-map {
        height: 300px;
    }
    
    .directions-title {
        font-size: 1.5rem;
    }
    
    .placeholder-content {
        padding: 2.5rem 1.5rem;
    }
    
    .placeholder-icon {
        font-size: 3.5rem;
    }
    
    .placeholder-content h3 {
        font-size: 1.6rem;
    }
    
    .coming-soon-badge {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}