/**
 * Wedding Website Shared Styles
 * Tyler & Jenna | September 12, 2026
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    /* Forest Theme */
    --forest-dark: #2d3a1f;
    --forest-green: #3d4a2a;
    --forest-medium: #5a6b3c;
    --forest-light: #7a8f5a;
    --forest-pale: #a4b88a;
    
    /* Neutrals */
    --cream: #f5f0e6;
    --cream-dark: #e8dcc8;
    
    /* Accents */
    --gold: #c9a227;
    --gold-light: #d4b84a;
    --pink: #d4a5a5;
    --pink-dark: #c88b8b;
    
    /* Text */
    --text-dark: #2d3a1f;
    --text-medium: #4a5a35;
    
    /* Status */
    --error: #c0392b;
    --error-bg: #fdeaea;
    --success: #5a6b3c;
    --success-bg: #e8f0dc;
}

/* ==========================================================================
   Base Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* ==========================================================================
   Typography
   ========================================================================== */
.serif {
    font-family: 'Cormorant Garamond', serif;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(45, 58, 31, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--forest-medium);
}

.nav--fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.9rem, 3.5vw, 1.5rem);
    color: var(--cream);
    text-decoration: none;
    white-space: nowrap;
}

.nav-buttons,
.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-links {
    gap: 1.5rem;
}

.nav-link {
    color: var(--forest-pale);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-btn {
    padding: 0.6rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.nav-btn-registry {
    background: var(--forest-medium);
    color: var(--cream);
}

.nav-btn-registry:hover {
    background: var(--forest-light);
}

.nav-rsvp {
    background: var(--gold);
    color: var(--forest-dark);
    padding: 0.6rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

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

.nav-home {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-home:hover {
    color: var(--gold-light);
}

/* ==========================================================================
   Container & Layout
   ========================================================================== */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.container--wide {
    max-width: 700px;
}

.container--full {
    max-width: 1000px;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
    background: var(--cream);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 3rem 2rem;
}

.card--bordered {
    border: 2px solid var(--forest-pale);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--gold);
}

.card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--forest-dark);
    margin-bottom: 0.5rem;
}

.card-subtitle {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

.card-subtitle--styled {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--forest-medium);
    font-style: italic;
}

/* ==========================================================================
   Decorative Elements
   ========================================================================== */
.divider,
.leaf-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    color: var(--gold);
}

.divider::before,
.divider::after,
.leaf-divider::before,
.leaf-divider::after {
    content: '';
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider svg,
.leaf-divider svg {
    margin: 0 1rem;
    width: 24px;
    height: 24px;
}

.leaf-divider svg {
    width: 30px;
    height: 30px;
}

.leaf-divider--small::before,
.leaf-divider--small::after {
    width: 40px;
    background: var(--gold);
}

/* ==========================================================================
   Form Elements
   ========================================================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--forest-dark);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--forest-pale);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.form-input::placeholder {
    color: #aaa;
}

textarea.form-input {
    min-height: 100px;
    resize: vertical;
}

.form-help {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-top: 0.25rem;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-option {
    flex: 1;
    min-width: 100px;
}

.radio-option input {
    display: none;
}

.radio-option label {
    display: block;
    padding: 1rem;
    text-align: center;
    border: 2px solid var(--forest-pale);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.radio-option input:checked + label {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--forest-dark);
}

.radio-option label:hover {
    border-color: var(--gold);
}

.radio-option.yes label { border-left: 4px solid var(--success); }
.radio-option.no label { border-left: 4px solid var(--error); }
.radio-option.maybe label { border-left: 4px solid var(--gold); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--forest-green);
    color: white;
}

.btn-primary:hover {
    background: var(--forest-dark);
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--gold);
    color: var(--forest-dark);
}

.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

/* ==========================================================================
   Messages & Alerts
   ========================================================================== */
.message {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.message-error {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid var(--error);
}

.message-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success);
}

/* ==========================================================================
   Status Badges
   ========================================================================== */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
}

.status-yes { background: var(--success-bg); color: var(--success); }
.status-no { background: var(--error-bg); color: var(--error); }
.status-maybe { background: #fff3cd; color: #856404; }

/* ==========================================================================
   Invitation Header (RSVP Page)
   ========================================================================== */
.invitation-header {
    text-align: center;
    padding: 2rem;
    background: var(--forest-green);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.invitation-header p {
    font-size: 1rem;
    color: var(--forest-pale);
    margin-bottom: 0.5rem;
}

.invitation-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--cream);
    font-weight: 600;
}

.invitation-event {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--gold);
    font-style: italic;
    margin-top: 1rem;
}

/* ==========================================================================
   Current Status Box
   ========================================================================== */
.current-status {
    background: var(--cream-dark);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.current-status p {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.current-status .status-badge {
    margin-top: 0.5rem;
}

/* ==========================================================================
   Closed Notice
   ========================================================================== */
.closed-notice {
    background: linear-gradient(135deg, var(--cream-dark), var(--forest-pale));
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.closed-notice h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--forest-dark);
    margin-bottom: 0.5rem;
}

.closed-notice p {
    color: var(--text-medium);
}

/* ==========================================================================
   Message Content (Registry)
   ========================================================================== */
.message-content {
    font-size: 1.05rem;
    color: var(--text-medium);
    line-height: 1.8;
}

.message-content p {
    margin-bottom: 1.5rem;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.highlight {
    color: var(--forest-dark);
    font-weight: 500;
}

/* ==========================================================================
   Venmo Section
   ========================================================================== */
.venmo-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--cream-dark);
}

.venmo-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--forest-dark);
    margin-bottom: 1rem;
}

.venmo-qr {
    display: inline-block;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.venmo-qr img {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.venmo-username {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.venmo-username a {
    color: #008CFF;
    text-decoration: none;
    font-weight: 500;
}

.venmo-username a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--cream);
    font-size: 0.85rem;
}

.footer a {
    color: var(--gold);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer--dark {
    background: var(--forest-dark);
    color: var(--forest-pale);
    border-top: 1px solid var(--forest-green);
    padding: 3rem 2rem;
}

.footer-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Hero Section (Landing Page)
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    background: var(--forest-green);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 90%, var(--pink) 0%, transparent 25%),
        radial-gradient(circle at 90% 10%, var(--gold) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, var(--forest-medium) 0%, transparent 50%);
    opacity: 0.15;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--forest-pale);
    margin-bottom: 1rem;
}

.hero-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-names .ampersand {
    font-style: italic;
    color: var(--gold);
    display: block;
    font-size: 0.6em;
    margin: 0.5rem 0;
}

.hero-invite {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--cream);
    margin-bottom: 1.5rem;
}

.hero-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--cream-dark);
    margin-bottom: 0.5rem;
}

.hero-venue {
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 2rem;
}

.hero-cta {
    display: inline-block;
    background: var(--gold);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

.hero-cta:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.4);
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--cream);
    font-size: 0.85rem;
    letter-spacing: 1px;
    opacity: 0.8;
    animation: bounce 4s infinite;
}

.scroll-hint svg {
    width: 24px;
    height: 24px;
    margin-top: 0.25rem;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* ==========================================================================
   Sections (Landing Page)
   ========================================================================== */
.section {
    padding: 5rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--cream);
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--forest-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 3rem;
    font-size: 1rem;
}

/* Details Cards */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.detail-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(45, 58, 31, 0.1);
    border: 2px solid var(--forest-pale);
    transition: transform 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.detail-card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    color: var(--gold);
}

.detail-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--forest-dark);
    margin-bottom: 0.5rem;
}

.detail-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* Map Section */
.map-section {
    background: var(--forest-dark);
    padding: 4rem 2rem;
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
}

.map-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.map-address {
    text-align: center;
    color: var(--forest-pale);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.map-address a {
    color: var(--gold-light);
    text-decoration: none;
}

.map-address a:hover {
    text-decoration: underline;
}

.map-frame {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Background Utilities
   ========================================================================== */
.bg-forest {
    background: var(--forest-green);
}

.bg-cream {
    background: var(--cream);
}

.bg-dark {
    background: var(--forest-dark);
}

/* ==========================================================================
   Text Utilities
   ========================================================================== */
.text-center {
    text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .nav {
        padding: 0.75rem 1rem;
    }
    
    .nav-buttons,
    .nav-links {
        gap: 0.4rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-btn,
    .nav-rsvp {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }
    
    .hero {
        padding: 5rem 1.5rem 3rem;
    }
    
    .section {
        padding: 3rem 1.5rem;
    }
    
    .map-section {
        padding: 3rem 1rem;
    }
    
    .map-frame {
        height: 300px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 2rem 1rem;
    }
    
    .card {
        padding: 2rem 1.5rem;
    }
    
    .card-title {
        font-size: 2rem;
    }
    
    .radio-group {
        flex-direction: column;
    }
    
    .radio-option {
        width: 100%;
    }
    
    .invitation-header {
        padding: 1.5rem;
    }
    
    .invitation-names {
        font-size: 1.4rem;
    }
}
