:root {
    --primary-color: #00a8ff;
    --dark-bg: #1a1a1a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto", sans-serif;
    background-color: #fff;
    overflow-x: hidden;
}

section {
    scroll-margin-top: 90px;
}

.font-special {
    font-family: "Orbitron", sans-serif;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero-text h1 {
    color: var(--primary-color);
}

/* ANIMAÇÃO DO MOTOR */
.engine-container {
    position: relative;
    display: inline-block;
}

.floating-engine {
    width: 100%;
    max-width: 500px;
    z-index: 2;
    position: relative;
    /* animation: floatEngine 4s ease-in-out infinite; */
}

.engine-shadow {
    width: 250px;
    height: 40px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    margin: -30px auto 0;
    filter: blur(10px);
    animation: shadowSize 4s ease-in-out infinite;
}

/* Keyframes para flutuar */
@keyframes floatEngine {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
}

/* Sombra acompanha o movimento */
@keyframes shadowSize {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(0.8);
        opacity: 0.2;
    }
}

/* Background variante para os diferenciais */
.bg-dark-variant {
    background-color: #252525;
}

/* Estilização dos inputs para ficarem limpos como no layout */
.form-control {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    font-size: 0.9rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

/* Ajuste para ícones do Bootstrap */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css");

/* Estilo dos Cards de Serviço (antigos) */
.service-card {
    background-color: var(--primary-color);
    color: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 168, 255, 0.2);
}

.service-card i {
    font-size: 3rem;
    color: white;
}

.service-card p {
    color: rgba(255, 255, 255, 0.85);
}

.service-card:hover {
    transform: translateY(-10px);
    background-color: #0097e6;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
    font-family: "Orbitron", sans-serif;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Fundo Preto para a Seção */
.bg-black-section {
    background-color: #000000;
}

/* Novo estilo para os cards azuis */
.feature-card-blue {
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 100px;
    transition: transform 0.3s ease;
    text-align: center;
}

.feature-card-blue:hover {
    transform: scale(1.05);
    background-color: #0091db;
}

.feature-card-blue i {
    color: #ffffff !important;
    font-size: 1.8rem;
    margin-bottom: 10px;
    margin-right: 0;
}

.feature-card-blue span {
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Ajuste fino para o título da seção no fundo preto */
.bg-black-section .font-special {
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.feature-card i {
    color: #00a8ff;
    font-size: 1.4rem;
    margin-right: 12px;
    width: 25px;
    text-align: center;
}

/* Footer base */
.footer-layout {
    background-color: #121416;
    color: #fff;
    width: 100%;
    overflow: hidden;
}

.footer-layout .row {
    display: flex;
    align-items: center;
}

.footer-brand-main {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Estilo dos links centrais */
.footer-links a {
    color: #888;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-links a.active,
.footer-links a:hover {
    color: #00a8ff;
    border-bottom: 2px solid #00a8ff;
    padding-bottom: 5px;
}

/* Barra inferior de Copyright */
.footer-bottom {
    background-color: #0a0b0c;
    font-size: 0.8rem;
    color: #666;
    width: 100%;
    margin: 0;
}

.matsui-link {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.matsui-link:hover {
    color: #00a8ff;
}

.footer-favicon {
    width: 14px;
    height: 14px;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

/* Estilo Social */
.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a {
    color: #fff;
    background: #2d3034;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 10px;
    transition: 0.3s;
    text-decoration: none;
}

.footer-social a:hover {
    background: #00a8ff;
}

.footer-social a i {
    font-size: 1.1rem;
    line-height: 1;
}

.social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #2d3034;
    color: white !important;
    border-radius: 50%;
    margin-left: 10px;
    transition: 0.3s;
    text-decoration: none;
}

.social-circle:hover {
    background-color: #00a8ff;
}

/* Estilo Específico do Logo do Cliente */
.logo-retifica {
    display: flex;
    align-items: center;
    font-family: "Arial Black", "Impact", sans-serif;
    font-size: 2rem;
    letter-spacing: -1px;
    font-style: italic;
    text-decoration: none;
}

.logo-retifica .text-blue {
    color: #00a8ff;
    text-transform: uppercase;
    text-shadow:
        3px 3px 0 #fff,
        -3px -3px 0 #fff,
        3px -3px 0 #fff,
        -3px 3px 0 #fff,
        0px 3px 0 #fff,
        0px -3px 0 #fff,
        3px 0px 0 #fff,
        -3px 0px 0 #fff,
        4px 4px 5px rgba(0, 0, 0, 0.3);
}

.logo-retifica .text-white-stroke {
    color: #fff;
    margin-left: 10px;
    text-shadow:
        2px 2px 0 #00a8ff,
        -2px -2px 0 #00a8ff,
        2px -2px 0 #00a8ff,
        -2px 2px 0 #00a8ff;
}

.logo-retifica .text-white {
    color: #ffffff;
    margin-left: 6px;
    text-transform: uppercase;
    font-weight: 900;
}

/* Botão WhatsApp Flutuante */
.whatsapp-pulse {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-pulse::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: pulse-green 2s infinite;
}

.whatsapp-pulse:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.4);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Estilo das setas do carrossel */
.slick-prev:before,
.slick-next:before {
    color: #00a8ff !important;
    font-size: 30px;
}

.slick-prev {
    left: -40px;
}

.slick-next {
    right: -40px;
}

.galeria-carrossel img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.galeria-carrossel .card {
    transition: transform 0.3s ease;
}

.galeria-carrossel .card:hover {
    transform: translateY(-5px);
}

.galeria-carrossel .card img {
    cursor: zoom-in;
}

.galeria-carrossel .card-body h5 {
    color: var(--primary-color);
}

.galeria-carrossel a {
    text-decoration: none;
}

/* Cor do link ativo no menu */
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
}

/* Serviços novos */
.service-box {
    background: #ccc;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.service-box:hover {
    transform: translateY(-5px);
}

.service-img {
    width: 40%;
}

.service-img img {
    width: 100%;
    border-radius: 10px;
}

.service-content {
    width: 60%;
    padding: 20px;
}

.service-content h3 {
    font-weight: 700;
    margin-bottom: 10px;
}

.service-content p {
    color: #666;
}

/* Mapa */
.map-full {
    width: 100%;
    overflow: hidden;
}

.map-full iframe {
    width: 100%;
    height: 450px;
    display: block;
}

/* Top bar */
.top-bar {
    background: #0d1117;
    color: #ccc;
    font-size: 14px;
    padding: 8px 0;
    position: relative;
    z-index: 999;
}

.top-bar i {
    margin-right: 5px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-right {
    display: flex;
    align-items: center;
}

.top-bar-left a {
    color: #fff;
    text-decoration: none;
}

.top-bar-left a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.top-bar-right a {
    color: #ccc;
    margin-left: 15px;
    transition: 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.top-bar-right a:hover {
    color: #0d6efd;
}

/* Logo base antiga */
.site-logo {
    display: block;
    max-width: 320px;
    width: 100%;
    height: auto;
}

.navbar-brand,
.logo-area {
    display: flex;
    align-items: center;
}

.navbar-brand img,
.logo-area img {
    display: block;
    max-width: 320px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

header .navbar,
.header-area {
    padding-top: 8px;
    padding-bottom: 8px;
}

.hero-section {
    display: flex;
    align-items: center;
    padding: 60px 0;
}

/* =========================
   AJUSTE DO LOGO NO HEADER
========================= */
.navbar {
    height: 70px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 998;
}

.navbar-brand {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

.navbar-brand img,
.site-logo {
    max-height: 175px;
    width: auto;
    object-fit: contain;
    transform: translateY(12px);
}

header .navbar,
.header-area,
.navbar {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    min-height: auto !important;
}

/* ===== AJUSTE CIRÚRGICO DO FOOTER ===== */
.footer-logo,
.footer-logo-link img {
    width: auto !important;
    max-width: 269px !important;
    max-height: 188px !important;
    height: auto !important;
    display: block;
    object-fit: contain;
}

.footer-layout .col-lg-3.text-center.text-lg-start {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-layout,
.footer-bottom {
    width: 100%;
    margin: 0;
}

.footer-layout {
    overflow: hidden;
}

/* Sobre */
.about-section {
    background: #f5f5f5;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.about-content {
    color: #222;
}

.about-tag {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}

.about-content h2 {
    color: #1f2933;
}

.about-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

/* Header sticky */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* =========================================
   RESPONSIVO FINAL APROVADO
========================================= */
@media screen and (max-width: 991px) {
    html {
        scroll-behavior: smooth;
    }

    section {
        scroll-margin-top: 110px;
    }

    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body * {
        box-sizing: border-box;
    }

    .container,
    .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* TOP BAR */
    .top-bar {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    .top-bar .container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }

    .top-bar-left,
    .top-bar-right {
        display: flex !important;
        align-items: center !important;
    }

    .top-bar-left {
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .top-bar-left a {
        color: #fff !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: inline-flex !important;
        align-items: center !important;
        max-width: 220px !important;
    }

    .top-bar-right {
        justify-content: flex-end !important;
        gap: 10px !important;
        flex-shrink: 0 !important;
    }

    .top-bar-right a {
        margin-left: 0 !important;
        color: #fff !important;
        text-decoration: none !important;
    }

    /* HEADER STICKY */
    .main-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1031 !important;
    }

    .navbar {
        width: 100% !important;
        overflow: visible !important;
        height: auto !important;
        min-height: 84px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .navbar > .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: wrap !important;
    }

    .navbar-brand {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        max-width: calc(100% - 78px) !important;
    }

    /* LOGO MAIOR NO MOBILE */
    .navbar-brand img,
    .site-logo {
        width: auto !important;
        max-width: 185px !important;
        max-height: 70px !important;
        height: auto !important;
        transform: none !important;
        display: block !important;
    }

    .navbar-toggler {
        margin-left: auto !important;
        border: 2px solid rgba(255, 255, 255, 0.45) !important;
        border-radius: 14px !important;
        padding: 8px 12px !important;
        box-shadow: none !important;
    }

    .navbar-collapse {
        width: 100% !important;
        flex-basis: 100% !important;
        margin-top: 12px !important;
        background: rgba(8, 12, 18, 0.98) !important;
        border-radius: 12px !important;
        padding: 10px 14px !important;
    }

    .navbar-nav {
        width: 100% !important;
        align-items: stretch !important;
        gap: 0 !important;
    }

    .navbar-nav .nav-item {
        width: 100% !important;
    }

    .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 12px 0 !important;
        font-size: 18px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: 0 !important;
    }

    /* HERO */
    .hero-section {
        min-height: auto !important;
        padding: 36px 0 28px !important;
        text-align: center !important;
    }

    .hero-section .row {
        display: flex !important;
        flex-direction: column !important;
    }

    .hero-section .col-lg-6 {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-text h1,
    .hero-section h1 {
        font-size: 2.1rem !important;
        line-height: 1.15 !important;
    }

    .hero-text p,
    .hero-section p.lead {
        font-size: 1rem !important;
    }

    .engine-container {
        width: 100% !important;
        text-align: center !important;
    }

    .floating-engine {
        width: 100% !important;
        max-width: 240px !important;
        margin: 24px auto 0 !important;
        display: block !important;
    }

    .engine-shadow {
        margin-top: -18px !important;
    }

    /* SOBRE */
    .about-section {
        text-align: center !important;
    }

    .about-content {
        margin-top: 10px !important;
    }

    .about-content p {
        font-size: 0.95rem !important;
    }

    /* SERVIÇOS */
    .service-box,
    .service-box.d-flex,
    .service-box.d-flex.align-items-center,
    .service-box.d-flex.align-items-center.flex-row-reverse {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .service-box .service-img,
    .service-box .service-content {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .service-box .service-img {
        margin-bottom: 15px !important;
    }

    .service-box .service-img img {
        display: block !important;
        width: 100% !important;
        max-width: 260px !important;
        height: auto !important;
        margin: 0 auto !important;
    }

    .service-box .service-content {
        padding: 12px 10px 6px !important;
    }

    .service-box .service-content p {
        font-size: 15px !important;
        line-height: 1.6 !important;
        word-break: break-word !important;
    }

    /* DIFERENCIAIS */
    .font-special.h3 {
        font-size: 1.5rem !important;
        text-align: center !important;
        margin-bottom: 20px !important;
        border-left: none !important;
        padding-left: 0 !important;
        border-bottom: 3px solid var(--primary-color) !important;
        padding-bottom: 10px !important;
    }

    .feature-card-blue {
        min-height: 90px !important;
        padding: 10px 5px !important;
    }

    .feature-card-blue span {
        font-size: 0.6rem !important;
    }

    /* MAPA */
    .map-full iframe {
        height: 320px !important;
    }

    /* FOOTER */
    .footer-layout {
        text-align: center !important;
        padding-top: 24px !important;
        padding-bottom: 18px !important;
    }

    .footer-layout .row > div {
        margin-bottom: 15px !important;
    }

    .footer-layout .col-lg-3.text-center.text-lg-start,
    .footer-layout .col-lg-3.text-center.text-lg-end {
        justify-content: center !important;
    }

    /* LOGO DO FOOTER MAIOR NO MOBILE */
    .footer-logo,
    .footer-logo-link img {
        max-width: 210px !important;
        max-height: 90px !important;
        margin: 0 auto !important;
    }

    .footer-links {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    .footer-links a {
        margin: 0 8px !important;
        font-size: 12px !important;
    }

    .footer-social {
        justify-content: center !important;
    }

    /* WHATSAPP */
    .whatsapp-pulse {
        width: 54px !important;
        height: 54px !important;
        right: 18px !important;
        bottom: 18px !important;
        font-size: 28px !important;
    }
}

@media screen and (max-width: 576px) {
    .top-bar-left a {
        max-width: 200px !important;
        font-size: 11px !important;
    }

    .navbar-brand img,
    .site-logo {
        max-width: 170px !important;
        max-height: 64px !important;
    }

    .hero-text h1,
    .hero-section h1 {
        font-size: 1.85rem !important;
    }

    .hero-text p,
    .hero-section p.lead {
        font-size: 0.95rem !important;
    }

    .service-box .service-img img {
        max-width: 230px !important;
    }

    .service-box .service-content p {
        font-size: 14px !important;
    }

    .footer-logo,
    .footer-logo-link img {
        max-width: 190px !important;
        max-height: 78px !important;
    }

    .footer-social a,
    .social-circle {
        width: 30px !important;
        height: 30px !important;
        font-size: 13px !important;
    }
}

/* =========================
   LOGO APARECE NO SCROLL
========================= */
/* logo escondido no topo */
.navbar-brand img,
.site-logo {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* logo aparece ao rolar */
.navbar.scrolled .navbar-brand img,
.navbar.scrolled .site-logo {
    opacity: 1;
}

/* tamanho normal (quando está no topo - escondido mesmo) */
.navbar-brand img,
.site-logo {
    max-height: 175px;
    transition: all 0.3s ease;
}

/* tamanho reduzido quando aparece no scroll */
.navbar.scrolled .navbar-brand img,
.navbar.scrolled .site-logo {
    max-height: 60px; /* ajusta aqui até ficar perfeito */
}

/* ajusta posição do logo quando aparece no scroll */
.navbar.scrolled .navbar-brand img,
.navbar.scrolled .site-logo {
    max-height: 60px;
    transform: translateY(0); /* remove o empurrão */
}

.about-section {
    background: #f5f5f5;
}

.about-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.about-content h2 {
    color: #1f2933;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.about-content p:last-child {
    margin-bottom: 0;
}
