/* ================================================================
   GICA & DANI WEDDING 2026
   Premium vintage invitation design
   ================================================================ */

:root {
    --bg:       #F2E8DA;
    --bg-alt:   #EBE0D0;
    --card:     #FFF9F2;
    --lace:     #EDE3D5;
    --rose:     #B8967A;
    --rose-lt:  #D0B8A2;
    --rose-dk:  #96755C;
    --gold:     #C4A265;
    --gold-lt:  #D4B880;
    --brown:    #3C2A1A;
    --brown-md: #5C4A38;
    --brown-lt: #8A7A68;
    --white:    #FFF8F0;

    --serif:  'Playfair Display', Georgia, serif;
    --body:   'Cormorant Garamond', Georgia, serif;
    --script: 'Great Vibes', cursive;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font: 400 19px/1.75 var(--body);
    color: var(--brown);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Paper grain – fixed overlay */
body::before {
    content: '';
    position: fixed; inset: 0; z-index: 9990;
    pointer-events: none;
    opacity: .04;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
}

/* Vignette */
body::after {
    content: '';
    position: fixed; inset: 0; z-index: 9989;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(60,42,26,.15) 100%);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

.container { width: 92%; max-width: 1000px; margin: 0 auto; }
.narrow { max-width: 680px; }

/* ---- Shared typography ---- */
.section-title {
    font: 600 clamp(1.7rem,5vw,2.5rem)/1.2 var(--serif);
    text-align: center;
    letter-spacing: .02em;
}

.section-subtitle {
    font: 300 italic clamp(1rem,3vw,1.2rem)/1.5 var(--body);
    text-align: center;
    color: var(--brown-md);
    margin-bottom: 2rem;
}

.lead {
    font: 300 italic clamp(1.05rem,3vw,1.25rem)/1.6 var(--body);
    text-align: center;
    color: var(--brown-md);
    margin-bottom: 2rem;
}

.text-block {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}
.text-block p { margin-bottom: .8em; }

.accent { color: var(--rose-dk); }

/* Gold divider line */
.divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 1rem auto 1.8rem;
    position: relative;
}
.divider::before {
    content: '';
    position: absolute;
    width: 7px; height: 7px;
    background: var(--gold);
    border-radius: 50%;
    top: -3px; left: 50%;
    transform: translateX(-50%);
}

/* ---- Sections ---- */
.section { padding: 5rem 0; position: relative; }

.section-alt {
    background: var(--bg-alt);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .8em 2.2em;
    border-radius: 100px;
    font: 600 1rem/1 var(--body);
    letter-spacing: .06em;
    background: var(--rose);
    color: var(--white);
    box-shadow: 0 4px 18px rgba(184,150,122,.3);
    transition: .35s ease;
}
.btn:hover {
    background: var(--rose-dk);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(184,150,122,.35);
}

/* ================================================================
   LOADER
   ================================================================ */
#loader {
    position: fixed; inset: 0; z-index: 10000;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    transition: opacity .6s, visibility .6s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-content { text-align: center; }
.loader-monogram {
    font: normal clamp(3.5rem,12vw,5rem)/1 var(--script);
    color: var(--rose);
    display: block;
    margin-bottom: .6em;
    animation: pulse-soft 2s ease-in-out infinite;
}
.loader-line {
    width: 50px; height: 1px;
    background: var(--gold);
    margin: 0 auto 1em;
}
.loader-date {
    font: 400 .85rem/1 var(--body);
    color: var(--brown-lt);
    letter-spacing: .2em;
    text-transform: uppercase;
}

@keyframes pulse-soft {
    0%,100% { opacity:.6; transform:scale(.96); }
    50%     { opacity:1;   transform:scale(1);   }
}

/* ================================================================
   RSVP FIXED BUTTON
   ================================================================ */
.rsvp-fixed-btn {
    position: fixed; bottom: 1.2rem; left: 1.2rem; z-index: 9995;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 18px rgba(196,162,101,.4);
    transition: background .3s ease, transform .3s ease;
    text-decoration: none;
}
.rsvp-fixed-btn:hover {
    background: var(--rose-dk);
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .rsvp-fixed-btn {
        width: 42px; height: 42px;
        bottom: .8rem; left: .8rem;
        font-size: .9rem;
    }
}

/* ================================================================
   MUSIC BUTTON
   ================================================================ */
#music-toggle {
    position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 9995;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--rose);
    color: var(--white);
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 18px rgba(184,150,122,.4);
    transition: background .3s ease;
}
#music-toggle:hover { background: var(--rose-dk); }

.music-pulse {
    position: absolute; inset: -4px; border-radius: 50%;
    border: 2px solid var(--rose); opacity: 0;
}
#music-toggle.playing .music-pulse {
    animation: ring 2s ease-out infinite;
}

@keyframes ring { 0%{transform:scale(1);opacity:.4} 100%{transform:scale(1.8);opacity:0} }

/* ================================================================
   HERO  –  Keret invitation style
   ================================================================ */
#hero {
    position: relative;
    min-height: 100vh; min-height: 100dvh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    overflow: hidden;
    background: var(--bg);
}

.hero-bg {
    position: absolute; inset: 0;
    background: url('../Keret (1).jpeg') center/cover no-repeat;
    opacity: .92;
}

.hero-petals {
    position: absolute; inset: 0;
    pointer-events: none; overflow: hidden;
}

.petal {
    position: absolute;
    width: 10px; height: 10px;
    background: radial-gradient(ellipse at 30% 30%, rgba(184,150,122,.55), rgba(184,150,122,.08));
    border-radius: 50% 0 50% 0;
    opacity: 0;
    animation: fall linear infinite;
}

@keyframes fall {
    0%   { transform: translateY(-10px) rotate(0)   translateX(0);    opacity: 0;  }
    8%   { opacity: .45; }
    90%  { opacity: .2;  }
    100% { transform: translateY(100vh) rotate(540deg) translateX(60px); opacity: 0; }
}

.hero-content {
    position: relative; z-index: 2;
    text-align: center;
    padding: 0 2rem;
    color: var(--brown);
}

.hero-invite {
    font: 400 clamp(.7rem,2vw,.9rem)/1 var(--body);
    letter-spacing: .4em;
    text-transform: uppercase;
    color: var(--brown-md);
    margin-bottom: 1.2rem;
}

.hero-names {
    display: flex; align-items: baseline;
    justify-content: center;
    gap: .15em; flex-wrap: wrap;
    margin-bottom: .8rem;
}

.hero-name {
    font: normal clamp(3.2rem,13vw,7.5rem)/1 var(--script);
    color: var(--brown);
}

.hero-amp {
    font: normal clamp(1.6rem,6vw,3.5rem)/1 var(--script);
    color: var(--gold);
    margin: 0 .1em;
}

.hero-date {
    font: 500 clamp(.85rem,2.5vw,1.15rem)/1.4 var(--serif);
    letter-spacing: .12em;
    color: var(--brown-md);
    margin-bottom: .4em;
}

.hero-venue {
    font: 300 italic clamp(.8rem,2.2vw,1rem)/1.4 var(--body);
    color: var(--brown-lt);
    letter-spacing: .06em;
}

/* Hero entrance */
.anim-hero {
    opacity: 0;
    transform: translateY(25px);
    animation: hero-in .7s ease forwards;
    animation-delay: var(--d);
}
@keyframes hero-in { to { opacity: 1; transform: translateY(0); } }

/* Scroll arrow */
.scroll-down {
    position: absolute; bottom: 1.8rem; z-index: 2;
    color: var(--brown-lt);
}
.scroll-arrow {
    font-size: 1.4rem;
    animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }

/* ================================================================
   COUPLE PHOTO
   ================================================================ */
.couple-photo {
    display: flex; justify-content: center;
    margin-top: 1rem;
}
.couple-photo img {
    width: 420px; max-width: 85%;
    border: 6px solid var(--lace);
    box-shadow:
        0 0 0 1px var(--rose-lt),
        0 25px 70px rgba(60,42,26,.16);
    filter: sepia(.18) contrast(1.04) saturate(.9) brightness(.97);
    transition: transform 4s ease, filter .5s ease;
}
.couple-photo img:hover {
    transform: scale(1.03);
    filter: sepia(.06) contrast(1.02);
}

/* ================================================================
   COUNTDOWN
   ================================================================ */
.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.cd-block {
    background: var(--card);
    border: 1px solid var(--lace);
    min-width: 72px;
    padding: 1.1rem .8rem;
    text-align: center;
    box-shadow: 0 6px 25px rgba(60,42,26,.05);
}

.cd-num {
    display: block;
    font: 700 clamp(1.6rem,5vw,2.6rem)/1 var(--serif);
    color: var(--rose-dk);
}
.cd-num.tick { animation: tick .35s ease; }
@keyframes tick { 50%{transform:scale(1.12)} }

.cd-label {
    display: block;
    font: 400 .75rem/1.4 var(--body);
    color: var(--brown-lt);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-top: .25em;
}

.cd-colon {
    font: 300 1.6rem/1 var(--serif);
    color: var(--rose-lt);
    padding-bottom: 1rem;
}

/* ================================================================
   VENUE
   ================================================================ */
.venue-card {
    text-align: center;
    background: var(--card);
    border: 1px solid var(--lace);
    padding: 2.8rem 2rem;
    position: relative;
    box-shadow: 0 8px 35px rgba(60,42,26,.05);
}

/* Corner decorations */
.venue-card::before, .venue-card::after {
    content: '';
    position: absolute;
    width: 30px; height: 30px;
    border-style: solid;
    border-color: var(--rose-lt);
}
.venue-card::before { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.venue-card::after  { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }

.venue-pin { font-size: 1.8rem; color: var(--rose); margin-bottom: .8rem; display: block; }
.venue-card h3 { font: 600 1.5rem/1.2 var(--serif); margin-bottom: .15em; }
.venue-sub { font: 300 italic 1.05rem/1.3 var(--body); color: var(--brown-md); margin-bottom: .8rem; }
.venue-addr { font-size: 1.05rem; margin-bottom: 1.6rem; }

/* Vintage map */
.venue-map {
    margin-top: 2rem;
    border: 5px solid var(--lace);
    box-shadow:
        0 0 0 1px var(--rose-lt),
        0 10px 40px rgba(60,42,26,.08);
    overflow: hidden;
    position: relative;
}
.venue-map::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 40px rgba(60,42,26,.08);
}
.venue-map iframe {
    display: block;
    filter: sepia(.25) saturate(.85) contrast(1.05);
    transition: filter .5s ease;
}
.venue-map:hover iframe {
    filter: sepia(.08) saturate(.95) contrast(1);
}

/* ================================================================
   SCHEDULE (Program)
   ================================================================ */
.schedule {
    background: var(--card);
    border: 1px solid var(--lace);
    box-shadow: 0 6px 25px rgba(60,42,26,.05);
    overflow: hidden;
}

.sch-row {
    display: flex;
    align-items: center;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--lace);
    transition: background .25s ease;
}

.sch-row:last-child {
    border-bottom: none;
}

.sch-row:hover {
    background: rgba(184,150,122,.06);
}

.sch-time {
    font: 700 1.15rem/1 var(--serif);
    color: var(--rose-dk);
    min-width: 58px;
    flex-shrink: 0;
}

.sch-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--rose);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem;
    flex-shrink: 0;
    margin: 0 1rem;
    box-shadow: 0 2px 8px rgba(184,150,122,.25);
}

.sch-info {
    flex: 1;
    min-width: 0;
}

.sch-info strong {
    display: block;
    font: 600 1.05rem/1.3 var(--serif);
}

.sch-info span {
    font-size: .88rem;
    color: var(--brown-lt);
}

/* ================================================================
   DRESS CODE  –  Color swatches
   ================================================================ */
.color-reserve {
    background: var(--card);
    border: 1px solid var(--lace);
    padding: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}
.color-reserve-title {
    font: 600 1rem/1 var(--serif);
    margin-bottom: 1.2rem;
    letter-spacing: .04em;
}
.swatches {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.sw {
    display: flex;
    align-items: center;
    gap: .5em;
    font-size: .9rem;
    color: var(--brown-md);
}
.sw-dot {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.color-reserve-note {
    font: 300 italic .9rem/1.4 var(--body);
    color: var(--brown-lt);
}

/* Dresscode section centering */
#dresscode .container { text-align: center; }

/* ================================================================
   KIDS
   ================================================================ */
.kids-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 540px;
    margin: 0 auto;
}

.kid-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .7em;
    padding: 1.5rem 1rem 1.3rem;
    background: var(--card);
    border: 1px solid var(--lace);
    box-shadow: 0 4px 18px rgba(60,42,26,.05);
    font: 500 .95rem/1.35 var(--body);
    color: var(--brown-md);
    transition: transform .35s ease, box-shadow .35s ease;
    position: relative;
}
.kid-card::before, .kid-card::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    border-style: solid;
    border-color: var(--gold-lt);
    opacity: .5;
    transition: opacity .35s ease;
}
.kid-card::before { top: 6px; left: 6px; border-width: 1px 0 0 1px; }
.kid-card::after  { bottom: 6px; right: 6px; border-width: 0 1px 1px 0; }

.kid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(60,42,26,.1);
}
.kid-card:hover::before, .kid-card:hover::after { opacity: 1; }

.kid-icon {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose-lt) 0%, var(--rose) 100%);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    box-shadow: 0 3px 12px rgba(184,150,122,.3);
}

@media (max-width: 480px) {
    .kids-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
    .kid-card { padding: 1.2rem .8rem 1rem; }
    .kid-icon { width: 40px; height: 40px; font-size: .9rem; }
    .kid-card span { font-size: .88rem; }
}

/* ================================================================
   GIFTS
   ================================================================ */
.gift-box {
    text-align: center;
}
.gift-icon {
    font-size: 2.2rem;
    color: var(--rose);
    margin-bottom: 1rem;
    display: block;
}
.gift-main {
    font: 500 italic 1.25rem/1.5 var(--serif);
    margin-bottom: 1.2rem;
}
.gift-note {
    font-size: 1.05rem;
    color: var(--brown-md);
}

/* RSVP Deadline banner */
.rsvp-deadline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6em;
    background: var(--card);
    border: 1px solid var(--gold-lt);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    font: 500 clamp(1rem,3vw,1.15rem)/1.5 var(--body);
    color: var(--brown);
    text-align: center;
    box-shadow: 0 4px 18px rgba(196,162,101,.12);
}
.rsvp-deadline i {
    color: var(--gold);
    font-size: 1.2em;
    flex-shrink: 0;
}
.rsvp-deadline strong {
    color: var(--rose-dk);
}

/* ================================================================
   RSVP FORM
   ================================================================ */
.rsvp-form {
    max-width: 520px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--lace);
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 35px rgba(60,42,26,.06);
    position: relative;
}

/* Corner accents on form */
.rsvp-form::before, .rsvp-form::after {
    content: '';
    position: absolute;
    width: 30px; height: 30px;
    border-style: solid;
    border-color: var(--rose-lt);
}
.rsvp-form::before { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.rsvp-form::after  { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }

.form-group {
    margin-bottom: 1.4rem;
}

.form-group label {
    display: block;
    font: 600 .95rem/1 var(--serif);
    color: var(--brown-md);
    margin-bottom: .5rem;
    letter-spacing: .02em;
}
.form-group label i {
    color: var(--rose);
    width: 20px;
    text-align: center;
    margin-right: .2em;
}

.optional {
    font: 300 italic .85rem/1 var(--body);
    color: var(--brown-lt);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: .8rem 1rem;
    font: 400 1rem/1.5 var(--body);
    color: var(--brown);
    background: var(--white);
    border: 1px solid var(--lace);
    outline: none;
    transition: border-color .3s ease, box-shadow .3s ease;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--rose-lt);
    box-shadow: 0 0 0 3px rgba(184,150,122,.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-hint {
    font: 300 italic .85rem/1.4 var(--body);
    color: var(--brown-lt);
    margin-top: .4rem;
}

/* Row layout for adults + children */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: .4rem;
}

/* Stepper control */
.stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--lace);
    background: var(--white);
    overflow: hidden;
}

.stepper input {
    width: 50px;
    text-align: center;
    font: 700 1.15rem/1 var(--serif);
    color: var(--rose-dk);
    border: none;
    background: transparent;
    padding: .6rem 0;
    outline: none;
    -moz-appearance: textfield;
}
.stepper input::-webkit-inner-spin-button,
.stepper input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.stepper-btn {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem;
    color: var(--brown-md);
    background: var(--bg);
    cursor: pointer;
    transition: background .2s, color .2s;
    flex-shrink: 0;
    border: none;
}
.stepper-btn:hover {
    background: var(--rose-lt);
    color: var(--white);
}

/* Children ages */
.children-ages-wrap {
    margin-bottom: 1.4rem;
}
.children-ages-wrap > label {
    display: block;
    font: 600 .95rem/1 var(--serif);
    color: var(--brown-md);
    margin-bottom: .6rem;
    letter-spacing: .02em;
}
.children-ages-wrap > label i {
    color: var(--rose);
    width: 20px;
    text-align: center;
    margin-right: .2em;
}

.children-ages {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.age-chip {
    display: flex;
    align-items: center;
    gap: .4rem;
    background: var(--bg);
    border: 1px solid var(--lace);
    padding: .4rem .6rem .4rem .8rem;
}

.age-label {
    font: 500 .85rem/1 var(--body);
    color: var(--brown-md);
    white-space: nowrap;
}

.age-chip select {
    padding: .35rem .5rem;
    font: 400 .9rem/1 var(--body);
    color: var(--brown);
    background: var(--white);
    border: 1px solid var(--lace);
    outline: none;
    cursor: pointer;
}
.age-chip select:focus {
    border-color: var(--rose-lt);
}

/* Submit */
.form-actions {
    text-align: center;
    margin-top: 1.8rem;
}

.btn-submit {
    padding: 1em 2.8em;
    font-size: 1.05rem;
}
.btn-submit:disabled {
    opacity: .6;
    pointer-events: none;
}

/* Feedback messages */
.rsvp-feedback {
    text-align: center;
    padding: 1rem;
    margin-top: 1.2rem;
    font: 500 1rem/1.4 var(--body);
}
.rsvp-feedback.success {
    background: rgba(120,160,80,.08);
    border: 1px solid rgba(120,160,80,.25);
    color: #5a7a32;
}
.rsvp-feedback.error {
    background: rgba(180,60,60,.06);
    border: 1px solid rgba(180,60,60,.2);
    color: #9a3030;
}

/* Success state – replaces form */
.rsvp-success {
    max-width: 520px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--lace);
    padding: 3.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 35px rgba(60,42,26,.06);
    animation: successIn .6s ease forwards;
}
@keyframes successIn {
    from { opacity: 0; transform: translateY(20px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.success-icon {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8cb862, #6a9a40);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.2rem;
    box-shadow: 0 6px 25px rgba(100,160,60,.25);
    animation: successPop .5s ease .2s both;
}
@keyframes successPop {
    from { transform: scale(0); }
    50%  { transform: scale(1.15); }
    to   { transform: scale(1); }
}
.success-title {
    font: 600 clamp(1.5rem,4vw,2rem)/1.2 var(--serif);
    margin-bottom: .6rem;
    color: var(--brown);
}
.success-text {
    font: 400 1.1rem/1.6 var(--body);
    color: var(--brown-md);
    margin-bottom: 1.5rem;
}
.success-heart {
    font-size: 1.5rem;
    color: var(--rose);
    animation: heartbeat 2s ease-in-out infinite;
}

@media (max-width: 480px) {
    .rsvp-form { padding: 1.8rem 1.2rem; }
    .form-row { grid-template-columns: 1fr; gap: .6rem; }
    .age-chip { width: 100%; }
    .rsvp-success { padding: 2.5rem 1.5rem; }
}

/* ================================================================
   GALLERY – Masonry layout
   ================================================================ */
.gallery-masonry {
    columns: 3;
    column-gap: .8rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Frame with vintage corners */
.gallery-frame {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--card);
    padding: 6px;
    border: 1px solid var(--lace);
    box-shadow:
        0 4px 20px rgba(60,42,26,.08),
        0 12px 45px rgba(60,42,26,.06);
    transition: transform .45s ease, box-shadow .45s ease;
    break-inside: avoid;
    margin-bottom: .8rem;
}

.gallery-frame:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 30px rgba(60,42,26,.12),
        0 20px 60px rgba(60,42,26,.1);
}

.gallery-frame img {
    width: 100%; height: auto;
    display: block;
    filter: sepia(.12) contrast(1.03) saturate(.92);
    transition: transform .6s ease, filter .5s ease;
}

.gallery-frame:hover img {
    transform: scale(1.04);
    filter: sepia(.03) contrast(1.01);
}

/* Decorative corner pieces */
.frame-corner {
    position: absolute;
    width: 22px; height: 22px;
    z-index: 3;
    pointer-events: none;
}
.frame-corner::before, .frame-corner::after {
    content: '';
    position: absolute;
    background: var(--gold);
}
.frame-corner.tl { top: 3px; left: 3px; }
.frame-corner.tr { top: 3px; right: 3px; }
.frame-corner.bl { bottom: 3px; left: 3px; }
.frame-corner.br { bottom: 3px; right: 3px; }

.frame-corner.tl::before { width: 16px; height: 1px; top: 0; left: 0; }
.frame-corner.tl::after  { width: 1px; height: 16px; top: 0; left: 0; }
.frame-corner.tr::before { width: 16px; height: 1px; top: 0; right: 0; }
.frame-corner.tr::after  { width: 1px; height: 16px; top: 0; right: 0; }
.frame-corner.bl::before { width: 16px; height: 1px; bottom: 0; left: 0; }
.frame-corner.bl::after  { width: 1px; height: 16px; bottom: 0; left: 0; }
.frame-corner.br::before { width: 16px; height: 1px; bottom: 0; right: 0; }
.frame-corner.br::after  { width: 1px; height: 16px; bottom: 0; right: 0; }

/* Hover overlay with icon */
.gallery-hover {
    position: absolute;
    inset: 6px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(60,42,26,.25);
    color: var(--white);
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity .35s ease;
    z-index: 2;
}
.gallery-frame:hover .gallery-hover { opacity: 1; }

/* ================================================================
   CLOSING
   ================================================================ */
.closing {
    text-align: center;
    padding: 1rem 0;
}
.closing-text {
    font: 300 italic clamp(1.05rem,3vw,1.25rem)/1.6 var(--body);
    max-width: 550px;
    margin: 0 auto 1.5rem;
}
.closing-heart {
    font-size: 1.8rem;
    color: var(--rose);
    margin-bottom: 1.5rem;
    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.15)} 60%{transform:scale(1)}
}
.closing-names {
    font: normal clamp(2.5rem,8vw,4rem)/1 var(--script);
    color: var(--rose);
}

/* ================================================================
   FOOTER
   ================================================================ */
#footer {
    text-align: center;
    padding: 1.5rem 0 4rem;
    font-size: .8rem;
    color: var(--brown-lt);
    letter-spacing: .06em;
    background: var(--bg-alt);
}

/* ================================================================
   LIGHTBOX
   ================================================================ */
.lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(30,22,14,.93);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: .35s ease;
}
.lightbox.active { opacity: 1; visibility: visible; }

.lightbox-img-wrap img {
    max-width: 92vw; max-height: 88vh;
    object-fit: contain;
    border: 5px solid var(--lace);
    box-shadow: 0 20px 80px rgba(0,0,0,.5);
    transform: scale(.92);
    transition: transform .35s ease;
}
.lightbox.active .lightbox-img-wrap img { transform: scale(1); }

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute; color: var(--lace);
    font-size: 1.4rem; z-index: 10;
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background .25s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255,255,255,.12);
}
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev  { left: .8rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: .8rem; top: 50%; transform: translateY(-50%); }

/* ================================================================
   SCROLL ANIMATIONS
   ================================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .45s ease, transform .45s ease;
}
.fade-in.visible {
    opacity: 1; transform: translateY(0);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
    .section { padding: 3.5rem 0; }
    .gallery-masonry { columns: 2; }
}

@media (max-width: 480px) {
    body { font-size: 17px; }
    .section { padding: 2.8rem 0; }

    .hero-name { font-size: clamp(2.8rem,15vw,4rem); }
    .hero-amp  { font-size: clamp(1.4rem,8vw,2rem); }

    .cd-block { min-width: 60px; padding: .9rem .6rem; }
    .cd-num   { font-size: 1.5rem; }
    .cd-colon { display: none; }

    .gallery-masonry { columns: 2; }
    .gallery-frame { padding: 4px; margin-bottom: .6rem; }

    .swatches { gap: 1.2rem; }

    #music-toggle {
        width: 42px; height: 42px;
        bottom: .8rem; right: .8rem;
        font-size: .9rem;
    }

    .sch-row { padding: .9rem 1rem; }
    .sch-time { font-size: 1rem; min-width: 48px; }
    .sch-icon { width: 30px; height: 30px; font-size: .65rem; margin: 0 .6rem; }
    .sch-info strong { font-size: .95rem; }
    .sch-info span { font-size: .82rem; }

    .venue-map iframe { height: 220px; }

    .couple-photo img { width: 300px; }
}

/* ================================================================
   BRIDGERTON GALLERY PAGE
   ================================================================ */
.bridgerton-hero {
    padding: 3rem 0 2rem;
    text-align: center;
    background: var(--bg-alt);
}

/* Fixed back button */
.back-btn-fixed {
    position: fixed;
    top: 1.2rem; left: 1.2rem;
    z-index: 9995;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--rose);
    color: var(--white);
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 18px rgba(184,150,122,.4);
    transition: .3s ease;
}
.back-btn-fixed:hover { transform: scale(1.12); background: var(--rose-dk); }

/* Masonry layout with CSS columns */
.bridgerton-gallery {
    columns: 3;
    column-gap: 1rem;
    max-width: 960px;
    margin: 0 auto;
}

.bridgerton-gallery .gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--card);
    padding: 6px;
    border: 1px solid var(--lace);
    box-shadow: 0 4px 20px rgba(60,42,26,.08);
    transition: transform .45s ease, box-shadow .45s ease;
}
.bridgerton-gallery .gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(60,42,26,.12);
}
.bridgerton-gallery .gallery-item img {
    width: 100%; height: auto; display: block;
    filter: sepia(.1) contrast(1.03) saturate(.92);
    transition: transform .5s ease, filter .4s ease;
}
.bridgerton-gallery .gallery-item:hover img {
    transform: scale(1.04);
    filter: sepia(.03);
}
.gallery-overlay {
    position: absolute;
    inset: 6px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(60,42,26,.25);
    color: var(--white);
    font-size: 1.3rem;
    opacity: 0;
    transition: opacity .3s ease;
}
.bridgerton-gallery .gallery-item:hover .gallery-overlay { opacity: 1; }

.back-link {
    display: inline-flex; align-items: center; gap: .4em;
    font: 500 1rem/1 var(--body);
    color: var(--rose);
    margin-top: 2rem;
    transition: color .3s;
}
.back-link:hover { color: var(--rose-dk); }

@media (max-width: 768px) {
    .bridgerton-gallery { columns: 2; }
}
@media (max-width: 480px) {
    .bridgerton-gallery { columns: 1; max-width: 320px; margin: 0 auto; }
    .back-btn-fixed { width: 42px; height: 42px; font-size: .9rem; top: .8rem; left: .8rem; }
}
