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

:root {
    --cream: #f8f1ea;
    --cream-dark: #e8ddd3;
    --taupe: #b8a99a;
    --brown: #6b5b4e;
    --brown-dark: #4a3d33;
    --text: #5a4e44;
    --text-light: #8a7e74;
    --gold: #c4a96a;
    --pink-dust: #c9a0a0;
    --heart: #9e8e82;
    --sage: #7d8c6e;
    --sage-light: rgba(125, 140, 110, 0.12);
    --heart-red: #c25b56;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--cream);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background canvas */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Ensure all content sits above the canvas */
.section, .heart-divider, .contact-band {
    position: relative;
    z-index: 1;
}

/* Botanical overlay on every section */
.section {
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 10% 20%, rgba(180, 160, 140, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(180, 160, 140, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 10%, rgba(160, 140, 120, 0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 20% 90%, rgba(160, 140, 120, 0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.section > * {
    position: relative;
    z-index: 1;
}

/* Fade-in animations */
.fade-in {
    opacity: 0;
    transform: translateY(0);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

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

/* Heart divider */
.heart-divider {
    text-align: center;
    padding: 40px 0;
    font-size: 18px;
    color: var(--sage);
}

.heart-divider svg {
    width: 20px;
    height: 20px;
    fill: var(--sage);
}

/* ===== HERO ===== */
.hero {
    background-image: url("../assets/hero-bg.png");
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.hero-script {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(28px, 5vw, 48px);
    color: var(--taupe);
    margin-bottom: 10px;
}

.hero-names {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: clamp(48px, 10vw, 100px);
    letter-spacing: 6px;
    color: var(--brown-dark);
    line-height: 1.15;
}

.hero-names .amp {
    font-family: 'Great Vibes', cursive;
    color: var(--taupe);
    font-size: 0.8em;
    font-weight: 400;
}

.hero-date {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: clamp(16px, 2.5vw, 22px);
    letter-spacing: 8px;
    color: var(--text-light);
    margin-top: 20px;
}

.scroll-arrow {
    position: absolute;
    right: 60px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-arrow .line {
    width: 1px;
    height: 80px;
    background: var(--taupe);
}

.scroll-arrow .arrow-tip {
    width: 8px;
    height: 8px;
    border-right: 1px solid var(--taupe);
    border-bottom: 1px solid var(--taupe);
    transform: rotate(45deg);
    margin-top: -12px;
}

@media (max-width: 768px) {
    .scroll-arrow {
        right: 20px;
        bottom: 20px;
    }
}

/* ===== GREETING ===== */
.greeting {
    text-align: center;
    padding: 80px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.greeting h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: clamp(36px, 6vw, 60px);
    letter-spacing: 4px;
    color: var(--brown-dark);
    margin-bottom: 30px;
}

.greeting p {
    font-size: clamp(15px, 2vw, 17px);
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ===== CALENDAR ===== */
.calendar-section {
    background-image: url("../assets/flower-frame.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    text-align: center;
    padding: 20px 20px 80px;
}

.calendar-month {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: 6px;
    color: var(--brown-dark);
    margin-bottom: 24px;
}

.calendar-grid {
    display: inline-grid;
    grid-template-columns: repeat(7, 48px);
    gap: 6px;
    font-size: 14px;
    color: var(--text-light);
}

.calendar-grid .day-header {
    font-weight: 600;
    font-size: 12px;
    color: var(--taupe);
    text-transform: uppercase;
    padding-bottom: 8px;
}

.calendar-grid .day {
    width: 48px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-grid .day.highlight {
    position: relative;
    font-weight: 600;
    color: #fff;
    font-size: 18px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.calendar-grid .day.highlight::before {
    content: '';
    position: absolute;
    width: 44px;
    height: 40px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    background: var(--heart-red);
    clip-path: path('M22 38C22 38 1 25 1 12.5C1 5.6 5.8 1 11 1C14.8 1 18 3 22 7C26 3 29.2 1 33 1C38.2 1 43 5.6 43 12.5C43 25 22 38 22 38Z');
    z-index: -1;
}

@media (max-width: 480px) {
    .calendar-grid {
        grid-template-columns: repeat(7, 38px);
    }

    .calendar-grid .day {
        width: 38px;
        height: 36px;
        font-size: 13px;
    }
}

/* ===== VENUE ===== */
.venue {
    text-align: center;
    padding: 60px 20px 80px;
    max-width: 900px;
    margin: 0 auto;
}

.venue h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-size: clamp(18px, 2.5vw, 22px);
    letter-spacing: 4px;
    color: var(--brown-dark);
    margin-bottom: 16px;
}

.venue .address {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

.venue-carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    overflow: hidden;
    border-radius: 4px;
}

.venue-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.venue-carousel-track img {
    width: 100%;
    max-width: 800px;
    height: 400px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--cream-dark);
}

.venue-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: var(--brown);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 2;
}

.venue-carousel-btn:hover {
    background: rgba(255, 255, 255, 0.95);
}

.venue-carousel-btn.prev {
    left: 12px;
}

.venue-carousel-btn.next {
    right: 12px;
}

.venue-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.venue-carousel-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cream-dark);
    cursor: pointer;
    transition: background 0.3s;
}

.venue-carousel-dots span.active {
    background: var(--sage);
}

.venue .venue-photo {
    object-fit: cover;
    width: 100%;
    max-width: 800px;
    height: 400px;
    background: var(--cream-dark);
    border-radius: 4px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--taupe);
    font-size: 14px;
    letter-spacing: 2px;
}

.btn {
    display: inline-block;
    padding: 16px 48px;
    background: var(--sage);
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: var(--brown);
}

/* ===== TIMELINE ===== */
.timeline {
    display: flex;
    justify-content: center;
    padding: 60px 20px 80px;
    max-width: 700px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 24px;
}

.timeline-photo {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    /*background: var(--cream-dark);*/
    display: flex;
    align-items: center;
    justify-content: center;
    /*color: var(--taupe);*/
    font-size: 11px;
    letter-spacing: 1px;
}

.timeline-info .time {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 26px;
    color: var(--brown-dark);
    margin-bottom: 4px;
}

.timeline-info .event {
    font-size: 16px;
    color: var(--text-light);
}

@media (max-width: 480px) {
    .timeline-photo {
        width: 70px;
        height: 70px;
    }

    .timeline-item {
        gap: 16px;
    }
}

/* ===== DRESS CODE ===== */
.dresscode {
    text-align: center;
    padding: 60px 20px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.dresscode h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: clamp(36px, 6vw, 56px);
    letter-spacing: 6px;
    color: var(--brown-dark);
    margin-bottom: 6px;
}

.dresscode .script-accent {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(20px, 3vw, 30px);
    color: var(--taupe);
    margin-bottom: 24px;
}

.dresscode p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.color-swatches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
}

.swatch {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Outfit carousel */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1000px;
}

.carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0 20px 20px;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 280px;
    height: 400px;
    background: var(--cream-dark);
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--taupe);
    font-size: 12px;
    letter-spacing: 1px;
}

.carousel-arrows {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 20px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--taupe);
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.carousel-arrow:hover {
    background: var(--brown);
}

/* ===== NO FLOWERS ===== */
.no-flowers {
    text-align: center;
    padding: 60px 20px 40px;
    max-width: 600px;
    margin: 0 auto;
}

.no-flowers .flower-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--cream-dark);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-flowers .flower-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--taupe);
    fill: none;
    stroke-width: 1.2;
}

.no-flowers p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== CONTACT BAND ===== */
.contact-band {
    background: var(--cream-dark);
    text-align: center;
    padding: 60px 20px;
}

.contact-band p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 16px;
}

.contact-band .phone {
    font-size: 18px;
    font-weight: 500;
    color: var(--brown-dark);
    margin-bottom: 24px;
}

.btn-light {
    display: inline-block;
    padding: 16px 48px;
    background: var(--cream);
    color: var(--brown-dark);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-light:hover {
    background: #fff;
}

/* ===== RSVP FORM ===== */
.rsvp {
    text-align: center;
    padding: 80px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.rsvp h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: clamp(36px, 6vw, 56px);
    letter-spacing: 4px;
    color: var(--brown-dark);
    margin-bottom: 10px;
}

.rsvp .rsvp-sub {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.7;
}

.rsvp form {
    text-align: left;
}

.form-group {
    margin-bottom: 32px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 10px;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid var(--taupe);
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    border-bottom-color: var(--brown-dark);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--taupe);
}

/* Radio & Checkbox styling */
.radio-group, .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-light);
}

.radio-option input, .checkbox-option input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--taupe);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.checkbox-option input {
    border-radius: 3px;
}

.radio-option input:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    background: var(--brown-dark);
    border-radius: 50%;
}

.checkbox-option input:checked::after {
    content: '\2713';
    position: absolute;
    top: -1px;
    left: 2px;
    font-size: 13px;
    color: var(--brown-dark);
}

.form-submit {
    text-align: center;
    margin-top: 40px;
}

.rsvp-invalid {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 18px;
    font-style: italic;
}

.rsvp-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.rsvp-thankyou {
    text-align: center;
    padding: 40px 20px;
}

.rsvp-thankyou p:first-child {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--sage);
}

.rsvp-thankyou p:last-child {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-light);
}

/* ===== CLOSING PHOTO ===== */
.closing-photo {
    text-align: center;
    padding: 40px 20px;
}

.closing-photo .photo-placeholder {
    width: 100%;
    max-width: 560px;
    height: 500px;
    background: var(--cream-dark);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--taupe);
    font-size: 14px;
    letter-spacing: 2px;
}

/* ===== COUNTDOWN ===== */
.countdown-section {
    text-align: center;
    padding: 60px 20px 100px;
}

.countdown-section h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: clamp(28px, 5vw, 48px);
    letter-spacing: 4px;
    color: var(--brown-dark);
    margin-bottom: 40px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 5vw, 50px);
}

.countdown-unit {
    text-align: center;
}

.countdown-unit .number {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: clamp(36px, 7vw, 64px);
    color: var(--sage);
    line-height: 1;
}

.countdown-unit .label {
    font-size: 13px;
    color: var(--text-light);
    letter-spacing: 2px;
    margin-top: 8px;
}

/* ===== FEATURE: Hero Animation ===== */
body.feat-hero-anim .hero .fade-in {
    transition: none;
}

body.feat-hero-anim .hero-script {
    opacity: 0;
    animation: heroScriptIn 1.6s ease forwards 0.2s;
}

body.feat-hero-anim .hero-names {
    opacity: 0;
    animation: heroNamesIn 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.5s;
}

body.feat-hero-anim .hero-date {
    white-space: nowrap;
    opacity: 0;
    animation: heroDateIn 1.6s ease forwards 1.4s;
}

body.feat-hero-anim .scroll-arrow {
    opacity: 0;
    animation: fadeInSimple 1.5s ease forwards 2s;
}

@keyframes heroScriptIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroNamesIn {
    from {
        opacity: 0;
        letter-spacing: 30px;
    }
    to {
        opacity: 1;
        letter-spacing: 6px;
    }
}

@keyframes heroDateIn {
    from {
        opacity: 0;
        letter-spacing: 20px;
    }
    to {
        opacity: 1;
        letter-spacing: 8px;
    }
}

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

/* ===== FEATURE: Pulsing Hearts + Ornamental Dividers ===== */
body.feat-pulsing-hearts .heart-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

body.feat-pulsing-hearts .heart-divider::before,
body.feat-pulsing-hearts .heart-divider::after {
    content: '';
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sage), transparent);
}

body.feat-pulsing-hearts .heart-divider svg {
    animation: heartPulse 2.5s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.15);
    }
    56% {
        transform: scale(1);
    }
}

/* ===== FEATURE: Alternating Section Backgrounds ===== */
body.feat-alt-bg .section:nth-of-type(odd) {
    background-color: rgba(125, 140, 110, 0.08);
}

/* ===== FEATURE: Botanical SVG Decorations ===== */
.botanical {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.botanical.visible {
    opacity: 1;
}

.botanical svg {
    width: 100%;
    height: 100%;
}

/* ===== FEATURE: Staggered Animations ===== */
body.feat-stagger .timeline-item.fade-in-up:nth-child(1) {
    transition-delay: 0s;
}

body.feat-stagger .timeline-item.fade-in-up:nth-child(2) {
    transition-delay: 0.15s;
}

body.feat-stagger .timeline-item.fade-in-up:nth-child(3) {
    transition-delay: 0.3s;
}

body.feat-stagger .timeline-item.fade-in-up:nth-child(4) {
    transition-delay: 0.45s;
}

body.feat-stagger .swatch {
    transition: transform 0.4s ease, opacity 0.6s ease;
    opacity: 0;
    transform: scale(0.5);
}

body.feat-stagger .color-swatches.visible .swatch {
    opacity: 1;
    transform: scale(1);
}

body.feat-stagger .swatch:nth-child(1) {
    transition-delay: 0s;
}

body.feat-stagger .swatch:nth-child(2) {
    transition-delay: 0.07s;
}

body.feat-stagger .swatch:nth-child(3) {
    transition-delay: 0.14s;
}

body.feat-stagger .swatch:nth-child(4) {
    transition-delay: 0.21s;
}

body.feat-stagger .swatch:nth-child(5) {
    transition-delay: 0.28s;
}

body.feat-stagger .swatch:nth-child(6) {
    transition-delay: 0.35s;
}

body.feat-stagger .swatch:nth-child(7) {
    transition-delay: 0.42s;
}

body.feat-stagger .swatch:nth-child(8) {
    transition-delay: 0.49s;
}

body.feat-stagger .form-group.fade-in-up:nth-child(1) {
    transition-delay: 0s;
}

body.feat-stagger .form-group.fade-in-up:nth-child(2) {
    transition-delay: 0.1s;
}

body.feat-stagger .form-group.fade-in-up:nth-child(3) {
    transition-delay: 0.2s;
}

body.feat-stagger .form-group.fade-in-up:nth-child(4) {
    transition-delay: 0.3s;
}

body.feat-stagger .form-group.fade-in-up:nth-child(5) {
    transition-delay: 0.4s;
}

body.feat-stagger .form-group.fade-in-up:nth-child(6) {
    transition-delay: 0.5s;
}

body.feat-stagger .form-group.fade-in-up:nth-child(7) {
    transition-delay: 0.6s;
}

body.feat-stagger .countdown-unit {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

body.feat-stagger .countdown.visible .countdown-unit {
    opacity: 1;
    transform: translateY(0);
}

body.feat-stagger .countdown-unit:nth-child(1) {
    transition-delay: 0s;
}

body.feat-stagger .countdown-unit:nth-child(2) {
    transition-delay: 0.15s;
}

body.feat-stagger .countdown-unit:nth-child(3) {
    transition-delay: 0.3s;
}

body.feat-stagger .countdown-unit:nth-child(4) {
    transition-delay: 0.45s;
}

