/* ============================================================
   BOTANICAL NOIR EDITORIAL — Design System
   Invitación de Boda: Erika & Hector
   Estética: Lujo Editorial / Revista de Alta Costura
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Palette: Botanical Noir */
    --noir:         #0a0a0a;
    --noir-soft:    #141414;
    --noir-card:    #1a1a1a;
    --gold:         #c9a96e;
    --gold-light:   #dcc99a;
    --gold-dark:    #a8884d;
    --cream:        #f5f0e8;
    --cream-dark:   #e8e0d2;
    --olive:        #3d4a3a;
    --olive-light:  #4f5e4b;
    --rose:         #c4a08a;
    --rose-muted:   #b89480;

    /* Typography */
    --ff-display:   'Cormorant Garamond', serif;
    --ff-body:      'Josefin Sans', sans-serif;
    --ff-script:    'Tangerine', cursive;

    /* Spacing scale */
    --space-xs:     0.5rem;
    --space-sm:     1rem;
    --space-md:     2rem;
    --space-lg:     4rem;
    --space-xl:     6rem;
    --space-2xl:    8rem;

    /* Transitions */
    --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration:     0.6s;
    --duration-fast: 0.3s;

    /* Shadows */
    --shadow-gold:  0 0 30px rgba(201, 169, 110, 0.15);
    --shadow-glow:  0 0 60px rgba(201, 169, 110, 0.1);
    --shadow-card:  0 4px 40px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--ff-body);
    font-weight: 300;
    background-color: var(--noir);
    color: var(--cream);
    overflow-x: hidden;
    line-height: 1.7;
    letter-spacing: 0.02em;
}

/* Noise texture overlay for paper feel */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--ff-display);
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 0.06em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    letter-spacing: 0.08em;
}

p {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    line-height: 1.8;
    font-weight: 300;
    color: var(--cream-dark);
}

.script-text {
    font-family: var(--ff-script);
    color: var(--gold-light);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
}

/* ---------- Entrance Screen ---------- */
.entrance-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--noir);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 1.2s var(--ease-out), visibility 1.2s;
    overflow: hidden;
}

.entrance-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(201, 169, 110, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 70%, rgba(61, 74, 58, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.entrance-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(201, 169, 110, 0.1);
    margin: 20px;
    pointer-events: none;
}

.entrance-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.entrance-inner {
    position: relative;
    text-align: center;
    padding: var(--space-md);
    z-index: 1;
}

.entrance-ornament {
    width: 60px;
    height: auto;
    margin-bottom: var(--space-md);
    opacity: 0.6;
}

.entrance-monogram {
    font-family: var(--ff-display);
    font-size: clamp(4rem, 12vw, 8rem);
    color: var(--gold);
    letter-spacing: 0.15em;
    line-height: 1;
    margin-bottom: var(--space-sm);
    text-shadow: 0 0 80px rgba(201, 169, 110, 0.3);
}

.entrance-date {
    font-family: var(--ff-body);
    font-size: 0.85rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--cream-dark);
    margin-bottom: var(--space-lg);
    opacity: 0.7;
}

.entrance-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ff-body);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(201, 169, 110, 0.3);
    padding: 16px 40px;
    background: transparent;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.entrance-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration) var(--ease-out);
    z-index: -1;
}

.entrance-cta:hover {
    color: var(--noir);
    border-color: var(--gold);
}

.entrance-cta:hover::before {
    transform: scaleX(1);
}

.entrance-cta-arrow {
    display: inline-block;
    transition: transform var(--duration-fast) var(--ease-out);
    font-size: 1.2em;
}

.entrance-cta:hover .entrance-cta-arrow {
    transform: translateX(4px);
}

/* Pulse animation for CTA */
@keyframes pulse-border {
    0%, 100% { border-color: rgba(201, 169, 110, 0.3); }
    50%      { border-color: rgba(201, 169, 110, 0.6); }
}

.entrance-cta {
    animation: pulse-border 3s ease-in-out infinite;
}

.entrance-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    margin: var(--space-md) auto;
    opacity: 0.4;
}

/* ---------- Sections ---------- */
.section {
    padding: clamp(60px, 10vw, 120px) clamp(20px, 5vw, 60px);
    text-align: center;
    position: relative;
}

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

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

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

.section-cream h2,
.section-cream h3 {
    color: var(--gold-dark);
}

.section-cream p {
    color: var(--noir-card);
}

.section-olive {
    background: linear-gradient(135deg, var(--olive) 0%, #2d372b 100%);
    color: var(--cream);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* ---------- Ornamental Separator ---------- */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.ornament svg {
    width: clamp(200px, 50vw, 400px);
    height: auto;
    opacity: 0.4;
}

.ornament-small {
    margin: var(--space-md) auto;
}

.ornament-small svg {
    width: clamp(80px, 20vw, 150px);
}

/* ---------- Header / Hero ---------- */
.header {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: clamp(80px, 12vh, 150px);
    overflow: hidden;
}

.header-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/header.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s var(--ease-out);
    will-change: transform;
}

.header.loaded .header-bg {
    transform: scale(1);
}

/* Multi-layer overlay for cinematic feel */
.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.2) 40%, rgba(10,10,10,0.3) 60%, rgba(10,10,10,0.85) 100%),
        radial-gradient(ellipse at center, transparent 30%, rgba(10,10,10,0.4) 100%);
    z-index: 1;
}

/* Vignette effect */
.header::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 150px rgba(0,0,0,0.6);
    z-index: 2;
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: var(--space-md);
}

.header-subtitle {
    font-family: var(--ff-script);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: var(--gold-light);
    margin-bottom: var(--space-xs);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s var(--ease-out) 0.5s forwards;
}

.header-title {
    font-family: var(--ff-display);
    font-size: clamp(3rem, 10vw, 6.5rem);
    color: var(--cream);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s var(--ease-out) 0.8s forwards;
    text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}

.header-title .ampersand {
    font-family: var(--ff-script);
    font-size: 0.6em;
    color: var(--gold);
    display: block;
    margin: 0.1em 0;
    text-transform: none;
    letter-spacing: 0;
}

.header-date {
    font-family: var(--ff-body);
    font-size: clamp(0.7rem, 2vw, 0.85rem);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s var(--ease-out) 1.2s forwards;
}

.header-ornament {
    margin-top: var(--space-md);
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out) 1.5s forwards;
}

.header-ornament svg {
    width: clamp(100px, 30vw, 200px);
    height: auto;
    opacity: 0.5;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out) 2s forwards;
}

.scroll-indicator span {
    font-family: var(--ff-body);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.5;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50%      { opacity: 0.7; transform: scaleY(1.2); }
}

/* ---------- Gold Particles Canvas ---------- */
#particles-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* ---------- Quote / Story Section ---------- */
.quote-wrapper {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-md) 0;
}

.quote-mark {
    font-family: var(--ff-display);
    font-size: clamp(4rem, 10vw, 8rem);
    color: var(--gold);
    opacity: 0.15;
    line-height: 1;
    position: absolute;
    top: -20px;
    left: -10px;
}

.quote-text {
    font-family: var(--ff-display);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-style: italic;
    color: var(--cream);
    line-height: 1.9;
    position: relative;
    z-index: 1;
}

/* ---------- Countdown ---------- */
#countdown {
    display: flex;
    justify-content: center;
    gap: clamp(10px, 3vw, 30px);
    margin-top: var(--space-lg);
}

.countdown-item {
    text-align: center;
    min-width: clamp(65px, 15vw, 100px);
    padding: clamp(15px, 3vw, 25px) clamp(10px, 2vw, 20px);
    border: 1px solid rgba(201, 169, 110, 0.2);
    position: relative;
    background: rgba(201, 169, 110, 0.03);
    backdrop-filter: blur(4px);
}

/* Corner accents */
.countdown-item::before,
.countdown-item::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: var(--gold);
    border-style: solid;
}

.countdown-item::before {
    top: -1px;
    left: -1px;
    border-width: 1px 0 0 1px;
}

.countdown-item::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 1px 1px 0;
}

.countdown-item span {
    display: block;
    font-family: var(--ff-display);
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: var(--gold);
    letter-spacing: 0.05em;
    line-height: 1.2;
    font-weight: 600;
}

.countdown-item p {
    margin: 5px 0 0;
    font-family: var(--ff-body);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--cream-dark);
    opacity: 0.7;
}

.countdown-date-label {
    font-family: var(--ff-body);
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-sm);
    opacity: 0.8;
}

/* ---------- Location Cards ---------- */
.locations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .locations-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }
}

.location-card {
    padding: var(--space-md);
    border: 1px solid rgba(201, 169, 110, 0.15);
    position: relative;
    background: rgba(201, 169, 110, 0.02);
    transition: all var(--duration) var(--ease-out);
}

/* Gold top accent */
.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.location-card:hover {
    border-color: rgba(201, 169, 110, 0.3);
    box-shadow: var(--shadow-gold);
    transform: translateY(-4px);
}

.location-card .card-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: var(--space-sm);
    opacity: 0.8;
}

.location-card h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.location-card .venue-name {
    font-family: var(--ff-display);
    font-size: 1.1rem;
    color: var(--gold-light);
    font-style: italic;
    margin-bottom: var(--space-xs);
}

.location-card .venue-address {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: var(--space-xs);
}

.location-card .venue-time {
    font-family: var(--ff-display);
    font-size: 1.4rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    margin: var(--space-sm) 0;
}

/* ---------- Family / People Section ---------- */
.family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.family-member {
    text-align: center;
    padding: var(--space-sm);
}

.family-member-photo {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto var(--space-sm);
}

.family-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    transition: transform var(--duration) var(--ease-out);
}

/* Double ring frame */
.family-member-photo::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid rgba(201, 169, 110, 0.4);
}

.family-member-photo::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px solid rgba(201, 169, 110, 0.15);
}

.family-member:hover img {
    transform: scale(1.05);
}

.family-member h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 5px;
}

.family-member p {
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.7;
}

/* ---------- Dress Code ---------- */
.dress-code-icon {
    font-size: clamp(3rem, 8vw, 4.5rem);
    color: var(--gold);
    margin-bottom: var(--space-md);
    opacity: 0.8;
}

.dress-code-label {
    font-family: var(--ff-display);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: var(--gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.color-palette {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: var(--space-md);
    flex-wrap: wrap;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(201, 169, 110, 0.3);
    position: relative;
    transition: transform var(--duration-fast) var(--ease-out);
}

.color-swatch:hover {
    transform: scale(1.15);
}

.color-swatch.forbidden::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid #c44;
    background: transparent;
}

.color-swatch.forbidden::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -2px;
    right: -2px;
    height: 2px;
    background: #c44;
    transform: rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--ff-body);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(201, 169, 110, 0.4);
    color: var(--gold);
    background: transparent;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration) var(--ease-out);
    z-index: -1;
}

.btn:hover {
    color: var(--noir);
    border-color: var(--gold);
}

.btn:hover::before {
    transform: scaleX(1);
}

/* Filled variant for primary actions */
.btn-filled {
    background: var(--gold);
    color: var(--noir);
    border-color: var(--gold);
}

.btn-filled::before {
    background: var(--cream);
}

.btn-filled:hover {
    color: var(--noir);
}

/* WhatsApp button */
.btn-whatsapp {
    border-color: rgba(37, 211, 102, 0.4);
    color: #25D366;
}

.btn-whatsapp::before {
    background: #25D366;
}

.btn-whatsapp:hover {
    color: var(--noir);
    border-color: #25D366;
}

/* Section-cream button overrides */
.section-cream .btn {
    border-color: rgba(168, 136, 77, 0.4);
    color: var(--gold-dark);
}

.section-cream .btn:hover {
    color: var(--cream);
}

.section-cream .btn::before {
    background: var(--gold-dark);
}

/* ---------- Modal (Gift) ---------- */
.modal {
    display: none;
    position: fixed;
    z-index: 10001;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: background var(--duration) var(--ease-out), backdrop-filter var(--duration) var(--ease-out);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
}

.modal-content {
    background: linear-gradient(145deg, var(--noir-soft) 0%, var(--noir-card) 100%);
    padding: clamp(30px, 6vw, 50px);
    width: 90%;
    max-width: 480px;
    position: relative;
    border: 1px solid rgba(201, 169, 110, 0.2);
    text-align: center;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all var(--duration) var(--ease-spring);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Corner ornaments on modal */
.modal-content::before,
.modal-content::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--gold);
    border-style: solid;
    opacity: 0.4;
}

.modal-content::before {
    top: 12px;
    left: 12px;
    border-width: 1px 0 0 1px;
}

.modal-content::after {
    bottom: 12px;
    right: 12px;
    border-width: 0 1px 1px 0;
}

.modal-content h3 {
    font-family: var(--ff-display);
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-md);
}

.modal-content p {
    margin-bottom: 10px;
    text-align: left;
    font-size: 0.95rem;
}

.modal-content p strong {
    color: var(--gold);
    font-weight: 400;
}

.modal-intro {
    text-align: center !important;
    font-style: italic;
    margin-bottom: var(--space-md) !important;
    opacity: 0.8;
}

.modal-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: var(--space-md) auto;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--cream-dark);
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--ff-body);
    font-weight: 300;
    transition: color var(--duration-fast);
    z-index: 2;
    line-height: 1;
}

.close-btn:hover {
    color: var(--gold);
}

/* ---------- RSVP Section ---------- */
.rsvp-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
    margin-top: var(--space-md);
}

@media (min-width: 480px) {
    .rsvp-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* ---------- Footer ---------- */
.footer {
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    background: var(--noir);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-monogram {
    font-family: var(--ff-script);
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--gold);
    opacity: 0.6;
    margin-bottom: var(--space-sm);
}

.footer-message {
    font-family: var(--ff-display);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--gold);
    font-style: italic;
    margin-bottom: var(--space-xs);
}

.footer-names {
    font-family: var(--ff-body);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--cream-dark);
    opacity: 0.6;
}

.footer-heart {
    display: inline-block;
    color: var(--rose);
    animation: heartbeat 2s ease-in-out infinite;
    font-size: 1rem;
}

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

/* ---------- Disclaimer ---------- */
.disclaimer {
    background: var(--noir-soft);
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    border-top: 1px solid rgba(201, 169, 110, 0.08);
}

.disclaimer p {
    font-size: 0.7rem;
    color: var(--cream-dark);
    opacity: 0.35;
    letter-spacing: 0.05em;
}

/* ---------- Back to Top ---------- */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99;
    border: 1px solid rgba(201, 169, 110, 0.3);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    color: var(--gold);
    cursor: pointer;
    padding: 0;
    width: 48px;
    height: 48px;
    font-size: 14px;
    transition: all var(--duration-fast) var(--ease-out);
    outline: none;
}

#back-to-top:hover {
    background: var(--gold);
    color: var(--noir);
    border-color: var(--gold);
    transform: translateY(-3px);
}

/* ---------- Reveal Animations (scroll-trigger) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0.05s; }
.stagger > *:nth-child(2) { transition-delay: 0.12s; }
.stagger > *:nth-child(3) { transition-delay: 0.19s; }
.stagger > *:nth-child(4) { transition-delay: 0.26s; }
.stagger > *:nth-child(5) { transition-delay: 0.33s; }
.stagger > *:nth-child(6) { transition-delay: 0.40s; }

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

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---------- Gift section icon ---------- */
.gift-icon-wrapper {
    margin-bottom: var(--space-md);
}

.gift-icon-wrapper i {
    font-size: 2.5rem;
    color: var(--gold);
    opacity: 0.7;
    transition: transform var(--duration) var(--ease-spring);
}

.gift-icon-wrapper:hover i {
    transform: translateY(-5px) rotate(-5deg);
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .header-title {
        letter-spacing: 0.06em;
    }

    .family-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .family-member img {
        width: 90px;
        height: 90px;
    }

    .family-member-photo {
        width: 100px;
        height: 100px;
    }

    .countdown-item {
        min-width: 60px;
        padding: 12px 8px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.65rem;
    }
}

@media (max-width: 768px) {
    /* Disable parallax on mobile (iOS incompatible) */
    .header-bg {
        background-attachment: scroll;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 140px 80px;
    }
}

/* ---------- Selection styles ---------- */
::selection {
    background: rgba(201, 169, 110, 0.3);
    color: var(--cream);
}

/* ---------- Scrollbar styling ---------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--noir);
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 169, 110, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 169, 110, 0.5);
}
