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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
}

:root {
    /* ==========================================================================
       CONFIGURAÇÃO DE CORES (PALETA)
       Altere os códigos HEX abaixo para mudar as cores em todo o site.
       ========================================================================== */

    --primary-color: #2a8b8b;
    /* Cor Principal (Verde Água) - Usada em textos e footer */
    --secondary-color: #75c58e;
    /* Cor Secundária (Verde Claro) - Usada em detalhes e botão 'Ligar' mobile */
    --accent-color: #bfff91;
    /* Cor de Destaque (Verde Limão) - Usada em ícones e fundos específicos */
    --gold-color: #dfe9a8;
    /* Amarelo Suave - Usado para dar destaque e sofisticação */
    --light-color: #f5f5f5;
    /* Fundo Claro - Usado para alternar seções */
    --white: #ffffff;
    /* Branco Puro */
    --green-whats: #25d366;
    /* Verde Oficial do WhatsApp */
    --color-5: #ffd2bf;
    /* Rosa Suave - Cor adicional */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    width: 100%;
}

/* Header */
header {
    background: #1c3b36;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.header-top {
    background: #152d29;
    padding: 10px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-mobile {
    display: none;
}

.menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu a:hover {
    color: var(--gold-color);
}

.mobile-menu {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 26px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-menu:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/image/fachada.jpeg') center/cover no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 90px;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* =========================================
   ESTILOS DE BOTÕES
   Edite aqui formato, tamanho e cores dos botões
   ========================================= */
.btn {
    display: inline-flex;
    padding: 11px 33px;
    text-decoration: none;
    font-size: 16px;
    color: white;
    background: #6225e6;
    transition: 1s;
    box-shadow: 6px 6px 0 black;
    transform: skewX(-15deg);
    border: none;
    cursor: pointer;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.btn:focus {
    outline: none;
}

.btn:hover {
    transition: 0.5s;
    box-shadow: 10px 10px 0 #fbc638;
}

.btn .second {
    transition: 0.5s;
    margin-right: 0px;
}

.btn:hover .second {
    transition: 0.5s;
    margin-right: 45px;
}

.btn .span {
    transform: skewX(15deg);
}

.btn .second {
    width: 20px;
    margin-left: 30px;
    position: relative;
    top: 12%;
}

.btn .one {
    transition: 0.4s;
    transform: translateX(-60%);
}

.btn .two {
    transition: 0.5s;
    transform: translateX(-30%);
}

.btn:hover .three {
    animation: color_anim 1s infinite 0.2s;
}

.btn:hover .one {
    transform: translateX(0%);
    animation: color_anim 1s infinite 0.6s;
}

.btn:hover .two {
    transform: translateX(0%);
    animation: color_anim 1s infinite 0.4s;
}

@keyframes color_anim {
    0% {
        fill: white;
    }

    50% {
        fill: #fbc638;
    }

    100% {
        fill: white;
    }
}

.btn-primary {
    background: #6225e6;
    color: var(--white);
}

.btn-secondary {
    background: #6225e6;
    color: var(--white);
}

/* Badge 24h */
.badge-24h {
    display: inline-block;
    background: var(--gold-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Serviços */
.servicos {
    padding: 80px 5%;
    background: var(--light-color);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.servico-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.servico-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.servico-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.servico-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.servico-card p {
    margin-bottom: 20px;
    color: #666;
}

/* Planos e Soluções */
.planos {
    padding: 80px 5%;
    background: #f4f6f8;
}

.planos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.plano-card {
    flex: 1;
    min-width: 280px;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.plano-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Funeral Padrão (Card Claro - Texto bem escuro) */
.plano-emergencial {
    background: #ffffff;
    color: #111111;
    border: 2px solid #1c3b36;
}

.plano-emergencial h3 {
    color: #1c3b36;
    font-size: 28px;
    font-weight: 800;
    margin-top: 10px;
}

.plano-emergencial .plano-preco {
    color: #1c3b36;
    font-size: 52px;
    font-weight: 900;
    margin: 20px 0;
    line-height: 1;
}

.plano-emergencial .plano-preco small {
    color: #222222;
    font-size: 20px;
}

.plano-emergencial p {
    color: #222222;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.plano-emergencial .plano-beneficios li {
    color: #111111;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
}

.plano-emergencial .plano-beneficios li:before {
    color: #1c3b36;
    font-weight: 900;
}

.plano-emergencial .btn {
    background: #1c3b36;
    color: #ffffff;
}

.plano-emergencial .btn:hover {
    background: #152d29;
}

/* Funeral Preventivo (Card Escuro - Texto Branco Nítido) */
.plano-familiar {
    background: #1c3b36;
    color: #ffffff;
    border: 2px solid #152d29;
}

.plano-familiar h3 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    margin-top: 10px;
}

.plano-familiar .plano-preco {
    color: #ffffff;
    font-size: 52px;
    font-weight: 900;
    margin: 20px 0;
    line-height: 1;
}

.plano-familiar .plano-preco small {
    color: #dfe9a8;
    font-size: 22px;
    font-weight: 700;
}

.plano-familiar p {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 1;
}

.plano-familiar .plano-beneficios li {
    color: #ffffff;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.plano-familiar .plano-beneficios li:before {
    color: #25d366;
    font-weight: 900;
}

.plano-familiar .btn {
    background: #25d366;
    color: #ffffff;
}

.plano-familiar .btn:hover {
    background: #1eb855;
}

.plano-preco {
    font-size: 54px;
    font-weight: 800;
    margin: 25px 0;
    line-height: 1;
}

.plano-preco small {
    font-size: 24px;
}

.plano-beneficios {
    list-style: none;
    margin: 30px 0;
    text-align: left;
    flex-grow: 1;
}

.plano-beneficios li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    font-size: 16px;
}

.plano-beneficios li:before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 22px;
}

/* Diferenciais */
.diferenciais {
    padding: 80px 5%;
    background: var(--light-color);
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.diferencial {
    text-align: center;
}

.diferencial-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.diferencial h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Stats */
.stats {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 60px 5%;
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--gold-color);
}

.stat-label {
    font-size: 18px;
    margin-top: 10px;
}

/* FAQ */
.faq {
    padding: 80px 5%;
    background: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--light-color);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
    transition: background 0.3s;
}

.faq-question:hover {
    background: #e0e0e0;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-answer.active {
    padding: 20px;
    max-height: 500px;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 5% 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--gold-color);
}

.footer-section p,
.footer-section a {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    background: var(--accent-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--gold-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Fixed Buttons */
.mobile-fixed-buttons {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    padding: 10px;
    gap: 10px;
}

.mobile-fixed-buttons .btn {
    flex: 1;
    padding: 10px;
    justify-content: center;
    font-size: 14px;
    border-radius: 8px;
}

.mobile-fixed-buttons .btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        background: #1c3b36 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
    }

    .mobile-menu {
        color: var(--white);
        border-color: rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.1);
    }

    .header-top {
        background: #152d29;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav {
        position: relative;
    }

    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #1c3b36;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
        text-align: center;
        gap: 15px;
        z-index: 9999;
    }

    .menu.active,
    .menu.show {
        display: flex !important;
    }

    .mobile-menu {
        display: block;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 28px;
    }

    .plano-destaque {
        padding: 30px 20px;
    }

    .plano-preco {
        font-size: 40px;
    }

    .mobile-fixed-buttons {
        display: flex;
    }

    body {
        padding-bottom: 70px;
    }
}

/* WhatsApp Float Button & Container */
.whatsapp-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .whatsapp-container {
        display: none !important;
    }
}

.whatsapp-float {
    background: var(--green-whats);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    animation: float 3s ease-in-out infinite;
    position: relative;
}

.whatsapp-tooltip {
    background: white;
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.5s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.whatsapp-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.whatsapp-float:hover {
    background: #20ba5a;
    transform: scale(1.1);
}

/* Exit Intent Popup */
.exit-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.exit-popup.active {
    display: block;
}

.exit-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.exit-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    padding: 0;
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

.exit-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.exit-popup-close:hover {
    background: #f44336;
    color: white;
    transform: rotate(90deg);
}

.exit-popup-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px 20px 0 0;
}

.exit-popup-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin: 25px 20px 20px;
    line-height: 1.3;
}

.exit-popup-buttons {
    display: flex;
    gap: 12px;
    padding: 0 20px 25px;
}

.exit-popup-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.exit-popup-btn-whatsapp {
    background: var(--green-whats);
    color: white;
}

.exit-popup-btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.exit-popup-btn-call {
    background: var(--primary-color);
    color: white;
}

.exit-popup-btn-call:hover {
    background: #236b6b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 139, 139, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, -40%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .exit-popup-content {
        max-width: 340px;
        width: 85%;
    }

    .exit-popup-title {
        font-size: 19px;
        margin: 20px 15px 15px;
    }

    .exit-popup-buttons {
        flex-direction: column;
        padding: 0 15px 20px;
    }

    .exit-popup-btn {
        width: 100%;
        padding: 13px 18px;
        font-size: 14px;
    }

    .exit-popup-close {
        width: 32px;
        height: 32px;
        font-size: 22px;
        top: 12px;
        right: 12px;
    }
}
}
