:root {
    --cream: #f1eee8;
    --pink: #f5eaea;
    --peach: #f4e1d2;
    --deep-red: #8e0f0c;
    --text: #000000;
    --white: #ffffff;
    --font-script: 'Comforter Brush', cursive;
    --font-serif: 'Cormorant Garamond', serif;
    --font-mono: 'Source Code Pro', monospace;
    --font-neucha: 'Neucha', cursive;
}

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

body {
    font-family: var(--font-mono);
    background-color: var(--cream);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('/static/img/couple1.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    z-index: -1;
}

.script-font { font-family: var(--font-script); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes sway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(17deg); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.14); opacity: 0.85; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes rock {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-1deg); }
    75% { transform: rotate(1deg); }
    100% { transform: rotate(0deg); }
}

.anim-fade-up { animation: fadeInUp 1s ease-out both; }

.anim-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.anim-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--cream);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('/static/img/couple1.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, var(--cream) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    animation: rock 7.4s ease-in-out infinite;
}

.hero-photo-wrap {
    display: inline-block;
    position: relative;
    margin-bottom: 32px;
}

.hero-photo {
    width: 300px;
    object-fit: cover;
    border: 5px solid var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}

.hero-names {
    font-family: var(--font-script);
    font-size: 72px;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--deep-red);
    line-height: 1.3;
}

.hero-hearts {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 4px;
}

.hero-heart {
    width: 45px;
    height: 45px;
    object-fit: contain;
    animation: sway 5s ease-in-out infinite;
}

.hero-heart--1 {
    margin-left: -8px;
}

.hero-heart--2 {
    margin-top: -10px;
    margin-left: 12px;
    animation-delay: 0.5s;
}

.hero-date-wrap {
    margin-top: 60px;
    text-align: center;
}

.hero-date {
    font-family: var(--font-serif);
    font-size: 60px;
    font-weight: 300;
    color: var(--deep-red);
    letter-spacing: 12px;
}

.hero-date-wave {
    display: block;
    width: 400px;
    height: 50px;
    margin: 4px auto 0;
    color: var(--deep-red);
    opacity: 0.5;
}

.hero-deco {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

.hero-deco--amp {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    animation: pulse 2.5s ease-in-out infinite;
}

.hero-deco--spin1 {
    top: 10%;
    right: 8%;
    width: 70px;
    animation: spin 30s linear infinite;
}

.hero-deco--spin2 {
    bottom: 15%;
    left: 8%;
    width: 60px;
    animation: spin 30s linear infinite reverse;
}

.hero-deco--leaf1 {
    top: 5%;
    left: 5%;
    width: 90px;
    animation: sway 5s ease-in-out infinite;
}

.hero-deco--leaf2 {
    bottom: 5%;
    right: 5%;
    width: 80px;
    animation: sway 5s ease-in-out infinite 1s;
}

.hero-deco--butterfly {
    top: 20%;
    left: 15%;
    width: 50px;
    animation: float 3s ease-in-out infinite;
}

/* ===== SECTIONS ===== */
.section {
    position: relative;
    padding: 70px 24px;
    text-align: center;
    max-width: 1800px;
    margin: 0 auto;
    overflow: visible;
}

/* ===== KIDS INTRO ===== */
.kids-section {
    padding: 60px 24px 40px;
    max-width: 1600px;
}

.deco-header {
    width: 120px;
    margin: 0 auto 30px;
    opacity: 0.45;
}

.kids-intro {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.8;
    color: var(--text);
    text-align: center;
    margin-bottom: 24px;
}

.kids-guess {
    font-size: 72px;
    color: var(--deep-red);
}

/* ===== INVITATION ===== */
.invite-section {
    padding: 60px 24px;
    max-width: 1600px;
}

.deco-section {
    position: absolute;
    opacity: 0.35;
    pointer-events: none;
}

.deco-section--top {
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
}

.invite-title {
    font-size: 46px;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.3;
}

.invite-text {
    font-size: 30px;
    font-weight: 500;
    line-height: 1.8;
    color: var(--text);
    max-width: 480px;
    margin: 0 auto;
}

/* ===== CALENDAR ===== */
.calendar-section {
    padding: 60px 24px;
}

.calendar-grid {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 20px;
}

.cal-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 100px;
}

.cal-dayname {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text);
    opacity: 0.5;
}

.cal-date {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 300;
    color: var(--text);
    opacity: 0.35;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cal-date--active {
    opacity: 1;
    color: var(--white);
    background: transparent;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.cal-date-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-heart {
    position: absolute;
    width: 80px;
    height: 80px;
    object-fit: contain;
    z-index: 0;
    pointer-events: none;
}

.calendar-full-date {
    font-family: var(--font-neucha);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--text);
}

.cal-highlight {
    color: var(--deep-red);
    font-weight: 700;
}

.deco-rose {
    width: 60px;
    margin: 20px auto 0;
    animation: sway 5s ease-in-out infinite;
    opacity: 0.6;
}

/* ===== WAVE DIVIDERS ===== */
.wave-divider {
    width: 100%;
    line-height: 0;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 3;
    font-size: 0;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ===== VENUE ===== */
.venue-section {
    padding: 60px 24px;
    max-width: 1600px;
}

.deco-venue {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    opacity: 0.4;
    pointer-events: none;
}

.deco-venue-leaf {
    position: absolute;
    bottom: 10px;
    right: 5%;
    width: 70px;
    opacity: 0.35;
    animation: sway 5s ease-in-out infinite;
    pointer-events: none;
}

.venue-title {
    font-size: 48px;
    color: var(--deep-red);
    margin-bottom: 30px;
}

.venue-block {
    max-width: 600px;
    margin: 0 auto 36px;
}

.venue-block-title {
    font-family: var(--font-mono);
    font-size: 30px;
    font-weight: 700;
    color: var(--deep-red);
    margin-bottom: 4px;
}

.venue-block-time {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 400;
    color: var(--deep-red);
    opacity: 0.7;
    margin-bottom: 12px;
}

.venue-block-address {
    font-family: var(--font-mono);
    font-size: 30px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 20px;
}

.venue-block:last-of-type {
    margin-bottom: 0;
}

.venue-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: 220px;
}

.venue-map iframe {
    display: block;
    width: 100%;
    height: 220px;
}

/* ===== BUTTONS (unified) ===== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    line-height: 1.4;
    text-align: center;
}

.btn:hover { opacity: 0.85; }

.btn--dark {
    background: var(--deep-red);
    color: var(--white);
}

.btn--peach {
    background: var(--peach);
    color: var(--text);
}

/* ===== DRESS CODE ===== */
.dresscode-section {
    padding: 60px 24px;
    max-width: 1600px;
}

.deco-dc {
    position: absolute;
    top: 5px;
    right: 8%;
    width: 60px;
    opacity: 0.35;
    animation: sway 4.6s ease-in-out infinite;
    pointer-events: none;
}

.deco-dc-leaf {
    position: absolute;
    bottom: 10px;
    left: 5%;
    width: 60px;
    opacity: 0.3;
    animation: sway 5s ease-in-out infinite 1s;
    pointer-events: none;
}

.dc-title {
    font-size: 48px;
    color: var(--deep-red);
    margin-bottom: 16px;
}

.dc-text {
    font-size: 30px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== PALETTE ===== */
.palette-section {
    padding: 60px 24px 70px;
    max-width: 1800px;
}

.color-circles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.color-item:not(:first-child) {
    margin-left: -30px;
}

.color-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.palette-photos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.palette-frame {
    background: var(--white);
    padding: 10px;
    box-shadow: 2px 2px 10px 0px rgba(160,159,159,0.4);
    transition: transform 0.3s ease;
}

.palette-frame img {
    display: block;
    width: 280px;
    height: 500px;
    object-fit: cover;
}

.palette-frame--rot1 {
    transform: rotate(-3deg);
}

.palette-frame--rot1 img {
    object-position: center top;
}

.palette-frame--rot2 {
    transform: rotate(5deg);
    margin-top: 60px;
}

.palette-frame--rot3 img {
    object-position: center 20%;
}

.palette-frame--rot4 {
    transform: rotate(4deg);
    margin-top: 40px;
}

.palette-frame--rot4 img {
    width: 220px;
    height: 400px;
    object-position: center top;
}

/* ===== WISHES ===== */
.wishes-section {
    background-color: var(--peach);
    max-width: 100%;
    padding: 70px 24px 60px;
    overflow: visible;
}

.wishes-section > *:not(.deco-wishes) {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.deco-wishes {
    position: absolute;
    top: 10px;
    width: 100px;
    opacity: 0.35;
    pointer-events: none;
}

.deco-wishes--left { left: 5%; }
.deco-wishes--right { right: 5%; }

.wishes-title {
    font-size: 48px;
    color: var(--deep-red);
    margin-bottom: 24px;
}

.wishes-text {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto 16px;
}

.wishes-text:last-of-type { margin-bottom: 0; }

/* ===== RSVP ===== */
.rsvp-section {
    max-width: 1600px;
    padding: 60px 24px 70px;
}

.deco-rsvp {
    width: 80px;
    margin: 0 auto 20px;
    opacity: 0.4;
}

.rsvp-title {
    font-size: 48px;
    color: var(--deep-red);
    margin-bottom: 12px;
}

.rsvp-sub {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto 30px;
}

.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

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

.form-label {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    font-family: var(--font-mono);
}

.input-block { margin-bottom: 0; }

.input-block input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(0,0,0,0.25);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text);
    background: rgba(0,0,0,0.03);
    outline: none;
    transition: border-color 0.2s;
}

.input-block input[type="text"]:focus {
    border-color: var(--deep-red);
}

.input-block input[type="text"]::placeholder {
    color: rgba(0,0,0,0.3);
}

.radio-control {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    padding: 6px 0;
}

.radio-control input[type="radio"] { display: none; }

.radio-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0,0,0,0.3);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.radio-control input[type="radio"]:checked + .radio-indicator {
    border-color: var(--deep-red);
}

.radio-control input[type="radio"]:checked + .radio-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--deep-red);
}

.check-control {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    padding: 5px 0;
}

.check-control input[type="checkbox"] { display: none; }

.check-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0,0,0,0.3);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
}

.check-control input[type="checkbox"]:checked + .check-indicator {
    border-color: var(--deep-red);
}

.check-control input[type="checkbox"]:checked + .check-indicator::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid var(--deep-red);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.form-submit { margin-top: 24px; }

.rsvp-success {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 20px auto 0;
    max-width: 400px;
    text-align: center;
}

/* ===== COORDINATOR ===== */
.coordinator-section {
    padding: 60px 24px;
    max-width: 1600px;
}

.coordinator-card {
    display: inline-block;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(6px);
    border-radius: 24px;
    padding: 40px 50px;
    text-align: center;
    max-width: 430px;
}

.deco-coord {
    width: 50px;
    margin: 0 auto 20px;
    opacity: 0.4;
}

.coordinator-text {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 24px;
}

/* ===== CLOSING ===== */
.closing-section {
    background-color: var(--pink);
    max-width: 100%;
    padding: 80px 24px 100px;
    overflow: visible;
}

.closing-section > *:not(.deco-closing) {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.deco-closing {
    position: absolute;
    pointer-events: none;
    opacity: 0.35;
}

.deco-closing--left {
    top: 10px;
    left: 3%;
    width: 100px;
    animation: sway 5s ease-in-out infinite;
}

.deco-closing--right {
    top: 20px;
    right: 3%;
    width: 90px;
    animation: sway 5s ease-in-out infinite 1s;
}

.deco-closing--bot {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    opacity: 0.25;
}

.closing-title {
    font-size: 72px;
    color: var(--text);
    margin-bottom: 8px;
}

.closing-names {
    font-size: 72px;
    color: var(--deep-red);
    margin-bottom: 40px;
}

/* ===== COUNTDOWN (inside closing) ===== */
.countdown-wrap {
    margin-top: 20px;
}

.countdown-heading {
    font-size: 72px;
    color: var(--deep-red);
    margin-bottom: 24px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.cd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cd-num {
    font-family: var(--font-neucha);
    font-size: 72px;
    font-weight: 400;
    color: var(--deep-red);
    line-height: 1;
}

.cd-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text);
    margin-top: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .section { padding: 50px 20px; }

    .hero-names { font-size: 48px; letter-spacing: 2px; }
    .hero-heart { width: 32px; height: 32px; }
    .hero-photo { width: 220px; }
    .hero-deco--spin1, .hero-deco--spin2 { width: 40px; }
    .hero-deco--leaf1, .hero-deco--leaf2 { width: 50px; }
    .hero-deco--butterfly { width: 30px; }
    .hero-deco--amp { width: 40px; }
    .hero-date { letter-spacing: 6px; font-size: 36px; }
    .hero-date-wave { width: 220px; height: 30px; }

    .kids-intro { font-size: 17px; }
    .kids-guess { font-size: 48px; }
    .invite-title { font-size: 36px; }
    .invite-text { font-size: 16px; }

    .calendar-grid { gap: 8px; }
    .cal-col { min-width: 48px; }
    .cal-date { font-size: 28px; width: 44px; height: 44px; }

    .wave-divider svg { height: 50px; }

    .venue-title { font-size: 40px; }
    .venue-block-address { font-size: 15px; }
    .venue-map iframe { height: 180px; }
    .deco-venue-leaf { width: 45px; }

    .dc-title { font-size: 40px; }
    .dc-text { font-size: 15px; }
    .deco-dc { width: 40px; }
    .deco-dc-leaf { width: 40px; }

    .color-item:not(:first-child) { margin-left: -20px; }
    .color-circle { width: 70px; height: 70px; }
    .palette-frame img { width: 170px; height: 300px; }
    .palette-frame--rot4 img { width: 140px; height: 250px; }
    .palette-photos { gap: 16px; margin-top: 30px; }
    .palette-frame--rot2 { margin-top: 30px; }
    .palette-frame--rot4 { margin-top: 20px; }

    .wishes-title { font-size: 40px; }
    .wishes-text { font-size: 15px; }
    .deco-wishes { width: 60px; }

    .rsvp-title { font-size: 40px; }
    .form-label { font-size: 14px; }
    .radio-control, .check-control { font-size: 14px; }
    .input-block input[type="text"] { font-size: 14px; }
    .btn { font-size: 15px; padding: 10px 28px; }

    .closing-title { font-size: 40px; }
    .closing-names { font-size: 28px; }
    .deco-closing--left, .deco-closing--right { width: 60px; }
    .deco-closing--bot { width: 130px; }

    .countdown-heading { font-size: 28px; }
    .cd-num { font-size: 38px; }
    .countdown { gap: 16px; }

    .coordinator-card { padding: 30px 24px; }
}
