/* ===================================
   CSS Custom Properties (Colors & Fonts)
   =================================== */
:root {
    --color-primary: #1B3A6B;
    --color-secondary: #C05A2A;
    --color-accent: #E07335;
    --color-gold: #E6B86A;
    --color-sand: #F2E8D0;
    --color-white: #FDFAF3;

    --font-display: 'Great Vibes', cursive;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;

    --nav-height: 200px;
    --container-width: 1100px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.7;
    color: #6FAFE6;
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #6FAFE6;
}

h3 {
    font-size: clamp(1.69rem, 3.9vw, 2.34rem);
    color: #1B3A6B;
    margin-bottom: 0.5em;
}

h4 {
    font-size: 1.2rem;
    color: #1B3A6B;
}

p {
    margin-bottom: 1em;
    color: #3a3a3a;
}

strong {
    font-weight: 500;
}

/* ===================================
   Layout
   =================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    min-height: 60vh;
    position: relative;
}

.section-light {
    background-color: var(--color-white);
}

.section-sand {
    background-color: var(--color-sand);
}

/* All content sections transparent so fixed hero bg shows through */
#location,
#schedule,
#dresscode,
#accommodation,
#discover,
#recommendations,
#excursion,
#gifts,
#rsvp,
#contact,
#faq {
    background-color: transparent;
    position: relative;
    z-index: 5;
}

/* Readable text on transparent background */
.section .section-title {
    color: #6FAFE6;
    font-weight: 800;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.4);
}

.section .section-subtitle {
    color: #ffffff;
    font-weight: 500;
    font-style: normal;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);
}

.section .section-ornament {
    background: var(--color-gold);
}

.section .section-ornament::before {
    border-color: var(--color-gold);
}

/* Cards and content elements: liquid glass effect */
.section .placeholder-card,
.section .timeline,
.section .rsvp-form-container,
.section .faq-item,
.section .contact-card {
    background: rgba(255, 248, 242, 0.32);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 24px rgba(27, 58, 107, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.section .placeholder-card h4,
.section .timeline-content h4,
.section .faq-question,
.section .contact-card h3 {
    color: #1B3A6B;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.section .timeline-time {
    color: var(--color-gold);
}

.section .placeholder-card p,
.section .timeline-content p,
.section .faq-answer p,
.section .rsvp-form-container p,
.section .rsvp-form-container label,
.section .contact-card p {
    color: #2A211D;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.25);
}

.section .contact-card a {
    color: #ffffff;
}

.section .placeholder-card .btn-hotel {
    background: #1B3A6B;
    border-color: #ffffff;
    color: #ffffff;
}

.section .placeholder-card .btn-hotel:hover {
    background: #6FAFE6;
    border-color: #ffffff;
}

.section .timeline::before {
    display: none;
}

/* ===================================
   Navigation
   =================================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.main-nav.scrolled {
    background: transparent;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    padding-top: 0.8rem;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.nav-logo-img {
    height: 3.75em;
    width: auto;
    max-width: none;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.2rem;
}

.nav-links a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-primary);
    border-radius: 4px;
    transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
    color: #6FAFE6;
    background: rgba(111, 175, 230, 0.06);
}

.nav-links a.active {
    color: #1B3A6B;
    background: rgba(27, 58, 107, 0.1);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 1001;
}

.lang-btn {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.5rem;
    color: var(--color-primary);
    opacity: 0.5;
    border-radius: 3px;
    transition: opacity var(--transition), color var(--transition);
}

.lang-btn.active {
    opacity: 1;
    color: #1B3A6B;
}

.lang-btn:hover {
    opacity: 1;
}

.lang-divider {
    color: var(--color-primary);
    opacity: 0.3;
    font-size: 0.8rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    background: #1B3A6B;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: opacity;
}

.hero-bg-day {
    background-image: url('../images/hero-day.jpeg');
    z-index: 0;
}

.hero-bg-sunset {
    background-image: url('../images/hero-sunset.jpeg');
    z-index: 1;
    opacity: 0;
}

.hero-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(27, 58, 107, 0.35);
    z-index: 2;
    pointer-events: none;
}


.hero-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero-names {
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 15vw, 9rem);
    font-weight: 400;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero-ornament {
    width: 80px;
    height: 2px;
    background: var(--color-gold);
    margin: 1.5rem auto;
    position: relative;
}

.hero-ornament::before,
.hero-ornament::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    background: var(--color-gold);
    border-radius: 50%;
    transform: translateY(-50%);
}

.hero-ornament::before {
    left: -16px;
}

.hero-ornament::after {
    right: -16px;
}

.hero-date {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 0.3rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero-location {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.15em;
    margin-bottom: 3rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

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

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: #fff;
    line-height: 1;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.countdown-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.4rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* Scroll Arrow */
.scroll-arrow {
    display: inline-block;
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s infinite;
    transition: color var(--transition);
}

.scroll-arrow:hover {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* ===================================
   Section Headers
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(2.6rem, 6.5vw, 3.9rem);
    margin-bottom: 1rem;
}

.section h3,
.section h4 {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.section-ornament {
    width: 60px;
    height: 2px;
    background: var(--color-gold);
    margin: 0 auto 1rem;
    position: relative;
}

.section-ornament::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border: 2px solid var(--color-gold);
    transform: translate(-50%, -50%) rotate(45deg);
    background: transparent;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 1.56rem;
    font-style: italic;
    color: #1B3A6B;
}

/* ===================================
   Content Cards
   =================================== */
.placeholder-card {
    border-radius: 12px;
    padding: 2.5rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.placeholder-card:has(.card-img) {
    padding-top: 1.5rem;
}

.placeholder-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(27, 58, 107, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

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

.cards-grid .placeholder-card {
    display: flex;
    flex-direction: column;
}

.cards-grid .placeholder-card .btn-hotel {
    align-self: center;
    margin-top: auto;
}

.recommendations-category {
    margin-bottom: 3rem;
}

.recommendations-category:last-child {
    margin-bottom: 0;
}

.recommendations-category > h3 {
    text-align: center;
    margin-bottom: 0.3rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);
}

.recommendations-category > p {
    text-align: center;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.map-placeholder {
    margin-top: 1.5rem;
    padding: 3rem;
    background: var(--color-sand);
    border-radius: 8px;
    text-align: center;
    border: 2px dashed rgba(27, 58, 107, 0.15);
}

.map-placeholder p {
    color: var(--color-primary);
    opacity: 0.5;
    margin: 0;
}

/* ===================================
   Timeline (Schedule)
   =================================== */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 2.5rem 2rem 4.5rem;
    border-radius: 12px;
}

.timeline::before {
    display: none;
}

.timeline-item {
    position: relative;
    padding: 1rem 0;
}

.timeline-item::before {
    display: none;
}

.timeline-time {
    font-family: var(--font-heading);
    font-size: 1.82rem;
    font-weight: 800;
    color: var(--color-gold);
    display: block;
    margin-bottom: 0.3rem;
}

.timeline-content h4 {
    margin-bottom: 0.3rem;
}

.timeline-content p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ===================================
   Dresscode
   =================================== */
.unplugged-notice {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(27, 58, 107, 0.06);
    border-left: 3px solid #1B3A6B;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.unplugged-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1.5;
}

.unplugged-notice p {
    font-size: 0.85rem;
    font-style: italic;
    margin: 0;
    line-height: 1.6;
}

.dresscode-note {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(27, 58, 107, 0.06);
    border-left: 3px solid #1B3A6B;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    font-style: italic;
}

/* ===================================
   Excursion
   =================================== */
.excursion-icon {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.excursion-note {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(27, 58, 107, 0.06);
    border-left: 3px solid #1B3A6B;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    font-style: italic;
}

/* ===================================
   Hotel Cards
   =================================== */
.accommodation-intro,
.accommodation-more {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.accommodation-more {
    margin-top: 2rem;
    font-size: 0.9rem;
    font-style: italic;
}

.hotel-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hotel-badge {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.hotel-location {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1B3A6B !important;
    margin-bottom: 0.8rem !important;
}

.hotel-note {
    font-size: 0.85rem;
    font-style: italic;
    color: #1B3A6B !important;
    margin-bottom: 1rem;
}

.btn-hotel {
    display: inline-block;
    margin-top: auto;
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 8px;
    transition: all var(--transition);
}

.btn-hotel:hover {
    background: #6FAFE6;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(27, 58, 107, 0.3);
}

/* ===================================
   RSVP Form
   =================================== */
.rsvp-form-container {
    max-width: 550px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 2.5rem 2.5rem;
}

.rsvp-intro {
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #6FAFE6;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(27, 58, 107, 0.15);
    border-radius: 8px;
    background: #fff;
    color: #1B3A6B;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1B3A6B;
    box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.rsvp-conditional {
    transition: opacity 0.3s ease;
}

.adult-name-input,
.child-row {
    margin-bottom: 0.5rem;
}

.child-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.child-row input {
    flex: 1;
}

.child-row select {
    width: 90px;
    flex-shrink: 0;
}

.adult-name-input,
.child-name-input,
.child-age-select {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(27, 58, 107, 0.15);
    border-radius: 8px;
    background: #fff;
    color: #1B3A6B;
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
}

.adult-name-input:focus,
.child-name-input:focus,
.child-age-select:focus {
    outline: none;
    border-color: #1B3A6B;
    box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.1);
}

.child-age-input {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(27, 58, 107, 0.15);
    border-radius: 8px;
    background: #fff;
    color: #1B3A6B;
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
    margin-bottom: 0.5rem;
}

.child-age-input:focus {
    outline: none;
    border-color: #1B3A6B;
    box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.1);
}

.child-age-input:last-child {
    margin-bottom: 0;
}

/* Button */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 8px;
    transition: all var(--transition);
    text-align: center;
}

.btn-primary {
    background: #1B3A6B;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-primary:hover {
    background: #6FAFE6;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(27, 58, 107, 0.3);
}

/* RSVP Success */
.rsvp-success {
    text-align: center;
    padding: 2rem 0;
}

.rsvp-success h3 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: #1B3A6B;
    margin-bottom: 1rem;
}

.rsvp-success p {
    font-size: 1.05rem;
}

/* ===================================
   Contact
   =================================== */
.contact-card {
    text-align: center;
    max-width: 550px;
    margin: 0 auto;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: rgba(27, 58, 107, 0.04);
    border-radius: 12px;
    transition: all var(--transition);
    text-decoration: none;
}

.contact-method:hover {
    background: rgba(27, 58, 107, 0.08);
    transform: translateX(4px);
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1B3A6B;
    white-space: nowrap;
}

.contact-value {
    font-size: 0.85rem;
    color: #ffffff;
    margin-left: auto;
}

.contact-note {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.7;
}

@media (max-width: 600px) {
    .contact-method {
        flex-wrap: wrap;
        gap: 0.3rem 0.8rem;
    }

    .contact-value {
        margin-left: 0;
        width: 100%;
        padding-left: 2.5rem;
    }
}

/* ===================================
   FAQ
   =================================== */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(27, 58, 107, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.2rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: #6FAFE6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color var(--transition);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 500;
    color: #1B3A6B;
    transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

.faq-item.open .faq-question {
    color: #6FAFE6;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 600px;
    padding: 0 1.5rem 1.2rem;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ===================================
   Footer
   =================================== */
.site-footer {
    padding: 2rem 0 3rem;
    text-align: center;
    background: transparent;
    color: #fff;
    position: relative;
    z-index: 5;
}


.footer-ornament {
    width: 40px;
    height: 2px;
    background: var(--color-gold);
    margin: 0 auto 1.5rem;
}

.footer-names {
    font-family: var(--font-display);
    font-size: 3.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-gold);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.footer-date {
    font-size: 1.17rem;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

/* ===================================
   Fade-In Animation
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Mexican-Inspired Decorative Elements
   =================================== */
.section-light::before {
    display: none;
}

/* ===================================
   Decorative Header/Footer Overlays
   =================================== */
.deco-header,
.deco-footer {
    position: fixed;
    left: 0;
    right: 0;
    height: 88px;
    background-image: url('../images/header-footer.png');
    background-size: 100% auto;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 6;
}

.deco-header {
    top: 0;
    height: 180px;
    background-position: top center;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 22%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 22%, rgba(0,0,0,0) 100%);
}

.deco-footer {
    bottom: 0;
    height: 180px;
    background-position: bottom center;
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 22%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 22%, rgba(0,0,0,0) 100%);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(253, 250, 243, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        transform: translateY(-100%);
        visibility: hidden;
        transition: transform 0.4s ease, visibility 0.4s;
        z-index: 1000;
    }

    .nav-links.open {
        transform: translateY(0);
        visibility: visible;
    }

    .hero-bg {
        background-position: 30% 30%;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.7rem 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    .countdown {
        gap: 1.2rem;
    }

    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 600px) {
    :root {
        --nav-height: 60px;
    }

    .hero-names {
        font-size: clamp(3.5rem, 15vw, 5rem);
    }

    .rsvp-form-container {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .countdown {
        gap: 1rem;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .countdown-label {
        font-size: 0.65rem;
    }

    .placeholder-card {
        padding: 1.5rem;
    }

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

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }
}

/* ===================================
   Password Protection Overlay
   =================================== */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.password-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.password-overlay__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-day.jpeg') center/cover no-repeat;
}

.password-overlay__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(27, 58, 107, 0.75) 0%,
        rgba(192, 90, 42, 0.55) 100%
    );
}

.password-overlay__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
}

.password-overlay__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.password-overlay__subtitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: rgba(253, 250, 243, 0.9);
    margin-bottom: 2rem;
    font-style: italic;
}

.password-overlay__form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.password-overlay__input {
    width: 100%;
    padding: 0.9rem 1.5rem;
    border: 2px solid rgba(111, 175, 230, 0.5);
    border-radius: 50px;
    background: rgba(253, 250, 243, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    text-align: center;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.password-overlay__input::placeholder {
    color: rgba(253, 250, 243, 0.6);
}

.password-overlay__input:focus {
    border-color: #6FAFE6;
    background: rgba(253, 250, 243, 0.25);
}

.password-overlay__btn {
    padding: 0.8rem 2.5rem;
    border: 2px solid #ffffff;
    border-radius: 50px;
    background: #1B3A6B;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.password-overlay__btn:hover {
    background: #6FAFE6;
    color: #ffffff;
    transform: translateY(-1px);
}

.password-overlay__error {
    color: #ffb4a8;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin: 0;
}

.password-overlay__error.visible {
    opacity: 1;
}

/* Shake animation for wrong password */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

.password-overlay__input.shake {
    animation: shake 0.4s ease;
    border-color: #ffb4a8;
}

/* Hide deco elements when password screen is active */
body.password-locked .deco-header,
body.password-locked .deco-footer {
    display: none;
}

body.password-locked {
    overflow: hidden;
}
