/* ===== CSS Variables - Midnight Garden Wedding Theme ===== */
:root {
    --rose-gold: #b76e79;
    --rose-gold-light: #e8c4c4;
    --rose-gold-pale: #f7e7e2;
    --rose-gold-dark: #8f4f5d;
    --rose-gold-shimmer: #d7a091;

    --navy: #162b4d;
    --navy-dark: #09172b;
    --navy-light: #28456d;
    --navy-mid: #456180;

    --champagne: #f5e7d2;
    --champagne-soft: #fbf4ec;
    --ivory: #fffaf4;
    --ink-plum: #4f3440;
    --sage: #7f8a72;
    --sage-light: #e8ece0;
    --white: #ffffff;
    --cream: #fdf9f7;

    --primary-color: var(--rose-gold);
    --primary-dark: var(--rose-gold-dark);
    --secondary-color: var(--champagne-soft);
    --accent-color: var(--navy);
    --text-color: var(--navy);
    --text-light: #67758a;
    --ink-soft: rgba(22, 43, 77, 0.13);

    --photo-focus: 42% 66%;
    --photo-size: cover;
    --glass-bg: linear-gradient(180deg, rgba(255, 250, 244, 0.78), rgba(247, 231, 226, 0.52));
    --glass-bg-soft: linear-gradient(180deg, rgba(255, 250, 244, 0.48), rgba(255, 250, 244, 0.2));
    --shadow-soft: 0 28px 80px rgba(9, 23, 43, 0.22);
    --shadow-lift: 0 22px 60px rgba(22, 43, 77, 0.16);
    --floral-pattern: url("data:image/svg+xml,%3Csvg width='90' height='90' viewBox='0 0 90 90' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23B76E79' stroke-width='0.55' opacity='0.2'%3E%3Cpath d='M45 8c8 14 8 27 0 41-8-14-8-27 0-41Z'/%3E%3Cpath d='M17 45c14-8 27-8 41 0-14 8-27 8-41 0Z'/%3E%3Cpath d='M30 67c7-14 18-22 34-24-7 14-18 22-34 24Z'/%3E%3Ccircle cx='45' cy='45' r='2.5' fill='%23B76E79' opacity='.4'/%3E%3C/g%3E%3C/svg%3E");
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--navy-dark);
}

body {
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-color);
    background: var(--cream);
    overflow-x: hidden;
    line-height: 1.6;
    text-rendering: geometricPrecision;
}

.is-hidden {
    display: none !important;
}

/* ===== Landing Container ===== */
.landing-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--navy-dark);
    z-index: 1000;
    transition: opacity 1s ease, visibility 1s ease;
    overflow: hidden;
    padding: clamp(18px, 3vw, 34px);
}

.landing-container::before {
    content: '';
    position: absolute;
    inset: -34px;
    background: url('images/image.jpg') var(--photo-focus) / var(--photo-size) no-repeat;
    filter: blur(0.6px);
    opacity: 0.94;
    transform: scale(1.04);
    z-index: 0;
}

.landing-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(112deg, rgba(9, 23, 43, 0.68) 0%, rgba(143, 79, 93, 0.36) 48%, rgba(245, 231, 210, 0.2) 100%),
        radial-gradient(circle at 20% 18%, rgba(255, 250, 244, 0.24), transparent 32%),
        radial-gradient(circle at 76% 82%, rgba(183, 110, 121, 0.32), transparent 38%);
    pointer-events: none;
    z-index: 0;
}

.landing-container.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.landing-shell {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-copy {
    position: relative;
    width: 100%;
    padding: clamp(38px, 6vw, 72px);
    text-align: center;
    color: var(--champagne);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(9, 23, 43, 0.5), rgba(79, 52, 64, 0.28)),
        var(--floral-pattern);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px) saturate(1.08);
    overflow: hidden;
}

.landing-copy::before,
.hero-content::before {
    content: '';
    position: absolute;
    inset: 16px;
    pointer-events: none;
    border-radius: 5px;
    background:
        linear-gradient(90deg, transparent, rgba(245, 231, 210, 0.18), transparent) top / 100% 1px no-repeat,
        linear-gradient(90deg, transparent, rgba(245, 231, 210, 0.12), transparent) bottom / 100% 1px no-repeat;
}

.landing-kicker,
.hero-kicker {
    color: var(--rose-gold-light);
    font-size: clamp(0.76rem, 1.2vw, 0.92rem);
    letter-spacing: 6px;
    margin-bottom: 18px;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-kicker {
    color: var(--rose-gold-light);
    text-shadow: 0 1px 16px rgba(255, 250, 244, 0.68);
}


.landing-copy h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.35rem, 7vw, 6.2rem);
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 0.98;
    margin-bottom: 22px;
    color: var(--champagne);
    text-shadow: 0 12px 38px rgba(9, 23, 43, 0.42);
}

.landing-date {
    color: var(--rose-gold-light);
    font-size: clamp(1.05rem, 2vw, 1.36rem);
    letter-spacing: 2.5px;
    margin-bottom: 18px;
}

.landing-note {
    max-width: 470px;
    color: rgba(255, 250, 244, 0.88);
    font-size: clamp(1.1rem, 2vw, 1.38rem);
    line-height: 1.72;
    margin: 0 auto 34px;
}

.landing-open-btn,
.submit-btn,
.nav-rsvp,
.mobile-rsvp-cta,
.map-actions a {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    contain: paint;
}

.landing-open-btn,
.submit-btn {
    background: linear-gradient(135deg, var(--rose-gold-dark), var(--rose-gold) 52%, var(--rose-gold-shimmer));
    color: var(--ivory);
    border: none;
    cursor: pointer;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    box-shadow: 0 16px 36px rgba(79, 52, 64, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.landing-open-btn {
    border-radius: 999px;
    font-size: 1.05rem;
    padding: 15px 36px;
}

.landing-open-btn::before,
.submit-btn::before,
.nav-rsvp::before,
.mobile-rsvp-cta::before,
.map-actions a::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -45%;
    width: 35%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
    transition: left 0.55s ease;
    z-index: 0;
}

.landing-open-btn:hover,
.landing-open-btn:focus,
.submit-btn:hover,
.submit-btn:focus {
    box-shadow: 0 20px 44px rgba(79, 52, 64, 0.38), 0 0 0 4px rgba(245, 231, 210, 0.18);
    filter: saturate(1.06);
    outline: none;
    transform: translateY(-2px);
}

.landing-open-btn:hover::before,
.landing-open-btn:focus::before,
.submit-btn:hover::before,
.submit-btn:focus::before,
.nav-rsvp:hover::before,
.nav-rsvp:focus::before,
.mobile-rsvp-cta:hover::before,
.mobile-rsvp-cta:focus::before,
.map-actions a:hover::before,
.map-actions a:focus::before {
    left: 100%;
}

.wedding-visual {
    display: none;
}

.photo-composition::before,
.wedding-photo-frame,
.wedding-photo-frame::after,
.wedding-photo-frame img {
    display: none;
}

@keyframes landingFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ===== Main Content ===== */
.main-content {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease 0.5s;
}

.main-content.visible {
    display: block;
    opacity: 1;
    visibility: visible;
    background:
        radial-gradient(circle at 18% 8%, rgba(245, 231, 210, 0.24), transparent 23rem),
        radial-gradient(circle at 86% 24%, rgba(183, 110, 121, 0.36), transparent 31rem),
        linear-gradient(180deg, #09172b 0%, #3f3445 18%, #a97682 42%, #d7a7af 60%, #5f6379 78%, #142846 100%);
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 18px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(9, 23, 43, 0.52), rgba(9, 23, 43, 0.14));
    backdrop-filter: blur(16px) saturate(1.08);
    z-index: 100;
    box-shadow: none;
    border-bottom: none;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--rose-gold-light);
    letter-spacing: 4px;
    text-shadow: 0 8px 24px rgba(9, 23, 43, 0.28);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 26px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--champagne);
    font-size: 0.95rem;
    letter-spacing: 1.2px;
    transition: color 0.3s ease, opacity 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--rose-gold);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--rose-gold-light);
    outline: none;
}

.nav-rsvp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--rose-gold), var(--rose-gold-dark));
    color: var(--ivory) !important;
    padding: 10px 24px;
    border-radius: 6px;
    box-shadow: 0 12px 26px rgba(143, 79, 93, 0.24);
    clip-path: inset(0 round 6px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-rsvp:hover,
.nav-rsvp:focus {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(143, 79, 93, 0.32);
}

.nav-rsvp::after {
    display: none !important;
}

.mobile-rsvp-cta {
    display: none;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-dark);
    text-align: center;
    padding: 108px 24px 72px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: -34px;
    background: url('images/image.jpg') var(--photo-focus) / var(--photo-size) no-repeat;
    filter: blur(0.7px);
    opacity: 0.94;
    transform: scale(1.04);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(112deg, rgba(9, 23, 43, 0.68) 0%, rgba(143, 79, 93, 0.36) 48%, rgba(245, 231, 210, 0.2) 100%),
        radial-gradient(circle at 20% 18%, rgba(255, 250, 244, 0.22), transparent 32%),
        radial-gradient(circle at 76% 82%, rgba(183, 110, 121, 0.32), transparent 38%);
}

.hero-content {
    max-width: 880px;
    padding: clamp(34px, 5vw, 58px);
    position: relative;
    z-index: 1;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(9, 23, 43, 0.5), rgba(79, 52, 64, 0.28)),
        var(--floral-pattern);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px) saturate(1.08);
    overflow: hidden;
}

.guest-salutation {
    color: var(--champagne);
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 3vw, 2rem);
    line-height: 1.25;
    margin-bottom: 12px;
}

.invitation-request {
    max-width: 680px;
    margin: 0 auto 18px;
    color: rgba(255, 250, 244, 0.9);
    font-size: clamp(1.08rem, 2vw, 1.36rem);
    line-height: 1.62;
    letter-spacing: 0.8px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 5.7rem);
    font-weight: 400;
    color: var(--champagne);
    margin-bottom: 18px;
    letter-spacing: 3px;
    line-height: 1;
}

.hero-subtitle {
    font-size: 1.22rem;
    color: var(--rose-gold-light);
    letter-spacing: 1.6px;
    margin-bottom: 38px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 44px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 94px;
    padding: 16px 14px;
    background: rgba(255, 250, 244, 0.18);
    border-radius: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
}

.count-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 300;
    color: var(--rose-gold-light);
}

.count-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 2.2px;
    color: var(--champagne);
    margin-top: 5px;
}

/* ===== Sections ===== */
.section-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 104px 40px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4vw, 3.15rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: 50px;
    color: var(--champagne);
    position: relative;
    letter-spacing: 0.8px;
    text-shadow:
        0 2px 12px rgba(9, 23, 43, 0.48),
        0 18px 42px rgba(9, 23, 43, 0.28);
}

.section-title::after {
    content: '❦';
    display: block;
    font-size: 1.1rem;
    color: var(--rose-gold);
    margin-top: 14px;
}

.section-title.light {
    color: var(--champagne);
}

.section-title.light::after {
    color: var(--rose-gold);
}

.story-section,
.details-section,
.venue-section-full,
.travel-section,
.rsvp-section-full {
    position: relative;
    background: transparent;
}

.story-section::before,
.travel-section::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: min(760px, 72vw);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(183, 110, 121, 0.34), transparent);
    opacity: 0.5;
}

.story-content,
.venue-info {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.story-text p,
.venue-info p {
    font-size: clamp(1.18rem, 2vw, 1.38rem);
    color: rgba(255, 250, 244, 0.92);
    margin-bottom: 20px;
    line-height: 1.82;
    text-shadow: 0 10px 30px rgba(9, 23, 43, 0.24);
}

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

.detail-card,
.info-panel,
.rsvp-form {
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 250, 244, 0.78), rgba(255, 250, 244, 0.56));
    box-shadow: var(--shadow-lift);
    backdrop-filter: blur(10px) saturate(1.03);
}

.detail-card {
    padding: 42px 36px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 62px rgba(22, 43, 77, 0.18);
}

.detail-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--rose-gold);
}

.detail-card h3,
.venue-info h3,
.info-panel h3 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
}

.detail-card h3 {
    font-size: 1.58rem;
    margin-bottom: 10px;
}

.detail-time {
    font-size: 1.12rem;
    color: var(--rose-gold-dark);
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.detail-card p,
.info-panel p,
.venue-features span {
    color: var(--navy-mid);
    line-height: 1.68;
}

.venue-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.venue-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.venue-features span {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 250, 244, 0.48);
    font-size: 1.02rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-panel {
    padding: 34px;
}

.info-panel h3 {
    font-size: 1.45rem;
    margin-bottom: 12px;
}

.info-panel p {
    font-size: 1.12rem;
    line-height: 1.75;
}

.map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.map-actions a {
    flex: 1 1 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 6px;
    background: linear-gradient(145deg, rgba(183, 110, 121, 0.14), rgba(255, 250, 244, 0.72));
    color: var(--navy);
    font-size: 0.92rem;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.map-actions a:hover,
.map-actions a:focus {
    background: linear-gradient(145deg, var(--rose-gold), var(--rose-gold-dark));
    color: var(--ivory);
    outline: none;
    transform: translateY(-2px);
}

/* ===== RSVP Section ===== */
.rsvp-section-full .section-title,
.rsvp-subtitle,
.form-group label,
.radio-label {
    color: rgba(255, 250, 244, 0.94);
}

.rsvp-subtitle {
    text-align: center;
    font-size: 1.12rem;
    margin: 0 auto 40px;
    max-width: 680px;
}

.rsvp-form {
    max-width: 650px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 44px);
    background: linear-gradient(180deg, rgba(255, 250, 244, 0.16), rgba(255, 250, 244, 0.08));
    box-shadow: 0 22px 62px rgba(9, 23, 43, 0.25);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    letter-spacing: 1.2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 15px;
    border: none;
    border-radius: 6px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--navy);
    transition: box-shadow 0.3s ease, background 0.3s ease;
    background: rgba(255, 250, 244, 0.9);
}

.form-group input.prefilled-input,
.form-group input[readonly],
.form-group select.prefilled-input,
.form-group select:disabled {
    background: rgba(255, 250, 244, 0.62);
    color: rgba(22, 43, 77, 0.72);
    cursor: not-allowed;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 196, 196, 0.42);
    background: var(--ivory);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
}

.radio-label input {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--rose-gold-light);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: border-color 0.3s ease;
}

.radio-label input:checked + .radio-custom {
    border-color: var(--champagne);
}

.radio-label input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--champagne);
    border-radius: 50%;
}

.submit-btn {
    width: 100%;
    border-radius: 6px;
    padding: 15px;
    font-size: 1.1rem;
}

.submit-btn.is-success {
    background: linear-gradient(145deg, var(--navy), var(--navy-mid));
    box-shadow: 0 12px 28px rgba(9, 23, 43, 0.24);
}

.success-message,
.error-message {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 6px;
    text-align: center;
    font-size: 1.08rem;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

.success-message {
    background: rgba(255, 250, 244, 0.78);
    color: var(--navy);
    box-shadow: 0 12px 26px rgba(9, 23, 43, 0.12);
}

.error-message {
    background: rgba(143, 79, 93, 0.16);
    color: var(--champagne);
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(180deg, rgba(20, 40, 70, 0), rgba(9, 23, 43, 0.68) 35%, rgba(9, 23, 43, 0.96) 100%);
    color: var(--ivory);
    text-align: center;
    padding: 90px 40px 60px;
}

.footer-names {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 15px;
    letter-spacing: 3px;
    color: var(--rose-gold-light);
}

.footer-date {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.footer-thanks {
    font-size: 0.9rem;
    opacity: 0.82;
    font-style: italic;
}

/* ===== Responsive ===== */
@media (max-width: 1180px) {
    .landing-shell {
        width: min(680px, 100%);
    }

    .landing-copy h1 {
        font-size: clamp(3.4rem, 6vw, 5.2rem);
    }
}

@media (max-width: 900px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --photo-focus: 42% 66%;
        --photo-size: cover;
    }

    .landing-container::before,
    .hero::before {
        transform: scale(1.16);
    }

    .landing-shell {
        width: min(100vw - 32px, 560px);
    }

    .landing-copy {
        padding: clamp(30px, 8vw, 46px);
    }

    .nav {
        padding: 15px 20px;
    }

    .nav-links {
        gap: 14px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .nav-links a {
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .countdown {
        gap: 14px;
    }

    .count-number {
        font-size: 2rem;
    }

    .form-row,
    .details-grid {
        grid-template-columns: 1fr;
    }

    .section-container {
        padding: 66px 20px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4.4rem);
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .landing-container {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .landing-copy h1 {
        font-size: clamp(2.55rem, 14vw, 3.15rem);
        margin-bottom: 16px;
    }

    .landing-kicker {
        font-size: 0.7rem;
        letter-spacing: 4px;
        margin-bottom: 12px;
    }

    .landing-date {
        font-size: 0.98rem;
        margin-bottom: 14px;
    }

    .landing-note {
        font-size: 0.98rem;
        line-height: 1.55;
        margin-bottom: 20px;
    }

    .landing-open-btn {
        padding: 12px 22px;
    }

    .nav-links {
        display: none;
    }

    .nav {
        justify-content: center;
    }

    .mobile-rsvp-cta {
        position: fixed;
        left: 18px;
        right: 18px;
        bottom: 18px;
        z-index: 120;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 52px;
        border-radius: 8px;
        clip-path: inset(0 round 8px);
        background: linear-gradient(145deg, var(--rose-gold), var(--rose-gold-dark));
        box-shadow: 0 14px 34px rgba(9, 23, 43, 0.28);
        color: var(--ivory);
        font-size: 1rem;
        letter-spacing: 2px;
        text-decoration: none;
        text-transform: uppercase;
    }

    .main-content {
        padding-bottom: 84px;
    }

    .hero {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-content {
        padding: 30px 18px;
    }

    .countdown {
        flex-wrap: wrap;
        gap: 12px;
    }

    .countdown-item {
        min-width: 64px;
        padding: 12px 10px;
    }
}

/* Landscape mode optimizations */
@media (max-height: 600px) and (orientation: landscape) {
    .landing-shell {
        min-height: calc(100vh - 28px);
    }

    .landing-copy h1 {
        font-size: clamp(2.8rem, 8vw, 4.8rem);
    }

    .landing-note {
        margin-bottom: 18px;
    }
}

/* Safe area insets for notched phones */
@supports (padding: max(0px)) {
    .landing-container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-top: max(20px, env(safe-area-inset-top));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .nav {
        padding-left: max(50px, env(safe-area-inset-left));
        padding-right: max(50px, env(safe-area-inset-right));
    }

    .mobile-rsvp-cta {
        left: max(18px, env(safe-area-inset-left));
        right: max(18px, env(safe-area-inset-right));
        bottom: max(18px, env(safe-area-inset-bottom));
    }
}

/* Improve touch targets on mobile */
@media (pointer: coarse) {
    .landing-open-btn,
    .submit-btn {
        min-height: 48px;
        touch-action: manipulation;
    }

    input, select, textarea {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-open-btn,
    .submit-btn,
    .nav-links a,
    .detail-card,
    .map-actions a {
        transition: none !important;
    }
}

.story-section .story-text p,
.venue-section-full .venue-info p,
.venue-section-full .venue-info h3 {
    color: rgba(255, 250, 244, 0.94);
    text-shadow: 0 10px 30px rgba(9, 23, 43, 0.24);
}
