:root {
    scroll-behavior: smooth;
}

body {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    background-color: #F8FAF4;
    color: #1A1C19;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL'0, 'wght'400, 'GRAD'0, 'opsz'24;
}

.m3-card {
    background-color: #FFFFFF;
    border: 1px solid rgba(114, 121, 113, 0.2);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.m3-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Header transition - Completamente revisado */
#header {
    transition: all 0.3s ease-in-out;
}

.header-scrolled {
    background-color: #FFFFFF !important;
    /* Cor branca explícita */
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(114, 121, 113, 0.2) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-scrolled .nav-link,
.header-scrolled #menu-toggle {
    color: #424941 !important;
}

.header-scrolled .nav-link:hover {
    color: #16A34A !important;
}

/* Hero Section Polka Pattern */
.polka-pattern {
    background-image: radial-gradient(rgba(22, 163, 74, 0.15) 2px, transparent 2px);
    background-size: 24px 24px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

/* Hero Unique Style */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.3) 0%, rgba(163, 240, 179, 0.1) 60%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    transform: translate(20%, -30%);
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.2) 0%, rgba(163, 240, 179, 0.1) 60%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    transform: translate(-20%, 30%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
}

/* Enhanced M3 Buttons with State Layer and New Effects */
.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 24px;
    border-radius: 99px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    cursor: pointer;
    /* Botões em estado normal com fundo branco */
    background-color: white;
    color: #16A34A;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-color: currentColor;
    opacity: 0;
    transition: opacity 0.2s;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12);
}

.btn:hover::after {
    opacity: 0.08;
    /* M3 hover state layer */
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-filled {
    background-color: white;
    color: #16A34A;
    border: 1px solid #16A34A;
}

.btn-filled::after {
    background-color: #16A34A;
    opacity: 0.05;
}

.btn-tonal {
    background-color: white;
    color: #4F6351;
    border: 1px solid #D2E8D1;
}

.btn-outlined {
    background-color: white;
    border-color: #727971;
    color: #16A34A;
}

/* Form Input unique style */
.form-field {
    position: relative;
}

.form-field input,
.form-field textarea {
    background: #F2F4EE;
    border: 1px solid #E6E9E3;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    border: 1px solid transparent;
    background-image: linear-gradient(#FFFFFF, #FFFFFF),
        linear-gradient(to right, #16A34A, #A3F0B3);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.15);
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating-image {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Planos Cards - Efeitos refinados para aspecto profissional */
#planos .m3-card {
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

#planos .m3-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

#planos .m3-card:hover {
    transform: translateY(-5px);
}

#planos .m3-card:hover::before {
    opacity: 1;
}

/* Animação refinada para o cartão popular */
#planos .m3-card.ring-primary {
    overflow: hidden;
    z-index: 5;
}

#planos .m3-card.ring-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(163, 240, 179, 0.3) 0%, rgba(163, 240, 179, 0) 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    z-index: -1;
}

#planos .m3-card.ring-primary:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Preloader Personalizado */
.preloader {
    position: fixed;
    inset: 0;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    position: relative;
}

.preloader-spinner:before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #A3F0B3;
    border-top-color: #16A34A;
    animation: spin 1s linear infinite;
}

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

/* Melhorias nas transições para evitar mudanças bruscas */
.btn,
.nav-link,
.m3-card,
a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Widget de WhatsApp */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #16A34A;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    padding: 0;
    transform: scale(0.95);
    opacity: 0;
    transform-origin: bottom right;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(114, 121, 113, 0.1);
}

.whatsapp-popup.show {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
}

.whatsapp-header {
    background-color: #16A34A;
    color: white;
    padding: 16px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    align-items: center;
}

.whatsapp-body {
    padding: 16px;
}

.whatsapp-message {
    background-color: #F2F4EE;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
    position: relative;
}

.whatsapp-message:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 15px;
    border: 8px solid transparent;
    border-top-color: #F2F4EE;
}

/* Substituição do Ícone com fundo verde bem clarinho */
.icon-2d {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: rgba(22, 163, 74, 0.05);
    /* Verde bem mais clarinho */
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Emoji de foguete inline - AUMENTADO */
.rocket-emoji {
    display: inline-block;
    vertical-align: middle;
    width: 40px;
    height: 40px;
    margin: 0 4px;
}

/* Espaçamento ajustado para o título único */
.hero-title {
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Cards com border-radius aumentado nas seções especificadas */
#recursos .m3-card {
    border-radius: 16px;
    overflow: hidden;
}

#planos .m3-card {
    border-radius: 16px;
    overflow: hidden;
}

/* Remover TODOS os efeitos hover do card de contato */
#contato .m3-card {
    transition: none;
}

#contato .m3-card:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Garantir que nenhum efeito de hover seja aplicado ao card de contato */
#contato .m3-card::before,
#contato .m3-card::after {
    display: none;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    /* Posicionado à esquerda do widget do WhatsApp */
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: white;
    color: #16A34A;
    border: 1px solid #16A34A;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .back-to-top {
        right: 30px;
        bottom: 100px;
        /* Posicionado acima do widget do WhatsApp em dispositivos móveis */
    }
}


footer {
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            rgba(22, 163, 74, 0),
            rgba(22, 163, 74, 0.2) 25%,
            rgba(22, 163, 74, 0.2) 75%,
            rgba(22, 163, 74, 0));
}

footer .dev-logo {
    transition: transform 0.8s ease;
}

footer a:hover .dev-logo {
    transform: rotate(360deg);
}

/* Ícone WhatsApp personalizado */
.whatsapp-icon {
    display: none;
    /* Removemos o estilo anterior */
}

/* Estilo para o ícone SVG do WhatsApp */
.whatsapp-icon-svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.whatsapp-button:hover .whatsapp-icon-svg {
    transform: scale(1.1);
}

/* Estilo para o ícone SVG do WhatsApp na seção de contato */
.whatsapp-contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Manter ajustes de posicionamento do botão */
.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
}