/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    --primary: #758173;      /* Sage Green */
    --primary-light: #a9b5a7;
    --secondary: #c9b49b;    /* Sand / Beige */
    --bg-color: #F8F5F2;     /* Ivory/Off-white */
    --bg-light: #FFFFFF;
    --text-main: #4A4036;    /* Earthy Dark Brown */
    --text-muted: #8b837c;
    --border-color: #e5dfd8;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    --radius: 12px;
    --shadow: 0 10px 30px rgba(74, 64, 54, 0.08);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Layout & Reusable Components
   ========================================================================== */
.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.section-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(117, 129, 115, 0.3);
}

.btn-primary:hover {
    background-color: #5c685b;
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Stunning unsplash floral/bohemian background */
    background-image: url('https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker gradient for elegant contrast */
    background: linear-gradient(to bottom, rgba(74, 64, 54, 0.3) 0%, rgba(74, 64, 54, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 50px;
    /* Glassmorphism effect */
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 25px 45px rgba(0,0,0,0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-width: 90%;
}

.hero .subtitle {
    font-size: 1rem;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero .names {
    font-size: 4.5rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-style: italic;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero .names span {
    font-size: 3.5rem;
    color: var(--secondary);
    font-style: normal;
}

.hero .date {
    font-size: 1.3rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--primary);
    animation: bounce 2s infinite;
    z-index: 3;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* ==========================================================================
   Invitation Message
   ========================================================================== */
.invitation-msg h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.invitation-msg .msg-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-main);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.parents {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.family {
    text-align: center;
}

.family span {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.family p {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-main);
}

/* ==========================================================================
   Details Section
   ========================================================================== */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.detail-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 5px solid var(--secondary);
    transition: var(--transition);
}

.detail-card:hover {
    transform: translateY(-5px);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary);
}

.detail-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.detail-card p {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.detail-card .btn {
    margin-top: 20px;
}

/* ==========================================================================
   Countdown Section
   ========================================================================== */
.countdown-section h2 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 40px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.time-box {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    width: 100px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.time-box span {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 5px;
}

.time-box p {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* ==========================================================================
   Agenda / Timeline
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 40px auto 0;
}

/* Center Line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--secondary);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 50%;
    padding-right: 40px;
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-right: 0;
    padding-left: 40px;
    text-align: left;
}

/* The Dot */
.timeline-item::after {
    content: '';
    position: absolute;
    top: 10px;
    right: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--secondary);
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

.timeline-item .time {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.timeline-item .content {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.timeline-item .content h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.timeline-item .content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ==========================================================================
   RSVP Section
   ========================================================================== */
.rsvp-note {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: left;
    border-top: 5px solid var(--primary);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    background-color: #fcfbf9;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(117, 129, 115, 0.1);
}

.form-message {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}
.form-message.success { color: var(--primary); }
.form-message.error { color: #d9534f; }

/* ==========================================================================
   Notes Section
   ========================================================================== */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.note-item {
    padding: 20px;
    text-align: center;
}

.note-item i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.note-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.note-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: var(--primary);
    color: #fff;
    padding: 60px 0 30px;
    text-align: center;
}

footer h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-style: italic;
}

footer h2 span {
    color: var(--secondary);
}

footer p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.8;
}

.brand {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    font-size: 0.9rem;
}

.brand a {
    color: #fff;
    opacity: 0.7;
    letter-spacing: 1px;
}

.brand a:hover {
    opacity: 1;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .hero .names { font-size: 3rem; }
    .hero .names span { font-size: 2rem; }
    .section-padding { padding: 50px 0; }
    .section-title { font-size: 2rem; }
    
    .timeline::before { left: 20px; }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px !important;
        padding-right: 0 !important;
        text-align: left !important;
        left: 0 !important;
    }
    
    .timeline-item::after,
    .timeline-item:nth-child(even):after {
        left: 12px;
    }
    
    .parents { gap: 30px; flex-direction: column; }
    
    .countdown { gap: 10px; }
    .time-box { width: 80px; padding: 15px 10px; }
    .time-box span { font-size: 1.8rem; }
}

/* ==========================================================================
   Action Buttons (Calendar & Map)
   ========================================================================== */
.action-buttons-section {
    padding: 40px 0;
    position: relative;
    z-index: 10;
}
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
}
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.3s ease;
    background: rgba(128, 128, 128, 0.1);
    color: inherit;
    border: 1px solid currentColor;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.btn-action:hover {
    background: rgba(128, 128, 128, 0.3);
    transform: translateY(-3px);
}
.btn-action i {
    font-size: 1.3rem;
}

.map-link-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(0,0,0,0.05);
    color: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none !important;
    border: 1px solid currentColor;
    transition: all 0.3s ease;
}
.map-link-inline:hover {
    background: rgba(0,0,0,0.1);
}
