/* ============================================================
   ENGECOPE - One Page CSS
   Cores: Primary #3a8c2e (verde) | Secondary #555555 (cinza)
   ============================================================ */

:root {
    --primary:    #3a8c2e;
    --primary-dk: #2d6e22;
    --secondary:  #555555;
    --dark:       #222222;
    --light-bg:   #f5f6f5;
    --text:       #333333;
    --text-light: #666666;
    --white:      #ffffff;
    --border:     #e0e4df;
    --transition: 0.3s ease;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 18px; /* BASE REM - sobrescreve o Bootstrap 3 (14px) */
}

body {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-size: 1rem !important; /* força 18px, override Bootstrap */
    color: var(--text);
    background: var(--white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Override Bootstrap 3 - seletores específicos que ele fixa em 14px */
p, li, td, th, label, span, address,
.navbar-nav > li > a,
.form-control,
.btn,
.dropdown-menu > li > a {
    font-size: 1rem;
}

.container, .container-fluid,
.row, .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1,
.col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark);
    margin-top: 0;
}

p { line-height: 1.85; color: var(--text-light); margin-bottom: 1.1rem; font-size: 1rem; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dk); }

img { max-width: 100%; height: auto; display: block; }

/* ── UTILITÁRIOS ── */
.section-padding    { padding: 90px 0; }
.section-padding-sm { padding: 60px 0; }
.bg-light-gray      { background-color: var(--light-bg); }
.bg-dark            { background-color: var(--dark); }

.section-header     { margin-bottom: 52px; }

.section-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.4rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 10px;
    margin-bottom: 0;
}

.title-line {
    display: inline-block;
    width: 48px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin-bottom: 16px;
}

.btn-primary-custom {
    display: inline-block;
    background: var(--primary);
    color: var(--white) !important;
    padding: 13px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.4px;
    border: 2px solid var(--primary);
    transition: background var(--transition), color var(--transition), transform var(--transition);
    cursor: pointer;
}
.btn-primary-custom:hover {
    background: var(--primary-dk);
    border-color: var(--primary-dk);
    color: var(--white) !important;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-outline-light-custom {
    display: inline-block;
    background: transparent;
    color: var(--white) !important;
    padding: 13px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.4px;
    border: 2px solid rgba(255,255,255,0.6);
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
    cursor: pointer;
    margin-left: 14px;
}
.btn-outline-light-custom:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    color: var(--white) !important;
    transform: translateY(-2px);
    text-decoration: none;
}


/* ── LOGO ── */
.navbar-logo {
    height: 60px;
    width: auto;
    display: block;
}

.footer-logo {
    height: 52px;
    width: auto;
    margin-bottom: 14px;
}

/* ── NAVBAR ── */
#navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
    background: var(--dark);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Logo - 60px + 10px padding top/bottom = 80px navbar height */
#navbar .navbar-brand { padding: 10px 0; }
.navbar-logo { height: 60px; width: auto; display: block; }

/* Links - padding vertical = (80 - 18px line-height) / 2 = 31px */
#navbar .navbar-nav > li > a {
    color: rgba(255,255,255,0.88) !important;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 31px 14px !important;
    line-height: 18px;
    position: relative;
    transition: color var(--transition);
    background: transparent !important;
}
#navbar .navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 10px; left: 14px; right: 14px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition);
    border-radius: 1px;
}
#navbar .navbar-nav > li > a:hover { color: var(--white) !important; }
#navbar .navbar-nav > li > a:hover::after,
#navbar .navbar-nav > li.active > a::after { transform: scaleX(1); }

/* Mobile */
.navbar-toggle { border-color: rgba(255,255,255,0.3); margin-top: 21px; margin-bottom: 21px; }
.navbar-toggle .icon-bar { background-color: var(--white); }

@media (max-width: 767px) {
    #navbar .navbar-nav > li > a {
        padding: 12px 16px !important;
        line-height: 1.4;
    }
    #navbar .navbar-nav > li > a::after { display: none; }
    .navbar-collapse { background: var(--dark); border-top: 2px solid var(--primary); }
}

/* ── HERO ── */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 50%, #1f2b1e 100%);
    overflow: hidden;
}
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(58,140,46,0.14) 0%, transparent 55%),
        radial-gradient(circle at 85% 20%, rgba(58,140,46,0.07) 0%, transparent 45%);
    pointer-events: none;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-block;
    background: rgba(58,140,46,0.15);
    border: 1px solid rgba(58,140,46,0.4);
    color: #6abf5e;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 22px;
}

#hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
}
#hero h1 span { color: #6abf5e; }

#hero p.lead {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.65);
    max-width: 500px;
    margin-bottom: 36px;
    line-height: 1.85;
}

.hero-cta { margin-bottom: 0; }

.hero-stats {
    display: flex;
    gap: 44px;
    margin-top: 52px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-number {
    font-size: 2.1rem;
    font-weight: 800;
    color: #6abf5e;
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    margin-top: 5px;
    letter-spacing: 0.4px;
    line-height: 1.3;
}

@media (max-width: 991px) {
    #hero h1 { font-size: 2.5rem; }
    #hero { padding: 120px 0 70px; }
}
@media (max-width: 767px) {
    #hero h1 { font-size: 2.1rem; }
    .hero-stats { gap: 22px; flex-wrap: wrap; }
    .btn-outline-light-custom { margin-left: 0; margin-top: 12px; display: block; text-align: center; }
}

/* ── SOBRE ── */
#sobre { }

.sobre-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 26px;
}
.sobre-feature-icon {
    width: 44px; height: 44px; min-width: 44px;
    background: rgba(58,140,46,0.1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
}
.sobre-feature-text h6 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3px;
}
.sobre-feature-text p {
    font-size: 0.97rem;
    margin: 0;
}

.sobre-img-wrap { position: relative; }
.sobre-img-wrap img {
    border-radius: 8px;
    width: 100%;
    min-height: 380px;
    object-fit: cover;
    background: var(--light-bg);
}
.sobre-img-badge {
    position: absolute;
    bottom: -18px; right: -18px;
    background: var(--primary);
    color: var(--white);
    padding: 22px 26px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(58,140,46,0.4);
}
.sobre-img-badge .num {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}
.sobre-img-badge .lbl {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 4px;
    line-height: 1.3;
}

@media (max-width: 767px) {
    .sobre-img-badge { right: 10px; bottom: 10px; }
    .sobre-img-wrap { margin-bottom: 44px; }
}

/* ── SERVIÇOS ── */
#servicos { }

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 34px 26px;
    height: 100%;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.service-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.09);
    transform: translateY(-4px);
    border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 54px; height: 54px;
    background: rgba(58,140,46,0.08);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 18px;
    transition: background var(--transition), color var(--transition);
}
.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
}
.service-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}
.service-card p {
    font-size: 0.97rem;
    margin: 0;
}

/* ── TREINAMENTOS ── */
#treinamentos { }

.training-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    border-radius: 10px;
    padding: 22px 26px;
    margin-bottom: 14px;
    border: 1px solid var(--border);
    transition: box-shadow var(--transition), transform var(--transition);
}
.training-item:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.07);
    transform: translateX(5px);
}
.training-icon {
    width: 50px; height: 50px; min-width: 50px;
    background: rgba(58,140,46,0.08);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
}
.training-text h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3px;
}
.training-text p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-light);
}
.training-badge {
    margin-left: auto;
    background: rgba(58,140,46,0.08);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 30px;
    white-space: nowrap;
}

/* ── POR QUE NÓS ── */
#por-que {
    background: linear-gradient(135deg, #222222 0%, #1a2619 100%);
    position: relative;
    overflow: hidden;
}
#por-que::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(58,140,46,0.1) 0%, transparent 55%);
    pointer-events: none;
}
.why-item { text-align: center; padding: 30px 20px; }
.why-icon {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: rgba(58,140,46,0.12);
    border: 2px solid rgba(58,140,46,0.3);
    display: flex; align-items: center; justify-content: center;
    color: #6abf5e;
    font-size: 1.6rem;
    margin: 0 auto 18px;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.why-item:hover .why-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.why-item h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.why-item p {
    font-size: 0.97rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

/* ── CONTATO ── */
#contato { }

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}
.contact-info-icon {
    width: 46px; height: 46px; min-width: 46px;
    background: rgba(58,140,46,0.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
}
.contact-info-text h6 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-light);
    margin-bottom: 3px;
}
.contact-info-text a,
.contact-info-text p {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}
.contact-info-text a:hover { color: var(--primary); }

.contact-form .form-control {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 1rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    box-shadow: none;
    height: auto;
}
.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58,140,46,0.12);
    outline: none;
}
.contact-form .form-group { margin-bottom: 16px; }
.contact-form textarea.form-control { resize: vertical; min-height: 130px; }
.contact-form .btn-submit {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 13px 36px;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    width: 100%;
}
.contact-form .btn-submit:hover {
    background: var(--primary-dk);
    transform: translateY(-1px);
}

/* ── FOOTER ── */
footer {
    background: #1a1a1a;
    padding: 44px 0 24px;
    border-top: 3px solid var(--primary);
}
.footer-brand .brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
}
.footer-brand .brand-name span { color: #6abf5e; }
.footer-brand p {
    font-size: 0.97rem;
    color: rgba(255,255,255,0.45);
    margin-top: 10px;
    max-width: 280px;
}
.footer-links h6 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 14px;
}
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a {
    font-size: 0.97rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}
.footer-links ul li a:hover { color: #6abf5e; }
.footer-bottom {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.07);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    text-align: center;
}

/* ── WHATSAPP FLUTUANTE ── */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}
.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px; height: 58px;
    background: #25D366;
    border-radius: 50%;
    color: var(--white) !important;
    font-size: 1.7rem;
    box-shadow: 0 6px 24px rgba(37,211,102,0.45);
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    position: relative;
}
.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(37,211,102,0.6);
}
.whatsapp-float a::before {
    content: '';
    position: absolute;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: rgba(37,211,102,0.3);
    animation: waPulse 2.2s ease-out infinite;
}
@keyframes waPulse {
    0%   { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.9); opacity: 0; }
}

/* ── RESPONSIVO GERAL ── */
@media (max-width: 991px) {
    .section-padding { padding: 70px 0; }
    .section-title { font-size: 2rem; }
}
@media (max-width: 767px) {
    .section-padding { padding: 55px 0; }
    .whatsapp-float { bottom: 20px; right: 20px; }
    .training-badge { display: none; }
    .sobre-img-wrap { margin-bottom: 50px; }
}

/* ============================================================
   HERO - ANIMAÇÃO DE LOGO
   mais.png: 124x125 | centre em 21.32% H, 50% V do stage
   ============================================================ */

/* Container coluna */
#hero .row {
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    align-self: stretch;
}

/* Stage: 80% da largura da coluna, proporcional em altura */
.logo-stage {
    position: relative;
    width: 100%;
    /* altura baseada no aspect-ratio da composição (~493x430 estimado) */
    padding-bottom: calc(100% * 0.87);
}

/* Cada peça é uma layer absoluta dentro do stage */
.logo-piece {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* O <img> dentro de cada peça fica no lugar certo */
.logo-img {
    position: absolute;
    display: block;
}

/* ── MAIS.PNG ──
   Centro horizontal: 21.32% do stage
   Centro vertical: 50% do stage
   → left: 21.32% e top: 50%, depois recua metade da própria largura/altura
*/
.mais-wrap .logo-img {
    /* largura proporcional: mais.png é ~25% da largura total da composição */
    width: 25%;
    height: auto;
    left: 21.32%;
    top: 50%;
    /* mantém o CENTRO do elemento exatamente em 21.32% H / 50% V */
    transform: translate(-50%, -50%);
    animation: rollInMais 1.6s ease 0.2s both;
}

@keyframes rollInMais {
    0% {
        /* começa no centro vertical mas muito à direita, fora da tela, girando */
        transform: translate(calc(120vw), -50%) rotate(900deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        /* pousa no centro exato: 21.32% H / 50% V */
        transform: translate(-50%, -50%) rotate(0deg);
        opacity: 1;
    }
}

/* Mobile: stage menor */
@media (max-width: 991px) {
    .hero-logo { margin-top: 40px; }
    .logo-stage { width: 65%; padding-bottom: calc(65% * 0.87); }
}
@media (max-width: 767px) {
    .hero-logo { display: none; }
}

/* ── ENGRENAGEM.PNG ──
   Surge do proprio ponto (sem movimento), fade opacity 0 -> 1
   Centro horizontal: 21.32% do stage (mesmo eixo que mais.png)
   Centro vertical: 50% do stage
   Largura: 63.3% do stage (312 / 493 da composicao total)
   Delay: 0.2s + (1.6s * 0.8) = 1.48s
*/
.engrenagem-wrap .logo-img {
    width: 63.3%;
    height: auto;
    left: 18.32%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: fadeInEngrenagem 0.8s ease 1.48s both;
    z-index: 1;
    filter: brightness(0) invert(1);
}

@keyframes fadeInEngrenagem {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

/* ── NOME.PNG ──
   Vem de cima com fade, para em 71% H / 40% V
   Delay: engrenagem (1.48s) + 80% de sua duracao (0.64s) = 2.12s
*/
.nome-wrap .logo-img {
    width: 75%;
    height: auto;
    left: 80%;
    top: 47.5%;
    transform: translate(-50%, -50%) translateY(-50px);
    opacity: 0;
    animation: slideDownNome 0.8s ease 2.12s both;
    z-index: 3;
    filter: brightness(0) invert(1);
}

@keyframes slideDownNome {
    0% {
        transform: translate(-50%, -50%) translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) translateY(0);
        opacity: 1;
    }
}

/* ── SUBTITULO.PNG ──
   Vem de baixo com fade, para em 71% H / 60% V
   Mesmo delay que nome (entram juntos)
*/
.subtitulo-wrap .logo-img {
    width: 75%;
    height: auto;
    left: 80%;
    top: 58%;
    transform: translate(-50%, -50%) translateY(50px);
    opacity: 0;
    animation: slideUpSubtitulo 0.8s ease 2.12s both;
    z-index: 3;
}

@keyframes slideUpSubtitulo {
    0% {
        transform: translate(-50%, -50%) translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) translateY(0);
        opacity: 1;
    }
}

/* ── LUZ NEON DE FUNDO ──
   Glow branco radial atras da animacao da logo
   Surge junto com a engrenagem (delay 1.48s), cresce suavemente
*/
.logo-glow {
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background:
        radial-gradient(ellipse at center,
            rgba(0, 0, 0, 0.72) 0%,
            rgba(0, 0, 0, 0.40) 35%,
            rgba(0, 0, 0, 0.12) 60%,
            transparent 75%
        );
    filter: blur(18px);
    opacity: 0;
    animation: glowPulse 2s ease 1.48s both;
    z-index: 0;
    pointer-events: none;
}

@keyframes glowPulse {
    0%   { opacity: 0; }
    60%  { opacity: 1; }
    80%  { opacity: 0.85; }
    100% { opacity: 0.95; }
}

/* ── CATEGORIAS DE SERVICOS ── */
.servicos-categoria {
    margin: 48px 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}
.servicos-categoria:first-of-type { margin-top: 0; }

.categoria-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.categoria-title i { color: var(--primary); font-size: 1rem; }

/* ── SERVICE CARD COM IMAGEM ── */
.service-card { padding: 0; overflow: hidden; margin-bottom: 24px; }

.service-card-img {
    width: 100%;
    height: 320px;
    overflow: hidden;
}
.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.service-card:hover .service-card-img img { transform: scale(1.05); }

.service-card-body {
    padding: 24px 22px;
}
.service-card-body h4 { margin-bottom: 8px; }
.service-card-body .service-icon { margin-bottom: 14px; }

/* Cards sem imagem (laudos) mantem padding original */
.service-card:not(:has(.service-card-img)) { padding: 34px 26px; }

/* Card horizontal (consultoria) */
.service-card-horizontal {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}
.service-card-img-sm {
    width: 160px;
    min-width: 160px;
    overflow: hidden;
}
.service-card-img-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.service-card-horizontal:hover .service-card-img-sm img { transform: scale(1.05); }
.service-card-horizontal .service-card-body { flex: 1; }

@media (max-width: 767px) {
    .service-card-horizontal { flex-direction: column; }
    .service-card-img-sm { width: 100%; min-width: unset; height: 160px; }
}

/* Titulo branco na secao por-que */
#por-que .section-title { color: #fff !important; }


/* ── IGUAL ALTURA NAS ROWS DE CARDS ── */
.row-equal {
    display: flex;
    flex-wrap: wrap;
    row-gap: 30px;
    padding-bottom: 24px;
}
.row-equal > [class*="col-"] {
    display: flex;
    flex-direction: column;
}
.row-equal .service-card {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}
.row-equal .service-card .service-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.row-equal .service-card .service-card-body p {
    flex: 1;
}
/* Treinamentos: itens com mesma altura dentro de cada coluna */
.row-equal .training-item {
    flex: 1 0 auto;
}

/* ── CARROSSEL VÁLVULA ── */
.valvula-carousel { position: relative; overflow: hidden; }
.valvula-carousel .valvula-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.valvula-carousel .valvula-slide.active { opacity: 1; position: relative; }

/* ── MODAL ── */
.eng-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.eng-modal-overlay.open { display: flex; }
.eng-modal {
    background: var(--white);
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
    animation: modalIn 0.25s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.eng-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px 18px;
    border-bottom: 2px solid var(--border);
}
.eng-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--dark);
    font-weight: 700;
}
.eng-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background var(--transition), color var(--transition);
}
.eng-modal-close:hover { background: var(--light-bg); color: var(--dark); }
.eng-modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
    font-size: 0.97rem;
    color: var(--text);
    line-height: 1.8;
}
.eng-modal-body h5 {
    color: var(--primary);
    font-weight: 700;
    margin: 20px 0 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.eng-modal-body ul {
    padding-left: 20px;
    margin-bottom: 14px;
}
.eng-modal-body ul li { margin-bottom: 5px; }
.eng-modal-body p { margin-bottom: 12px; }
.eng-modal-footer {
    padding: 16px 28px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
/* Botao ver mais nos cards */
.btn-ver-mais {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    background: none;
    border: 1.5px solid var(--primary);
    border-radius: 6px;
    padding: 7px 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    align-self: flex-start;
}
.btn-ver-mais:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-ver-mais i { font-size: 0.75rem; }
@media (max-width: 600px) {
    .eng-modal-header, .eng-modal-body, .eng-modal-footer { padding-left: 18px; padding-right: 18px; }
}

/* ── LOGO EXIT (reverse, 10x mais rapido) ── */
.logo-stage.logo-exit .mais-img {
    animation: rollInMais 0.16s ease 0s both reverse !important;
}
.logo-stage.logo-exit .engrenagem-img {
    animation: fadeInEngrenagem 0.08s ease 0s both reverse !important;
}
.logo-stage.logo-exit .nome-img {
    animation: slideDownNome 0.08s ease 0s both reverse !important;
}
.logo-stage.logo-exit .subtitulo-img {
    animation: slideUpSubtitulo 0.08s ease 0s both reverse !important;
}
.logo-stage.logo-exit .logo-glow {
    animation: glowPulse 0.2s ease 0s both reverse !important;
}

/* =============================================
   PARCEIROS / CLIENTES
============================================= */
.parceiros-track-wrap {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}
.parceiros-track-wrap::before,
.parceiros-track-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.parceiros-track-wrap::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}
.parceiros-track-wrap::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}
.parceiros-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: parceiros-scroll 18s linear infinite;
}
.parceiro-logo {
    height: 320px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: filter 0.3s, opacity 0.3s;
    flex-shrink: 0;
}
.parceiro-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}
@keyframes parceiros-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   MOBILE - Tratamento completo Android & iOS
   Engecope - breakpoints: xs <480 | sm <768 | md <992
   ============================================================ */

/* ── GLOBAL: remove flash azul de tap no Android/iOS ── */
* { -webkit-tap-highlight-color: transparent; }

/* ── MOMENTUM SCROLL em containers rolados internamente ── */
.eng-modal-body,
.navbar-collapse {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* ── KEYFRAMES MOBILE (fora do @media para garantia de suporte) ── */
@keyframes modalInMobile {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
@keyframes modalHandlePulse {
    0%, 100% { opacity: 0.35; }
    50%       { opacity: 0.6; }
}

/* ── SAFE AREA: iPhone com notch, Dynamic Island, barra home ── */
@supports (padding: env(safe-area-inset-bottom)) {
    #navbar .container {
        padding-left:  max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
    .whatsapp-float {
        right:  max(20px, env(safe-area-inset-right));
        bottom: max(20px, env(safe-area-inset-bottom));
    }
    footer {
        padding-bottom: max(24px, calc(14px + env(safe-area-inset-bottom)));
    }
    .eng-modal-footer {
        padding-bottom: max(16px, calc(8px + env(safe-area-inset-bottom)));
    }
}

/* ============================================================
   TABLET: 768px - 991px
   ============================================================ */
@media (max-width: 991px) {
    .section-padding { padding: 72px 0; }
    .section-title   { font-size: 2rem; }
    .parceiro-logo   { height: 180px; }
    #hero { padding-top: 110px; padding-bottom: 64px; min-height: auto; }
}

/* ============================================================
   MOBILE GERAL: < 768px
   ============================================================ */
@media (max-width: 767px) {

    /* ── BASE ── */
    html { font-size: 16px; }

    /* iOS: previne zoom ao focar em inputs (obriga font-size >= 16px) */
    input,
    select,
    textarea,
    .form-control {
        font-size: 16px !important;
        -webkit-appearance: none; /* remove estilo nativo iOS em inputs */
        appearance: none;
    }
    select { -webkit-appearance: menulist; appearance: menulist; } /* mantém seta nativa no select */

    .section-padding  { padding: 56px 0; }
    .section-header   { margin-bottom: 36px; }
    .section-title    { font-size: 1.75rem; }
    .section-subtitle { font-size: 0.97rem; }

    /* ── NAVBAR ── */
    /* Toggle: alvo de toque mínimo 44x44px */
    .navbar-toggle {
        width: 44px;
        height: 44px;
        margin: 18px 0 18px 10px;
        padding: 9px 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
    }
    .navbar-toggle .icon-bar {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 1px;
    }

    .navbar-collapse {
        background: var(--dark);
        border-top: 2px solid var(--primary);
        padding-bottom: 8px;
        /* scroll caso menu seja grande */
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Links do menu: alvo 44px de altura */
    #navbar .navbar-nav > li > a {
        padding: 12px 24px !important;
        font-size: 1rem;
        line-height: 20px;
        min-height: 44px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    #navbar .navbar-nav > li:last-child > a { border-bottom: none; }
    #navbar .navbar-nav > li > a::after { display: none; }

    /* ── HERO ── */
    #hero {
        padding: 96px 0 52px;
        min-height: auto;
        text-align: center;
    }
    #hero h1 {
        font-size: 1.9rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }
    #hero p.lead {
        font-size: 1rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 28px;
    }
    .hero-badge {
        font-size: 0.68rem;
        padding: 5px 14px;
        margin-bottom: 18px;
    }

    /* CTAs: coluna centralizada, full-width no mobile */
    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .btn-primary-custom,
    .btn-outline-light-custom {
        display: block;
        width: 100%;
        max-width: 340px;
        margin: 0 !important;
        text-align: center;
        padding: 14px 20px;
        font-size: 1rem;
    }

    /* Stats: grid 3 colunas fixas centralizado */
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
        margin-top: 32px;
        padding-top: 24px;
        text-align: center;
    }
    .hero-stat-number { font-size: 1.55rem; }
    .hero-stat-label  { font-size: 0.68rem; line-height: 1.3; }

    /* ── SOBRE ── */
    .sobre-img-wrap img { min-height: 240px; }
    .sobre-img-badge {
        right: 12px;
        bottom: 12px;
        padding: 16px 18px;
    }
    .sobre-img-badge .num { font-size: 1.8rem; }
    .sobre-feature { gap: 12px; margin-bottom: 18px; }
    .sobre-feature-icon { min-width: 40px; width: 40px; height: 40px; }

    /* ── SERVIÇOS ── */
    .service-card-img { height: 210px; }
    .servicos-categoria { margin-top: 32px; margin-bottom: 16px; }

    /* Horizontal vira vertical */
    .service-card-horizontal { flex-direction: column; }
    .service-card-img-sm {
        width: 100%;
        min-width: unset;
        height: 170px;
    }

    /* ── TREINAMENTOS ── */
    .training-item {
        gap: 12px;
        padding: 16px 14px;
    }
    .training-icon { width: 44px; height: 44px; min-width: 44px; font-size: 1.1rem; }

    /* ── POR QUE NÓS ── */
    .why-item { padding: 20px 10px; }
    .why-icon  { width: 60px; height: 60px; font-size: 1.4rem; }

    /* ── PARCEIROS ── */
    .parceiro-logo { height: 100px; }
    .parceiros-track { gap: 36px; }
    .parceiros-track-wrap::before,
    .parceiros-track-wrap::after { width: 36px; }

    /* ── CONTATO ── */
    .contact-info-card { gap: 12px; margin-bottom: 20px; }
    .contact-info-icon { width: 42px; height: 42px; min-width: 42px; }
    .contact-form .form-group { margin-bottom: 14px; }
    .contact-form textarea.form-control { min-height: 110px; }
    .contact-form .btn-submit {
        padding: 14px;
        font-size: 1rem;
        /* alvo de toque generoso */
        min-height: 52px;
    }

    /* ── MODAL: bottom sheet nativo (padrão iOS/Android) ── */
    .eng-modal-overlay {
        padding: 0;
        align-items: flex-end;
        /* previne scroll do body ao rolar o modal */
        overscroll-behavior: none;
    }
    .eng-modal {
        max-width: 100%;
        width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -8px 40px rgba(0,0,0,0.35);
        animation: modalInMobile 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    }
    /* Handle visual (tira) acima do header - indicador de arrasto */
    .eng-modal-header {
        padding-top: 20px;
        position: relative;
    }
    .eng-modal-header::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: var(--border);
        border-radius: 2px;
        margin: -8px auto 14px;
        animation: modalHandlePulse 2s ease-in-out 0.5s 3;
    }
    .eng-modal-header { padding: 12px 20px 14px; }
    .eng-modal-header h3 { font-size: 1.1rem; }
    .eng-modal-close {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        margin: -8px -8px -8px 0;
    }
    .eng-modal-body    { padding: 16px 20px; }
    .eng-modal-footer  { padding: 12px 20px; flex-wrap: wrap; }
    .eng-modal-footer .btn-primary-custom { width: 100%; text-align: center; }

    /* ── FOOTER ── */
    footer { padding: 40px 0 20px; }
    .footer-brand { text-align: center; margin-bottom: 28px !important; }
    .footer-brand p { max-width: 100%; }
    .footer-logo { margin: 0 auto 14px; }
    .footer-links { margin-bottom: 20px !important; }
    .footer-links h6 { margin-top: 4px; }
    .footer-bottom { font-size: 0.75rem; }

    /* ── WHATSAPP FLOAT ── */
    .whatsapp-float { bottom: 18px; right: 18px; }
}

/* ============================================================
   TELEFONES PEQUENOS: < 480px
   iPhone SE (375px), Galaxy A series, Moto G
   ============================================================ */
@media (max-width: 479px) {
    html { font-size: 15px; }

    .section-padding  { padding: 48px 0; }
    .section-title    { font-size: 1.55rem; }
    .section-header   { margin-bottom: 28px; }

    /* Hero */
    #hero { padding: 88px 0 44px; }
    #hero h1 { font-size: 1.65rem; }
    .hero-stat-number { font-size: 1.35rem; }
    .hero-stat-label  { font-size: 0.6rem; }

    /* Cards */
    .service-card-img { height: 185px; }
    .service-card-body { padding: 18px 16px; }

    /* Parceiros */
    .parceiro-logo { height: 80px; }
    .parceiros-track { gap: 28px; }

    /* Modal ocupa quase toda a tela */
    .eng-modal { max-height: 96vh; }

    /* WhatsApp menor */
    .whatsapp-float a {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }
    .whatsapp-float a::before {
        width: 52px;
        height: 52px;
    }

    /* Btn ver mais full-width em cards pequenos */
    .btn-ver-mais {
        width: 100%;
        justify-content: center;
    }
}
