/* Configurações Globais */
:root {
    --bg-color: #f1dfca; /* Cor de fundo creme mais próxima */
    --text-color: #76512b;
    --accent-color: #7b9e89;
    --border-green: #5c7562; /* Verde das bordas */
    --white: #ffffff;
}

::-webkit-scrollbar { width: 5px; height: 3px; transition:all 0.5s; }
::-webkit-scrollbar-button { width: 0px; height: 0px; }
::-webkit-scrollbar-thumb { background: var(--text-color); border: 0px none transparent; transition:all 0.5s; }
::-webkit-scrollbar-thumb:hover { opacity: 0.8; transition: 0.5s; }
::-webkit-scrollbar-thumb:active { background: var(--bg-color); transition:all 0.5s; }
::-webkit-scrollbar-track { background: transparent; border: 0px none transparent; border-radius: 0px; }
::-webkit-scrollbar-track:hover { background: transparent; }
::-webkit-scrollbar-track:active { background: transparent; }
::-webkit-scrollbar-corner { background: transparent; }

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

body {
    background: url(images/background.webp) repeat center center fixed #eecec8;
    color: var(--text-color);
    font-family: "Montserrat", sans-serif;
    line-height: 1.6;
    text-align: center;
    font-size: 16px;
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background-color: #eecec8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.splash-logo {
    width: 210px;
    opacity: 0;
    animation: splashFadeIn 1s ease 0.3s forwards;
}

.splash-text {
    font-family: "hypatia-sans-pro", sans-serif;
    font-size: 2rem;
    line-height: 2rem;
    color: #76512b;
    opacity: 0;
    animation: splashFadeIn 1s ease 0.7s forwards;
}

.splash-btn {
    background: transparent;
    border: 1px solid #76512b;
    color: #76512b;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 12px 36px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    opacity: 0;
    animation: splashFadeIn 1s ease 1.1s forwards;
}

.splash-btn:hover {
    background: #76512b;
    color: #f1dfca;
}

@keyframes splashFadeIn {
    to { opacity: 1; }
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: #f1dfca;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 2px solid #d4b896;
    border-top-color: #76512b;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal RSVP */
.rsvp-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.rsvp-overlay[hidden] { display: none; }

.rsvp-box {
    background: #f1dfca;
    border: 1px solid #c8a97e;
    border-radius: 16px;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 32px 32px;
    position: relative;
}

.rsvp-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #76512b;
    cursor: pointer;
    line-height: 1;
    border-radius: 50%;
}

.rsvp-box h3 {
    font-family: "hypatia-sans-pro", sans-serif;
    font-size: 1.8rem;
    color: #76512b;
    margin-bottom: 4px;
    text-align: center;
}

.rsvp-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    color: #76512b;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.guest-block {
    border-top: 1px solid #c8a97e;
    padding-top: 16px;
    margin-bottom: 16px;
}

.guest-block:first-child { border-top: none; padding-top: 0; }

.guest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.guest-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #76512b;
}

.remove-guest {
    background: none;
    border: none;
    color: #a07040;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
    font-family: 'Montserrat', sans-serif;
}

.rsvp-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.rsvp-field label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #76512b;
    text-align: left;
}

.rsvp-field input,
.rsvp-field select {
    padding: 10px 14px;
    border: 1px solid #c8a97e;
    background: #fdf6ed;
    color: #76512b;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    border-radius: 8px;
    outline: none;
    width: 100%;
}

.rsvp-field input:focus,
.rsvp-field select:focus {
    border-color: #76512b;
}

.rsvp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.rsvp-add-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1.5px dashed #c8a97e;
    color: #76512b;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    margin-bottom: 20px;
    border-radius: 8px;
    transition: background 0.2s;
}

.rsvp-add-btn:hover { background: #ecdfc8; }

.rsvp-submit-btn {
    width: 100%;
    padding: 13px;
    background: #76512b;
    border: none;
    color: #f1dfca;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.rsvp-submit-btn:hover { background: #5a3d1f; }
.rsvp-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.rsvp-feedback {
    padding: 10px 14px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    margin-bottom: 14px;
    text-align: center;
}

.rsvp-feedback.success { background: #d4edda; color: #255a35; border: 1px solid #b2dfca; }
.rsvp-feedback.error   { background: #fde8e8; color: #7a2020; border: 1px solid #f5b8b8; }

/* Modal Traje */
.traje-box {
    text-align: center;
}

.traje-img {
    width: 100%;
    border-radius: 12px;
    margin: 16px 0 20px;
    display: block;
}

.traje-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #76512b;
    line-height: 1.6;
}

p { margin-bottom: 0.8rem; }

h1, h2, h3, h4, .signature {
    font-family: "the-seasons", sans-serif;
    font-weight: 400;
}

a {
    color: var(--text-color);
    text-decoration: underline;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

/* Audio Button */
.audio-btn {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(118,81,43,0.3);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #76512b;
    transition: background 0.2s;
    z-index: 1001;
}

.audio-btn:hover {
    background: rgba(255,255,255,0.5);
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2.4rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    font-size: 1.2rem;
    letter-spacing: 0.1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.3);
    transition: background-color 0.3s;
}

.hamburger:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.4s;
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.9);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .navbar {
        justify-content: center;
        padding: 0.5rem 1rem;
        min-height: 70px;
    }

    .hamburger {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger {
        z-index: 1001;
    }
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    height: auto;
}

.hero-content {
    width: 100%;
    padding: 1.5rem 0;    
}

.hero-content img {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.monogram {
    width: 140px;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 0.5rem;
}

.hero .date {
    font-size: 2rem;
    letter-spacing: 2px;
}

.hero .location {
    font-size: 2rem;
    font-style: italic;
}

.hero-image-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.hero-bg {
    width: 100%;
    height: auto;
    display: block;
}

/* Intro Section */
.intro {
    padding: 0 0.5rem 2rem 0.5rem;
    max-width: 800px;
    margin: 0 auto;
}



/* Programação */
.programacao {
    padding: 2rem 0.5rem;
}

.program-box {
    border: 2px double #b58147; /* Borda dupla ou composta conforme referência */
    outline: 1px solid #ca9e57;
    outline-offset: 5px;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    position: relative;
}

.program-box::before {
    content: '';
    position: absolute;
    aspect-ratio: 10/17;
    width: 45%;
    bottom: 0;
    left: 0;
    background: url(images/polvo.webp) no-repeat center;
    transform: rotateY(180deg);
    background-size:  auto 100%;
    opacity: 0.6;
}

.program-box::after {
    content: '';
    position: absolute;
    aspect-ratio: 10/17;
    width: 30%;
    bottom: 0;
    right: 0;
    background: url(images/polvo.webp) no-repeat center;
    background-size:  auto 100%;
    opacity: 0.6;
}


.program-box h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.program-box .event h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.program-icon .icon-img {
    width: 160px;
    margin-bottom: 1rem;
}

.event {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.event:last-child {
    margin-bottom: 0;
}


.event-date {
    font-weight: 600;
    letter-spacing: 2px;
}

.event-venue {
    margin-top: 1rem;
    font-weight: 600;
}

.event-traje {
    margin-top: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.3rem 1rem;
    border: 1px solid var(--text-color);
    text-decoration: none;
    margin-top: 0.5rem;
    font-size: 1rem;
    text-transform: uppercase;
}

.info-extra {
    margin-top: 2rem;
    font-size: 0.9rem;
    font-style: italic;
}

/* Outras Seções */
.section {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.2rem;
}

.timer {
    text-align: center;
}

.timer .icon-img {
    width: 210px;
    margin: 0.5rem auto 0 auto;
}

#countdown {
    display: flex;
    justify-content: center;
    padding-top: 1.5rem;
    gap: 1.5rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-color);
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 0.3rem;
    width: 75px;
}

.countdown-item span {
    font-size: 2rem;
    font-weight: 600;
    color: #b58147;
}

.countdown-item p {
    font-family: "Montserrat", sans-serif;
    font-size: 0.7rem;
    margin: 0;
    letter-spacing: 1px;
}

.arrival-icon {
    width: 140px;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.tab-button {
    background: #b58147;
    font-family: "hypatia-sans-pro", sans-serif !important;
    border: none;
    letter-spacing: 1px;
    padding: 0.75rem 2rem;
    margin: 0 0.5rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    transition: opacity 0.25s;
}

.tab-button:hover {
    opacity: 0.9;
}

.tab-button.active {
    background: #b58147;
    color: #fff;
    opacity: 1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


.flights {
    margin-top: 3rem;
    border-top: 1px solid rgba(109, 91, 75, 0.2);
    padding-top: 2rem;
}

.flights h4 {
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hotels-slider {
    position: relative;
    padding: 1rem 0 2rem;
    overflow: visible;
}

.accommodation { position: relative; overflow: hidden; }

.swiper {
    padding-bottom: 3rem;
    overflow: visible;
}

.hotels-slider .swiper-wrapper {
    align-items: stretch;
}

.hotel-slide {
    background: transparent;
    border: none;
    border-radius: 1.5rem;
    padding: 1.5rem 1.2rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.09);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
}

.hotel-slide img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #f4e5c0;
    margin-bottom: 1rem;
}

.hotel-slide h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.hotel-slide p {
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.5;
    min-height: 72px;
}

.hotel-slide a {
    margin-top: auto;
}

.hotel-slide a {
    display: inline-block;
    font-family: "hypatia-sans-pro", sans-serif !important;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: #b58147;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.25s;
}

.hotel-slide a:hover {
    opacity: 0.9;
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    background: #b58147;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.swiper-button-next:after, .swiper-button-prev:after { font-size: 1rem; }

.swiper-pagination-bullet {
    background: #b58147;
    opacity: 0.6;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* Alert */
.alert {
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    text-align: left;
}

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

.alert-info {
    text-align: center;
    font-size: 0.8rem;
    background-color: rgba(123, 158, 137, 0.12);
    border: 1px solid var(--border-green);
    color: var(--text-color);
}

/* Accordion */
.accordion {
    max-width: 600px;
    margin: 0 auto;
}

.accordion h2, .accordion h3, .accordion h4 {
    text-align: left;
     padding: 0 1rem 0.5rem 1rem;
     font-family: "Montserrat", sans-serif;
     font-weight: 600;
} 

.accordion details {
    margin-bottom: 1rem;
    border: 1px solid #b58147;
    border-radius: 0.5rem;
    background: var(--bg-color);
}


.accordion summary {
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    list-style: none;
    position: relative;    text-align: left;}

.accordion summary::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 0.2rem;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.accordion details[open] summary::after {
    content: '-';
}

.accordion details p {
    padding: 0 1rem 1rem;
    margin: 0;
    text-align: left;
}

.accordion ol {
    text-align: left;
    padding-left: 2rem;
}

.accordion li {
    margin-bottom: 0.5rem;
}

/* Seção de Presentes */
.gifts {
    text-align: center;
}

.gift-button {
    display: inline-block;
    font-family: "hypatia-sans-pro", sans-serif !important;
    letter-spacing: 1px;
    padding: 0.75rem 2rem;
    border-radius: 999px;
    background: #b58147;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.25s;
    margin-top: 1rem;
    border: none;
    font-size: 1.1rem;
}

.gift-button:hover {
    opacity: 0.9;
}

/* Responsividade */
@media (max-width: 600px) {
    .nav-links {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .program-box {
        padding: 1rem;
    }

    #countdown {
        flex-wrap: wrap;
        gap: 0.3rem;       
    }

    .countdown-item span {
        font-size: 1.4rem;
    }
}

/* Ajuste de fontes somente para desktop */
@media (min-width: 769px) {
    body {
        font-size: 18px;
    }

    .nav-links a {
        font-size: 1.25rem;
    }

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

    .hero .date,
    .hero .location {
        font-size: 2.4rem;
    }

    .program-box {
        padding: 4rem 2rem;
    }

    .program-box h2 {
        font-size: 2.6rem;
    }

    .program-box .event h3 {
        font-size: 2rem;
    }

    .section h2 {
        font-size: 2.4rem;
    }

    .hotel-slide h3 {
        font-size: 1.25rem;
    }

    .gift-button {
        font-size: 1.2rem;
    }
}
