/* --- Reset Básico e Configurações Globais --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent-color: #50AF91;      /* Verde para Destaque */
    --secondary-color: #2A91BA;   /* Azul Médio */
    --bg-dark: #07263A;           /* Fundo Principal Escuro */
    --bg-soft-dark: #0c334d;      /* Fundo de Seção um pouco mais claro */
    --text-light: #e0e7ef;        /* Cor de texto principal (claro) */
    --text-darker: #a8b2d1;       /* Cor de texto secundário */
    --white-color: #ffffff;
    --shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Barra de Navegação --- */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 15px 0;
    background: rgba(7, 38, 58, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo img {
    height: 45px;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 0;
}
.main-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
}
.main-nav a:hover, .main-nav a:focus {
    color: var(--accent-color);
}

/* --- Botão Global --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--bg-dark);
    font-weight: 700;
    border-radius: 5px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background-color: #62c3a3;
    transform: translateY(-2px);
    color: var(--bg-dark);
}

/* --- Hero Section --- */
.hero {
    padding: 100px 0;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    align-items: center;
    gap: 60px;
}
.hero-text .hero-intro {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}
.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white-color);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}
.hero-text h1 span {
    color: var(--accent-color);
}
.hero-text p {
    color: var(--text-darker);
    max-width: 500px;
}
.hero-image {
    text-align: center;
}
.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    mask-image: linear-gradient(to top, transparent 0%, black 25%);
}

/* --- Estilos Gerais de Seção --- */
section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
    color: var(--white-color);
    text-align: center;
}
.section-title span {
    color: var(--accent-color);
}
.bg-soft-dark {
    background-color: var(--bg-soft-dark);
}

/* --- Seção Sobre Mari Dias --- */
.background-text {
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translateY(-50%);
    font-size: 18vw;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
    pointer-events: none;
    line-height: 1;
    transition: transform 0.5s ease-out;
}
.about-container {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.about-text .section-title {
    text-align: left;
}
.about-text p {
    color: var(--text-darker);
    margin-bottom: 1rem;
}
.about-text strong {
    color: var(--accent-color);
}
.about-text blockquote {
    font-style: italic;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--accent-color);
    margin-top: 2rem;
    background-color: var(--bg-soft-dark);
    border-radius: 0 8px 8px 0;
}

/* --- Seção Serviços --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.service-card {
    background-color: var(--bg-dark);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(42, 145, 186, 0.5);
    display: flex;
    flex-direction: column;
    text-align: center;
}
.service-card svg {
    width: 40px;
    height: 40px;
    color: var(--accent-color);
    margin: 0 auto 1rem auto;
}
.service-card h3 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.service-card p {
    color: var(--text-darker);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* --- Seção Conheça a Cocria com EFEITO AURORA --- */
#conheca-cocria {
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
}
.cocria-container {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.cocria-container span {
    color: var(--accent-color);
    font-weight: 600;
}
#conheca-cocria::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    top: -150px;
    left: -150px;
    background: radial-gradient(circle, rgba(80, 175, 145, 0.2), transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    animation: move-aurora1 25s infinite alternate ease-in-out;
    z-index: 1;
}
#conheca-cocria::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(42, 145, 186, 0.2), transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    animation: move-aurora2 30s infinite alternate-reverse ease-in-out;
    z-index: 1;
}
@keyframes move-aurora1 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 50px); }
}
@keyframes move-aurora2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-80px, -40px) scale(1.2); }
}
.cocria-logo-large img {
    max-width: 150px;
    margin: 0 auto 2rem auto;
}
#conheca-cocria h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
#conheca-cocria p {
    color: var(--text-darker);
    margin-bottom: 2rem;
}

/* --- Seção Depoimentos --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background-color: var(--bg-dark);
    padding: 30px;
    border-radius: 10px;
    border-top: 4px solid var(--accent-color);
    box-shadow: var(--shadow);
}
.testimonial-card cite {
    display: block;
    margin-top: 1.5rem;
    font-weight: 700;
    color: var(--white-color);
    font-style: normal;
}

/* --- Rodapé --- */
footer {
    background-color: var(--bg-dark);
    text-align: center;
    padding: 60px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
footer h3 {
    font-size: 2rem;
    color: var(--white-color);
}
footer h3 span {
    color: var(--accent-color);
}
footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 1.5rem 0 2rem 0;
    padding: 0;
}
footer a {
    color: var(--accent-color);
    font-weight: 500;
}
.copyright {
    font-size: 0.9rem;
    color: var(--text-darker);
}

/* --- CLASSES DE ANIMAÇÃO --- */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }
.testimonial-card:nth-child(2) { transition-delay: 0.1s; }
.testimonial-card:nth-child(3) { transition-delay: 0.2s; }

/* --- ESTILOS DO POPUP (COM TEXTO CENTRALIZADO) --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 38, 58, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}
.popup-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}
.popup-content {
    position: relative;
    background-color: var(--bg-soft-dark);
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    border-top: 5px solid var(--accent-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
    text-align: center; /* Centraliza todo o conteúdo */
}
.popup-content h1{
    font-size: 3rem;
    color: var(--accent-color);
}
.popup-overlay.visible .popup-content {
    transform: scale(1);
}
.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-darker);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}
.close-popup:hover {
    color: var(--white-color);
}
.popup-content h2 {
    font-size: 2rem;
    color: var(--white-color);
    margin-bottom: 1rem;
    text-align: center; /* Garante a centralização */
}
.popup-content h2 span {
    color: var(--accent-color);
}
.popup-content p {
    color: var(--text-darker);
    margin-bottom: 1rem;
    text-align: center; /* Garante a centralização */
}
.popup-content .btn {
    margin-top: 1.5rem;
}
.popup-content .destaque{
    color: var(--accent-color);
    font-weight: 700;
}

/* --- BOTÃO FLUTUANTE WHATSAPP (CORRIGIDO) --- */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    background-color: #25D366;
    color: var(--white-color);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.4s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden; /* Importante para esconder o texto antes da animação */
    width: 56px; /* Largura inicial (circular) */
    height: 56px; /* Altura inicial (circular) */
}

.whatsapp-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.whatsapp-button .bi-whatsapp {
    flex-shrink: 0; /* Garante que o ícone não encolha */
    width: 32px;
    height: 32px;
}

.whatsapp-tooltip {
    display: flex;
    align-items: center;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s; /* Atraso para o texto aparecer depois da expansão */
    width: 0; /* Largura inicial do texto é zero */
}

/* Estado VISÍVEL - Quando o tooltip deve aparecer */
.whatsapp-tooltip.visible {
    opacity: 1;
    width: auto; /* A largura se ajusta ao texto */
    margin-right: 12px; /* Espaçamento entre o texto e o ícone */
}

/* O botão se expande quando o tooltip fica visível */
.whatsapp-tooltip.visible + .bi-whatsapp {
    /* Não precisa de regras aqui, a expansão é controlada no pai */
}
.whatsapp-button:has(.whatsapp-tooltip.visible) {
    width: 230px; /* Largura final expandida */
}

/* --- BANNER DE COOKIES --- */
.cookie-banner {
    position: fixed;
    bottom: -100%; /* Começa escondido abaixo da tela */
    left: 0;
    width: 100%;
    background-color: var(--bg-soft-dark);
    color: var(--text-light);
    padding: 20px 0;
    z-index: 3000;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
    transition: bottom 0.5s ease-in-out;
}
.cookie-banner.visible {
    bottom: 0; /* Aparece deslizando de baixo para cima */
}
.cookie-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.cookie-container p {
    margin: 0;
    color: var(--text-darker);
    font-size: 0.9rem;
}
.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-buttons .btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
}
.cookie-buttons .btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
}

/* --- Responsividade --- */
@media (max-width: 992px) {
    .hero-container, .about-container {
        grid-template-columns: 1fr;
    }
    .hero-image {
        display: none;
    }
    .hero-container, .about-text .section-title {
        text-align: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    .about-container {
        text-align: center;
    }
    .about-image {
        grid-row: 1;
        margin-bottom: 2rem;
    }
    .background-text {
        font-size: 25vw;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}
@media (max-width: 768px) {
    .main-nav ul { display: none; }
    .hero-text h1 { font-size: 2.2rem; }
    .popup-content h2 { font-size: 1.5rem; }
}