:root {
    /* Color Palette */
    --color-primary: #FDFBF7;
    /* Cream / Off-white background */
    --color-secondary: #8FA691;
    /* Sage Green */
    --color-secondary-dark: #748B76;
    --color-accent: #CFA670;
    /* Muted Gold / Earthy Terracotta */
    --color-text: #4A4A4A;
    /* Dark Gray text */
    --color-heading: #2C3E50;
    /* Darker heading color */
    --color-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-accent: 'Dancing Script', cursive;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-primary);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.container-narrow {
    max-width: 800px;
}

.section {
    padding: var(--spacing-xl) 0;
}

.text-center {
    text-align: center;
}

/* Typography Helpers */
.subheading {
    display: block;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-size: 1.5rem;
    margin-top: 1rem;
}

.divider::before,
.divider::after {
    content: '';
    display: block;
    height: 1px;
    width: 60px;
    background-color: var(--color-secondary);
    margin: 0 15px;
    opacity: 0.5;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(207, 166, 112, 0.4);
}

.btn-primary:hover {
    background-color: #b58d5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(207, 166, 112, 0.6);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-heading);
    letter-spacing: -1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

.nav-link:not(.btn-rsvp)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-rsvp {
    padding: 8px 20px;
    background-color: var(--color-secondary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-rsvp:hover {
    background-color: var(--color-secondary-dark);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-heading);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3)), url('https://images.unsplash.com/photo-1519225421980-715cb0202128?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    /* Placeholder Nature/Travel Wedding Image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-white);
    padding: 0 20px;
}

.hero-date {
    font-family: var(--font-body);
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

.hero-slogan {
    font-family: var(--font-accent);
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    color: var(--color-white);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Story Section */
.story-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.story-text {
    max-width: 700px;
    text-align: center;
    font-size: 1.1rem;
    color: #666;
}

.story-text p {
    margin-bottom: 1.5rem;
}

.story-timeline {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 150px;
    text-align: center;
}

.timeline-item i {
    font-size: 2rem;
    color: var(--color-secondary);
    background: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
    border: 1px dashed var(--color-secondary);
}

.timeline-item span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Wedding Info (Cards) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.info-card {
    background: white;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s;
    border-top: 5px solid var(--color-secondary);
}

.info-card:hover {
    transform: translateY(-5px);
}

.icon-large {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.info-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-card .highlight {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.link-text {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    border-bottom: 1px solid transparent;
}

.link-text:hover {
    border-bottom: 1px solid var(--color-secondary);
}

/* Schedule Section */
.schedule {
    background-color: white;
}

.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

/* Vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    /* Adjust based on time column width */
    top: 0;
    bottom: 0;
    width: 2px;
    background: repeating-linear-gradient(to bottom,
            var(--color-secondary) 0,
            var(--color-secondary) 5px,
            transparent 5px,
            transparent 10px);
}

.timeline-row {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-row:last-child {
    margin-bottom: 0;
}

.time {
    width: 100px;
    font-weight: 700;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-align: right;
    padding-right: 50px;
    /* Spacer for line */
    flex-shrink: 0;
    background: white;
    /* To mask line if needed, but here structure is different */
}

/* Dot on text */
.timeline-row::after {
    content: '';
    position: absolute;
    left: 45px;
    /* On the line */
    top: 10px;
    width: 12px;
    height: 12px;
    background-color: var(--color-accent);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 1px var(--color-accent);
}

.event h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.event p {
    color: #666;
    font-style: italic;
}

/* Details Section */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.detail-item {
    text-align: center;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background-color: rgba(143, 166, 145, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--color-secondary);
    font-size: 2rem;
}

.detail-item h3 {
    margin-bottom: 1rem;
}

.detail-item p {
    margin-bottom: 1rem;
    color: #555;
}

.color-palette {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.color-1 {
    background-color: #FDFBF7;
    border: 1px solid #ddd;
}

.color-2 {
    background-color: #8FA691;
}

.color-3 {
    background-color: #CFA670;
}

.color-4 {
    background-color: #AEC6CF;
}

/* Pastel Blue */


/* RSVP Section */
.rsvp {
    background-color: var(--color-secondary);
    color: white;
    position: relative;
    /* Map pattern overlay if desired */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.rsvp .section-header h2 {
    color: white;
}

.rsvp .subheading {
    color: rgba(255, 255, 255, 0.8);
}

.rsvp .divider {
    color: white;
}

.rsvp .divider::before,
.rsvp .divider::after {
    background-color: white;
}

.rsvp-intro {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.rsvp-form {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    color: var(--color-text);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
textarea:focus {
    border-color: var(--color-secondary);
    outline: none;
}

/* Custom Radio & Checkbox */
.radio-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-container,
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 400;
    user-select: none;
}

.radio-container input,
.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #eee;
    border-radius: 50%;
}

.checkmark-box {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #eee;
    border-radius: 4px;
}

.radio-container:hover input~.checkmark,
.checkbox-container:hover input~.checkmark-box {
    background-color: #ccc;
}

.radio-container input:checked~.checkmark,
.checkbox-container input:checked~.checkmark-box {
    background-color: var(--color-secondary);
}

.checkmark:after,
.checkmark-box:after {
    content: "";
    position: absolute;
    display: none;
}

.radio-container input:checked~.checkmark:after,
.checkbox-container input:checked~.checkmark-box:after {
    display: block;
}

.radio-container .checkmark:after {
    top: 7px;
    left: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.checkbox-container .checkmark-box:after {
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.hidden-input {
    display: none;
    margin-top: 10px;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contacts */
.contact-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    text-align: center;
}

.contact-card h4 {
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.contact-card p {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.contact-card a {
    color: var(--color-text);
    text-decoration: underline;
    text-decoration-color: var(--color-secondary);
}

/* Footer */
footer {
    background-color: #2b3036;
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.made-with {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 1rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--color-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-row .time {
        display: none;
        /* Hide time on very small screens or move it */
    }

    .timeline-row::after {
        left: 15px;
    }

    .timeline-row .event {
        padding-left: 40px;
    }

    .timeline-row {
        flex-direction: column;
    }

    .timeline-row .time {
        display: block;
        text-align: left;
        padding-left: 40px;
        margin-bottom: 5px;
        font-size: 1.2rem;
        width: auto;
    }
}