:root {
    --yellow-brand: #fff44e;
    --blue-brand: #042b70;
    --text-dark: #333333;
    --bg-light: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    background-color: #ffffff;
    color: var(--text-dark);
    overflow-x: hidden;
    padding-top: 84px !important;
}

/* ==========================================================================
   Header & Navegação Principal
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--blue-brand);
    border-bottom: 4px solid var(--yellow-brand);
    z-index: 1000;
    transition: padding 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex { display: flex; }
.items-center { align-items: center; }

.logo-img {
    height: 48px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

header.scrolled .logo-img {
    height: 38px;
}

nav.hidden {
    display: none;
    gap: 24px;
    font-size: 14px;
    font-weight: 500;
}

/* Efeito Unificado de Links do Menu (Desktop) */
header nav a {
    position: relative;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.25s ease;
}

header nav a:hover {
    color: var(--yellow-brand) !important;
}

header nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--yellow-brand);
    transform-origin: bottom center;
    transition: transform 0.25s ease-out;
}

header nav a:hover::after {
    transform: scaleX(1) !important;
}

/* Isolamento do Botão de Contato Preenchido */
header nav a[href="/contato"] {
    color: var(--blue-brand) !important;
    background: var(--yellow-brand) !important;
}

header nav a[href="/contato"]:hover {
    color: var(--blue-brand) !important;
    filter: brightness(1.08) !important;
    box-shadow: 0 6px 16px rgba(255, 244, 78, 0.35) !important;
    transform: translateY(-1px);
}

header nav a[href="/contato"]::after {
    display: none !important;
}

/* ==========================================================================
   Botões e Elementos Globais de Conversão
   ========================================================================== */
a.btn-blue, 
.section-hero a, 
#sobre-nos a, 
#diferenciais-seguranca a, 
#cta-fale-conosco a, 
#cta-locacao a, 
#cta-aulas a,
#contact-page-form button {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

a.btn-blue:hover, 
.section-hero a:hover, 
#sobre-nos a:hover, 
#diferenciais-seguranca a:hover, 
#cta-fale-conosco a:hover, 
#cta-locacao a:hover, 
#cta-aulas a:hover,
#contact-page-form button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 24px rgba(4, 43, 112, 0.25) !important;
    filter: brightness(1.08);
}

a.btn-blue:active, 
.section-hero a:active, 
#sobre-nos a:active, 
#diferenciais-seguranca a:active, 
#cta-fale-conosco a:active, 
#cta-locacao a:active, 
#cta-aulas a:active,
#contact-page-form button:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 12px rgba(4, 43, 112, 0.15) !important;
}

/* ==========================================================================
   Widget e Chat Modal do WhatsApp
   ========================================================================== */
.whatsapp-btn,
#cta-fale-conosco a[href*="whatsapp"],
#cta-locacao a[href*="whatsapp"],
#cta-aulas a[href*="whatsapp"] {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease !important;
}

.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 2000;
}

.whatsapp-btn:hover,
#cta-fale-conosco a[href*="whatsapp"]:hover,
#cta-locacao a[href*="whatsapp"]:hover,
#cta-aulas a[href*="whatsapp"]:hover {
    transform: scale(1.05) translateY(-2px) !important;
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.3) !important;
}

.wa-modal {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 360px;
    max-width: calc(100vw - 48px);
    background-color: #e5ddd5;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-blend-mode: overlay;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 2000;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
}

.wa-modal.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.wa-modal-header {
    background-color: #075e54;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    position: relative;
}

.wa-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.wa-avatar img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.wa-online-bullet {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: #4df166;
    border-radius: 50%;
    border: 2px solid #075e54;
}

.wa-header-text h4 {
    font-size: 15px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

.wa-header-text p {
    font-size: 12px;
    opacity: 0.8;
}

.wa-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.wa-close-btn:hover { opacity: 1; }

.wa-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wa-message-bubble {
    background-color: #ffffff;
    padding: 12px 16px;
    border-radius: 0px 12px 12px 12px;
    max-width: 85%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.wa-message-bubble p {
    font-size: 14px;
    color: #333333;
    line-height: 1.4;
    margin-bottom: 6px;
}

.wa-message-bubble p:last-of-type { margin-bottom: 0; }

.wa-time {
    display: block;
    text-align: right;
    font-size: 10px;
    color: #999999;
}

.wa-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wa-input-group input, .wa-input-group select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 14px;
    outline: none;
    background-color: #ffffff;
    transition: border-color 0.2s ease;
}

.wa-input-group input:focus, .wa-input-group select:focus {
    border-color: #25d366;
}

.wa-submit-btn {
    background-color: #25d366;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.2s ease;
}

.wa-submit-btn:hover { background-color: #20ba5a; }

.grecaptcha-badge { 
    visibility: hidden !important; 
}

/* ==========================================================================
   Footer Rodapé
   ========================================================================== */
footer.footer-center {
    background-color: var(--blue-brand);
    color: #ffffff;
    padding: 40px 16px;
    text-align: center;
    font-size: 14px;
    border-top: 4px solid var(--yellow-brand);
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    height: 56px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.footer-copy {
    margin-top: 16px;
    opacity: 0.8;
}

.footer-cred {
    margin-top: 4px;
    opacity: 0.6;
}

/* ==========================================================================
   Regras de Media Queries (Responsividade Aberta)
   ========================================================================== */
@media (min-width: 640px) {
    .sm-flex { display: flex !important; }
}

@media (min-width: 768px) {
    nav.md-flex { display: flex !important; }
}

@media (max-width: 768px) {
    .block-md-none { display: none !important; }
    #mobile-menu-btn { display: block !important; }
}

/* No desktop, o top-bar aparece e o header fica abaixo dele */
@media (min-width: 769px) {
    .top-bar { display: flex !important; }
    header { top: 40px; }
    .top-bar.hidden + header { top: 0; }
}

/* No mobile, a top-bar some e o header ocupa o topo */
@media (max-width: 768px) {
    .top-bar { display: none !important; }
    header { top: 0 !important; }
}