/* ============================================================
   Autumn / Fall Wedding Theme — Karen & Dhaval 2026
   ============================================================ */

:root {
    --amber:    #D4820A;
    --burgundy: #8B1A1A;
    --rust:     #C4510A;
    --cream:    #F5EDD8;
    --forest:   #2D4A1E;
    --gold:     #B8860B;
    --brown:    #5C2D0A;
    --text:     #2C1810;
    --text-light: #6B4226;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

[x-cloak] { display: none !important; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--burgundy); }
.font-display { font-family: 'Playfair Display', serif; }

/* ── Navigation ── */
.site-nav {
    background: var(--burgundy);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.6rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: #FFD78C !important;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Desktop nav links */
.nav-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.1rem;
    align-items: center;
}

.nav-links a {
    color: rgba(245,237,216,0.88);
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    background: rgba(212,130,10,0.28);
    color: #FFD78C;
}

/* Hamburger — hidden on desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #F5EDD8;
    font-size: 1.3rem;
    padding: 0.3rem 0.5rem;
    line-height: 1;
    flex-shrink: 0;
}

/* ── Mobile Nav ── */
@media (max-width: 860px) {
    .nav-toggle { display: flex; align-items: center; }

    .nav-links {
        /* Hidden on mobile by default — CSS only, no x-show conflict */
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--burgundy);
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 1rem 1rem;
        box-shadow: 0 4px 16px rgba(0,0,0,0.3);
        z-index: 199;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links.nav-open { display: flex; }

    .nav-links a {
        padding: 0.65rem 0.75rem;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .nav-links a:last-child { border-bottom: none; }

    .site-nav { position: relative; }
}

/* ── Hero Section ── */
.hero {
    background: linear-gradient(160deg, #3D1A05 0%, var(--burgundy) 40%, #6B2D10 70%, #3D2005 100%);
    min-height: 88vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero.has-bg-image {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 8, 2, 0.6);
    z-index: 1;
}

.hero-content { position: relative; z-index: 3; text-align: center; padding: 2rem; }

.hero-names {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    color: #FFD78C;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-ampersand { color: var(--rust); font-style: italic; }

.hero-date {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: #F5C890;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.hero-tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: rgba(245,200,144,0.8);
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

/* ── Falling Leaves Animation ── */
.leaf { position: absolute; top: -60px; opacity: 0; animation: fall linear infinite; pointer-events: none; z-index: 2; }
@keyframes fall {
    0%   { transform: translateY(0) rotate(0deg);   opacity: 0; }
    10%  { opacity: 0.85; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ── Countdown ── */
.countdown-grid { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.countdown-box {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(212,130,10,0.5);
    border-radius: 8px;
    padding: 1rem 0.5rem;
    width: 96px;
    flex-shrink: 0;
    text-align: center;
    backdrop-filter: blur(4px);
}
.countdown-num { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: #FFD78C; line-height: 1; display: block; }
.countdown-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(245,200,144,0.7); margin-top: 0.25rem; }

/* ── Page Sections ── */
.section { padding: 4rem 1.5rem; }
.section-alt { background: rgba(139, 26, 26, 0.05); }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--burgundy); text-align: center; margin-bottom: 0.5rem; }
.leaf-divider { text-align: center; margin: 0.75rem 0 2.5rem; color: var(--amber); font-size: 1.2rem; letter-spacing: 0.5rem; }

/* ── Cards ── */
.card { background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(44,24,16,0.1); border-left: 4px solid var(--amber); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(44,24,16,0.15); }

/* ── Buttons ── */
.btn-primary { background: var(--amber); color: #fff; border: none; border-radius: 6px; padding: 0.65rem 1.5rem; font-family: 'Lato',sans-serif; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; text-decoration: none; display: inline-block; transition: background 0.2s, transform 0.1s; }
.btn-primary:hover { background: var(--rust); transform: translateY(-1px); }
.btn-secondary { background: var(--burgundy); color: #fff; border: none; border-radius: 6px; padding: 0.65rem 1.5rem; font-family: 'Lato',sans-serif; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; text-decoration: none; display: inline-block; transition: background 0.2s; }
.btn-secondary:hover { background: #6B1313; }
.btn-outline { background: transparent; color: var(--burgundy); border: 2px solid var(--burgundy); border-radius: 6px; padding: 0.6rem 1.4rem; font-family: 'Lato',sans-serif; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; text-decoration: none; display: inline-block; transition: all 0.2s; }
.btn-outline:hover { background: var(--burgundy); color: #fff; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.75rem; }

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light); margin-bottom: 0.35rem; }
.form-control { width: 100%; border: 1.5px solid #D4B896; border-radius: 6px; padding: 0.6rem 0.85rem; font-family: 'Lato',sans-serif; font-size: 1rem; color: var(--text); background: #fffdf8; transition: border-color 0.2s, box-shadow 0.2s; }
.form-control:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(212,130,10,0.15); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B1A1A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2.5rem; }

/* ── RSVP ── */
.rsvp-wrapper { max-width: 720px; margin: 0 auto; background: #fff; border-radius: 16px; box-shadow: 0 6px 32px rgba(44,24,16,0.15); padding: 2.5rem 2rem; }

/* Radio / Choice buttons */
.rsvp-choice {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    padding: 0.8rem 1.25rem;
    border: 2px solid #D4B896;
    border-radius: 10px;
    flex: 1;
    min-width: 160px;
    transition: all 0.2s;
    background: #fff;
    font-size: 0.95rem;
    user-select: none;
}
.rsvp-choice:hover { border-color: var(--amber); background: rgba(212,130,10,0.04); }
.rsvp-choice.selected-yes { border-color: #10B981; background: #F0FDF4; color: #065F46; font-weight: 700; }
.rsvp-choice.selected-no  { border-color: #EF4444; background: #FEF2F2; color: #991B1B; font-weight: 700; }
.rsvp-choice input[type="radio"] { display: none; }

/* Member card in RSVP */
.member-card {
    background: #FFFDF8;
    border: 1.5px solid #E8D8C0;
    border-radius: 10px;
    padding: 1rem 1.1rem;
    margin-bottom: 0.75rem;
}

.member-card-header {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.member-card-header .member-icon { color: var(--amber); }

.day-checkboxes {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 0.5rem 0;
}

.day-check-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    padding: 0.45rem 0.85rem;
    border: 1.5px solid #D4B896;
    border-radius: 20px;
    font-size: 0.82rem;
    transition: all 0.15s;
    user-select: none;
    background: #fff;
}

.day-check-label:hover { border-color: var(--amber); background: rgba(212,130,10,0.05); }

.day-check-label input[type="checkbox"] { accent-color: var(--amber); width: 15px; height: 15px; cursor: pointer; }

.day-check-label:has(input:checked) {
    border-color: var(--amber);
    background: rgba(212,130,10,0.08);
    color: var(--brown);
    font-weight: 700;
}

/* ── Event Day Blocks ── */
.event-day { background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(44,24,16,0.12); overflow: hidden; margin-bottom: 2.5rem; }
.event-day-header { padding: 1.5rem 2rem; color: #fff; }
.event-day-header.day1 { background: linear-gradient(135deg, var(--burgundy), #5C1010); }
.event-day-header.day2 { background: linear-gradient(135deg, var(--forest), #1A2E0E); }
.dress-code-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4); border-radius: 20px; padding: 0.3rem 0.9rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; margin-top: 0.5rem; }
.event-item { padding: 1.25rem 2rem; border-bottom: 1px solid #F0E4D0; display: flex; align-items: flex-start; gap: 1.25rem; }
.event-item:last-child { border-bottom: none; }
.event-time { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--amber); white-space: nowrap; min-width: 80px; }
.event-name { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.event-venue { font-size: 0.88rem; color: var(--text-light); }

/* ── Admin Styles ── */
.admin-sidebar { background: var(--burgundy); color: #F5EDD8; min-height: 100vh; width: 240px; padding: 1.5rem 1rem; position: fixed; left: 0; top: 0; overflow-y: auto; z-index: 100; }
.admin-sidebar a { color: rgba(245,237,216,0.85); text-decoration: none; display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 0.85rem; border-radius: 6px; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.03em; transition: background 0.2s, color 0.2s; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(212,130,10,0.25); color: #FFD78C; }
.admin-content { margin-left: 240px; padding: 2rem; min-height: 100vh; background: #f8f2e8; }
.stat-card { background: #fff; border-radius: 10px; padding: 1.5rem; border-left: 4px solid var(--amber); box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--burgundy); line-height: 1; }
.stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-light); margin-top: 0.25rem; }

/* ── Status Badges ── */
.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.badge-pending  { background: #FEF3C7; color: #92400E; }
.badge-yes      { background: #D1FAE5; color: #065F46; }
.badge-no       { background: #FEE2E2; color: #991B1B; }
.badge-override { background: #EDE9FE; color: #5B21B6; }

/* ── Data Table ── */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
.data-table th { background: var(--burgundy); color: #F5EDD8; padding: 0.75rem 1rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; text-align: left; }
.data-table td { padding: 0.75rem 1rem; border-bottom: 1px solid #F0E4D0; font-size: 0.9rem; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #FDF8F0; }

/* ── Seating Chart ── */
.seating-layout { display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem; }
.seating-pool { background: #fff; border-radius: 10px; padding: 1rem; box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
.seating-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; align-content: start; }
.table-card { background: #fff; border-radius: 10px; padding: 1rem; box-shadow: 0 2px 12px rgba(0,0,0,0.07); border-top: 4px solid var(--amber); min-height: 120px; }
.table-card-header { font-weight: 700; color: var(--burgundy); margin-bottom: 0.5rem; font-size: 0.9rem; }
.table-capacity { font-size: 0.75rem; color: var(--text-light); }
.guest-chip { background: #FEF3C7; border: 1px solid #FCD34D; border-radius: 20px; padding: 0.2rem 0.6rem; font-size: 0.78rem; cursor: grab; display: inline-flex; align-items: center; gap: 0.3rem; margin: 2px; user-select: none; }
.guest-chip.kid { background: #E0F2FE; border-color: #7DD3FC; }
.guest-chip:active { cursor: grabbing; }
.sortable-ghost { opacity: 0.4; }

/* ── Hotel / Travel Cards ── */
.hotel-card { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 4px 20px rgba(44,24,16,0.1); border-top: 4px solid var(--amber); }
.coming-soon { display: inline-block; background: #FEF3C7; color: #92400E; border-radius: 4px; padding: 0.15rem 0.5rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ── FAQ Accordion ── */
.faq-item { border-bottom: 1px solid #E8D8C0; }
.faq-question { padding: 1.1rem 0; cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; align-items: center; color: var(--text); }
.faq-answer { padding-bottom: 1rem; color: var(--text-light); line-height: 1.7; }
.faq-chevron { transition: transform 0.2s; color: var(--amber); }
.faq-chevron.open { transform: rotate(180deg); }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0.5rem; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--amber), var(--burgundy)); }
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-dot { position: absolute; left: -1.85rem; top: 0.25rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--amber); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--amber); }
.timeline-date { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--amber); font-weight: 700; }
.timeline-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--burgundy); margin: 0.25rem 0; }
.timeline-body { color: var(--text-light); line-height: 1.7; }

/* ── Quick Nav Cards ── */
.nav-card { background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(44,24,16,0.1); padding: 2rem; text-align: center; text-decoration: none; color: inherit; display: block; border-top: 4px solid var(--amber); transition: transform 0.2s, box-shadow 0.2s; height: 100%; }
.nav-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(44,24,16,0.15); }
.nav-card-icon { font-size: 2.2rem; color: var(--amber); margin-bottom: 0.75rem; }
.nav-card h3 { font-family: 'Playfair Display',serif; color: var(--burgundy); margin: 0 0 0.4rem; font-size: 1.15rem; }
.nav-card p { color: var(--text-light); font-size: 0.88rem; margin: 0; line-height: 1.5; }

/* ── Footer ── */
.site-footer { background: var(--brown); color: rgba(245,237,216,0.8); text-align: center; padding: 2.5rem 1.5rem; margin-top: 4rem; }
.footer-names { font-family: 'Playfair Display', serif; font-style: italic; color: #FFD78C; font-size: 1.3rem; }

/* ── Alerts ── */
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; border-radius: 8px; padding: 1rem 1.25rem; }
.alert-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; border-radius: 8px; padding: 1rem 1.25rem; }
.alert-info    { background: #DBEAFE; color: #1E40AF; border: 1px solid #93C5FD; border-radius: 8px; padding: 1rem 1.25rem; }
.alert-warning { background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; border-radius: 8px; padding: 1rem 1.25rem; }

/* ── Utility ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-amber    { color: var(--amber); }
.text-burgundy { color: var(--burgundy); }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.mt-1{margin-top:0.5rem;}.mt-2{margin-top:1rem;}.mt-3{margin-top:1.5rem;}.mt-4{margin-top:2rem;}
.mb-1{margin-bottom:0.5rem;}.mb-2{margin-bottom:1rem;}.mb-3{margin-bottom:1.5rem;}.mb-4{margin-bottom:2rem;}
.w-full{width:100%;}
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .admin-sidebar { display: none; }
    .admin-content { margin-left: 0; padding: 1rem; }
    .seating-layout { grid-template-columns: 1fr; }
    .event-item { flex-direction: column; gap: 0.5rem; }
    .rsvp-wrapper { padding: 1.5rem 1rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .day-checkboxes { flex-direction: column; }
    .hero-names { font-size: 2.2rem; }
    .rsvp-choice { min-width: 100%; }
}
