/* ===== VARIABLES ===== */
:root {
    --bg:           #2A2A27;
    --bg-light:     #333330;
    --green-dark:   #2C4A2E;
    --green:        #3D6B40;
    --green-mid:    #5A8A5C;
    --sage:         #6B8F6E;
    --sage-light:   #8BAF8E;
    --green-light:  #A8C5AA;
    --green-pale:   #D4E6D5;
    --cream:        #EDE7DA;
    --cream-light:  #FAF8F4;
    --white:        #FFFFFF;
    --text:         #D4CFC6;
    --text-mid:     #B0A99C;
    --text-light:   #7A7468;
    --border:       rgba(107, 143, 110, 0.25);
    --shadow:       rgba(0, 0, 0, 0.2);
    --glow:         rgba(107, 143, 110, 0.12);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== BACKGROUND PATTERN ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(44, 74, 46, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(107, 143, 110, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(44, 74, 46, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ===== NAV DOTS ===== */
.nav-dots {
    display: none;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid var(--sage-light);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.nav-dot.active {
    background: var(--sage-light);
    box-shadow: 0 0 12px var(--glow);
    transform: scale(1.2);
}

.nav-dot:hover {
    background: var(--sage);
}

/* ===== FLOATING LEAVES ===== */
.leaves {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.leaf {
    position: absolute;
    font-size: 16px;
    opacity: 0;
    animation: leafFloat linear infinite;
    color: var(--sage);
}

@keyframes leafFloat {
    0% {
        opacity: 0;
        transform: translateY(110vh) rotate(0deg) scale(0.6);
    }
    8% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.15;
    transform: translateY(50vh) translateX(var(--drift)) rotate(180deg) scale(1);
    }
    90% {
        opacity: 0.08;
    }
    100% {
        opacity: 0;
        transform: translateY(-10vh) translateX(var(--drift)) rotate(360deg) scale(0.5);
    }
}

/* ===== BOTANICAL CORNERS ===== */
.botanical {
    position: fixed;
    width: clamp(120px, 22vw, 220px);
    height: clamp(120px, 22vw, 220px);
    color: var(--sage);
    opacity: 0.2;
    z-index: 1;
    pointer-events: none;
}

.botanical--tl { top: 0; left: 0; }
.botanical--tr { top: 0; right: 0; }
.botanical--bl { bottom: 0; left: 0; }
.botanical--br { bottom: 0; right: 0; }

/* ===== DIVIDER ===== */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 32px 0;
}

.divider span:first-child,
.divider span:last-child {
    display: block;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sage), transparent);
}

.divider-leaf {
    color: var(--sage);
    font-size: 18px;
    opacity: 0.7;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    position: relative;
    z-index: 2;
    text-align: center;
    background: url('hero.jpg') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 0;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero .divider {
    position: relative;
    z-index: 1;
}

.hero .divider span:first-child,
.hero .divider span:last-child {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

.hero .divider-leaf {
    color: rgba(255, 255, 255, 0.5);
}

.hero-label {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 2.5vw, 18px);
    letter-spacing: 0.35em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 64px;
}

.hero-names {
    margin-bottom: 12px;
}

.hero-name {
    display: inline;
    font-family: 'Great Vibes', cursive;
    font-size: clamp(44px, 10vw, 88px);
    font-weight: 400;
    color: var(--white);
    line-height: 1.2;
}

.hero-amp {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(24px, 5vw, 48px);
    color: rgba(255, 255, 255, 0.6);
    margin: 0 8px;
    vertical-align: baseline;
    position: relative;
    top: -1px;
}

.invitation-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(16px, 2.5vw, 22px);
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    margin: 24px 0;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.hero-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.05em;
    margin-top: 16px;
}

/* ===== SCROLL ARROW ===== */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    letter-spacing: 0.15em;
    font-weight: 400;
    transition: color 0.3s;
}

.hero-scroll a:hover {
    color: var(--white);
}

.scroll-arrow {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    animation: bounceArrow 2s ease infinite;
}

@keyframes bounceArrow {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(5px) rotate(45deg); }
}

/* ===== SECTIONS COMMON ===== */
.section-inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 80px 24px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 2.5vw, 20px);
    letter-spacing: 0.3em;
    color: var(--cream);
    margin-bottom: 32px;
}

.script-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(38px, 7vw, 64px);
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 48px;
}

/* ===== SCHEDULE ===== */
.schedule {
    position: relative;
    z-index: 2;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
}

.schedule-card {
    text-align: center;
    padding: 36px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: background 0.3s, border-color 0.3s;
}

.schedule-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

.schedule-time {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 500;
    color: var(--cream);
    margin-bottom: 20px;
}

.schedule-time::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sage), transparent);
    margin: 14px auto 0;
}

.schedule-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.7;
    color: var(--text-mid);
    font-weight: 300;
}

/* ===== COUNTDOWN ===== */
.countdown-section {
    position: relative;
    z-index: 2;
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 6vw, 52px);
    font-weight: 300;
    color: var(--cream);
    line-height: 1;
}

.countdown-label {
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-top: 6px;
    text-transform: lowercase;
}

.countdown-sep {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(24px, 4vw, 36px);
    color: var(--sage);
    opacity: 0.5;
    margin-top: -16px;
}

/* ===== DETAILS ===== */
.details {
    position: relative;
    z-index: 2;
}

.details-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(16px, 2.2vw, 21px);
    line-height: 1.8;
    color: var(--text-mid);
    font-weight: 300;
    margin-bottom: 36px;
}

.color-palette {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.color-dot {
    width: clamp(40px, 8vw, 56px);
    height: clamp(40px, 8vw, 56px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 12px var(--shadow);
    transition: transform 0.3s ease;
}

.color-dot:hover {
    transform: scale(1.1);
}

/* ===== GIFTS ===== */
.gifts {
    position: relative;
    z-index: 2;
}

.gifts-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(16px, 2.5vw, 21px);
    line-height: 1.8;
    color: var(--text-mid);
    font-weight: 400;
    letter-spacing: 0.02em;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== RSVP ===== */
.rsvp {
    position: relative;
    z-index: 2;
    padding-bottom: 80px;
}

.rsvp-deadline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(14px, 2vw, 17px);
    color: var(--text-light);
    margin-bottom: 48px;
    letter-spacing: 0.04em;
}

/* ===== RSVP FORM ===== */
.rsvp-form {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}

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

.form-group > label {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 12px;
}

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

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

.form-group input[type="text"]::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
    font-style: italic;
}

.form-group textarea {
    resize: none;
    min-height: 90px;
    line-height: 1.7;
}

.form-hint {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    font-style: italic;
    color: var(--text-light);
    margin-top: 10px;
}

/* ===== RADIO ===== */
.radio-group {
    display: flex;
    gap: 12px;
}

.radio-group--col {
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    flex: 1;
}

.radio-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-mid);
    background: transparent;
    height: 100%;
}

.radio-option input:checked + label {
    border-color: var(--sage);
    color: var(--white);
    background: var(--sage);
}

/* ===== CHECKBOXES ===== */
.check-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

.form-group .check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: var(--text);
    letter-spacing: 0;
    text-transform: none;
    font-weight: 400;
    margin-bottom: 0;
}

.check-item input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    padding: 0;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border);
    border-radius: 3px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.25s ease;
    background: transparent;
}

.check-item:hover .checkmark {
    border-color: var(--sage);
}

.check-item input:checked ~ .checkmark {
    background: var(--sage);
    border-color: var(--sage);
}

.check-item input:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

/* ===== SUBMIT BUTTON ===== */
.submit-btn {
    display: block;
    width: 100%;
    padding: 18px;
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--sage);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 36px;
    position: relative;
    overflow: hidden;
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--sage-light);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.submit-btn:hover::after {
    transform: translateX(0);
}

.submit-btn:hover {
    box-shadow: 0 4px 20px var(--shadow);
}

/* ===== FORM SUCCESS ===== */
.form-success {
    display: none;
    padding: 60px 0;
    text-align: center;
}

.form-success.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-title {
    font-family: 'Great Vibes', cursive;
    font-size: 42px;
    color: var(--sage-light);
    margin-bottom: 12px;
}

.form-success p:last-child {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: var(--text-mid);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .schedule-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nav-dots {
        right: 12px;
        gap: 12px;
    }

    .nav-dot {
        width: 8px;
        height: 8px;
    }

    .botanical {
        width: 100px;
        height: 100px;
        opacity: 0.2;
    }

    .section-inner {
        padding: 60px 20px;
    }

    .countdown {
        gap: 8px;
    }

    .countdown-item {
        min-width: 48px;
    }

    .color-palette {
        gap: 12px;
    }

    .details-text br {
        display: none;
    }

    .rsvp-text br {
        display: none;
    }
}

@media (max-width: 380px) {
    .hero-name {
        font-size: 40px;
    }

    .botanical {
        display: none;
    }
}
