:root {
    --primary-color: #faf7f2; /* Warm Ivory */
    --secondary-color: #f7e7e6; /* Blush Pink */
    --accent-color: #798e79; /* Soft Sage Green */
    --text-color: #4a544a; /* Olive Dark Charcoal */
    --title-font: 'Parisienne', cursive;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Outfit', sans-serif;
}

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

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

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 20px;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: 400;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('banner3.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
}

.hero-content {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    padding: 40px 50px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px; /* Organic round shape */
    animation: fadeIn 2s ease-out;
    max-width: 480px;
    width: 90%;
}

.hero h1 {
    font-family: var(--title-font); /* Cursive Parisienne for the names */
    font-size: 3.5rem;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.hero h1 span {
    display: block;
}

.hero h1 .ampersand {
    font-size: 2.2rem;
    margin: 2px 0;
    color: var(--secondary-color);
}

.hero .subtitle {
    font-family: var(--body-font);
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #f7e7e6;
    margin-top: 10px;
    font-weight: 400;
}

.hero .divider {
    width: 50px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    margin: 15px auto;
}

/* Countdown Timer */
.countdown-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px auto;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 10px 5px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-val {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    font-weight: 500;
    display: block;
    color: #fff;
}

.countdown-lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.hero .date {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-top: 10px;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 50px;
    font-family: var(--heading-font);
    color: var(--accent-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '✿'; /* Tiny botanical flower separator */
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Our Story */
.story {
    background-color: var(--secondary-color);
}

.story .container {
    background-color: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(121, 142, 121, 0.05);
    padding: 60px 40px;
}

.story-text {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
}

.story-text p {
    margin-bottom: 20px;
}

.story-text p:last-child {
    margin-bottom: 0;
}

/* Gallery */
.gallery {
    background-color: var(--primary-color);
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    padding: 15px 0; /* Ensures hover scale / shadow is not cut off */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track .photo-item {
    flex: 0 0 calc(33.333% - 14px); /* 3 items per screen on desktop */
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(121, 142, 121, 0.08);
    height: 350px;
    transition: box-shadow 0.3s ease;
}

.carousel-track .photo-item:hover {
    box-shadow: 0 12px 30px rgba(121, 142, 121, 0.15);
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid rgba(121, 142, 121, 0.2);
    color: var(--accent-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.carousel-nav-btn:hover {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(121, 142, 121, 0.2);
}

.carousel-nav-btn.prev-btn {
    left: -24px;
}

.carousel-nav-btn.next-btn {
    right: -24px;
}

/* Responsive carousel adjustments */
@media (max-width: 900px) {
    .carousel-track .photo-item {
        flex: 0 0 calc(50% - 10px); /* 2 items per screen on tablets */
        height: 300px;
    }
    .carousel-nav-btn.prev-btn {
        left: -12px;
    }
    .carousel-nav-btn.next-btn {
        right: -12px;
    }
}

@media (max-width: 600px) {
    .carousel-track .photo-item {
        flex: 0 0 100%; /* 1 item per screen on mobile */
        height: 280px;
    }
    .carousel-nav-btn {
        display: none; /* Hide buttons on mobile to encourage touch swipe */
    }
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-item:hover img {
    transform: scale(1.06);
}

/* Event Section */
.event {
    background-color: var(--primary-color);
}

.event-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.event-card {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(121, 142, 121, 0.05);
    border: 1px solid rgba(121, 142, 121, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(121, 142, 121, 0.12);
}

.event-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.event-icon svg {
    width: 28px;
    height: 28px;
}

.event-card h3 {
    font-size: 1.6rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-family: var(--heading-font);
}

.event-detail {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.event-address {
    font-size: 0.95rem;
    color: #778477;
    margin-bottom: 25px;
}

.maps-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-family: var(--body-font);
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: auto;
}

.maps-btn:hover {
    background-color: #617361;
    transform: translateY(-2px);
}

.btn-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.maps-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.event-dress-desc {
    font-size: 1.05rem;
    margin-bottom: 25px;
    color: var(--text-color);
    max-width: 320px;
}

.dress-tips {
    display: flex;
    gap: 20px;
    text-align: left;
    width: 100%;
}

.dress-tip-col {
    flex: 1;
    background: var(--primary-color);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(121, 142, 121, 0.05);
}

.dress-tip-col h4 {
    font-family: var(--heading-font);
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
    text-align: center;
}

.dress-tip-col p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .event-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-card {
        padding: 30px 20px;
    }
    
    .dress-tips {
        flex-direction: column;
        gap: 15px;
    }
}

/* Gifts Section */
.gifts {
    background-color: var(--secondary-color);
}

.gift-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.pix-card {
    background: #fff;
    padding: 35px;
    border-radius: 24px; /* Matches botanical design */
    box-shadow: 0 10px 30px rgba(121, 142, 121, 0.06);
    margin: 40px auto;
    max-width: 400px;
    border: 1px solid rgba(121, 142, 121, 0.1);
}

.pix-card h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: var(--accent-color);
    font-family: var(--heading-font);
}

.pix-key {
    font-weight: 500;
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.qr-code {
    margin: 20px 0;
}

.qr-code img {
    max-width: 180px;
    width: 100%;
    height: auto;
    border: 6px solid #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
}

.copy-btn {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-family: var(--body-font);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.copy-btn:hover {
    background-color: #617361;
    transform: translateY(-2px);
}

.thanks-msg {
    font-style: italic;
    margin-top: 20px;
    color: #778477;
}

/* Footer */
footer {
    padding: 40px 20px;
    text-align: center;
    background-color: var(--secondary-color);
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero-content {
        padding: 30px 20px;
    }
    .countdown-container {
        gap: 8px;
    }
    .countdown-val {
        font-size: 1.1rem;
    }
    .countdown-lbl {
        font-size: 0.55rem;
    }
    .story .container {
        padding: 40px 20px;
    }
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 20, 15, 0.85); /* Sage olive-green tint dark overlay */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    object-fit: contain;
    opacity: 0;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

#lightbox-img.loaded {
    opacity: 1;
    transform: scale(1);
}

/* Spinner styling */
.lightbox-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    border-top-color: var(--secondary-color); /* Blush Pink spinner track */
    border-right-color: var(--accent-color); /* Sage Green accents */
    animation: lightbox-spin 0.8s linear infinite;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10050;
}

.lightbox.loading .lightbox-spinner {
    opacity: 1;
}

@keyframes lightbox-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10100;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
}

.lightbox-close:hover {
    color: #fff;
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10100;
    user-select: none;
}

.lightbox-nav:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.08);
}

/* Nav Icons styles and micro-interaction animations */
.lightbox-nav-icon {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    display: block;
    transition: transform 0.2s ease;
}

.lightbox-prev:hover .lightbox-nav-icon {
    transform: translateX(-2px);
}

.lightbox-next:hover .lightbox-nav-icon {
    transform: translateX(2px);
}

.carousel-nav-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    display: block;
    transition: transform 0.2s ease;
}

.prev-btn:hover .carousel-nav-icon {
    transform: translateX(-2px);
}

.next-btn:hover .carousel-nav-icon {
    transform: translateX(2px);
}

.lightbox-prev {
    left: -90px;
}

.lightbox-next {
    right: -90px;
}

/* Lightbox Responsive */
@media (max-width: 992px) {
    .lightbox-prev {
        left: -70px;
    }
    .lightbox-next {
        right: -70px;
    }
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
    }
    .lightbox-nav {
        width: 45px;
        height: 45px;
        background: rgba(0, 0, 0, 0.4);
    }
    .lightbox-nav-icon {
        width: 20px;
        height: 20px;
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
}

/* Celular em modo deitado (mobile landscape adjustments) */
@media (max-height: 550px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 20px 10px;
    }
    .hero-content {
        padding: 12px 25px;
        max-width: 360px;
        border-radius: 16px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero h1 .ampersand {
        font-size: 1.1rem;
        margin: 0;
    }
    .hero .subtitle {
        font-size: 0.7rem;
        letter-spacing: 2px;
        margin-top: 2px;
    }
    .hero .divider {
        margin: 5px auto;
    }
    .countdown-container {
        margin: 5px auto;
        gap: 5px;
    }
    .countdown-item {
        padding: 4px 1px;
        border-radius: 8px;
    }
    .countdown-val {
        font-size: 0.95rem;
    }
    .countdown-lbl {
        font-size: 0.5rem;
    }
    .hero .date {
        font-size: 0.8rem;
        margin-top: 3px;
        letter-spacing: 1.5px;
        line-height: 1.4;
    }
}

