/* 1. CONFIGURAÇÕES GLOBAIS E VARIÁVEIS */
:root {
    --primary-color: #004b8d;
    --primary-light: #1e5aa8;
    --primary-dark: #003366;
    --secondary-color: #ff9900;
    --secondary-light: #ffac33;
    --secondary-dark: #e68900;
    --accent-color: #00d4ff;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    --dark-blue: #0A2540;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --bg-light: #f9fafb;
    --bg-lighter: #ffffff;
    --white-color: #ffffff;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    
    --header-height: 80px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
}

/* 2. RESET E BASE */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height); /* Mantém o espaço para âncoras */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-lighter);
    line-height: 1.6;
    overflow-x: hidden;
    /* [ALTERAÇÃO] Empurra o conteúdo para baixo da altura do header */
    padding-top: var(--header-height);
}

body.menu-open {
    overflow: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
}

::selection {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* 3. TIPOGRAFIA RESPONSIVA */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-blue);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); font-weight: 600; }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.25rem); font-weight: 600; }

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
    max-width: 65ch;
}
.section-header p {
    margin-left: auto;
    margin-right: auto;
}

/* 4. LAYOUT E CONTAINERS */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem);
}

section {
    padding: clamp(3rem, 8vw, 6rem) 0;
    position: relative;
    overflow: hidden;
}

/* [ALTERAÇÃO] A seção #home não precisa de min-height, pois o body já tem o padding */
#home {
     padding-top: clamp(3rem, 8vw, 6rem);
     padding-bottom: clamp(3rem, 8vw, 6rem);
}


/* 5. GRID SYSTEM RESPONSIVO */
.grid {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.5rem);
}
.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* 6. COMPONENTES BÁSICOS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
    font-size: clamp(0.9rem, 2vw, 1rem);
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
}
.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: var(--white-color);
    box-shadow: var(--shadow-md);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary-dark));
}
.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white-color);
}
#home .btn-secondary {
    color: var(--white-color);
    border-color: var(--white-color);
}
#home .btn-secondary:hover {
    background: var(--white-color);
    color: var(--primary-color);
}
#contact .btn-secondary {
    background: var(--white-color);
    color: var(--primary-color);
}
.btn-lg {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    padding: clamp(1rem, 3vw, 1.25rem) clamp(2rem, 5vw, 2.5rem);
    border-radius: 50px;
}

/* 7. ANIMAÇÕES */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 8. HEADER */
.header {
    background-color: var(--white-color);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: none;
}
.header.scrolled {
    /* Esta classe não tem mais efeito visual no header, mas é mantida para possível uso de JS. */
}
.header.menu-is-open {
    background: var(--white-color);
    box-shadow: var(--shadow-md);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}
.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--dark-blue);
    letter-spacing: -0.5px;
}
.logo img {
    height: 60px; /* Tamanho do logo do header reduzido */
    width: auto;
    transition: height 0.3s ease;
    object-fit: contain;
}
.header.scrolled .logo img {
    height: 60px; /* Mantido para consistência */
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(1.5rem, 4vw, 2.5rem);
}
.nav-menu a {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* [REMOVIDO] Regra de texto branco foi removida. */

.nav-menu a:hover {
    color: var(--secondary-color);
}
.header.scrolled .nav-menu a:hover,
.header.menu-is-open .nav-menu a:hover {
    color: var(--primary-color);
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}
.header.scrolled .nav-menu a::after,
.header.menu-is-open .nav-menu a::after {
     background: var(--primary-color);
}
.nav-menu a:hover::after {
    width: 100%;
}

/* 9. MOBILE MENU */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    z-index: 1001;
    position: relative;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(255,255,255,0.1); /* Ajustado para fundo branco */
}

.header.scrolled .mobile-menu-btn:hover,
.header.menu-is-open .mobile-menu-btn:hover {
    background-color: rgba(0, 75, 141, 0.1);
}

.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
}
.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--dark-blue);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.25s ease-in-out;
}

/* [ALTERAÇÃO] Regra de ícone branco agora só se aplica em telas maiores */
@media (min-width: 769px) {
    .header:not(.scrolled):not(.menu-is-open) .hamburger span {
        background: var(--dark-blue);
    }
}

.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 7px; }
.hamburger span:nth-child(3) { top: 14px; }

.hamburger.active span:nth-child(1) {
    top: 7px;
    transform: rotate(135deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}
.hamburger.active span:nth-child(3) {
    top: 7px;
    transform: rotate(-135deg);
}
.hamburger.active span {
    background: var(--dark-blue);
}

/* Menu mobile overlay */
.nav-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-menu-overlay.active {
    background: rgba(0, 0, 0, 0);
    opacity: 1;
    visibility: visible;
}

/* 10. HERO SECTION */
#home {
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.85), rgba(0, 75, 141, 0.75)),
                url('https://abbatech.com.br/uploads/kwon-junho-p17VdgRFXAQ-unsplash_688e2eafab909871545997.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white-color);
}
.hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
}
.hero-content h1 {
    color: var(--white-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero-content .slogan {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-target-audience {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 500;
    margin-top: -1.5rem; /* Puxa para mais perto do slogan */
    margin-bottom: 2.5rem;
    opacity: 0.9;
    color: var(--secondary-light);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
}
.hero-badge svg {
    width: 20px;
    height: 20px;
    color: var(--secondary-color);
}

/* 11. SERVICES SECTION */
#services {
    background-color: var(--bg-light);
}
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}
.section-subtitle {
    color: var(--text-light);
    margin-top: 1rem;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}
.service-card {
    background: var(--white-color);
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}
.service-icon {
    width: clamp(60px, 8vw, 80px);
    height: clamp(60px, 8vw, 80px);
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 75, 141, 0.2);
}
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
}
.service-icon svg {
    width: clamp(28px, 4vw, 36px);
    height: clamp(28px, 4vw, 36px);
}
.service-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-blue);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}
.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: clamp(0.9rem, 2vw, 1rem);
    flex-grow: 1;
}
.service-card .btn {
    margin-top: 1.5rem;
}
.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: var(--white-color);
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

/* 12. STATS SECTION */
#stats {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-dark));
    color: var(--white-color);
    position: relative;
}
#stats::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><g fill-rule="evenodd"><g fill="%23fff" fill-opacity="0.05"><path opacity=".5" d="M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-4v-1h4v-9h-4v-1h4v-9h-4v-1h4v-9h-4v-1h4v-9h-4v-1h4v-9h-4v-1h4v-9h-4v-1h4v-9h-4v-1h4v-4h1v4h9v-4h1v4h9v-4h1v4h9v-4h1v4h9v-4h1v4h9v-4h1v4h9v-4h1v4h9v-4h1v4h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4zM1 0v4h-1v1h1v9h-1v1h1v9h-1v1h1v9h-1v1h1v9h-1v1h1v9h-1v1h1v9h-1v1h1v9h-1v1h1v4h1v-4h9v4h1v-4h9v4h1v-4h9v4h1v-4h9v4h1v-4h9v4h1v-4h9v4h1v-4h9v4h1v-4h4v-1h-4v-9h4v-1h-4v-9h4v-1h-4v-9h4v-1h-4v-9h4v-1h-4v-9h4v-1h-4v-9h4v-1h-4v-9h4v-1h-4z" /><path d="M6 95V5h90v90H6z" /></g></g></svg>');
    opacity: 0.5;
}
#stats .container { position: relative; z-index: 2; }
#stats h2 { color: var(--white-color); text-align: center; margin-bottom: 3rem; }
.stat-card {
    text-align: center;
    padding: 2rem 1rem;
}
.stat-number {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* 13. ABOUT SECTION */
#about { background: var(--white-color); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem; /* Increased gap */
}

.about-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media(min-width: 768px) {
    .about-item {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    /* Alternating layout */
    .about-item:nth-child(even) .about-image {
        order: -1;
    }
}

.about-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    height: 100%; /* Make image fill the container */
    object-fit: cover; /* Ensure image covers the area */
    aspect-ratio: 4 / 3; /* Maintain aspect ratio */
}

.about-content h3 {
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 4vw, 2rem); /* Larger title */
}

.about-content p {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: var(--text-light);
}

/* 14. CERTIFICATIONS SECTION */
#certifications { background: var(--bg-light); }
.cert-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(1rem, 4vw, 2rem);
}
.cert-item {
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
    opacity: 0.8;
    filter: grayscale(50%);
}

.cert-item.crea-rj .cert-logo {
    background: #000000;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.cert-logo img {
    max-height: 60px;
    width: auto;
    margin-bottom: 0.5rem;
}

.cert-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}
.cert-logo {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cert-description {
    font-weight: 600;
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: var(--text-light);
}

/* 15. TESTIMONIALS SECTION */
#testimonials { background: var(--white-color); }
.testimonial-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow);
    position: relative;
}
.testimonial-quote {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.testimonial-author-name {
    font-weight: 700;
    color: var(--dark-blue);
}
.testimonial-author-role {
    font-size: 0.9rem;
    color: var(--text-light);
}
.testimonial-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 4rem;
    color: var(--border-color);
    opacity: 0.5;
    z-index: 0;
}
.testimonial-card > * {
    position: relative;
    z-index: 1;
}

/* 16. CONTACT SECTION */
#contact { background: linear-gradient(135deg, var(--bg-light), var(--white-color)); }
.contact-card {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-dark));
    color: var(--white-color);
    border-radius: var(--border-radius-lg);
    padding: clamp(3rem, 8vw, 5rem);
    text-align: center;
    box-shadow: var(--shadow-xl);
}
.contact-content h2 { color: var(--white-color); margin-bottom: 1rem; }
.contact-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    margin-left: auto;
    margin-right: auto;
}

/* 17. FOOTER */
.footer {
    background: var(--dark-blue);
    color: var(--white-color);
    padding: clamp(3rem, 8vw, 5rem) 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 3rem;
}
@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1.5fr;
    }
}
.footer-col h4 {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    margin-bottom: 1.5rem;
    color: var(--white-color);
    position: relative;
    padding-bottom: 0.75rem;
}
.footer-col h4::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 40px; height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
}
.footer-col p, .footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.75rem; }
.footer-col a:hover { color: var(--secondary-color); }
.footer-logo img {
    height: clamp(50px, 6vw, 60px);
    width: auto;
    margin-bottom: 1rem;
    object-fit: contain;
}
.footer-map iframe {
     border-radius: var(--border-radius);
     margin-top: 1.5rem;
     height: 250px;
}
.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: clamp(0.875rem, 2vw, 0.9rem);
    color: rgba(255, 255, 255, 0.6);
}

/* 18. RESPONSIVIDADE MOBILE */
@media (max-width: 768px) {
     /* [ALTERAÇÃO] Define o header como uma barra branca fixa no mobile */
    .header, 
    .header.scrolled, 
    .header.menu-is-open {
        background: var(--white-color);
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid var(--border-light);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white-color);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        flex-direction: column;
        /* justify-content: center; REMOVIDO para alinhar ao topo */
        align-items: center;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        padding-top: calc(var(--header-height) + 2rem); /* Espaço do topo + margem */
        padding-bottom: 2rem;
        overflow-y: auto; /* Adicionado para telas pequenas */
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-menu li {
        margin: 0; /* Margem removida para controle via padding do link */
        transform: translateX(-30px);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
    }
    .nav-menu.active li {
        transform: translateX(0);
        opacity: 1;
    }
    
    /* Delay animação dos itens */
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.3s; }
    
    .nav-menu a {
        font-size: 1.75rem;
        color: var(--dark-blue);
        padding: 0.5rem 0; /* Padding vertical reduzido para aproximar os itens */
        display: block;
        text-align: center;
    }
    .nav-menu a:hover {
        color: var(--primary-color);
    }
    .nav-menu a::after {
         background: var(--primary-color);
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
    }

    .cert-grid {
        flex-direction: column;
        gap: 2.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 70px;
    }
    section {
        padding: 2.5rem 0;
    }
    .mobile-menu-btn {
        padding: 0.5rem;
    }
    .hamburger {
        width: 20px;
        height: 15px;
    }
    .hamburger span {
        height: 2px;
    }
    .hamburger span:nth-child(2) { top: 6px; }
    .hamburger span:nth-child(3) { top: 12px; }
    .hamburger.active span:nth-child(1) {
        top: 6px;
    }
    .hamburger.active span:nth-child(3) {
        top: 6px;
    }
}

/* 19. UTILITÁRIOS E BOTÕES FLUTUANTES */
.whatsapp-float, .back-to-top {
    position: fixed;
    bottom: 20px;
    background: var(--success-color);
    color: var(--white-color);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 998;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
}
.whatsapp-float {
    right: 20px;
    background: linear-gradient(135deg, #25D366, #128C7E);
}
.whatsapp-float:hover, .back-to-top:hover {
    transform: scale(1.1);
}
.back-to-top {
    right: 20px;
    bottom: 85px;
    background: var(--primary-color);
    opacity: 0;
    pointer-events: none;
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}
.whatsapp-float svg, .back-to-top svg {
    width: 28px;
    height: 28px;
}

/* 20. ACESSIBILIDADE */
*:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
}
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.hero-logo {
    width: clamp(150px, 45vw, 200px); /* Tamanho fluido: min, ideal, max */
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
}