/* 
   ANA & ANDERSON WEDDING WEBSITE
   Modern Elegant Design System
*/

/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.cdnfonts.com/css/lacheyard-script-personal-use');

:root {
    /* Color Palette */
    --clr-bg-main: #f8f4f0;
    /* Cleaner off-white/beige */
    --clr-bg-alt: #eee5db;
    /* Softer alternate */
    --clr-card: #FAF7F2;
    --clr-border: #d6c6b8;
    --clr-text-main: #1D1B19;
    /* Deeper contrast */
    --clr-text-sub: #5c544d;
    --clr-accent: #7a8c6a;
    /* More sophisticated green */
    --clr-element-1: #D9C0A8;
    --clr-element-2: #B58C6A;
    --clr-white: #ffffff;
    --clr-overlay: rgba(0, 0, 0, 0.45);
    /* Darker for better text contrast */

    /* Fonts */
    --font-titles: 'Lacheyard Script PERSONAL USE', cursive;
    --font-ui: 'Poppins', sans-serif;

    /* Spacing & Transitions */
    --border-radius: 16px;
    /* Slightly smoother */
    --border-radius-pill: 50px;
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --container-width: 1100px;
    --section-padding: 140px 25px;
    /* Ultra-breathable luxury padding */
    --element-gap: 50px;
    --transition-smooth: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
    /* Previne zoom no iOS >= 10 via gesture caso o user-scalable=no falhe */
    touch-action: pan-x pan-y;
}

body.loading {
    overflow: hidden !important;
}

body {
    background-color: var(--clr-bg-main);
    color: var(--clr-text-main);
    font-family: var(--font-ui);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
}

h1,
h2,
h3,
.font-romantic {
    font-family: var(--font-titles);
}

h2 {
    font-size: 4rem;
    margin-bottom: 4rem;
    /* More space after title */
    color: var(--clr-text-main);
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--clr-accent);
    opacity: 0.4;
}

p {
    font-size: 1.1rem;
    color: var(--clr-text-sub);
    font-weight: 400;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--border-radius);
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.section-alt {
    background-color: var(--clr-bg-alt);
}

.grid {
    display: grid;
    gap: var(--element-gap);
}

.flex {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 0;
    box-shadow: var(--glass-shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0;
    transition: var(--transition-smooth);
}

.nav-logo-icon {
    height: 48px;
    width: auto;
    border-radius: 0;
    display: block;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    filter: brightness(0) invert(1); /* branco (embora oculto no topo) */
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-logo-text {
    height: 34px;
    width: auto;
    border-radius: 0;
    display: block;
    /* Invisible and taking no space when top */
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    filter: brightness(0) invert(1);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.navbar.scrolled .nav-logo {
    gap: 15px;
}

.navbar.scrolled .nav-logo-icon,
.navbar.scrolled .nav-logo-text {
    filter: none; /* A cor rosa original das imagens */
}

.navbar.scrolled .nav-logo-icon {
    opacity: 1;
    max-width: 100px;
}

.navbar.scrolled .nav-logo-text {
    opacity: 1;
    max-width: 300px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    color: var(--clr-white);
    /* White in hero */
}

.navbar.scrolled .nav-links a {
    color: var(--clr-text-main);
    /* Dark on scroll */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-accent);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    /* For Ken Burns effect */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--clr-white);
    position: relative;
    padding: 100px 20px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)), url('assets/B&A-206.jpeg') center/cover no-repeat;
    z-index: 1;
    animation: kenBurns 30s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
    pointer-events: none;
}

@keyframes kenBurns {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1.2);
    }
}

.hero-content {
    max-width: 1000px;
    z-index: 3;
    padding: 0 20px;
}

/* Brasão.png no hero */
.hero-brasao-img {
    height: 130px;
    width: auto;
    display: block;
    margin: 0 auto 15px auto;
    border-radius: 0;
    filter: brightness(0) invert(1) drop-shadow(0 4px 10px rgba(0,0,0,0.4));
    animation: fadeInDown 2s ease, float 6s ease-in-out infinite;
}

.hero h1 {
    margin-bottom: 10px;
    line-height: 1;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    animation: fadeInDown 2s ease, float 6s ease-in-out infinite;
    /* Remove gradient clip — now uses image */
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
}

/* Nome.png no hero */
.hero-nome-img {
    max-width: min(520px, 85vw);
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 0;
    filter: brightness(0) invert(1) drop-shadow(0 6px 20px rgba(0,0,0,0.5));
}

.hero .heart-icon {
    display: inline-block;
    color: #e76f51;
    /* Soft romantic red/coral */
    font-size: 0.7em;
    vertical-align: middle;
    margin: 0 10px;
    animation: heartPulse 2s infinite;
}

.hero .date {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing: 6px;
    /* Wider for elegance */
    text-transform: uppercase;
    animation: fadeInUp 1.5s ease;
    opacity: 0.9;
}

/* Animations */
@keyframes heartPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 3.5rem;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 25px;
    border-radius: var(--border-radius);
    min-width: 95px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    color: var(--clr-white);
}

.countdown-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* Buttons */
.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: var(--clr-white);
    box-shadow: 0 4px 15px rgba(143, 160, 124, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(143, 160, 124, 0.6);
}

.btn-floating {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background: rgba(143, 160, 124, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: none;
    /* Hide by default, show on scroll in JS */
}

.btn-floating.visible {
    display: inline-block;
    animation: fadeInUpCenter 0.5s ease forwards;
}

.btn-floating:hover {
    transform: translate(-50%, -3px);
}

@keyframes fadeInUpCenter {
    from {
        opacity: 0;
        transform: translate(-50%, 30px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.scroll-down span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.scroll-down .arrow {
    width: 1px;
    height: 60px;
    background: linear-gradient(transparent, white);
    position: relative;
    overflow: hidden;
}

.scroll-down .arrow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    animation: scrollArrow 2s infinite;
}

@keyframes scrollArrow {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* Intro Section */
.intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro p {
    font-size: 1.4rem;
    font-style: italic;
}

/* O Casal */
.casal-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 40px;
}

.casal-text {
    padding: 20px;
}

.casal-carousel {
    position: relative;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    color: var(--clr-accent);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background 0.3s, color 0.3s;
}

.carousel-btn:hover {
    background: var(--clr-accent);
    color: #fff;
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.casal-images {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 15px;
    padding-bottom: 12px;
    border-radius: 15px;
    -webkit-overflow-scrolling: touch;
}

.casal-images::-webkit-scrollbar {
    height: 6px;
}

.casal-images::-webkit-scrollbar-thumb {
    background: var(--clr-accent);
    border-radius: 3px;
}

.casal-images img {
    flex: 0 0 100%;
    width: 100%;
    height: 520px;
    object-fit: cover;
    scroll-snap-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Padrinhos */
.padrinhos-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    text-align: center;
}

.padrinho-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.padrinho-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.6);
}

.padrinho-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid var(--clr-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.padrinho-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.padrinho-card:hover .padrinho-img img {
    transform: scale(1.1);
}

.padrinho-card h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.split-section.reverse {
    direction: rtl;
    /* Simple way to swap columns */
}

.split-section.reverse .split-content {
    direction: ltr;
    /* Reset text direction */
}


.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 700px;
    /* Taller for more impact */
}

.split-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.split-content {
    background: var(--clr-white);
    padding: 100px 80px;
    /* Massive internal padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-item {
    margin-bottom: 25px;
}

.info-item h4 {
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--clr-accent);
    margin-bottom: 5px;
}

/* Registry Section */
.presentes-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.gift-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.gift-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

.gift-card h3 {
    font-family: var(--font-ui);
    margin-bottom: 15px;
}

/* RSVP Form */
.rsvp-container {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--glass-shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--clr-accent);
}

/* Attendance Toggle Buttons */
.attendance-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.attendance-radio {
    display: none;
}

.attendance-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    text-align: center;
    background: var(--clr-white);
    border: 2px solid var(--clr-border);
    color: var(--clr-text-sub);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.attendance-btn:hover {
    border-color: var(--clr-accent);
    background: rgba(122, 140, 106, 0.05);
}

#attendance-yes:checked + .attendance-btn {
    background: var(--clr-accent);
    color: var(--clr-white);
    border-color: var(--clr-accent);
    box-shadow: 0 4px 15px rgba(122, 140, 106, 0.3);
}

#attendance-no:checked + .attendance-btn {
    background: #a5a5a5;
    color: var(--clr-white);
    border-color: #a5a5a5;
    box-shadow: 0 4px 15px rgba(165, 165, 165, 0.3);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Invitation Overlay Styles */
.invitation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    background-color: var(--clr-bg-main);
    background-image: url('https://www.transparenttextures.com/patterns/linen.png');
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    z-index: 10001;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
}

.invitation-overlay.opened {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.invitation-box {
    margin: auto;
    background: linear-gradient(135deg, #ffffff 0%, #fefcf9 100%);
    padding: 70px 40px;
    /* More impact */
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: bounceIn 1.2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    /* Reduced gap */
}

/* Ribbon and Seal */
.ribbon-horizontal {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* Positioned perfectly in center */
    left: 0;
    width: 100%;
    height: 48px;
    background: linear-gradient(to bottom, #bd9c6a 0%, #dfc39a 30%, #a8844f 80%, #8e6c38 100%); /* Elegant gold silk */
    z-index: 10;
    transition: transform 1.2s cubic-bezier(1, 0, 0, 1), opacity 0.8s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.wax-seal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85px;
    height: 85px;
    background: radial-gradient(circle at 35% 35%, #f4b6c3, #e190a2 50%, #c66f83); /* Rosa mais claro */
    border-radius: 50%;
    z-index: 11;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), inset -2px -4px 8px rgba(0,0,0,0.4), inset 2px 4px 8px rgba(255,255,255,0.2);
    border: none;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.wax-seal span {
    color: #f1e1d1;
    font-size: 1rem;
    font-weight: 800;
    font-family: var(--font-ui);
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Unboxing States */
.invitation-overlay.unwrapping .ribbon-horizontal {
    transform: translateY(-50%) scaleX(0);
    /* Hide ribbon */
    opacity: 0;
}

.invitation-overlay.unwrapping .wax-seal {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
}

.invitation-box::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid var(--clr-accent);
    pointer-events: none;
    opacity: 0.3;
}
.invitation-box::after {
    content: '';
    position: absolute;
    top: 22px;
    left: 22px;
    right: 22px;
    bottom: 22px;
    border: 1px solid var(--clr-accent);
    pointer-events: none;
    opacity: 0.15;
}

.box-content {
    display: contents;
    /* Allow children to follow box-flex */
}

.monogram {
    font-family: var(--font-titles);
    font-size: 3.5rem;
    /* Smaller monogram */
    color: var(--clr-accent);
    margin-bottom: 30px;
    /* Reduced buffer */
    transition: transform 1s ease;
}

.invitation-box h2 {
    font-family: var(--font-ui);
    font-weight: 300;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-top: 35px;
    /* Reduced buffer */
    margin-bottom: 10px;
    color: var(--clr-text-main);
}

.invitation-box p {
    font-family: var(--font-titles);
    font-size: clamp(1.4rem, 6.5vw, 2.3rem);
    white-space: nowrap;
    color: var(--clr-accent);
    margin-bottom: 20px;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    70% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

/* Footer */
footer {
    padding: 50px 20px;
    text-align: center;
    background: var(--clr-text-main);
    color: var(--clr-white);
}

/* Falling Petals Effect */
.petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
}

.petal {
    position: absolute;
    background: #f8e1e1;
    /* Soft pink petal */
    border-radius: 150% 0 150% 0;
    opacity: 0.6;
    animation: fall 10s linear forwards infinite;
}

@keyframes fall {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg);
    }

    100% {
        top: 110%;
        transform: translateX(100px) rotate(360deg);
    }
}

/* Floral Ornaments */
.floral-ornament {
    position: absolute;
    width: 250px;
    height: 250px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23CBB39A' d='M461.6 446.7l-44.2-26c-8.5-4.9-13.9-14.1-13.9-24V339c0-13.2-10.8-24-24-24H289.4c-8.1 0-15.8-3.4-21.3-9.4l-31.4-34.8c-5.5-6.1-5.5-15.4 0-21.5l31.4-34.8c5.4-6 13.1-9.4 21.3-9.4H379.4c13.2 0 24-10.8 24-24V115.3c0-9.9 5.4-19.1 13.9-24l44.2-26c8.5-5 13.9-14.1 13.9-24V16c0-8.8-7.2-16-16-16H432C343.6 0 272 71.6 272 160v64c0 13.2-10.8 24-24 24h-32c-13.2 0-24-10.8-24-24V160c0-88.4-71.6-160-160-160H16C7.2 0 0 7.2 0 16v25.3c0 9.9 5.4 19.1 13.9 24l44.2 26c8.5 4.9 13.9 14.1 13.9 24V115.3c0 13.2 10.8 24 24 24H187.6c8.1 0 15.8 3.4 21.3 9.4l31.4 34.8c5.5 6.1 5.5 15.4 0 21.5l-31.4 34.8c-5.4 6-13.1 9.4-21.3 9.4H87.6c-13.2 0-24 10.8-24 24V115.3c0-9.9-5.4-19.1-13.9-24l-44.2-26C1.1 60.4 1.1 51.2 1.1 41.3V16'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.2;
    /* Subtle presence */
    pointer-events: none;
    z-index: 1;
}

.floral-ornament.top-right {
    top: -50px;
    right: -50px;
}

.floral-ornament.bottom-left {
    bottom: -50px;
    left: -50px;
    transform: rotate(180deg);
}

/* Modal Lista de Presentes */
.modal {
    display: none;
    position: fixed;
    z-index: 10005;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    animation: bounceIn 0.5s ease;
}

.modal-content {
    background-color: var(--clr-white);
    padding: 15px;
    padding-top: 50px;
    border-radius: var(--border-radius);
    max-width: 95vw;
    max-height: 95vh;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    font-weight: 700;
    color: var(--clr-text-main);
    cursor: pointer;
    background: var(--clr-bg-alt);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

.lista-img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 992px) {
    .split-section {
        grid-template-columns: 1fr;
    }

    .split-section.reverse {
        flex-direction: column-reverse;
        /* Reorder in HTML instead */
    }

    .casal-grid {
        grid-template-columns: 1fr;
    }

    .casal-images {
        margin-bottom: 30px;
    }

    .casal-images img {
        height: 380px;
    }

    h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Add hamburger later if needed */
    }

    .hero h1 {
        font-size: 4rem;
    }

    .countdown {
        gap: 10px;
    }

    .countdown-item {
        min-width: 70px;
        padding: 10px;
    }

    .section {
        padding: 60px 20px;
    }
}