/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-offwhite: #F4EFE9;
    /* Fundo Geral */
    --bg-green-soft: #EEF3EB;
    /* Softest Watercolor Green */
    --bg-green-sage: #DCE5D8;
    /* Slightly more Sage Green */
    --bg-green-leaf: #E6EDE3;
    /* A medium Leaf Green */
    --green-moss: #4A5E3F;
    --green-dark: #2F3D2A;
    --green-deep: #415439;
    /* Deep Forest Green */
    --text-body: #6B6358;
    --text-dark: #5C4A3A;
    --sand-gold: #B8956A;
    --white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-body);
    /* The main background is now the solid Off-White color */
    background-color: var(--bg-offwhite);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Paper texture as a subtle detail overlay - restored as requested */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    /* Texture image from assets */
    background-image: url('assets/paper-texture.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Low opacity so it's just a detail, not the focus */
    opacity: 0.12;
    /* Blend mode helps it sit naturally on the backgrounds */
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 9999;
    /* Overlay everything smoothly */
}

/* Ensure all content stays above the overlay */
nav,
section,
footer {
    position: relative;
    z-index: 10;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
.section-title,
.assinatura,
.dress-title,
.hotel-name {
    font-family: 'Cormorant Garamond', serif;
    color: var(--green-dark);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 30px;
    /* Reduced from 40px */
    letter-spacing: 1px;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white) !important;
}

.mb-1 {
    margin-bottom: 15px;
}

.mb-2 {
    margin-bottom: 30px;
}

.mb-3 {
    margin-bottom: 45px;
}

.mt-1 {
    margin-top: 15px;
}

.mt-2 {
    margin-top: 30px;
}

.text-sm {
    font-size: 0.9rem;
}

/* LAYOUT */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* SECTION SEPARATION - RICHER WATERCOLOR PALETTE */
#mensagem {
    background-color: var(--bg-offwhite);
}

#grande-dia {
    background-color: var(--bg-offwhite);
}

#como-chegar {
    background-color: var(--green-deep);
}

#hospedagem {
    background-color: var(--bg-offwhite);
}

#presentes {
    background-color: var(--green-deep);
}

#rsvp {
    background-color: var(--bg-offwhite);
}

.site-footer {
    background-color: var(--green-deep);
}

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

#grande-dia.sec-padding {
    padding: 40px 0;
    /* Compact padding to fit screen */
}

.section-title {
    position: relative;
    display: block;
    /* Back to block */
    text-align: center;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sand-gold), transparent);
}

/* Section Titles for dark backgrounds */
#como-chegar .section-title {
    color: var(--white);
}

#como-chegar .section-title::after {
    background: linear-gradient(90deg, transparent, var(--sand-gold), transparent);
}

#como-chegar .section-subtitle,
#como-chegar .map-footer-text {
    color: rgba(255, 255, 255, 0.95);
}

/* Strong contrast for #presentes background */
#presentes .section-title {
    color: #ffffff !important;
}

#presentes .section-title::after {
    background: linear-gradient(90deg, transparent, var(--sand-gold), transparent) !important;
}

#presentes .section-subtitle {
    color: #ffffff !important;
    opacity: 1 !important;
    font-weight: 400;
}

/* Titles inside white cards should remain dark */
.premium-hotel-card .section-title,
.premium-rsvp-card .section-title,
.rsvp-split-layout .section-title {
    color: var(--green-moss);
}

/* Reset O Grande Dia styling for Off-White background */
#grande-dia .section-title {
    font-family: 'Alex Brush', cursive;
    font-size: 3.8rem;
    color: var(--green-moss);
    font-weight: 400;
    padding-bottom: 25px;
}

#grande-dia .section-title::after {
    display: block;
    background: linear-gradient(90deg, transparent, var(--sand-gold), transparent);
}

/* Footer text contrast handled below in consolidated footer section */
/* ===== NAVIGATION (NEW CLEAN CONSOLIDATED) ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(244, 239, 233, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    padding: 15px 0;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateY(-100%);
    opacity: 0;
    border-bottom: 1px solid rgba(184, 149, 106, 0.1);
}

nav.visible {
    transform: translateY(0);
    opacity: 1;
}

nav.scrolled {
    padding: 12px 0;
    background-color: rgba(244, 239, 233, 0.98);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    transition: all 0.4s ease;
}

nav a {
    text-decoration: none;
    color: var(--green-dark);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--sand-gold);
}

/* Nav Toggle icon */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 10001;
    padding: 10px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--green-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ===== HERO SECTION (CANVAS AQUARELA) ===== */
.scene {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 80%, rgba(184, 149, 106, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 90%, rgba(74, 94, 63, 0.04) 0%, transparent 50%),
        var(--bg-offwhite);
}

.aquarela-wrap {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.aquarela-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 70%;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease;
    transform: scale(1.02);
    transform-origin: center bottom;
}

#revealCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.monogram-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.monogram-img {
    width: min(340px, 48vw);
    height: auto;
    filter: drop-shadow(0 2px 24px rgba(47, 61, 42, 0.18));
}

.mono-glow {
    position: absolute;
    width: min(500px, 68vw);
    height: min(500px, 68vw);
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(244, 239, 233, 0.92) 0%,
            rgba(244, 239, 233, 0.7) 30%,
            rgba(244, 239, 233, 0.3) 55%,
            transparent 75%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    z-index: 9;
    opacity: 0;
    pointer-events: none;
}

.top-fade {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 15%;
    background: linear-gradient(to bottom, rgba(244, 239, 233, 0.5) 0%, transparent 100%);
    z-index: 5;
    pointer-events: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    z-index: 10;
    animation: bounce 2s infinite;
    opacity: 0;
    transition: opacity 1s ease;
}

.scroll-indicator.visible {
    opacity: 1;
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: var(--green-moss);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

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

    60% {
        transform: translateY(-5px);
    }
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 35px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.btn-gold {
    background-color: var(--sand-gold);
    color: var(--white);
    border: 1px solid var(--sand-gold);
}

.btn-gold:hover {
    background-color: var(--white);
    color: var(--sand-gold);
}

.btn-outline {
    background-color: transparent;
    color: var(--green-dark);
    border: 1px solid var(--green-moss);
}

.btn-outline:hover {
    background-color: var(--green-moss);
    color: var(--white);
}

/* ===== SECTIONS ===== */
/* Letter / Message */
.letter-style {
    max-width: 800px;
    background-color: #fff;
    padding: 80px 60px;
    border: 1px solid rgba(184, 149, 106, 0.15);
    border-radius: 2px;
    box-shadow: 0 15px 45px rgba(92, 74, 58, 0.08);
    /* Shadow for floating paper look */
    position: relative;
    overflow: hidden;
}

/* Intensified texture specifically for the letter card */
.letter-style::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.16'/%3E%3C/svg%3E"),
        linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8));
    pointer-events: none;
    z-index: 1;
}

.letter-style>* {
    position: relative;
    z-index: 2;
}

.letter-greeting {
    font-family: 'Alex Brush', cursive;
    font-size: 3.5rem;
    color: var(--green-moss);
    font-weight: 400;
    /* Ensuring no bolding is applied */
    margin-bottom: 30px;
}

.letter-style p {
    font-size: 1.1rem;
    line-height: 2.1;
    margin-bottom: 25px;
    color: var(--text-dark);
    font-weight: 300;
}

.letter-style .assinatura {
    font-size: 1.6rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-style: italic;
    color: var(--green-moss);
    margin-top: 45px;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== ENVELOPE INTERACTION ===== */
.envelope-wrapper {
    position: relative;
    width: 100%;
    margin: 10px auto 0;
    height: 350px;
    /* Reduced from 400px */
    cursor: pointer;
    z-index: 10;
}

.envelope-back {
    position: absolute;
    inset: 0;
    background-color: var(--green-dark);
    background-image: url('assets/paper-texture.jpg');
    background-size: cover;
    background-blend-mode: multiply;
    border-radius: 6px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    z-index: 1;
    /* Absolute back */
}

.envelope-front {
    position: absolute;
    inset: 0;
    background-color: var(--green-moss);
    background-image: url('assets/paper-texture.jpg');
    background-size: cover;
    background-blend-mode: multiply;
    border-radius: 6px;
    /* Deep V-pocket that overlaps the flap safely */
    clip-path: polygon(0 30%, 50% 60%, 100% 30%, 100% 100%, 0 100%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 50px;
    pointer-events: none;
    z-index: 3;
    /* Always in front of the white card */
    /* Shadow cast from the pocket edge onto the card behind it - restored this as requested */
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.4));
}

.envelope-label-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.envelope-label {
    font-family: 'Alex Brush', cursive;
    font-size: 3.5rem;
    color: var(--sand-gold);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
    line-height: 1.1;
}

.click-hint {
    font-size: 0.9rem;
    color: var(--sand-gold);
    opacity: 0.5;
    margin-top: 5px;
    animation: hintPulse 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.15); }
}

.envelope-wrapper.active .click-hint {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-color: var(--green-moss);
    /* Noticeable lighting gradient to create a darker fold line */
    background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.3)), url('assets/paper-texture.jpg');
    background-size: cover;
    background-blend-mode: multiply;

    /* Perfect triangle reaching 65% depth */
    clip-path: polygon(0 0, 100% 0, 100% 35%, 50% 65%, 0 35%);
    transform-origin: top;

    transform: rotateX(0deg);
    z-index: 4;
    /* Highest layer, covers everything when closed */

    transition: transform 0.5s ease-in-out 0.5s, z-index 0s 0.5s;
    pointer-events: none;
}



/* Click/Toggle Mechanics: SEQUENTIAL ANIMATION */
.envelope-wrapper.active .envelope-flap {
    transform: rotateX(180deg);
    z-index: 1;
    transition: transform 0.5s ease-in-out 0s, z-index 0s 0.25s;
}

.envelope-wrapper.active .card-premium {
    transform: translateY(-130px);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    /* Clickable when open */
    transition: transform 0.5s ease-in-out 0.5s, box-shadow 0.5s ease-in-out 0.5s, pointer-events 0s 1s;
}

/* Premium Insert Card (Off-White) */
.card-premium {
    background-color: var(--bg-offwhite);
    background-image: url('assets/paper-texture.jpg');
    background-size: cover;
    background-blend-mode: multiply;
    padding: 20px 15px 15px;
    border: 1px solid rgba(184, 149, 106, 0.3);
    border-radius: 4px;
    text-align: center;

    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: auto;
    min-height: 330px;
    /* Adjusted to wrapper height */

    transform: translateY(0px);
    z-index: 2;

    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    /* Blocked when inside */
    transition: transform 0.5s ease-in-out 0s, box-shadow 0.5s ease 0s, pointer-events 0s 0.5s;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Elegant inner gold border */
.card-premium::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid rgba(184, 149, 106, 0.4);
    border-radius: 2px;
    pointer-events: none;
}

.card-premium h3 {
    display: none;
    /* We use the envelope-label instead */
}

.card-premium .horario {
    font-size: 0.95rem;
    color: var(--sand-gold);
    margin: 0 0 15px 0;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.card-premium .local {
    font-size: 1.6rem;
    font-weight: 400;
    margin: 0 0 5px 0;
    color: var(--green-moss);
    /* Changed to green for white card */
    font-family: 'Cormorant Garamond', serif;
}

.card-premium .endereco {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 25px;
    color: var(--text-dark);
    /* Changed for readability on white */
    font-weight: 300;
    white-space: nowrap;
}

/* Specific button style for the white premium cards */
.card-premium .btn-outline {
    border-color: var(--green-moss);
    color: var(--green-moss);
}

.card-premium .btn-outline:hover {
    background-color: var(--green-moss);
    color: var(--white);
    border-color: var(--green-moss);
}

/* Dress Code Card */
.dress-code-container {
    margin-top: 40px;
    /* Reduced from 80px to move it up */
    display: flex;
    justify-content: center;
}

.dress-code-card {
    background-color: transparent;
    padding: 0;
    max-width: 620px;
    width: 100%;
    text-align: center;
    border: none;
    position: relative;
    box-shadow: none;
}

.dress-code-card::before {
    display: none;
}

.dress-icon {
    font-size: 1.8rem;
    color: var(--sand-gold);
    margin-bottom: 12px;
    opacity: 0.9;
}

.dress-title {
    font-size: 2.2rem;
    color: var(--green-moss);
    margin: 0 0 15px 0;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

.dress-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sand-gold), transparent);
    margin: 0 auto 20px;
}

.dress-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #2c2c2c;
    max-width: 600px;
    /* Increased to fit text in 2 lines */
    margin: 0 auto;
    font-weight: 400;
}

.map-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .map-grid-layout {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.map-organic-container.no-shadow {
    box-shadow: none;
    border: none;
    /* Removed border as requested */
}

.map-info-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centered as requested */
    text-align: center;
    /* Centered as requested */
    gap: 25px;
}

.map-info-column .map-highlight {
    justify-content: center;
    color: var(--white);
}

.map-info-column .map-actions {
    justify-content: center;
    width: 100%;
}

.map-info-column .map-footer-text {
    max-width: 450px;
    margin: 0 auto;
}

.map-info-column .btn-outline {
    border-color: rgba(255, 255, 255, 0.7);
    /* Increased opacity */
    color: var(--white);
}

.map-info-column .btn-outline i {
    color: var(--white) !important;
    /* Force icons to be white for contrast */
}

.map-info-column .btn-outline:hover {
    background-color: var(--white);
    color: var(--green-deep);
}

.map-info-column .btn-outline:hover i {
    color: var(--green-deep) !important;
}

.map-highlight {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--green-moss);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
    width: 100%;
    /* Ensure full width for centering */
}

.map-highlight i {
    font-size: 1.3rem;
    margin-top: -3px;
}

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

/* Ensure global buttons adapt perfectly inside the map section */
.map-actions .btn {
    padding: 12px 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Center content inside button too */
    gap: 10px;
    min-width: 180px;
    /* Equalized width for symmetry */
}

/* Specific app icon colors when styled as elegant */
.map-actions .btn i.fa-map-marked-alt {
    color: #4285F4;
    /* Google Maps blue hint */
    font-size: 1.2rem;
}

.map-actions .btn:hover i.fa-map-marked-alt {
    color: var(--white);
    /* Turns white on hover like the rest */
}

.map-actions .btn i.fa-waze {
    color: #05C8F2;
    /* Waze bright blue hint */
    font-size: 1.2rem;
}

.map-actions .btn:hover i.fa-waze {
    color: var(--white);
}

.map-footer-text {
    margin-top: 30px;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hospedagem / Hotel Card */
/* Hotel Layout Grid */
.hotel-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 0;
    align-items: stretch;
    width: 100%;
    max-width: none;
    background-color: var(--white);
    overflow: hidden;
    position: relative;
    border: none;
    box-shadow: none;
}

/* Removed inner border as it's not in the reference design */
.hotel-layout-grid::before {
    display: none;
}

@media (min-width: 768px) {
    .hotel-layout-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hotel-image-container {
    height: 100%;
    min-height: 350px;
}

.hotel-img-featured {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hotel-card.premium-hotel-card {
    background-color: var(--white);
    padding: 80px 60px;
    /* Increased padding for full-width look */
    width: 100%;
    margin: 0;
    border: none;
    box-shadow: none;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.premium-hotel-card::before {
    display: none;
}

.premium-hotel-card .section-title {
    font-family: 'Alex Brush', cursive;
    font-size: 3.8rem;
    color: var(--green-moss);
    margin-bottom: 5px;
    /* Proximity as requested */
}

.premium-hotel-card .section-title::after {
    display: none;
}

.hotel-subtitle {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 40px;
    max-width: 800px;
    line-height: 1.6;
}

.hotel-icon {
    font-size: 1.5rem;
    color: var(--sand-gold);
    margin-bottom: 2px;
    opacity: 0.8;
}

.hotel-name {
    font-size: 1.8rem;
    color: var(--green-moss);
    margin: 0 0 10px 0;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

.hotel-divider {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sand-gold), transparent);
    margin: 0 auto 15px;
}

.hotel-team {
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.hotel-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    /* Keep wrap for responsiveness */
    margin-bottom: 25px;
    margin-top: 5px;
}

.hotel-link {
    color: var(--green-moss);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hotel-link:hover {
    color: var(--sand-gold);
}

.hotel-link-sep {
    color: rgba(184, 149, 106, 0.5);
    font-size: 1.2rem;
}

.hotel-disclaimer {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 450px;
    margin: 0 auto;
}

/* Contagem Regressiva */
.countdown-section {
    position: relative;
    padding: 120px 0;
    background-image: url('assets/Aquarela.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.countdown-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(47, 61, 42, 0.85);
    /* Slightly darker for better text contrast */
}

.countdown-content {
    position: relative;
    z-index: 2;
}

.countdown-content h2.section-title {
    color: var(--white);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.time-block {
    background: rgba(255, 255, 255, 0.05);
    /* Very subtle white wash */
    backdrop-filter: blur(12px);
    /* High elegant blur */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(184, 149, 106, 0.5);
    /* Sand-gold thin border */
    border-radius: 4px;
    padding: 30px 20px;
    min-width: 120px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    text-transform: none;
    /* remove overall uppercase inherited if any */
}

/* Subtle corner accents */
.time-block::before,
.time-block::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border: 1px solid rgba(184, 149, 106, 0.8);
    opacity: 0.5;
}

.time-block::before {
    top: 6px;
    left: 6px;
    border-right: none;
    border-bottom: none;
}

.time-block::after {
    bottom: 6px;
    right: 6px;
    border-left: none;
    border-top: none;
}

.time-block span {
    display: block;
    font-size: 4.5rem;
    /* Larger, more majestic numbers */
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--sand-gold);
    /* Gold numerals */
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.time-block label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--white);
    font-weight: 400;
}

/* Lojas Grid & Premium Loja Cards */
.lojas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

@media (min-width: 768px) {
    .premium-loja-card {
        flex: 0 1 350px;
    }
}

.premium-loja-card {
    background-color: var(--white);
    padding: 35px 25px;
    /* Symmetrical padding */
    border: 1px solid rgba(184, 149, 106, 0.4);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.03);
    position: relative;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premium-loja-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.premium-loja-card::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid rgba(184, 149, 106, 0.15);
    pointer-events: none;
}

.loja-icon {
    font-size: 1.6rem;
    color: var(--sand-gold);
    margin-bottom: 5px;
}

.premium-loja-card h4 {
    font-size: 1.5rem;
    color: var(--green-moss);
    margin: 0 0 12px 0;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

.loja-divider {
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sand-gold), transparent);
    margin: 0 auto 20px;
}

/* RSVP e Assessoria Premium */
.rsvp-section {
    background-color: transparent;
    /* Lets the body texture shine through seamlessly */
    padding: 100px 0;
}

.rsvp-split-layout {
    background-color: var(--white);
    padding: 60px 40px;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    border: 1px solid rgba(184, 149, 106, 0.4);
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .rsvp-split-layout {
        grid-template-columns: 1fr 1px 1fr;
        align-items: center;
    }
}

.rsvp-divider-vertical {
    background: linear-gradient(180deg, transparent, var(--sand-gold), transparent);
    width: 1px;
    height: 100%;
    display: none;
}

@media (min-width: 768px) {
    .rsvp-divider-vertical {
        display: block;
    }
}

.rsvp-confirm-col,
.assessoria-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rsvp-top-icon {
    font-size: 2rem;
    color: var(--sand-gold);
    margin-bottom: 20px;
}

.premium-rsvp-card .section-title {
    color: var(--green-moss);
}

.rsvp-subtitle {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.rsvp-btn {
    padding: 15px 40px;
    font-size: 1rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rsvp-divider-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

.rsvp-divider-ornament span {
    height: 1px;
    width: 80px;
    background: linear-gradient(90deg, transparent, var(--sand-gold), transparent);
}

.rsvp-divider-ornament i {
    color: var(--sand-gold);
    font-size: 0.9rem;
    opacity: 0.8;
}

.assessoria-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--green-moss);
    font-weight: 600;
    margin-bottom: 15px;
}

.assessoria-text {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.assessoria-name {
    font-size: 1.1rem;
    color: var(--sand-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 600;
}

.assessoria-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.assessoria-links a {
    text-decoration: none;
    color: var(--green-moss);
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.assessoria-links a:hover {
    color: var(--sand-gold);
}

.assessoria-sep {
    color: rgba(184, 149, 106, 0.5);
}

/* Footer Small & Envelope Colors */
.premium-footer {
    background: var(--green-moss);
    /* Same as envelope front */
    padding: 40px 20px;
    position: relative;
    border-top: none;
}

.footer-monograma {
    width: 50px;
    opacity: 1;
    margin-bottom: 20px;
    filter: brightness(0) invert(1) brightness(100);
    /* Extreme brightness to ensure white despite original color */
}

.footer-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 5px;
    font-weight: 600;
}

.footer-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.footer-hashtag {
    color: var(--sand-gold);
    font-size: 0.95rem;
    margin-bottom: 25px;
    font-weight: 500;
}

.footer-credits {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    border-top: 1px solid rgba(184, 149, 106, 0.3);
    padding-top: 15px;
    max-width: 250px;
    margin: 0 auto;
}

/* ===== MOBILE OVERHAUL (CLEAN & CONSOLIDATED) ===== */
@media (max-width: 992px) {
    .nav-container {
        justify-content: flex-end;
    }

    .nav-toggle {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #F4EFE9;
        /* Removed paper texture */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 10000;
        transition: right 0.5s cubic-bezier(0.22, 1, 0.36, 1);
        visibility: hidden;
        /* Prevent interaction while hidden */
    }

    nav ul.active {
        right: 0;
        visibility: visible;
    }

    nav a {
        font-size: 1.2rem;
        letter-spacing: 2.5px;
    }

    /* Toggle animations */
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
        padding: 0 15px;
        margin-bottom: 30px;
    }

    .sec-padding {
        padding: 40px 0;
    }

    .map-actions {
        flex-direction: column;
        gap: 15px;
        /* Clear vertical spacing for stacked buttons */
        margin-bottom: 10px;
        /* Extra bottom breathing room */
    }

    .map-organic-container {
        padding-bottom: 20px;
    }

    /* Hero Zoom Adjust for Mobile */
    .aquarela-img {
        content: url('assets/Gemini_Generated_Image_lguy6dlguy6dlguy-removebg-preview.png');
        object-fit: cover;
        object-position: center 25%;
        transform: scale(1.0);
    }

    .monogram-wrap {
        width: 190px;
        top: 42%;
    }

    .mono-glow {
        width: 280px;
        height: 280px;
    }

    /* Cards & Containers */
    .container {
        padding: 0 15px;
        max-width: 100%;
        margin: 0 auto;
    }

    .envelope-wrapper.active {
        z-index: 200;
        /* Overlap title when open */
    }

    .letter-style {
        padding: 40px 15px;
        width: 100%;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    }

    .letter-greeting {
        font-size: 2.4rem;
    }

    .letter-style p {
        line-height: 1.7;
        font-size: 0.95rem;
    }

    /* Hotel Links Overflow Fix */
    .hotel-links {
        flex-direction: column;
    }

    .hotel-link-sep {
        display: none;
    }

    .hotel-link {
        font-size: 0.85rem;
        word-break: break-all;
    }

    .premium-hotel-card {
        padding: 30px 15px;
    }

    .envelope-wrapper {
        height: 280px;
        margin: 60px auto 40px;
        /* Increased top margin for more pop-out room */
    }

    .envelope-front {
        padding-bottom: 25px;
        /* Lower labels to avoid the V dip */
    }

    .envelope-label {
        font-size: 2.8rem;
        /* Better scale for mobile front */
    }

    .card-premium {
        height: 250px;
        min-height: auto !important;
        /* Prevent sticking out from global min-height override */
        padding: 20px 10px;
        /* Using auto width with symmetrical left/right to perfectly center it */
        width: auto !important;
        left: 10px;
        right: 10px;
        bottom: 5px;
        top: auto;
        /* Ensure only bottom and height define vertical position */
    }

    .envelope-wrapper.active .card-premium {
        transform: translateY(-150px);
        /* Popped more out */
    }

    .card-premium h3 {
        font-size: 1.25rem;
    }

    .card-premium .endereco {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    /* Countdown */
    .countdown-timer {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 grid as requested */
        gap: 15px;
        max-width: 100%;
        margin: 40px auto 0;
        padding: 0 15px;
    }

    .time-block {
        padding: 20px 10px;
        min-width: 0;
    }

    .time-block span {
        font-size: 2rem;
    }

    .time-block label {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    /* RSVP & Footer & Gifts Compact */
    #presentes.sec-padding {
        padding: 40px 0;
    }

    .premium-loja-card {
        padding: 25px 15px;
    }

    .premium-loja-card h4 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .loja-icon {
        font-size: 1.4rem;
        margin-bottom: 2px;
    }

    .loja-divider {
        margin-bottom: 12px;
    }

    .premium-rsvp-card {
        padding: 40px 15px;
    }

    .footer-monograma {
        width: 70px;
    }

    .footer-names {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .monogram-wrap {
        width: 160px;
    }

    .letter-greeting {
        font-size: 2.1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}