/* Custom Properties & Reset */
:root {
    --primary-color: #2e4a2a;
    /* Dark green */
    --secondary-color: #8fbc8f;
    /* Lighter green */
    --accent-color: #fdf5c9;
    /* Lighter butter yellow */
    --text-color: #333333;
    --light-text: #666666;
    --bg-color: #faf9f6;
    /* Off-White */
    --white: #FFFFFF;

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;

    --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-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 120px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 60px;
    font-weight: 600;
}

/* Typography Details */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(46, 74, 42, 0.3);
}

.btn-primary:hover {
    background-color: #1e331c;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 74, 42, 0.4);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
    width: 100%;
    margin-top: 20px;
}

.btn-secondary:hover {
    background-color: #1e331c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 74, 42, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: var(--transition);
    z-index: 1000;
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 50px;
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a {
    color: var(--primary-color);
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
}

.ampersand {
    font-style: italic;
    color: var(--accent-color);
    font-weight: 400;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 6px;
    transition: var(--transition);
}

/* Hero Section */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
}

.hero-background::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--bg-color));
    pointer-events: none;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    color: var(--primary-color);
    position: relative;
}

.hero-content {
    width: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 100vh;
    /* Pushes content completely below the 100vh image */
    background-color: var(--bg-color);
    padding: 80px 20px;
}

.hero .subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 25px;
    font-weight: 300;
    color: var(--light-text);
}

.hero .names {
    font-size: 7.5rem;
    margin-bottom: 25px;
    line-height: 1;
    color: var(--primary-color);
    font-weight: 400;
}

.hero .names br {
    display: none;
}

.hero .date {
    font-size: 1.25rem;
    margin-bottom: 45px;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--light-text);
}

/* Details Section */
.details {
    background: linear-gradient(to bottom, var(--bg-color) 0%, var(--accent-color) 15%, var(--accent-color) 85%, #faf9f6 100%);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.detail-card {
    background: var(--white);
    padding: 60px 40px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    border-top: 6px solid var(--secondary-color);
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.detail-card .icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.detail-card h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.detail-card p {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.detail-card .time {
    font-weight: 500;
    color: #000000;
    font-size: 1.2rem;
}

/* Guest Manual */
.manual-card {
    background: #fcf9f2;
    /* Paper-like warm off-white */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
    padding: 80px 60px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    max-width: 850px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.manual-card .section-title {
    font-size: 3rem;
}

.manual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 50px;
    column-gap: 40px;
    padding: 0 20px;
}

.manual-item {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.manual-item .emoji {
    font-size: 2.2rem;
    width: 45px;
    text-align: center;
    opacity: 0.85;
}

.manual-item p {
    font-size: 1.3rem;
    color: var(--text-color);
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
}

/* Countdown */
.countdown {
    background: linear-gradient(to bottom, #faf9f6 0%, #faf9f6 80%, var(--bg-color) 100%);
    color: var(--primary-color);
    text-align: center;
}

.countdown .section-title {
    color: var(--primary-color);
    /* Dark green title instead of white */
}

.timer {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.time-block {
    background: var(--white);
    padding: 30px 40px;
    border-radius: 12px;
    min-width: 140px;
    box-shadow: 0 8px 32px rgba(46, 74, 42, 0.08);
}

.time-block .number {
    display: block;
    font-size: 4rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 500;
    line-height: 1;
    margin-bottom: 5px;
}

.time-block .label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
    color: var(--light-text);
}

/* RSVP */
.rsvp {
    background: linear-gradient(to bottom, var(--bg-color) 0%, var(--bg-color) 75%, #fdf5c9 100%);
}

.rsvp-card {
    background: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 70px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.rsvp-card p {
    margin-bottom: 45px;
    color: var(--light-text);
    font-size: 1.1rem;
}

.form {
    text-align: left;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #FAFAFA;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(74, 93, 35, 0.15);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: #fdf5c9;
    /* Lighter Butter Yellow */
    color: var(--primary-color);
    text-align: center;
    padding: 80px 20px;
}

.verse-container {
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.bible-verse {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 15px;
}

.verse-reference {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    font-weight: 600;
}

.footer-names {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 1px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .hero .names {
        font-size: 5.5rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .navbar {
        padding: 20px;
    }

    .navbar.scrolled {
        padding: 15px 20px;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links.active a {
        color: var(--primary-color);
        font-size: 1.4rem;
    }

    .hero-background {
        height: 60vh;
        /* Reduz a altura da imagem no celular para ela não cortar tanto pros lados */
    }

    .hero-image {
        object-position: center center;
        /* Centraliza a imagem no celular */
    }

    .hero-content {
        margin-top: 60vh;
        /* Ajusta o texto para começar logo abaixo da imagem nova */
    }

    .hero .names {
        font-size: 4.5rem;
        line-height: 1.2;
    }

    .hero .names br {
        display: block;
        /* Show ampersand on new line on mobile */
    }

    .hero .subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 2.8rem;
        margin-bottom: 40px;
    }

    .rsvp-card {
        padding: 40px 25px;
    }

    .manual-grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
        padding: 0;
    }

    .manual-card {
        padding: 50px 30px;
    }

    .manual-card .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px !important;
    }

    .time-block {
        min-width: 100px;
        padding: 20px 15px;
    }

    .time-block .number {
        font-size: 2.5rem;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}