:root {
    --bg-color: #ebcba4; /* Cor solicitada */
    --wine-color: #7b2a3a; /* Vinho suave / bordô */
    --wine-light: #9a4455;
    --gold-color: #bfa15f; /* Dourado envelhecido */
    --olive-green: #4f5a43; /* Verde oliva/musgo */
    --olive-dark: #3a4231;
    --text-color: #4a4a4a;
    --text-light: #6a6a6a;
    
    --font-script: 'Great Vibes', cursive;
    --font-serif-title: 'Playfair Display', serif;
    --font-serif-text: 'Cormorant Garamond', serif;
}

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

html {
    background-color: #2c2c2c; /* Fundo escuro para destacar o convite no desktop */
    display: flex;
    justify-content: center;
}

body {
    width: 100%;
    max-width: 450px; /* Largura fixa simulando mobile */
    background-color: var(--bg-color);
    background-image: url('C:/Users/Joel Nunes/.gemini/antigravity-ide/brain/e3793420-9bf0-4a76-b13f-1fafbf92bdea/paper_texture_1790304477587.jpg');
    background-blend-mode: multiply;
    background-size: 100% auto;
    background-repeat: repeat-y;
    font-family: var(--font-serif-text);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
    box-shadow: 0 0 50px rgba(0,0,0,0.6); /* Sombra pesada para separar do fundo */
    margin: 0;
    min-height: 100vh;
}

/* Moldura Floral Lateral */
.floral-border {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 10;
    pointer-events: none;
    background-image: url('C:/Users/Joel Nunes/.gemini/antigravity-ide/brain/e3793420-9bf0-4a76-b13f-1fafbf92bdea/floral_corner_1790304467413.jpg');
    background-size: 100% auto;
    background-position: left top;
    background-repeat: repeat-y;
    opacity: 0.9;
    animation: gentle-sway 10s ease-in-out infinite alternate;
}

.floral-border.left {
    left: -10px;
}

.floral-border.right {
    right: -10px;
    transform: scaleX(-1);
}

@keyframes gentle-sway {
    0% { filter: brightness(1); transform: translateY(0) scale(1) (var(--is-right, scaleX(1))); }
    100% { filter: brightness(1.05); transform: translateY(3px) scale(1.01) (var(--is-right, scaleX(1))); }
}
.floral-border.right { --is-right: scaleX(-1); animation: gentle-sway-right 12s ease-in-out infinite alternate; }
@keyframes gentle-sway-right {
    0% { transform: translateY(0) scaleX(-1) scaleY(1); }
    100% { transform: translateY(3px) scaleX(-1) scaleY(1.01); }
}

/* Container Principal */
.container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    background: transparent;
}

/* Seções */
section {
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Tipografia e Títulos */
.section-title {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: var(--wine-color);
    font-weight: 400;
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.subtitle {
    font-family: var(--font-serif-title);
    font-size: 1.6rem;
    color: var(--wine-color);
    font-style: italic;
    font-weight: 400;
    margin-bottom: 20px;
}

.romantic-phrase {
    font-family: var(--font-serif-title);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--wine-light);
    margin-bottom: 20px;
}

.text-desc {
    font-size: 1.1rem;
    max-width: 90%;
    margin: 0 auto 30px;
    color: var(--text-color);
}

/* Ornamentos */
.ornament-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%;
    margin: 0 auto 30px;
}

.ornament-divider .line {
    height: 1px;
    flex: 1;
    background-color: var(--gold-color);
    opacity: 0.5;
}

.ornament-divider i {
    color: var(--gold-color);
    margin: 0 15px;
    font-size: 0.9rem;
}

.icon-top, .ornament-center {
    color: var(--gold-color);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    padding: 0;
    background-image: url('C:/Users/Joel Nunes/.gemini/antigravity-ide/brain/e3793420-9bf0-4a76-b13f-1fafbf92bdea/hero_tuscany_1790304422298.jpg');
    background-size: cover;
    background-position: center bottom;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(to top, var(--bg-color) 0%, rgba(247, 243, 236, 0.8) 40%, transparent 100%);
    pointer-events: none;
}

.hero-content {
    margin-top: 10vh;
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 30px 20px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    border: 1px solid rgba(191, 161, 95, 0.6);
    max-width: 85%;
}

.gold-frame-top {
    margin-bottom: 15px;
    color: var(--gold-color);
    font-size: 1.2rem;
}

.names {
    font-family: var(--font-script);
    font-size: 4rem;
    color: var(--wine-color);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 15px;
}

.intro-phrase {
    font-family: var(--font-serif-title);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.date {
    font-family: var(--font-serif-title);
    font-size: 1.1rem;
    letter-spacing: 4px;
    color: var(--olive-green);
    font-weight: 600;
    border-top: 1px solid var(--gold-color);
    border-bottom: 1px solid var(--gold-color);
    display: inline-block;
    padding: 8px 15px;
}

/* Botões */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--olive-green);
    color: #fff;
    padding: 12px 25px;
    border-radius: 40px;
    text-decoration: none;
    font-family: var(--font-serif-text);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 25px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    width: 85%;
    max-width: 300px;
}

.btn-primary .btn-icon {
    margin-right: 12px;
    color: var(--gold-color);
    font-size: 1.1rem;
}

.btn-primary .arrow {
    margin-left: auto;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--olive-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-primary:hover .arrow {
    transform: translateX(5px);
}

/* Imagens */
.image-wrapper {
    width: 90%;
    margin: 0 auto 25px;
    border-radius: 200px 200px 10px 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 6px solid #fff;
    position: relative;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 1px solid rgba(191, 161, 95, 0.3);
    border-radius: 194px 194px 4px 4px;
    pointer-events: none;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 3s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.illustration-wrapper {
    border-radius: 10px;
    border: none;
    box-shadow: none;
    background: transparent;
}
.illustration-wrapper::after { display: none; }

.bg-white {
    background-color: transparent;
    mix-blend-mode: multiply;
}

/* Convite e Contagem Regressiva */
.invitation {
    /* Fundo agora é uma tag img no HTML para ditar o tamanho exato da seção */
    --u: calc(min(100vw, 450px) / 576);
    --cd-wine: #6e1a24;
    --cd-border: rgba(150, 115, 80, 0.55);
}

.countdown-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--cd-wine);
    text-align: center;
}

.cd-ornament {
    display: block;
    color: var(--cd-wine);
    overflow: visible;
}

.cd-ornament--lg {
    width: calc(215 * var(--u));
    height: calc(40 * var(--u));
    margin-bottom: calc(14 * var(--u));
}

.cd-ornament--sm {
    width: calc(195 * var(--u));
    height: calc(32 * var(--u));
    margin: calc(14 * var(--u)) 0 calc(10 * var(--u));
}

.cd-ornament--bottom {
    margin: calc(34 * var(--u)) 0 0;
}

.cd-invite-1,
.cd-invite-2,
.cd-text,
.cd-block label {
    font-family: var(--font-serif-text);
    text-transform: uppercase;
    font-weight: 500;
    color: var(--cd-wine);
    line-height: 1.5;
}

.cd-invite-1 {
    font-size: calc(19 * var(--u));
    letter-spacing: calc(4.5 * var(--u));
}

.cd-invite-2 {
    font-size: calc(15 * var(--u));
    letter-spacing: calc(4 * var(--u));
    margin-top: calc(4 * var(--u));
}

.cd-title {
    font-family: 'Pinyon Script', var(--font-script);
    font-weight: 400;
    font-size: calc(64 * var(--u));
    line-height: 1.05;
    color: var(--cd-wine);
    margin: 0 0 calc(22 * var(--u));
}

.cd-subtitle {
    font-family: var(--font-serif-text);
    font-size: calc(22 * var(--u));
    color: var(--cd-wine);
    line-height: 1.3;
    margin-bottom: calc(18 * var(--u));
}

.cd-text {
    font-size: calc(13 * var(--u));
    letter-spacing: calc(2.6 * var(--u));
    line-height: 1.75;
    margin-bottom: calc(46 * var(--u));
}

.cd-timer {
    display: flex;
    justify-content: center;
    gap: calc(9 * var(--u));
    width: 100%;
}

.cd-block {
    width: calc(112 * var(--u));
    height: calc(98 * var(--u));
    border: 1px solid var(--cd-border);
    border-radius: calc(5 * var(--u));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 calc(16 * var(--u));
    background: rgba(255, 248, 238, 0.12);
}

.cd-block span {
    font-family: 'Pinyon Script', var(--font-script);
    font-size: calc(46 * var(--u));
    line-height: 1;
    color: var(--cd-wine);
    padding-left: calc(4 * var(--u));
    margin-bottom: calc(6 * var(--u));
}

.cd-block label {
    font-size: calc(13 * var(--u));
    letter-spacing: calc(1.2 * var(--u));
    line-height: 1;
}

.invitation-text-uppercase {
    font-family: var(--font-serif-title);
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--wine-color);
    text-transform: uppercase;
    margin: 10px 0;
}

.invitation-parents {
    font-family: var(--font-serif-title);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--wine-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 5px;
    width: 100%;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(191, 161, 95, 0.6);
    padding: 6px 2px;
    border-radius: 4px;
    width: 18%;
    max-width: 55px;
    box-shadow: none;
}

.time-block span {
    font-family: var(--font-script);
    font-size: 1.3rem;
    color: var(--wine-color);
    line-height: 1;
    margin-bottom: 3px;
}

.time-block label {
    font-family: var(--font-serif-title);
    font-size: 0.35rem;
    letter-spacing: 0.5px;
    color: var(--wine-color);
    text-transform: uppercase;
}

/* Info List */
.info-list {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.info-item i {
    color: var(--gold-color);
    margin-right: 12px;
    font-size: 1.2rem;
    width: 25px;
}

/* Detalhes */
.details-block {
    margin: 10px 0 20px;
}

.details-block h3 {
    font-family: var(--font-serif-title);
    font-size: 1.5rem;
    color: var(--wine-color);
    margin-bottom: 5px;
}

.details-block p {
    font-size: 1.1rem;
    color: var(--text-color);
}

.details-block p.time {
    font-weight: 600;
    margin-top: 5px;
}

.avoid-text {
    font-style: italic;
    color: var(--wine-color) !important;
    font-size: 1rem !important;
    margin-top: 15px;
}

/* Paleta de Cores */
.color-palette {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.color-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.red-slash {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: red;
    transform: rotate(-45deg);
}

/* RSVP / Note */
.note {
    font-family: var(--font-serif-title);
    font-style: italic;
    color: var(--wine-color);
    margin-top: 20px;
    font-size: 0.9rem;
}

.bottom-spacing {
    height: 80px;
}

/* Animações (Fade In) */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modal RSVP */
.modal {
    display: none; 
    position: fixed; 
    z-index: 10000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fdfbf7;
    margin: 20px;
    padding: 40px 30px;
    border: 1px solid #ebcba4;
    width: 90%;
    max-width: 450px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    font-family: var(--font-sans);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--wine-color);
    text-decoration: none;
    cursor: pointer;
}

.modal-title {
    font-family: var(--font-serif-title);
    color: var(--wine-color);
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 5px;
    line-height: 1.1;
}

.modal-subtitle {
    font-family: var(--font-serif-body);
    font-style: italic;
    color: var(--wine-color);
    text-align: center;
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: #555;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ebcba4;
    border-radius: 5px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    background-color: #fff;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--wine-color);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #333;
}

.radio-group input {
    margin-right: 8px;
    accent-color: var(--wine-color);
}

.btn-submit {
    background-color: var(--wine-color);
    color: #fff;
    border: none;
    padding: 15px 20px;
    width: 100%;
    font-family: var(--font-serif-body);
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #5a111a;
}

/* Indicador de Scroll Lateral */
.scroll-indicator {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

@media (min-width: 450px) {
    .scroll-indicator {
        right: calc(50% - 210px); /* Mantém alinhado à borda direita do container em telas maiores */
    }
}

.scroll-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: var(--wine-color);
    font-family: var(--font-serif-title);
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.scroll-line {
    width: 2px;
    height: 80px;
    background-color: rgba(191, 161, 95, 0.4); /* gold color semi-transparente */
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.scroll-dot {
    width: 100%;
    height: 20px;
    background-color: var(--wine-color);
    position: absolute;
    left: 0;
    top: -20px;
    border-radius: 2px;
    animation: scroll-down-anim 2s cubic-bezier(0.15, 0.41, 0.69, 0.94) infinite;
}

@keyframes scroll-down-anim {
    0% { top: -20px; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { top: 80px; opacity: 0; }
}
