/* Base CSS for Wedding Site - "La Prima" Theme */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

:root {
    --wedding-bg: #f4f2ee; /* Slightly darker cream for body */
    --wedding-primary: #3b503d; /* Darker sage green */
    --wedding-accent: #b09c7a; /* Muted gold */
    --wedding-white: #ffffff;
    --wedding-text-muted: #737373;
    --font-heading: 'Playfair Display', serif;
    --font-script: 'Great Vibes', cursive;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.3s ease;
}

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

body {
    background-color: var(--wedding-bg);
    color: #333;
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Subtle Film Strip / Cinematic Effect */
body::before, body::after {
    content: '';
    position: fixed;
    top: 0;
    bottom: 0;
    width: 25px;
    background-color: var(--wedding-bg);
    background-image: radial-gradient(circle, #e0ddd5 30%, transparent 30%);
    background-size: 25px 35px;
    background-position: center;
    z-index: 100;
}

body::before { left: 0; border-right: 1px solid rgba(0,0,0,0.05); }
body::after { right: 0; border-left: 1px solid rgba(0,0,0,0.05); }

/* Cinematic Glow overlay */
.cinematic-glow {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    box-shadow: inset 0 0 100px rgba(135, 175, 255, 0.15);
    z-index: 99;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 4rem auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--wedding-primary);
    opacity: 0.8;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 60px;
    background: transparent;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 10px;
    width: 40px;
    height: 40px;
    background: var(--wedding-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-size: 1rem;
}

.timeline-content {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 10px;
    border: 1px solid #eae1d7;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

/* Base Badge Style */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    background: #eae1d7;
    color: var(--wedding-primary);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--wedding-primary);
}

.script-font {
    font-family: var(--font-script) !important;
    font-weight: normal;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    position: sticky;
    top: 0;
    background-color: rgba(252, 250, 247, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(45, 74, 62, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    color: var(--wedding-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.header-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--wedding-text-muted);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(to bottom, rgba(244, 242, 238, 0.4), rgba(244, 242, 238, 1)), url('wedding_flowers_bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero .badge {
    background: transparent;
    color: var(--wedding-text-muted);
    border: 1px solid var(--wedding-text-muted);
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 7rem;
    margin-bottom: 0rem;
    line-height: 1;
    color: var(--wedding-primary);
}

.hero .date {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-top: 1rem;
    color: var(--wedding-primary);
}

.countdown-label-mancano {
    margin-top: 4rem;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--wedding-primary);
    text-transform: uppercase;
}

/* Countdown */
.countdown {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 12px;
    min-width: 100px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.countdown-item .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.countdown-item .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--wedding-text-muted);
}

/* Sections */
section {
    padding: 8rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--wedding-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Locations */
.locations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.location-card {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.location-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    /* Cinematic masking for low-res images */
    filter: brightness(0.9) contrast(1.05) sepia(0.1);
}

.location-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle, transparent 40%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
}

.location-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(45, 74, 62, 0.8);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
}

.location-content {
    background: #fff;
    padding: 2.5rem;
    border-top: none;
}

.location-content h3 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.location-content .italic {
    font-style: italic;
    font-family: var(--font-heading);
    color: var(--wedding-text-muted);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.location-content .time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--wedding-accent);
}

.btn-maps {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    border: 1px solid var(--wedding-primary);
    border-radius: 50px;
    text-decoration: none;
    color: var(--wedding-primary);
    transition: var(--transition-smooth);
}

.btn-maps:hover {
    background: var(--wedding-primary);
    color: white;
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item.active .faq-answer {
    padding: 1rem 2rem 2rem;
    max-height: 800px;
}

/* RSVP Form */
.rsvp-section {
    background: var(--wedding-bg);
    padding: 6rem 0;
}

.rsvp-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    overflow: hidden;
}

.form-header {
    background: var(--wedding-primary);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.form-body {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    background: #fafafa;
    border-radius: 8px;
    outline: none;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--wedding-primary);
    background: white;
}

.btn-submit {
    width: 100%;
    padding: 1.2rem;
    background: var(--wedding-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 1rem;
}

.btn-submit:hover {
    background: #254035;
}

/* Calendar Button */
.btn-calendar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.8rem 1.6rem;
    border: 1px solid var(--wedding-primary);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--wedding-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
}

.btn-calendar:hover {
    background: var(--wedding-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 80, 61, 0.2);
}
/* Responsive */
@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .hero h1 { font-size: 4rem; }
    .locations-grid { grid-template-columns: 1fr; gap: 2rem; }
    .section-title h2 { font-size: 2.5rem; }
    .form-body { padding: 2rem; }
}

@media (max-width: 600px) {
    /* Reduce Cinematic Borders to give more room */
    body::before, body::after {
        width: 12px;
        background-size: 12px 20px;
    }
    .container { padding: 0 1rem; }

    /* Hero Fixes */
    .hero h1 { font-size: 3.5rem; word-wrap: break-word; }
    .hero .date { font-size: 1.2rem; }
    
    /* Countdown stacking */
    .countdown { 
        display: grid; 
        grid-template-columns: 1fr 1fr; 
        gap: 1rem; 
        width: 100%;
        max-width: 300px;
    }
    .countdown-item { padding: 1rem; min-width: auto; }
    .countdown-item .number { font-size: 1.8rem; }

    /* Section Spacing */
    section { padding: 4rem 0; }
    .section-title h2 { font-size: 2.2rem; }
    
    /* Timeline & Cards */
    .timeline { margin: 2rem auto; }
    .timeline-content { padding: 1.2rem; }
    .location-content { padding: 1.5rem; }
    .location-img { height: 200px; }

    /* Header */
    .logo { font-size: 1.5rem; }
    .header-date { font-size: 0.8rem; }
}
