/* =============================================
   Modern Wedding Invitation — Engga & Mia
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Jost:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
    --gold: rgb(255, 44, 167);
    --gold-light: #09ff00;
    --gold-dark: #ff0000;
    --rose: #00ff15;
    --rose-light: #b907b9;
    --rose-dark: #eeff00;
    --sage: #ff5100;
    --sage-light: #0400ff;
    --cream: #ff89c046;
    --cream-dark: #ae00ff;
    --charcoal: #1f1f1f;
    --charcoal-soft: #4a4a4a;
    --white: #ffffff;
    --shadow-sm: 0 4px 24px rgba(31, 31, 31, 0.06);
    --shadow-md: 0 12px 48px rgba(31, 31, 31, 0.1);
    --shadow-lg: 0 24px 64px rgba(31, 31, 31, 0.14);
    --radius: 16px;
    --radius-lg: 24px;
    --transition: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-sans: 'Jost', sans-serif;
    --floral-color: rgba(201, 169, 110, 0.45);
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-sans);
    color: var(--charcoal-soft);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

body.nav-open {
    overflow: hidden;
    touch-action: none;
}

.container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
}

/* ---- Floating Petals ---- */
.floating-petals {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -40px;
    opacity: 0;
    animation: petalFall linear infinite;
    will-change: transform, opacity;
}

.petal svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.petal--heart svg {
    filter: drop-shadow(0 2px 6px rgba(212, 165, 165, 0.35));
}

@keyframes petalFall {
    0% {
        transform: translateY(-40px) translateX(0) rotate(0deg) scale(0.6);
        opacity: 0;
    }
    8% { opacity: 0.85; }
    50% {
        transform: translateY(50vh) translateX(var(--drift, 30px)) rotate(180deg) scale(1);
        opacity: 0.7;
    }
    92% { opacity: 0.5; }
    100% {
        transform: translateY(105vh) translateX(calc(var(--drift, 30px) * -0.5)) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

/* ---- Professional Edge Decor System ---- */
.edge-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99;
    overflow: hidden;
}

.edge-corner {
    position: absolute;
    width: clamp(70px, 10vw, 130px);
    height: clamp(70px, 10vw, 130px);
    color: var(--floral-color);
    opacity: 0;
    animation: cornerFadeIn 2s ease 0.5s forwards;
}

.edge-corner svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.edge-corner--tl { top: 0; left: 0; }
.edge-corner--tr { top: 0; right: 0; transform: scaleX(-1); }
.edge-corner--bl { bottom: 0; left: 0; transform: scaleY(-1); }
.edge-corner--br { bottom: 0; right: 0; transform: scale(-1); }

.corner-vine {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: cornerVineDraw 3s ease 0.8s forwards, cornerVineGlow 5s ease-in-out 3.5s infinite;
}

.corner-bloom {
    fill: currentColor;
    opacity: 0;
    transform-origin: center;
    animation: cornerBloom 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 2.5s forwards, bloomPulse 4s ease-in-out 4s infinite;
}

.edge-sparkles {
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(60px, 8vw, 110px);
    overflow: hidden;
}

.edge-sparkles--left { left: 0; }
.edge-sparkles--right { right: 0; }

.edge-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
    opacity: 0;
    animation: sparkleTwinkle ease-in-out infinite;
}

.edge-sparkle::before,
.edge-sparkle::after {
    content: '';
    position: absolute;
    background: var(--gold-light);
    border-radius: 1px;
}

.edge-sparkle::before {
    width: 1px;
    height: 8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.edge-sparkle::after {
    width: 8px;
    height: 1px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes cornerFadeIn {
    to { opacity: 0.75; }
}

@keyframes cornerVineDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes cornerVineGlow {
    0%, 100% { opacity: 0.5; filter: drop-shadow(0 0 2px rgba(201, 169, 110, 0.3)); }
    50% { opacity: 1; filter: drop-shadow(0 0 8px rgba(201, 169, 110, 0.6)); }
}

@keyframes cornerBloom {
    0% { opacity: 0; transform: scale(0) rotate(-20deg); }
    100% { opacity: 0.7; transform: scale(1) rotate(0deg); }
}

@keyframes sparkleTwinkle {
    0%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); }
    20% { opacity: 0.9; transform: scale(1) rotate(45deg); }
    40% { opacity: 0.3; transform: scale(0.6) rotate(90deg); }
    60% { opacity: 1; transform: scale(1.1) rotate(135deg); }
    80% { opacity: 0.2; transform: scale(0.5) rotate(180deg); }
}

/* ---- Edge Hearts ---- */
.edge-hearts {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.edge-heart {
    position: absolute;
    left: 50%;
    bottom: -30px;
    transform: translateX(-50%);
    opacity: 0;
    animation: edgeHeartRise linear infinite;
    will-change: transform, opacity;
}

.edge-heart svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 8px rgba(212, 165, 165, 0.4));
}

.edge-heart--gold svg {
    filter: drop-shadow(0 2px 8px rgba(201, 169, 110, 0.45));
}

@keyframes edgeHeartRise {
    0% {
        transform: translateX(-50%) translateY(0) scale(0.4) rotate(-8deg);
        opacity: 0;
    }
    8% { opacity: 0.85; }
    50% {
        transform: translateX(calc(-50% + var(--sway, 12px))) translateY(-50vh) scale(1) rotate(6deg);
        opacity: 0.65;
    }
    92% { opacity: 0.25; }
    100% {
        transform: translateX(calc(-50% - var(--sway, 12px))) translateY(-105vh) scale(0.7) rotate(-4deg);
        opacity: 0;
    }
}

/* ---- Edge Glow Ambient ---- */
.edge-glow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(
        90deg,
        rgba(201, 169, 110, 0.06) 0%,
        rgba(212, 165, 165, 0.04) 40%,
        transparent 100%
    );
    animation: edgeGlowPulse 8s ease-in-out infinite;
}

.edge-glow--right {
    background: linear-gradient(
        270deg,
        rgba(201, 169, 110, 0.06) 0%,
        rgba(212, 165, 165, 0.04) 40%,
        transparent 100%
    );
    animation-delay: -4s;
}

@keyframes edgeGlowPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ---- Floral Edge Decorations ---- */
.floral-edge {
    position: fixed;
    top: 0;
    bottom: 0;
    width: clamp(60px, 8vw, 110px);
    z-index: 100;
    pointer-events: none;
    color: var(--floral-color);
    overflow: hidden;
    opacity: 0;
    animation: edgeColumnReveal 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@keyframes edgeColumnReveal {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.floral-edge--left { left: 0; }
.floral-edge--right { right: 0; }

.floral-vine {
    height: 100%;
    animation: vineSway 8s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.floral-edge--right .floral-vine {
    animation-delay: -4s;
    transform: scaleX(-1);
}

.floral-svg {
    width: 100%;
    height: 100%;
}

.floral-svg .vine-stem path {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: vineDraw 4s ease 0.6s forwards, stemGlow 6s ease-in-out 4.5s infinite;
}

@keyframes vineDraw {
    to { stroke-dashoffset: 0; }
}

.floral-bloom {
    transform-origin: center;
    opacity: 0;
    animation: floralBloomReveal 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, bloomPulse 4s ease-in-out infinite;
}

.floral-bloom--1 { animation-delay: 1.2s, 2.2s; }
.floral-bloom--2 { animation-delay: 1.6s, 2.6s; }
.floral-bloom--3 { animation-delay: 2s, 3s; }
.floral-bloom--4 { animation-delay: 2.4s, 3.4s; }
.floral-bloom--5 { animation-delay: 2.8s, 3.8s; }

@keyframes floralBloomReveal {
    0% { opacity: 0; transform: scale(0) rotate(-15deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.floral-leaf {
    transform-origin: center;
    opacity: 0;
    animation: leafReveal 0.8s ease forwards, leafSway 5s ease-in-out infinite;
}

.floral-leaf--1 { animation-delay: 1.4s, 2s; }
.floral-leaf--2 { animation-delay: 1.8s, 2.4s; }
.floral-leaf--3 { animation-delay: 2.2s, 2.8s; }

@keyframes leafReveal {
    0% { opacity: 0; transform: scale(0.5) rotate(-20deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.vine-stem {
    animation: stemGlow 6s ease-in-out infinite;
}

@keyframes vineSway {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(4px) rotate(0.6deg); }
    75% { transform: translateX(-4px) rotate(-0.6deg); }
}

.floral-edge--right .floral-vine {
    animation-name: vineSwayRight;
}

@keyframes vineSwayRight {
    0%, 100% { transform: scaleX(-1) translateX(0) rotate(0deg); }
    25% { transform: scaleX(-1) translateX(-4px) rotate(-0.6deg); }
    75% { transform: scaleX(-1) translateX(4px) rotate(0.6deg); }
}

@keyframes bloomPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.82; }
}

@keyframes leafSway {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.08); }
}

@keyframes stemGlow {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .edge-corner,
    .floral-edge,
    .edge-heart,
    .edge-sparkle,
    .petal,
    .floral-bloom,
    .floral-leaf,
    .corner-vine {
        animation: none !important;
        opacity: 0.6 !important;
        stroke-dashoffset: 0 !important;
    }
}

/* ---- Preloader ---- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.preloader-initials {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 500;
    color: var(--gold-light);
    letter-spacing: 0.3em;
    display: block;
    margin-bottom: 1.5rem;
    animation: shimmerText 2.5s ease-in-out infinite;
}

@keyframes shimmerText {
    0%, 100% { opacity: 0.85; text-shadow: 0 0 20px rgba(232, 213, 176, 0.3); }
    50% { opacity: 1; text-shadow: 0 0 40px rgba(232, 213, 176, 0.6); }
}

.preloader-bar {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 auto;
    border-radius: 2px;
    overflow: hidden;
}

.preloader-bar span {
    display: block;
    height: 100%;
    width: 40%;
    background: var(--gold);
    border-radius: 2px;
    animation: preloaderSlide 1.2s ease-in-out infinite;
}

@keyframes preloaderSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* ---- Cover Section ---- */
.cover-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background: url('img/index.jpg') center/cover no-repeat;
    overflow: hidden;
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% { background-size: 100% 100%; background-position: center center; }
    100% { background-size: 110% 110%; background-position: 52% 48%; }
}

.cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(20, 20, 20, 0.55) 0%,
        rgba(30, 30, 30, 0.45) 40%,
        rgba(20, 20, 20, 0.65) 100%
    );
}

.cover-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: 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='%23ffffff' fill-opacity='1'%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");
}

.cover-particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--gold-light);
    border-radius: 50%;
    opacity: 0.4;
    animation: floatParticle 8s ease-in-out infinite;
}

.cover-particles span:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.cover-particles span:nth-child(2) { top: 25%; right: 15%; animation-delay: 1.5s; width: 4px; height: 4px; }
.cover-particles span:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 3s; }
.cover-particles span:nth-child(4) { bottom: 20%; right: 25%; animation-delay: 2s; width: 8px; height: 8px; }
.cover-particles span:nth-child(5) { top: 50%; left: 50%; animation-delay: 4s; width: 3px; height: 3px; }

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-30px) scale(1.2); opacity: 0.6; }
}

.cover-content {
    position: relative;
    z-index: 2;
    padding: 3rem 2.5rem;
    max-width: 520px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: coverFloat 6s ease-in-out infinite;
}

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

.cover-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 0.75rem;
}

.cover-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.cover-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.25rem 0;
}

.cover-divider span {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.cover-divider i {
    color: var(--gold);
    font-size: 0.75rem;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
}

.names h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    font-weight: 500;
    color: var(--white);
    line-height: 1.1;
    margin: 0.5rem 0;
    background: linear-gradient(135deg, #fff 0%, var(--gold-light) 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: nameShine 4s linear infinite;
}

@keyframes nameShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.names .ampersand {
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
    margin: 0 0.15em;
}

.date {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.5rem;
}

.cover-guest {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 1.5rem 0 0;
    line-height: 1.8;
}

.cover-guest strong {
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
}

.btn-open {
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 2rem;
    cursor: pointer;
}

.btn-open-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(196, 162, 101, 0.4);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-open-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
    transform: translateX(-100%);
    animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.btn-open:hover .btn-open-inner {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(196, 162, 101, 0.5);
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-hint span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-hint span::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--gold-light);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}

/* ---- Sticky Navigation ---- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 0 clamp(1rem, 4vw, 3rem);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
    pointer-events: none;
}

.site-nav.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.site-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    box-shadow: 0 4px 30px rgba(31, 31, 31, 0.08);
    border: 1px solid rgba(201, 169, 110, 0.15);
}

.nav-brand {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--charcoal);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.nav-brand span {
    color: var(--gold);
    font-style: italic;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
}

.nav-links a {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--charcoal-soft);
    text-decoration: none;
    padding: 0.5rem 0.85rem;
    border-radius: 20px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold-dark);
    background: rgba(201, 169, 110, 0.12);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 850;
    background: rgba(20, 20, 20, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

/* ---- Section Base ---- */
.section {
    padding: 6rem 0;
    position: relative;
    scroll-margin-top: calc(5rem + env(safe-area-inset-top));
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 500;
    color: var(--charcoal);
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
    position: relative;
}

.section-title::after {
    content: '✦';
    display: block;
    font-size: 0.6rem;
    color: var(--gold);
    margin-top: 0.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

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

@keyframes sparkle {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.section-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: var(--charcoal-soft);
    max-width: 560px;
    margin: 0 auto 3rem;
    opacity: 0.8;
}

.ornament-top {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.ornament-top span {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

/* ---- Hero / Quote ---- */
.section-hero {
    background: var(--white);
    padding: 5rem 0;
}

.section-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 4.5vw, 2rem);
    font-weight: 500;
    color: var(--charcoal);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-style: italic;
    font-weight: 400;
    color: var(--charcoal);
    max-width: 700px;
    margin: 0 auto 1rem;
    line-height: 1.9;
}

.quote-source {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-dark);
    font-weight: 500;
}

/* ---- Countdown ---- */
.section-countdown {
    background: linear-gradient(160deg, var(--charcoal) 0%, #1e1e1e 100%);
    color: var(--white);
}

.section-countdown .section-title {
    color: var(--white);
}

.section-countdown .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 640px;
    margin: 0 auto;
}

.countdown-item {
    text-align: center;
    padding: 1.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.countdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(196, 162, 101, 0.3);
    transform: translateY(-4px);
}

.countdown-number {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* ---- Couple ---- */
.section-couple {
    background: var(--cream);
}

.couple-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.couple-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.couple-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.couple-img {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
}

.couple-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.couple-img-ring {
    position: absolute;
    inset: -8px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    opacity: 0.5;
    animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.couple-card h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}

.couple-role {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-dark);
    font-weight: 500;
    margin-bottom: 1rem;
}

.couple-parents {
    font-size: 0.9rem;
    color: var(--charcoal-soft);
    line-height: 1.8;
}

.couple-parents strong {
    color: var(--charcoal);
    font-weight: 500;
}

.couple-social {
    margin-top: 1.25rem;
}

.couple-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--cream-dark);
    color: var(--charcoal-soft);
    transition: var(--transition);
    text-decoration: none;
}

.couple-social a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.couple-connector {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    box-shadow: 0 8px 25px rgba(196, 162, 101, 0.35);
}

.couple-connector i {
    color: var(--white);
    font-size: 1.2rem;
    animation: heartbeat 2s ease-in-out infinite;
}

.couple-mobile-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem 0 0.25rem;
}

.couple-mobile-divider span {
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.couple-mobile-divider i {
    color: var(--gold);
    font-size: 0.85rem;
    animation: heartbeat 2s ease-in-out infinite;
}

/* ---- Event ---- */
.section-event {
    background: var(--white);
}

.event-card {
    background: var(--cream);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    height: 100%;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--sage));
    opacity: 0;
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(196, 162, 101, 0.2);
}

.event-card:hover::before {
    opacity: 1;
}

.event-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 14px;
    margin-bottom: 1.25rem;
}

.event-icon i {
    color: var(--white);
    font-size: 1.3rem;
}

.event-card h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.event-details p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    margin-bottom: 0.6rem;
    color: var(--charcoal-soft);
}

.event-details i {
    color: var(--gold);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.event-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-dark);
    text-decoration: none;
    transition: var(--transition);
}

.event-link:hover {
    color: var(--charcoal);
    gap: 0.75rem;
}

.maps-wrapper {
    margin-top: 3rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--cream);
    position: relative;
    aspect-ratio: 16 / 10;
}

.maps-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---- Gallery ---- */
.section-gallery {
    background: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 1rem;
    max-width: 960px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
}

.gallery-item--tall {
    grid-row: span 2;
}

.gallery-item--wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(42, 42, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    color: var(--white);
    font-size: 1.5rem;
    transform: scale(0.5);
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* ---- RSVP ---- */
.section-rsvp {
    background: var(--white);
}

.rsvp-form {
    max-width: 520px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--cream);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--cream-dark);
}

.rsvp-form .form-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--charcoal-soft);
    margin-bottom: 0.5rem;
}

.rsvp-form .form-control {
    border: 1px solid var(--cream-dark);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background: var(--white);
    transition: var(--transition);
}

.rsvp-form .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196, 162, 101, 0.15);
    outline: none;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--charcoal) 0%, #1e1e1e 100%);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 162, 101, 0.35);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.rsvp-message {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.rsvp-message--error {
    background: #fdecea;
    color: #9b2c2c;
    border: 1px solid #f5c6cb;
}

.rsvp-success {
    text-align: center;
    padding: 2rem 0;
}

.rsvp-success i {
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.rsvp-success h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--charcoal);
}

/* ---- Gift ---- */
.section-gift {
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.gift-cards {
    display: flex;
    justify-content: center;
}

.gift-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    max-width: 400px;
    width: 100%;
    transition: var(--transition);
    border: 1px solid rgba(196, 162, 101, 0.15);
}

.gift-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.gift-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(196, 162, 101, 0.15) 0%, rgba(196, 162, 101, 0.05) 100%);
}

.gift-icon i {
    font-size: 1.8rem;
    color: var(--gold);
}

.gift-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 1.25rem;
}

.bank-name {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-dark);
    background: rgba(196, 162, 101, 0.1);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.account-number {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--charcoal);
    letter-spacing: 0.08em;
    margin: 0.5rem 0;
}

.account-holder {
    font-size: 0.9rem;
    color: var(--charcoal-soft);
    margin-bottom: 1.5rem;
}

.btn-copy {
    background: transparent;
    color: var(--gold-dark);
    border: 2px solid var(--gold);
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-copy:hover {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

/* ---- Footer ---- */
.site-footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2.5rem;
    text-align: center;
}

.footer-names {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.footer-names span {
    color: var(--gold);
    font-style: italic;
}

.footer-date {
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
}

.footer-thanks {
    font-size: 0.9rem;
    line-height: 1.9;
    max-width: 480px;
    margin: 0 auto 2rem;
}

.footer-divider {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-divider span {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-copy i {
    color: var(--gold);
    font-size: 0.65rem;
}

/* ---- Audio Player ---- */
.audio-player {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.audio-player button {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(196, 162, 101, 0.45);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-player button:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(196, 162, 101, 0.55);
}

.audio-player button.playing {
    animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 6px 25px rgba(196, 162, 101, 0.45); }
    50% { box-shadow: 0 6px 35px rgba(196, 162, 101, 0.7); }
}

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

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .floral-edge {
        width: clamp(36px, 5vw, 60px);
        opacity: 0.65;
    }

    .edge-corner {
        width: clamp(50px, 8vw, 80px);
        height: clamp(50px, 8vw, 80px);
        opacity: 0.55;
    }

    .edge-sparkles {
        width: clamp(36px, 5vw, 60px);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .gallery-item--tall {
        grid-row: span 1;
    }

    .gallery-item--wide {
        grid-column: span 2;
    }

    .nav-links {
        position: fixed;
        top: calc(4.5rem + env(safe-area-inset-top));
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        gap: 0.35rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        border: 1px solid rgba(201, 169, 110, 0.18);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, visibility 0.35s ease;
        z-index: 950;
        max-height: calc(100dvh - 6rem - env(safe-area-inset-top));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 0.82rem;
        padding: 0.85rem 1rem;
        border-radius: 12px;
        text-align: center;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }
}

@media (max-width: 768px) {
    .floral-edge {
        width: clamp(28px, 4vw, 44px);
        opacity: 0.5;
    }

    .edge-corner {
        width: clamp(40px, 12vw, 60px);
        height: clamp(40px, 12vw, 60px);
        opacity: 0.45;
    }

    .edge-sparkles {
        width: clamp(28px, 4vw, 44px);
    }

    .floating-petals .petal:nth-child(n+8) {
        display: none;
    }

    .edge-heart:nth-child(n+4) {
        display: none;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: clamp(1.85rem, 7vw, 2.5rem);
        padding: 0 0.75rem;
    }

    .section-subtitle {
        font-size: 0.88rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
        line-height: 1.75;
    }

    .site-nav {
        padding: 0 0.75rem;
        padding-top: env(safe-area-inset-top);
    }

    .site-nav-inner {
        padding: 0.65rem 1rem;
        border-radius: 16px;
    }

    .cover-section {
        padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
        animation: none;
        background-size: cover;
        background-position: center 30%;
    }

    .cover-content {
        padding: 1.75rem 1.25rem;
        margin: 0 0.85rem;
        max-width: 100%;
        animation: none;
        border-radius: var(--radius);
    }

    .cover-label {
        font-size: 0.68rem;
        letter-spacing: 0.28em;
    }

    .cover-title {
        font-size: clamp(1.45rem, 6vw, 1.85rem);
    }

    .names h2 {
        font-size: clamp(2.2rem, 11vw, 3.2rem);
    }

    .date {
        font-size: 0.82rem;
        letter-spacing: 0.12em;
    }

    .cover-guest {
        font-size: 0.8rem;
        margin-top: 1.25rem;
    }

    .btn-open {
        margin-top: 1.5rem;
        width: 100%;
    }

    .btn-open-inner {
        width: 100%;
        justify-content: center;
        padding: 0.95rem 1.5rem;
        font-size: 0.82rem;
        min-height: 48px;
    }

    .scroll-hint {
        bottom: calc(1rem + env(safe-area-inset-bottom));
    }

    .section-hero {
        padding: 3.5rem 0 3rem;
        padding-top: calc(4.5rem + env(safe-area-inset-top));
    }

    .quote-text {
        font-size: clamp(1.05rem, 4.2vw, 1.25rem);
        line-height: 1.85;
        padding: 0 0.25rem;
    }

    .quote-source {
        font-size: 0.75rem;
    }

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

    .countdown-item {
        padding: 1.15rem 0.65rem;
        border-radius: 14px;
    }

    .countdown-number {
        font-size: clamp(1.75rem, 8vw, 2.4rem);
    }

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

    .couple-card {
        padding: 2rem 1.25rem;
    }

    .couple-img {
        width: 150px;
        height: 150px;
    }

    .couple-card h3 {
        font-size: clamp(1.25rem, 5vw, 1.45rem);
        line-height: 1.35;
    }

    .couple-parents {
        font-size: 0.85rem;
    }

    .event-card {
        padding: 2rem 1.25rem;
    }

    .event-card h3 {
        font-size: 1.35rem;
    }

    .event-details p {
        font-size: 0.88rem;
        align-items: flex-start;
        line-height: 1.5;
    }

    .event-link {
        min-height: 44px;
        align-items: center;
    }

    .maps-wrapper {
        margin-top: 2rem;
        border-width: 2px;
        aspect-ratio: 4 / 3;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 150px;
        gap: 0.65rem;
    }

    .gallery-item--wide {
        grid-column: span 2;
    }

    .rsvp-form {
        padding: 1.5rem 1.15rem;
        margin: 0;
        border-radius: var(--radius);
    }

    .rsvp-form .form-control {
        font-size: 16px;
        min-height: 48px;
    }

    .rsvp-form textarea.form-control {
        min-height: 120px;
    }

    .btn-submit {
        min-height: 48px;
    }

    .gift-card {
        padding: 2rem 1.25rem;
    }

    .account-number {
        font-size: clamp(1.35rem, 6vw, 1.65rem);
        word-break: break-all;
    }

    .btn-copy {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .site-footer {
        padding: 3rem 0 calc(2rem + env(safe-area-inset-bottom));
    }

    .footer-names {
        font-size: 1.65rem;
    }

    .footer-thanks {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }

    .audio-player {
        bottom: calc(1rem + env(safe-area-inset-bottom));
        right: calc(1rem + env(safe-area-inset-right));
    }

    .audio-player button {
        width: 48px;
        height: 48px;
    }

    .preloader-initials {
        font-size: 2.25rem;
    }
}

@media (max-width: 480px) {
    .cover-divider span {
        width: 40px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .gallery-item--wide {
        grid-column: span 1;
    }

    .event-details p {
        flex-wrap: wrap;
    }
}

@media (max-width: 360px) {
    .names h2 {
        font-size: 2rem;
    }

    .countdown-grid {
        gap: 0.5rem;
    }

    .countdown-item {
        padding: 1rem 0.5rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .couple-card:hover,
    .event-card:hover,
    .gift-card:hover,
    .countdown-item:hover,
    .gallery-item:hover img {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    .gallery-overlay {
        opacity: 0;
    }

    .btn-open:active .btn-open-inner,
    .btn-submit:active,
    .btn-copy:active,
    .audio-player button:active {
        transform: scale(0.97);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .cover-section {
        animation: none;
    }

    .cover-content {
        animation: none;
    }
}
