/* ===================================
   Leopold & McKinley Wedding Website
   Styles - Romantic Mountain Elegance
   =================================== */

/* CSS Custom Properties */
:root {
    --color-sage: #33593d;
    --color-sage-light: #4a7c56;
    --color-sage-dark: #264530;
    --color-cream: #f9f7f4;
    --color-cream-translucent: rgba(249, 247, 244, 0.92);
    --color-gold: #c9a962;
    --color-gold-light: #dfc68a;
    --color-text: #2c3e2d;
    --color-text-light: #5a6b5c;
    
    --font-display: 'Hello Paris Script', cursive;
    --font-body: 'Lora', Georgia, serif;
    
    --shadow-soft: 0 4px 20px rgba(51, 89, 61, 0.1);
    --shadow-card: 0 8px 32px rgba(51, 89, 61, 0.12);
    --shadow-hover: 0 12px 40px rgba(51, 89, 61, 0.18);
    
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('photos/IMG_3152_sml.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.background-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.82) 0%,
        rgba(255, 255, 255, 0.78) 50%,
        rgba(255, 255, 255, 0.85) 100%
    );
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-sage);
    font-weight: 500;
}

h2 {
    font-family: var(--font-body);
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--color-sage-dark);
}

h4 {
    font-size: 1.1rem;
    margin: 1.25rem 0 0.5rem;
    color: var(--color-sage);
    font-weight: 600;
}

p {
    margin-bottom: 0.75rem;
}

a {
    color: var(--color-sage);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

a:hover {
    color: var(--color-sage-light);
    border-bottom-color: var(--color-sage-light);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.names {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 400;
    color: var(--color-sage);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.tagline {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-sage-light);
    margin: 0;
}

/* Invitation Box */
.invitation-box {
    background: var(--color-cream-translucent);
    border: 1px solid rgba(156, 175, 136, 0.4);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    margin: 2rem auto;
    text-align: center;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.invitation-box .invitation-preamble {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-text-light);
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
}

.invitation-box .couple-names {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--color-sage);
    margin: 0.5rem 0;
    line-height: 1.2;
}

.invitation-box .venue-intro {
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--color-text-light);
}

.event-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(156, 175, 136, 0.3);
}

.event-details .detail {
    margin: 0.6rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.event-details .icon {
    font-size: 1.1rem;
}

.calendar-link {
    margin-top: 1rem !important;
    padding-top: 1rem;
}

.calendar-link a {
    font-size: 0.95rem;
    color: var(--color-sage-light);
}

/* Countdown Section */
.countdown-section {
    margin: 3rem 0;
    text-align: center;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.countdown-item {
    background: var(--color-cream-translucent);
    border: 1px solid rgba(156, 175, 136, 0.3);
    border-radius: var(--border-radius);
    padding: 1.25rem 1.5rem;
    min-width: 90px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: var(--transition);
}

.countdown-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.countdown-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-sage);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

.countdown-complete {
    font-size: 1.5rem;
    color: var(--color-sage);
    font-style: italic;
}

/* RSVP Button */
.rsvp-section {
    text-align: center;
    margin: 2.5rem 0;
}

.rsvp-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-sage-dark) 100%);
    color: white;
    padding: 1rem 3rem;
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(51, 89, 61, 0.3);
    text-decoration: none;
}

.rsvp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(51, 89, 61, 0.4);
    color: white;
    border-bottom-color: transparent;
    background: linear-gradient(135deg, var(--color-sage-light) 0%, var(--color-sage) 100%);
}

.rsvp-button:active {
    transform: translateY(-1px);
}

/* Info Sections */
.info-section {
    background: var(--color-cream-translucent);
    border: 1px solid rgba(156, 175, 136, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.info-content {
    padding: 0 0.5rem;
}

/* Lodging Table */
.lodging-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    font-size: 1rem;
}

.lodging-table thead th {
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid rgba(156, 175, 136, 0.3);
}

.lodging-table thead th:first-child {
    width: 2.5rem;
    padding-right: 0;
}

.lodging-table thead th:nth-child(2) {
    width: 8rem;
    white-space: nowrap;
}

.lodging-table tbody tr {
    border-bottom: 1px solid rgba(156, 175, 136, 0.15);
}

.lodging-table tbody tr:last-child {
    border-bottom: none;
}

.lodging-table td {
    padding: 0.65rem 0.75rem;
    vertical-align: top;
}

.lodging-icon {
    font-size: 1.25rem;
    text-align: center;
    padding-right: 0 !important;
}

.lodging-note {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* Activities Grid */
.activities-grid {
    display: grid;
    gap: 1.5rem;
    margin: 1rem 0 2rem;
}

@media (min-width: 600px) {
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .activity-category:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 50%;
        justify-self: center;
    }
}

.activity-category {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(156, 175, 136, 0.15);
}

.activity-category h4 {
    margin-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-gold-light);
}

.activity-category ul {
    list-style: none;
    padding: 0;
    font-size: 1rem;
}

.activity-category li {
    padding: 0.4rem 0;
    padding-left: 1rem;
    position: relative;
}

.activity-category li::before {
    content: '•';
    color: var(--color-sage);
    position: absolute;
    left: 0;
}

/* Food Section */
.food-section {
    margin-top: 1.5rem;
}

.food-section h4 {
    color: var(--color-sage-dark);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-gold-light);
    display: inline-block;
}

.food-list {
    list-style: none;
    padding: 0;
    columns: 1;
}

@media (min-width: 600px) {
    .food-list {
        columns: 2;
        column-gap: 2rem;
    }
}

.food-list li {
    padding: 0.4rem 0;
    padding-left: 1rem;
    position: relative;
    break-inside: avoid;
}

.food-list li::before {
    content: '🍴';
    position: absolute;
    left: -0.25rem;
    font-size: 0.8rem;
}

/* Attire Section */
.attire-section {
    text-align: center;
}

.attire-content p {
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.attire-headline {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-sage);
    margin-bottom: 1rem;
}

/* Registry Section */
.registry-section {
    text-align: center;
}

.registry-message {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.venmo-link {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-sage);
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 2px solid var(--color-sage);
    transition: var(--transition);
}

.venmo-link:hover {
    background: var(--color-sage);
    color: white;
    border-bottom-color: var(--color-sage);
}

/* Photos Section */
.photos-section {
    text-align: center;
    margin: 2rem 0;
}

.photo-gallery {
    margin-top: 1.5rem;
}

.engagement-photo {
    width: 100%;
    max-width: 600px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.engagement-photo:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 1rem;
}

.footer-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-sage), transparent);
    margin: 0 auto 2rem;
}

.footer-message {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-sage);
    margin-bottom: 1rem;
}

.contact-info {
    color: var(--color-text-light);
}

.contact-info p {
    margin: 0.25rem 0;
}

.contact-info a {
    color: var(--color-sage);
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero,
.invitation-box,
.countdown-section,
.rsvp-section,
.info-section,
.photos-section {
    animation: fadeInUp 0.6s ease-out;
}

.invitation-box { animation-delay: 0.1s; }
.countdown-section { animation-delay: 0.2s; }
.rsvp-section { animation-delay: 0.3s; }

/* Mobile Responsive */
@media (max-width: 600px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 1rem 1rem 3rem;
    }
    
    .hero {
        padding: 2rem 0 1.5rem;
    }
    
    .names {
        font-size: 3rem;
    }
    
    .invitation-box {
        padding: 1.5rem 1rem;
    }
    
    .countdown {
        gap: 0.75rem;
    }
    
    .countdown-item {
        min-width: 75px;
        padding: 1rem;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    .info-section {
        padding: 1.5rem 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .rsvp-button {
        padding: 0.875rem 2rem;
        font-size: 1.1rem;
    }
    
    .activity-category {
        padding: 0.75rem;
    }

    .lodging-table thead {
        display: none;
    }

    .lodging-table,
    .lodging-table tbody,
    .lodging-table tr,
    .lodging-table td {
        display: block;
    }

    .lodging-table tr {
        padding: 0.65rem 0;
        border-bottom: 1px solid rgba(156, 175, 136, 0.15);
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .lodging-table tr:last-child {
        border-bottom: none;
    }

    .lodging-table td {
        padding: 0;
    }

    .lodging-table td:nth-child(2)::after {
        content: ' — ';
    }

    .couple-names {
        font-size: 1.75rem !important;
    }
}

/* Print Styles */
@media print {
    .background-wrapper {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .rsvp-button {
        background: white;
        color: var(--color-sage);
        border: 2px solid var(--color-sage);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
a:focus,
button:focus {
    outline: 2px solid var(--color-sage);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: var(--color-sage-light);
    color: white;
}