/* ===== PNW Wedding Theme ===== */
:root {
    --pnw-green: #2D5016;
    --pnw-green-light: #3D6B22;
    --pnw-blue: #4A7C8A;
    --pnw-blue-light: #6BA3B2;
    --pnw-wood: #8B6F47;
    --pnw-wood-light: #A6885E;
    --pnw-cream: #F5F0E8;
    --pnw-cream-dark: #E8E0D2;
    --pnw-gold: #C4A265;
    --pnw-text: #2C2C2C;
    --pnw-text-light: #5A5A5A;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', 'Segoe UI', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--pnw-text);
    background-color: var(--pnw-cream);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--pnw-green);
    line-height: 1.2;
}

a {
    color: var(--pnw-blue);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--pnw-green);
}

/* ===== Navigation ===== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(45, 80, 22, 0.95);
    backdrop-filter: blur(10px);
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 64px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pnw-cream) !important;
    letter-spacing: 0.05em;
    margin-right: auto;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--pnw-cream);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 0.9rem;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--pnw-gold);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--pnw-cream);
    margin: 5px 0;
    transition: transform 0.3s;
}

/* ===== Main Content ===== */
.main-content {
    margin-top: 64px;
}

/* ===== Hero Section ===== */
.hero {
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(
        170deg,
        #1a3a0a 0%,
        #2D5016 25%,
        #3D6B22 50%,
        #4A7C8A 75%,
        #6BA3B2 100%
    );
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200'%3E%3Cpath fill='%23F5F0E8' d='M0,160L48,144C96,128,192,96,288,90.7C384,85,480,107,576,128C672,149,768,171,864,165.3C960,160,1056,128,1152,112C1248,96,1344,96,1392,96L1440,96L1440,200L0,200Z'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-names {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    color: var(--pnw-cream);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.hero-ampersand {
    font-style: italic;
    color: var(--pnw-gold);
    font-size: 0.7em;
    margin: 0 0.2em;
}

.hero-date {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    color: var(--pnw-cream);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.hero-location {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    font-style: italic;
    color: var(--pnw-gold);
    margin-bottom: 2.5rem;
}

.hero-divider {
    width: 80px;
    height: 1px;
    background: var(--pnw-gold);
    margin: 1.5rem auto;
}

/* ===== Countdown ===== */
.countdown {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1rem;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--pnw-cream);
    display: block;
    line-height: 1;
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(245, 240, 232, 0.7);
    margin-top: 0.3rem;
}

/* ===== Section Styles ===== */
.section {
    padding: 5rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.section-alt {
    background: var(--pnw-cream-dark);
}

.section-wide {
    max-width: 1100px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--pnw-green);
}

.section-subtitle {
    text-align: center;
    color: var(--pnw-text-light);
    font-size: 1rem;
    margin-bottom: 3rem;
}

.section-divider {
    width: 60px;
    height: 2px;
    background: var(--pnw-gold);
    margin: 1rem auto 2.5rem;
}

/* ===== Cards ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--pnw-green);
}

.card p {
    color: var(--pnw-text-light);
    font-size: 0.95rem;
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--pnw-gold);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--pnw-green);
    border: 2px solid var(--pnw-gold);
    margin-left: -5px;
}

.timeline-time {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--pnw-green);
}

.timeline-title {
    font-weight: 500;
    font-size: 1.05rem;
    margin: 0.25rem 0;
}

.timeline-desc {
    color: var(--pnw-text-light);
    font-size: 0.9rem;
}

/* ===== RSVP Form ===== */
.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pnw-text);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid var(--pnw-cream-dark);
    border-radius: 8px;
    background: var(--pnw-cream);
    color: var(--pnw-text);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--pnw-blue);
    box-shadow: 0 0 0 3px rgba(74, 124, 138, 0.15);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: auto;
    accent-color: var(--pnw-green);
}

.btn-primary {
    display: inline-block;
    background: var(--pnw-green);
    color: var(--pnw-cream);
    padding: 0.85rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    width: 100%;
}

.btn-primary:hover {
    background: var(--pnw-green-light);
    transform: translateY(-1px);
}

.form-success {
    text-align: center;
    padding: 2rem;
    color: var(--pnw-green);
}

.form-success h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* ===== FAQ Accordion ===== */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    border: none;
    background: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--pnw-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--pnw-green);
}

.faq-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s;
    color: var(--pnw-gold);
}

.faq-arrow.open {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--pnw-text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ===== Registry ===== */
.registry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.registry-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.registry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.registry-card h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.3rem;
}

.registry-card p {
    color: var(--pnw-text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.registry-link {
    display: inline-block;
    border: 2px solid var(--pnw-green);
    color: var(--pnw-green);
    padding: 0.6rem 1.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background 0.3s, color 0.3s;
}

.registry-link:hover {
    background: var(--pnw-green);
    color: var(--pnw-cream);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--pnw-green);
    color: var(--pnw-cream);
    text-align: center;
    padding: 3rem 2rem;
}

.footer-names {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.footer-date {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.7);
}

.footer-location {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--pnw-gold);
    margin-top: 0.25rem;
}

/* ===== PNW Decorative Elements ===== */
.pnw-trees {
    text-align: center;
    margin: 2rem 0;
    opacity: 0.15;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(45, 80, 22, 0.98);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }

    .nav-toggle {
        display: block;
    }

    .countdown {
        gap: 1rem;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .rsvp-form {
        padding: 2rem 1.5rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.text-muted { color: var(--pnw-text-light); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ===== Blazor Error UI ===== */
#blazor-error-ui {
    background: #b32121;
    color: white;
    padding: 1rem;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 9999;
    display: none;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    margin-left: 1rem;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
    border-radius: 8px;
}