/*
 * 1. VARIÁVEIS DE CORES E FONTES
 */
:root {
    --primary-color: #a0c0e0; /* Azul aquarela mais escuro */
    --primary-hover: #859fb5; /* Azul mais escuro para hover */
    --text-color: #333333;    /* Preto para textos */
    --background-color: #f0f8ff; /* Cor de fundo do corpo (Azul claro) */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --font-script: 'Pinyon Script', cursive; /* FONTE FINAL: Pinyon Script */
}

/*
 * 2. ESTILOS GERAIS (SOBRESCREVENDO BOOTSTRAP)
 */
body {
    text-align: center; /* Centraliza todo o texto da página */
    background-color: var(--background-color);
    background-image: url('fundo-floral.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: var(--font-body);
    color: #333;
}

.section-title {
    font-family: var(--font-heading);
    color: var(--text-color);
    font-size: 2.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    word-break: break-word; /* Permite quebra de palavra para ajuste em telas pequenas */
    overflow-wrap: break-word; /* Compatibilidade */
}

h3.subsection-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/*
 * 3. COMPONENTES PERSONALIZADOS
 */

/* Card principal de conteúdo */
.main-content-card {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    margin-bottom: 50px;
    box-sizing: border-box;
    position: relative; /* Essencial para posicionar as decorações florais */
    overflow: hidden; /* Esconde o conteúdo que transborda (as flores) */
}
@media (max-width: 768px) {
    .main-content-card {
        padding: 25px;
    }
    .section-title {
        font-size: 2em;
    }
}

/* Card verde */
.green-card {
    background-color: rgba(160, 192, 224, 0.9);
}

/* Botão Principal */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    border-radius: 10px !important; 
    padding: 12px 20px !important; 
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box;
    display: inline-block; 
    white-space: normal; 
    width: 100%; 
}

.btn-primary:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    transform: scale(1.05);
}

/* Formulários */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(160, 192, 224, 0.5);
}

/* Alinha os rótulos do formulário no centro */
form .form-label {
    width: 100%;
    text-align: center;
}

/* Iframe (mapa) responsivo */
.iframe-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Alteração para reduzir a altura (40%) e a largura máxima (900px) */
    max-width: 900px; /* Limita a largura do contêiner do mapa */
    margin: 0 auto; /* Centraliza o contêiner do mapa */
    padding-top: 40%; 
}
.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/*
 * 4. ESTILOS ESPECÍFICOS DAS SEÇÕES
 */

/* Header e Navegação */
.main-header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.header-logo {
    height: 40px;
}
.nav-link {
    color: var(--text-color) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}
.navbar-toggler {
    border: none;
}
.navbar-toggler:focus {
    box-shadow: none;
}


/* Seção Home (Hero) */
.hero-section {
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
}
.hero-content {
    padding-top: 150px;
}
.couple-name {
    font-family: var(--font-script); 
    font-size: 5.5em; /* TAMANHO MANTIDO */
    color: var(--text-color);
}
.hero-date, .countdown-text {
    font-size: 1.2em;
}
/* NOVA REGRA: Deixa apenas o contador (os números) em negrito */
#countdown-timer {
    font-weight: bold;
}


/* Seção Casal (Carrossel) */
.gallery-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* Força a imagem a ser um quadrado */
    object-fit: cover; /* Garante que a imagem preencha o espaço sem distorcer */
}

#coupleCarousel .carousel-control-prev-icon,
#coupleCarousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.3); /* Fundo semitransparente para dar contraste */
    border-radius: 50%;
    padding: 1.2rem;
    /* Este filtro tinge o ícone SVG para o tom de AZUL AQUARELA do site */
    filter: invert(72%) sepia(31%) saturate(233%) hue-rotate(170deg) brightness(101%) contrast(97%);
}

#coupleCarousel .carousel-indicators [data-bs-target] {
    background-color: var(--text-color);
    height: 5px;
    width: 25px;
    border-radius: 5px;
}


/* Seção Traje */
.dresscode-img {
    max-width: 350px;
}
.dress-code-group {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    height: 100%;
}
.rules i {
    color: var(--primary-color);
}

/* Seção Guia do Convidado */
.info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--text-color);
    height: 150px;
    transition: all 0.3s ease;
}
.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    background-color: var(--primary-color);
    color: #fff;
}
.info-card i {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}
.info-card:hover i {
    color: #fff;
}
.info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1em;
    margin: 0;
}

/* Seção Manual do Convidado */
.guest-manual-list i {
    color: var(--primary-color);
}
/* Adiciona espaçamento entre os itens da lista para melhor leitura (o que melhora o "tópico") */
.guest-manual-list li {
    margin-bottom: 8px; 
    line-height: 1.4; /* Melhora a altura da linha */
}

/* CORREÇÃO DE RESPONSIVIDADE PARA E-MAIL LONGO */
#contato p, #contato a {
    word-break: break-word; 
    overflow-wrap: break-word;
    /* word-break: break-all; também pode ser usado, mas break-word é mais seguro */
}

/* Footer */
.main-footer {
    color: var(--text-color);
}

/*
 * 5. CORREÇÃO DE ALINHAMENTO DO MENU
 */
@media (min-width: 992px) { /* Aplica este estilo apenas em telas grandes (desktop) */
    .navbar-collapse {
        flex-grow: 1 !important;
        display: flex !important;
        justify-content: flex-end !important;
    }
}

/* Força o alinhamento do menu mobile para a direita */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-left: auto;
        padding-right: 20px; /* Adiciona espaçamento interno à direita */
    }
    .navbar-nav {
        margin-left: auto;
        text-align: right;
    }
}

/*
 * 6. NOVOS ESTILOS
 */

/* Alinha o texto das seções do salão e barbearia */
.salon-section, .barbershop-section {
    text-align: center;
}

/* Centraliza os botões em telas pequenas e maiores */
.salon-section a, .barbershop-section a {
    display: inline-block;
    width: 100%;
    margin: 10px 0;
}

@media (min-width: 769px) {
    .salon-section a, .barbershop-section a {
        width: auto;
        margin: 10px;
    }
}

/* 7. DECORAÇÕES FLORAIS (Ajustes finais) */
.flower-decoration {
    position: absolute;
    z-index: 1; /* Coloca as flores à frente do fundo, mas atrás do texto do cartão */
    max-width: 330px; /* ALTERAÇÃO PARA AUMENTAR O TAMANHO (Desktop: 220px -> 330px) */
    height: auto;
    pointer-events: none;
}

.flower-top-left {
    top: -30px;
    left: -30px;
}

/* Flor da direita: Igualando a altura do lado esquerdo (-30px) e ajuste para a esquerda (-20px) */
.flower-bottom-right {
    top: -30px; /* AGORA NA MESMA ALTURA DO LADO ESQUERDO */
    right: -20px; 
}

/* Responsividade: Tablet */
@media (max-width: 768px) {
    /* ... (Estilos responsivos existentes) ... */
    
    /* Decorações florais */
    .flower-decoration {
        max-width: 240px; /* ALTERAÇÃO PARA AUMENTAR O TAMANHO (Tablet: 160px -> 240px) */
    }
    .flower-top-left {
        top: -20px;
        left: -20px;
    }
    .flower-bottom-right {
        top: -20px;
        right: -10px;
    }
    .couple-name {
        /* Ajuste para tablet */
        font-size: 4em; 
    }
}

/* Responsividade: Celular */
@media (max-width: 576px) {
    /* ... (Estilos responsivos existentes) ... */

    /* Decorações florais */
    .flower-decoration {
        max-width: 165px; /* ALTERAÇÃO PARA AUMENTAR O TAMANHO (Celular: 110px -> 165px) */
    }
    .flower-top-left {
        top: -15px;
        left: -15px;
    }
    .flower-bottom-right {
        top: -15px;
        right: -5px;
    }
    
    .couple-name {
        /* Ajuste final para celular */
        font-size: 3.5em; 
    }
}