/* Botão Flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 4px 15px rgba(0,0,0,0.3);
}

.whatsapp-float i {
    margin-top: 2px; /* Ajuste óptico leve */
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --bg: #f8fafc;
  --text: #0f2a5e;
  --muted: #334e89;
  --accent: #1e90ff;
  --panel: #ffffff;
  --shadow: 0 8px 18px rgba(0,0,0,0.06);
  --footer-bg: #0f2a5e;
  --footer-bottom-bg: #162f57;
}

body { 
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
  background-color: var(--bg); 
  
  /* Subtle Grid Texture */
  background-image: 
      linear-gradient(rgba(15, 42, 94, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(15, 42, 94, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;

  color: var(--text);
  line-height: 1.5;
}

/* ===== CABEÇALHO ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 200;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: center; /* Centralizado por padrão */
    align-items: center;
}

header.scrolled .header-container {
  padding: 12px 20px;
}

/* Menu Desktop */
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0;
    margin: 0;
}

nav a {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: 16px;
    transition: opacity 0.2s ease, color 0.2s ease;
    position: relative;
    padding: 8px 2px;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover, nav a.active {
  color: var(--accent);
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

/* Hamburger Menu (Hidden by default) */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text);
    transition: 0.3s;
}

/* ===== RODAPÉ ===== */
.footer {
    background: var(--footer-bg);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 56px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.footer-col h2, .footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #fff;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-col a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-col a:hover {
    opacity: 0.8;
}

.logo-col img {
    max-width: 180px;
    margin-bottom: 15px;
}

.social-icons a {
    color: #ffffff;
    margin-right: 15px;
    font-size: 1.2rem;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    background: var(--footer-bottom-bg);
    font-size: 0.85rem;
}

/* Animações Comuns */
.reveal { opacity: 0; transform: translateY(10px); }
.reveal.visible { opacity: 1; transform: translateY(0); transition: opacity .5s ease, transform .5s ease; }


/* ===== RESPONSIVIDADE (MOBILE) ===== */
@media (max-width: 768px) {
    .header-container {
        justify-content: space-between; /* Espalha Logo e Menu */
    }

    .menu-toggle {
        display: flex;
        z-index: 201;
    }

    /* Menu Mobile Fullscreen/Dropdown */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--panel);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        padding-top: 60px;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 30px;
    }

    .nav-menu a {
        font-size: 1.2rem;
    }

    /* Animação do Hamburger */
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Rodapé Empilhado */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .logo-col { display: flex; flex-direction: column; align-items: center; }
}
