/* ============================================================
   INVITATION MARIAGE — SAVE THE DATE
   Grace & Jonathan
   Design System & Styles
   ============================================================ */

/* ---------- Google Fonts Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Great+Vibes&family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ---------- Design Tokens ---------- */
:root {
    /* Colors */
    --color-primary: #c9a96e;
    --color-primary-light: #dfc9a0;
    --color-primary-dark: #a8874e;
    --color-accent: #e8b4b8;
    --color-accent-light: #f5d5d8;
    --color-accent-dark: #c48f93;
    --color-bg: #faf6f2;
    --color-bg-alt: #f5ede5;
    --color-bg-cream: #fdf8f4;
    --color-bg-white: #ffffff;
    --color-text: #3a2d2d;
    --color-text-light: #6b5a5a;
    --color-text-muted: #9e8c8c;
    --color-border: #e8ddd4;
    --color-border-light: #f0e8e0;
    --color-gold-gradient: linear-gradient(135deg, #c9a96e 0%, #dfc9a0 50%, #c9a96e 100%);
    --color-hero-overlay: linear-gradient(180deg, rgba(58, 45, 45, 0.35) 0%, rgba(58, 45, 45, 0.55) 100%);
    --color-section-gradient: linear-gradient(180deg, #faf6f2 0%, #f5ede5 100%);
    --color-success: #6dbe7a;
    --color-error: #e07575;

    /* Typography */
    --font-script: 'Great Vibes', cursive;
    --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-sans: 'Montserrat', 'Segoe UI', Arial, sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1200px;
    --container-padding: 0 24px;

    /* Borders & Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(58, 45, 45, 0.06);
    --shadow-md: 0 4px 20px rgba(58, 45, 45, 0.08);
    --shadow-lg: 0 8px 40px rgba(58, 45, 45, 0.12);
    --shadow-gold: 0 4px 20px rgba(201, 169, 110, 0.20);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.35s ease;
    --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

/* ---------- Utility Classes ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--container-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-subtitle {
    font-family: var(--font-script);
    font-size: 1.6rem;
    color: var(--color-primary);
    display: block;
    margin-bottom: 8px;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.section-header .divider {
    width: 80px;
    height: 2px;
    background: var(--color-gold-gradient);
    margin: 20px auto 0;
    border-radius: 2px;
    position: relative;
}

.section-header .divider::after {
    content: '♥';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    color: var(--color-primary);
    background: var(--color-bg);
    padding: 0 12px;
}

.section-header .divider--alt::after {
    background: var(--color-bg-alt);
}

.section-header .divider--white::after {
    background: var(--color-bg-white);
}

/* ---------- Scroll Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* ---------- NAVIGATION ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(250, 246, 242, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar__logo {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: #fff;
    transition: color var(--transition-base);
}

.navbar.scrolled .navbar__logo {
    color: var(--color-primary);
}

.navbar__menu {
    display: flex;
    gap: 24px;
    align-items: center;
}

.navbar__language-selector {
    display: flex;
    align-items: center;
}

.lang-select {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-sans);
    cursor: pointer;
    outline: none;
    transition: all var(--transition-fast);
}

.navbar.scrolled .lang-select {
    color: var(--color-text);
    border-color: var(--color-border);
}

.lang-select option {
    background: var(--color-bg);
    color: var(--color-text);
}

.navbar__link {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
    padding: 4px 0;
    transition: color var(--transition-base);
}

.navbar.scrolled .navbar__link {
    color: var(--color-text-light);
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

.navbar__link:hover::after,
.navbar__link.active::after {
    width: 100%;
}

.navbar__link:hover {
    color: #fff;
}

.navbar.scrolled .navbar__link:hover {
    color: var(--color-primary);
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.navbar__toggle span {
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition-base);
}

.navbar.scrolled .navbar__toggle span {
    background: var(--color-text);
}

/* ---------- HERO SECTION ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-hero-overlay);
    z-index: 1;
}

.hero__particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 0 24px;
    max-width: 800px;
}

.hero__invite-text {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}

.hero__couple-name {
    font-family: var(--font-script);
    font-size: 5rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 8px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease 0.3s both;
}

.hero__ampersand {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    font-style: italic;
    display: block;
    margin: 4px 0;
    color: var(--color-primary-light);
}

.hero__tagline {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.03em;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero__date {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    color: var(--color-primary-light);
    animation: fadeInUp 1s ease 0.9s both;
}

.hero__location {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 1.1s both;
}

.hero__location i {
    margin-right: 6px;
    color: var(--color-primary-light);
}

.hero__buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 1.3s both;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounceDown 2s ease infinite;
}

.hero__scroll-indicator a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.6rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn--primary {
    background: var(--color-gold-gradient);
    color: #fff;
    box-shadow: var(--shadow-gold);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(201, 169, 110, 0.35);
    color: #fff;
}

.btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

.btn--dark {
    background: var(--color-text);
    color: #fff;
}

.btn--dark:hover {
    background: var(--color-text-light);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- NOTRE HISTOIRE / TIMELINE ---------- */
.story {
    padding: var(--section-padding);
    background: var(--color-section-gradient);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
    transform: translateX(-50%);
}

.timeline__item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
}

.timeline__item:last-child {
    margin-bottom: 0;
}

.timeline__item:nth-child(odd) {
    flex-direction: row;
}

.timeline__item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline__content {
    width: 45%;
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.timeline__content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.timeline__item:nth-child(odd) .timeline__content {
    margin-right: auto;
}

.timeline__item:nth-child(even) .timeline__content {
    margin-left: auto;
}

.timeline__dot {
    position: absolute;
    left: 50%;
    top: 35px;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: var(--color-primary);
    border: 4px solid var(--color-bg);
    border-radius: var(--radius-full);
    z-index: 2;
    box-shadow: var(--shadow-gold);
}

.timeline__date {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.timeline__title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
}

.timeline__text {
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.timeline__img {
    width: 100%;
    border-radius: var(--radius-sm);
    margin-top: 15px;
    aspect-ratio: 16/10;
    object-fit: cover;
}

/* ---------- STORY NARRATIVE ---------- */
.story-narrative {
    flex: 0 0 50%;
    max-width: 50%;
    text-align: left;
}

.section-header.section-header--left {
    text-align: left;
}

.section-header.section-header--left .divider {
    margin-left: 0;
    margin-right: auto;
}

.story-narrative__block {
    margin-bottom: 8px;
    padding: 0;
}

.story-narrative__block p {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.4;
    color: var(--color-text-light);
    font-style: italic;
}

.story-narrative__block p strong {
    color: var(--color-text);
    font-weight: 600;
    font-style: normal;
}

.story-narrative__dropcap::first-letter {
    font-family: var(--font-script);
    font-size: 3.8rem;
    float: left;
    line-height: 0.8;
    margin-right: 8px;
    margin-top: 6px;
    color: var(--color-primary);
    font-style: normal;
}

.story-narrative__separator {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin: 8px 0;
    max-width: 200px;
    color: var(--color-primary-light);
    font-size: 0.85rem;
}

.story-narrative__separator::before,
.story-narrative__separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.story-narrative__signature {
    margin-top: 24px;
    text-align: left;
}

.story-narrative__signature p {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 8px;
}

.story-narrative__signature .couple-sign {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--color-primary);
}

/* ---------- INFO NOTICE CARD ---------- */
.info-notice {
    max-width: 600px;
    margin: 50px auto 0;
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.08) 0%, rgba(232, 180, 184, 0.08) 100%);
    border: 1px solid var(--color-primary-light);
    border-radius: var(--radius-md);
    padding: 30px 35px;
    text-align: center;
}

.info-notice__title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.info-notice__list {
    list-style: none;
    padding: 0;
}

.info-notice__list li {
    font-size: 0.92rem;
    color: var(--color-text-light);
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.info-notice__list li:last-child {
    border-bottom: none;
}

.info-notice__list li i {
    color: var(--color-primary);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .story-narrative__block p {
        font-size: 1.02rem;
    }

    .story-narrative__dropcap::first-letter {
        font-size: 3rem;
    }

    .info-notice {
        padding: 24px 20px;
    }
}

/* ---------- STORY COUPLE WRAPPER ---------- */
.story-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 50px;
    margin: 0 auto;
    max-width: 1100px;
}

.story-image-container {
    flex: 0 0 45%;
    max-width: 45%;
    margin: 0;
}

.story-image-container img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.story-narrative {
    flex: 0 0 50%;
    max-width: 50%;
    text-align: center;
}

@media (max-width: 900px) {
    .story-wrapper {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 30px;
    }

    .story-image-container,
    .story-narrative {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }
}

/* ---------- DÉTAILS DU MARIAGE ---------- */
.details {
    padding: var(--section-padding);
    background: var(--color-bg-white);
}

.details__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.detail-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--color-bg-cream);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
}

.detail-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.detail-card__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--color-gold-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    box-shadow: var(--shadow-gold);
}

.detail-card__title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
}

.detail-card__info {
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.detail-card__info strong {
    color: var(--color-text);
    font-weight: 600;
}

/* Programme */
.programme {
    max-width: 700px;
    margin: 0 auto;
}

.programme__item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.programme__item:last-child {
    border-bottom: none;
}

.programme__time {
    flex-shrink: 0;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    min-width: 80px;
}

.programme__desc h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.programme__desc p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

/* Map */
.details__map {
    margin-top: 50px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
}

.details__map iframe {
    display: block;
    width: 100%;
    height: 350px;
    border: 0;
}

/* ---------- COMPTE À REBOURS ---------- */
.countdown-section {
    padding: 80px 0;
    background: var(--color-text);
    position: relative;
    overflow: hidden;
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a96e' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.countdown-section .section-header h2 {
    color: #fff;
}

.countdown-section .section-header .section-subtitle {
    color: var(--color-primary-light);
}

.countdown-section .divider::after {
    background: var(--color-text);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.countdown__block {
    text-align: center;
}

.countdown__number {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-primary-light);
    line-height: 1;
    display: block;
    min-width: 100px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.countdown__block:hover .countdown__number {
    background: rgba(201, 169, 110, 0.12);
    border-color: rgba(201, 169, 110, 0.4);
    transform: scale(1.05);
}

.countdown__label {
    display: block;
    margin-top: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- GALERIE PHOTOS ---------- */
.gallery {
    padding: var(--section-padding);
    background: var(--color-section-gradient);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery__item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery__item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery__item:hover img {
    transform: scale(1.08);
}

.gallery__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(58, 45, 45, 0.6) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery__item:hover .gallery__overlay {
    opacity: 1;
}

.gallery__overlay span {
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.lightbox.active {
    display: flex;
}

.lightbox__img {
    max-width: 85vw;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: 2rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.lightbox__close:hover {
    opacity: 1;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox__prev {
    left: 20px;
}

.lightbox__next {
    right: 20px;
}

/* ---------- RSVP ---------- */
.rsvp {
    padding: var(--section-padding);
    background: var(--color-bg-white);
    position: relative;
}

.rsvp__wrapper {
    max-width: 680px;
    margin: 0 auto;
    background: var(--color-bg-cream);
    border-radius: var(--radius-lg);
    padding: 50px 45px;
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.rsvp__wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-gold-gradient);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-group label .required {
    color: var(--color-accent-dark);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    color: var(--color-text);
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
}

.form-control::placeholder {
    color: var(--color-text-muted);
}

.form-control--select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239e8c8c' d='M6 8.825L.175 3h11.65z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.radio-group {
    display: flex;
    gap: 24px;
    margin-top: 4px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
    font-family: var(--font-sans);
    font-size: 0.92rem;
}

.radio-group input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    position: relative;
    cursor: pointer;
}

.radio-group input[type="radio"]:checked {
    border-color: var(--color-primary);
}

.radio-group input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

.form-error {
    font-size: 0.82rem;
    color: var(--color-error);
    margin-top: 6px;
    display: none;
}

.form-group.error .form-control {
    border-color: var(--color-error);
}

.form-group.error .form-error {
    display: block;
}

.rsvp__submit {
    width: 100%;
    margin-top: 10px;
}

/* RSVP Success */
.rsvp__success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.rsvp__success.active {
    display: block;
    animation: fadeInUp 0.6s ease;
}

.rsvp__success-icon {
    width: 80px;
    height: 80px;
    background: var(--color-success);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: #fff;
}

.rsvp__success h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-text);
    margin-bottom: 12px;
}

.rsvp__success p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    max-width: 400px;
    margin: 0 auto;
}

/* ---------- FAQ ---------- */
.faq {
    position: relative;
    padding: var(--section-padding);
    background-image: url('../image/djo.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 246, 242, 0.85);
    z-index: -1;
}

.faq__list {
    max-width: 760px;
    margin: 0 auto;
}

.faq__item {
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    transition: box-shadow var(--transition-base);
}

.faq__item:hover {
    box-shadow: var(--shadow-sm);
}

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.faq__question:hover {
    color: var(--color-primary);
}

.faq__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--color-bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.faq__item.active .faq__icon {
    background: var(--color-primary);
    color: #fff;
    transform: rotate(45deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq__item.active .faq__answer {
    max-height: 400px;
}

.faq__answer p {
    padding: 0 28px 22px;
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.footer__left p,
.footer__right p {
    font-size: 0.88rem;
    line-height: 1.8;
}

.footer__center {
    text-align: center;
}

.footer__logo {
    font-family: var(--font-script);
    font-size: 2.2rem;
    color: var(--color-primary-light);
    margin-bottom: 8px;
}

.footer__social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.footer__social a {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.footer__social a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer__bottom a {
    color: var(--color-primary-light);
}

/* ---------- KEYFRAMES ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(12px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(201, 169, 110, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(201, 169, 110, 0.5);
    }
}

/* ---------- RESPONSIVE ---------- */

/* Tablet */
@media (max-width: 992px) {
    :root {
        --section-padding: 80px 0;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .hero__couple-name {
        font-size: 3.8rem;
    }

    .details__grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto 60px;
    }

    .gallery__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery__item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
        aspect-ratio: 2/1;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline__item,
    .timeline__item:nth-child(odd),
    .timeline__item:nth-child(even) {
        flex-direction: column;
        padding-left: 70px;
    }

    .timeline__content {
        width: 100%;
    }

    .timeline__dot {
        left: 30px;
        top: 0;
    }

    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .countdown {
        gap: 24px;
    }

    .countdown__number {
        font-size: 3rem;
        min-width: 80px;
        padding: 16px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --container-padding: 0 16px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header .section-subtitle {
        font-size: 1.3rem;
    }

    /* Nav Mobile */
    .navbar__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        z-index: 1001;
    }

    .navbar__menu.active {
        right: 0;
    }

    .navbar__link,
    .navbar.scrolled .navbar__link {
        color: var(--color-text);
        font-size: 1rem;
    }

    .navbar__toggle {
        display: flex;
        z-index: 1002;
    }

    .navbar__overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1000;
    }

    .navbar__overlay.active {
        display: block;
    }

    /* Hero Mobile */
    .hero__couple-name {
        font-size: 2.8rem;
    }

    .hero__ampersand {
        font-size: 1.8rem;
    }

    .hero__tagline {
        font-size: 1.05rem;
    }

    .hero__date {
        font-size: 1.2rem;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .btn {
        padding: 12px 28px;
        font-size: 0.82rem;
    }

    /* Gallery Mobile */
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery__item:nth-child(1) {
        grid-column: span 2;
        aspect-ratio: 16/9;
    }

    /* Countdown Mobile */
    .countdown {
        gap: 16px;
    }

    .countdown__number {
        font-size: 2.2rem;
        min-width: 65px;
        padding: 12px;
    }

    .countdown__label {
        font-size: 0.7rem;
    }

    /* RSVP Mobile */
    .rsvp__wrapper {
        padding: 30px 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Programme Mobile */
    .programme__item {
        flex-direction: column;
        gap: 8px;
    }

    /* Footer Mobile */
    .footer__left,
    .footer__right {
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero__couple-name {
        font-size: 2.2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .countdown {
        gap: 10px;
    }

    .countdown__number {
        font-size: 1.8rem;
        min-width: 55px;
        padding: 10px;
    }
}

/* ---------- Loading Screen ---------- */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-screen__text {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--color-primary);
    animation: pulse-glow 1.5s ease infinite;
    margin-bottom: 20px;
}

.loading-screen__bar {
    width: 120px;
    height: 2px;
    background: var(--color-border);
    border-radius: 2px;
    overflow: hidden;
}

.loading-screen__bar::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    background: var(--color-primary);
    border-radius: 2px;
    animation: loadingBar 1.2s ease infinite;
}

@keyframes loadingBar {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(340%);
    }
}