/* -------------------------------------- */
/* 1. Variáveis de Cores e Tipografia */
/* -------------------------------------- */
:root {
    /* Cores Institucionais */
    --tmg-primary: #004d6c;
    /* Azul primário */
    --tmg-navbar-bg: rgba(0, 77, 108, 0.85);
    /* Azul Escuro com transparência para glassmorphism */
    --tmg-secondary: #6c757d;
    /* Cinza escuro */
    --tmg-highlight: #3b82f6;
    /* Azul vibrante moderno para destaques */
    --tmg-accent: #10b981;
    /* Verde moderno para sucessos/ícones */
    --tmg-dark: #1e293b;
    /* Slate dark modern */
    --tmg-light: #f8fafc;
    /* Slate light modern */
    --tmg-glass: rgba(255, 255, 255, 0.1);
    --tmg-glass-border: rgba(255, 255, 255, 0.2);
    --tmg-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Tipografia */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Importação de fontes Google */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Inter:wght@400;500;700&display=swap');

body {
    font-family: var(--font-body);
    color: var(--tmg-dark);
    line-height: 1.6;
    background-color: var(--tmg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.section-title,
.main-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--tmg-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

/* -------------------------------------- */
/* 2. Navbar e Header (Redesign 2025) */
/* -------------------------------------- */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background-color: var(--tmg-navbar-bg) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.navbar-brand.logo img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand.logo:hover img {
    transform: scale(1.05);
}

.nav-links .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 2px;
}

.nav-links .nav-link:hover,
.nav-links .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
}

.nav-links .dropdown-menu {
    border: none;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    margin-top: 1rem;
    animation: slideUp 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: var(--tmg-dark);
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
    color: var(--tmg-primary);
}

/* Área Restrita Button */
.btn-restrita {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-restrita:hover {
    background: white;
    color: var(--tmg-primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Navbar Toggler (Mobile SVG) */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    color: white !important;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid rgba(255, 255, 255, 0.2);
}

/* Mobile Navbar Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        border-radius: 16px;
        padding: 1.5rem;
        margin-top: 1rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

    .nav-links .nav-link {
        color: var(--tmg-dark) !important;
        padding: 1rem !important;
    }

    .nav-links .nav-link:hover {
        background-color: #f1f5f9;
        color: var(--tmg-primary) !important;
    }

    .btn-restrita {
        background-color: var(--tmg-primary);
        color: white !important;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .btn-restrita:hover {
        background-color: #00364d;
        color: white !important;
    }

    .nav-links .dropdown-menu {
        box-shadow: none;
        padding: 0;
        margin-top: 0;
        border-left: 2px solid #e2e8f0;
        border-radius: 0;
        margin-left: 1rem;
    }
}

/* -------------------------------------- */
/* 3. Sliders (Hero e Clientes) */
/* -------------------------------------- */
.hero-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.carousel-inner {
    height: 100vh;
    /* Ocupa tela toda */
    min-height: 600px;
    max-height: 900px;
}

.slider-item {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Mascara escura para a imagem */
.slider-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
}

.banner-1 {
    background-image: url('../img/banner principal1.png');
}

.banner-2 {
    background-image: url('../img/banner principal2.png');
}

.banner-3 {
    background-image: url('../img/banner principal3.png');
}

.slider-clientes {
    padding: 3rem 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Track deslizante */
.slider-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
    gap: 4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* Pausa ao passar o mouse */
.slider-clientes:hover .slider-track {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move metade pois duplicamos o conteúdo */
    }
}

.cliente-logo img {
    height: auto;
    /* Tamanho padrão solicitado */
    width: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.cliente-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* -------------------------------------- */
/* 4. Seção de Benefícios (Modern Cards) */
/* -------------------------------------- */
.section-beneficios {
    padding: 6rem 0;
    text-align: center;
}

.section-title {
    font-size: 2.75rem;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--tmg-primary) 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    justify-content: center;
    padding: 0 1rem;
}

.service-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(59, 130, 246, 0.2);
}

.service-card img {
    height: 64px;
    width: auto;
    margin-bottom: 1.5rem;
    align-self: flex-start;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--tmg-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-card li {
    padding-left: 0;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    color: var(--tmg-secondary);
    font-size: 0.95rem;
}

.service-card li::before {
    content: "";
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310b981'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 10px;
    flex-shrink: 0;
}

.btn-saiba-mais {
    display: inline-flex;
    align-items: center;
    color: var(--tmg-primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-saiba-mais::after {
    content: '→';
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.btn-saiba-mais:hover {
    color: var(--tmg-highlight);
}

.btn-saiba-mais:hover::after {
    transform: translateX(5px);
}

/* -------------------------------------- */
/* 5. Seções de Texto (Terceirização e Sobre) */
/* -------------------------------------- */
.section-terceirizacao {
    background: radial-gradient(circle at top right, #005f85, var(--tmg-primary));
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Efeito decorativo de fundo abstrato */
.section-terceirizacao::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.section-terceirizacao h2 {
    color: #93c5fd;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-terceirizacao .main-heading {
    color: white;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.terceirizacao-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

.lista-beneficios-terceirizacao {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.lista-beneficios-terceirizacao li {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: default;
}

.lista-beneficios-terceirizacao li:hover {
    transform: translateY(-4px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Sobre */
.section-sobre {
    padding: 6rem 0;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.section-sobre .lead {
    font-size: 1.35rem;
    color: var(--tmg-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.sobre-highlights {
    list-style: none;
    padding: 0;
    margin: 0 auto 3rem auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.sobre-highlights li a {
    background: white;
    border: 1px solid #e2e8f0;
    color: var(--tmg-dark);
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sobre-highlights li a:hover {
    border-color: var(--tmg-highlight);
    color: var(--tmg-highlight);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* CTA Buttons */
.sobre-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn-cta {
    background-color: var(--tmg-primary);
    color: white !important;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--tmg-primary);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn-cta:hover {
    background-color: #00364d;
    border-color: #00364d;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-cta-outline {
    background-color: transparent;
    color: var(--tmg-primary) !important;
}

.btn-cta-outline:hover {
    background-color: #f0f9ff;
    border-color: var(--tmg-primary);
}

/* -------------------------------------- */
/* 6. Rodapé (Footer Redesign 2025) */
/* -------------------------------------- */
footer {
    background-color: #0f172a;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.footer-top {
    padding: 5rem 0 3rem;
}

.footer-heading {
    color: white;
    font-size: 17px !important;
    /* Tamanho fixo solicitado */
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--tmg-highlight);
    text-decoration: none;
    padding-left: 5px;
}

.footer-pro-map {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 200px;
    background: #1e293b;
}

.footer-pro-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(90%) hue-rotate(180deg) grayscale(20%);
    opacity: 0.8;
    transition: all 0.3s;
}

.footer-pro-map:hover iframe {
    opacity: 1;
    filter: invert(90%) hue-rotate(180deg);
}

.footer-address {
    margin-top: 1rem;
    font-style: normal;
    line-height: 1.6;
}

.footer-social-bar {
    background-color: #1e293b;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
    margin: 0 5px;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--tmg-highlight);
    transform: translateY(-3px);
    color: white;
}

.footer-copyright {
    background-color: #020617;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-selos {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0.8;
}

.footer-selos img {
    height: 35px;
    width: auto;
    filter: grayscale(100%) brightness(200%);
    transition: all 0.3s;
}

.footer-selos img:hover {
    filter: none;
    opacity: 1;
}

/* Whatsapp Float */
.whatsapp-float {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

/* Responsiveness adjustments */
@media (max-width: 768px) {
    .footer-top {
        padding: 3rem 0;
        text-align: center;
    }

    .footer-pro-map {
        margin-bottom: 2rem;
    }

    .footer-selos {
        justify-content: center;
        margin-top: 2rem;
    }

    .footer-links a:hover {
        padding-left: 0;
    }
}

/* -------------------------------------- */
/* 7. Responsividade (Media Queries) */
/* -------------------------------------- */

/* Desktop Large Fixes */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Tablet (md) e abaixo */
@media (max-width: 991.98px) {
    .hero-slider {
        margin-bottom: 0;
    }

    .carousel-inner {
        height: auto;
        min-height: auto;
        aspect-ratio: 16/9;
        /* Manter proporção em tablet */
    }

    .navbar-collapse {
        background: white;
        padding: 1.5rem;
        border-radius: 12px;
        margin-top: 1rem;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }

    .nav-links .nav-link {
        color: var(--tmg-dark);
        /* Removed !important as desktop also removed it, but kept valid */
        padding: 0.75rem 0;
    }

    .nav-links .dropdown-menu {
        margin-top: 0;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        background: #f8fafc;
    }

    .navbar-brand.logo {
        font-size: 1.5rem;
    }

    .section-terceirizacao .main-heading {
        font-size: 2.5rem;
    }
}

/* Mobile (sm) e abaixo */
@media (max-width: 575.98px) {

    /* Hero ajustado para mobile */
    .carousel-inner {
        aspect-ratio: 13/16;
        /* Mais vertical para mobile (Stories format) */
        max-height: 80vh;
        padding-top: 9%;
    }

    /* Imagens específicas para mobile */
    .banner-1 {
        background-image: url('../img/banner principal1_mobile.png');
    }

    .banner-2 {
        background-image: url('../img/banner principal2_mobile.png');
    }

    .banner-3 {
        background-image: url('../img/banner principal3_mobile.png');
    }

    /* Typography Fixes for Mobile */
    .section-title {
        font-size: 1.75rem;
        /* Menor que desktop (2.75rem) */
    }

    .main-heading {
        font-size: 2rem !important;
        /* Terceirização title */
    }

    .footer-heading {
        font-size: 1rem;
        /* Reduzido para evitar quebras */
        margin-bottom: 1rem;
    }

    .cards-wrapper {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }

    .section-terceirizacao .main-heading {
        font-size: 2rem;
    }

    .lista-beneficios-terceirizacao {
        flex-direction: column;
        align-items: stretch;
        padding: 0 2rem;
    }

    .sobre-actions {
        flex-direction: column;
        padding: 0 2rem;
    }

    .footer-maps iframe {
        height: 250px;
    }

    /* Ajuste Navbar Mobile */
    .btn-restrita {
        width: 100%;
        text-align: center;
        background: var(--tmg-primary);
        color: white !important;
        margin-top: 1rem;
    }
}