/* ===== PALETTE & POUR — DESIGN SYSTEM ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --wine: #722F37;
    --wine-light: #8B3A42;
    --wine-dark: #5A252C;
    --gold: #C9A96E;
    --gold-light: #D4BB8A;
    --cream: #FDF8F0;
    --charcoal: #1A1A1A;
    --sage: #6B7B5E;
    --sage-light: #8A9B7A;
    --warm-white: #FAF6EF;
    --border-light: rgba(0,0,0,0.06);
    --text-muted: rgba(26,26,26,0.5);
}

html { scroll-behavior: smooth; }

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

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 40px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cream);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(253,248,240,0.7);
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--cream);
}

.nav-cta {
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: var(--charcoal) !important;
    background: var(--gold);
    padding: 10px 24px;
    border-radius: 100px;
    transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

/* Mobile nav */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,26,26,0.97);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.nav-overlay.active {
    display: flex;
}

.nav-overlay a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--cream);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-overlay a:hover {
    color: var(--gold);
}

@media (max-width: 768px) {
    .nav { padding: 0 20px; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold);
    color: var(--charcoal);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,169,110,0.3);
}

.btn-wine {
    background: var(--wine);
    color: var(--cream);
}

.btn-wine:hover {
    background: var(--wine-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(114,47,55,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--charcoal);
    border: 1.5px solid var(--charcoal);
}

.btn-outline:hover {
    background: var(--charcoal);
    color: var(--cream);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* ===== SECTION HELPERS ===== */
.section-label {
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 20px;
}

.page-section {
    padding: 120px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== EVENT CARDS ===== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.event-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

.event-card-header {
    padding: 28px 28px 0;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.event-date-badge {
    flex-shrink: 0;
    width: 64px;
    height: 72px;
    background: var(--wine);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--cream);
}

.event-date-badge .month {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

.event-date-badge .day {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 2px;
}

.event-card-meta {
    flex: 1;
    min-width: 0;
}

.event-card-meta h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
}

.event-card-meta .event-location {
    font-size: 0.85rem;
    color: var(--sage);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-card-body {
    padding: 16px 28px 28px;
}

.event-card-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-footer {
    padding: 0 28px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.event-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.event-price-tag {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.event-price-tag .amount {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--wine);
}

.event-price-tag .per {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.event-spots {
    font-size: 0.8rem;
    color: var(--sage);
    font-weight: 500;
}

.event-spots.low {
    color: var(--wine);
}

.sold-out-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--wine);
    background: rgba(114,47,55,0.1);
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== EVENT DETAIL PAGE ===== */
.event-hero {
    padding: 140px 40px 80px;
    background: linear-gradient(135deg, #1A1A1A 0%, #2D1F21 40%, #3A2428 70%, #1A1A1A 100%);
    position: relative;
    overflow: hidden;
}

.event-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80vw;
    height: 80vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(114,47,55,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.event-hero-inner {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.event-hero .section-label {
    color: var(--gold);
}

.event-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 20px;
    line-height: 1.15;
}

.event-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: rgba(253,248,240,0.6);
    font-size: 0.95rem;
}

.event-hero-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-detail-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 40px 120px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: flex-start;
}

.event-description h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.event-description p {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(26,26,26,0.7);
    margin-bottom: 32px;
}

.included-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.included-list li {
    font-size: 0.95rem;
    color: var(--charcoal);
    display: flex;
    align-items: center;
    gap: 12px;
}

.included-list li::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--gold);
    flex-shrink: 0;
}

/* ===== BOOKING SIDEBAR ===== */
.booking-card {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    padding: 36px;
    position: sticky;
    top: 96px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.04);
}

.booking-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.booking-price-display {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-light);
}

.booking-price-display .amount {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--wine);
}

.booking-price-display .per {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: var(--charcoal);
    background: var(--warm-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--wine);
    box-shadow: 0 0 0 3px rgba(114,47,55,0.1);
}

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

.booking-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
    margin-top: 8px;
    margin-bottom: 20px;
}

.booking-total span:first-child {
    font-weight: 500;
}

.booking-total span:last-child {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--wine);
}

.booking-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}

/* ===== CONFIRMATION PAGE ===== */
.confirmation-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 80px;
    text-align: center;
}

.confirmation-card {
    background: white;
    border-radius: 24px;
    padding: 48px;
    max-width: 560px;
    width: 100%;
    border: 1px solid var(--border-light);
    box-shadow: 0 16px 48px rgba(0,0,0,0.06);
}

.confirmation-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sage) 0%, var(--sage-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
}

.confirmation-card h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.confirmation-card .subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 32px;
}

.confirmation-code {
    background: var(--warm-white);
    border: 2px dashed var(--gold);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 32px;
}

.confirmation-code label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.confirmation-code .code {
    font-family: 'Outfit', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--wine);
    letter-spacing: 2px;
}

.confirmation-details {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 0;
    border-top: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.confirmation-details .detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.confirmation-details .detail-row .label {
    color: var(--text-muted);
}

.confirmation-details .detail-row .value {
    font-weight: 500;
}

/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-chip {
    padding: 8px 20px;
    border-radius: 100px;
    border: 1.5px solid rgba(0,0,0,0.1);
    background: white;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip:hover {
    border-color: var(--wine);
    color: var(--wine);
}

.filter-chip.active {
    background: var(--wine);
    border-color: var(--wine);
    color: var(--cream);
}

/* ===== LOADING ===== */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--wine);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 60px 40px;
    background: var(--charcoal);
    border-top: 1px solid rgba(253,248,240,0.06);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--cream);
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 0.9rem;
    color: rgba(253,248,240,0.4);
    font-weight: 300;
    line-height: 1.6;
    max-width: 320px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: rgba(253,248,240,0.5);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--cream);
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(253,248,240,0.06);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(253,248,240,0.25);
}

.badge-ages {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(107,123,94,0.12);
    color: var(--sage);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: var(--charcoal);
    color: var(--cream);
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.error {
    background: var(--wine);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .event-detail-grid {
        grid-template-columns: 1fr;
        padding: 40px 24px 80px;
    }
    .booking-card {
        position: static;
    }
    .events-grid {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .page-section {
        padding: 80px 24px;
    }
    .event-hero {
        padding: 120px 24px 60px;
    }
    .event-hero-meta {
        flex-direction: column;
        gap: 12px;
    }
    .confirmation-card {
        padding: 32px 24px;
    }
    .filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }
    .event-card-header {
        padding: 20px 20px 0;
    }
    .event-card-body {
        padding: 12px 20px 20px;
    }
    .event-card-footer {
        padding: 0 20px 20px;
    }
}
