:root {
    /* Color Palette baseada no logo - Azul Escuro, Dourado, Marrom Couro, Preto */
    --clr-dark-blue: #1D3557;
    --clr-dark-blue-light: #2A4B7C;
    --clr-gold: #D4AF37;
    --clr-gold-light: #F3E5AB;
    --clr-gold-dark: #AA8B2C;
    --clr-leather-brown: #8B5A2B;
    --clr-black: #0B0C10;
    --clr-black-light: #1F2833;
    --clr-white: #FFFFFF;
    --clr-off-white: #F8F9FA;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--clr-white);
    background-color: var(--clr-black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography styles */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--clr-white);
}

.text-gradient {
    background: linear-gradient(135deg, var(--clr-gold) 0%, var(--clr-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(11, 12, 16, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    padding: 1rem 0;
    background-color: rgba(29, 53, 87, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--clr-white);
}

.logo-img {
    height: 45px;
    max-width: 100%;
    object-fit: contain;
}

.page-offset {
    height: 150px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--clr-off-white);
}

.nav-links a:hover {
    color: var(--clr-gold);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--clr-gold);
}

/* Buttons */
.btn-primary {
    background-color: var(--clr-gold);
    color: var(--clr-black) !important;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background-color: var(--clr-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--clr-white);
    padding: 0.8rem 1.8rem;
    border: 1px solid var(--clr-gold);
    border-radius: 4px;
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--clr-black) 0%, var(--clr-dark-blue) 100%);
    padding-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--clr-off-white);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* About Section */
.about {
    padding: 100px 0 0px 0;
    background-color: var(--clr-black-light);
}

.about-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
    align-items: center;
    gap: 3rem;
    margin-bottom: 80px;
}

.about-text {
    flex: 1;
    max-width: 520px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--clr-off-white);
}

.about-lead {
    font-size: 1.3rem !important;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.about-support {
    max-width: 48ch;
    line-height: 1.8;
}

.about-text strong {
    color: var(--clr-gold-light);
}

.globe-stats {
    width: min(100%, 560px);
    height: 440px;
    max-width: 100%;
    margin: 0 0 0 auto;
    position: relative;
    isolation: isolate;
}

.globe-shell {
    position: absolute;
    left: 0;
    top: 10px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.globe-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 30px 55px rgba(0, 0, 0, 0.42));
}

.globe-content {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(31, 55, 91, 0.96) 0%, rgba(21, 38, 63, 0.94) 100%);
    backdrop-filter: blur(12px);
    padding: 2rem 2rem;
    border-radius: 34px;
    width: 280px;
    min-height: 280px;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.34);
}

.stat-item h3 {
    font-size: 2.6rem;
    color: var(--clr-gold);
    line-height: 1.1;
    margin-bottom: 0.45rem;
}

.stat-item p {
    font-size: 1rem;
    color: var(--clr-white);
    line-height: 1.4;
    font-weight: 600;
}

.continents-highlight {
    color: var(--clr-gold-light);
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 0.35rem;
    max-width: 24ch;
    line-height: 1.45;
}

.stat-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.65) 50%, transparent 100%);
}

/* Clients Carousel requested by user */
.clients-section {
    background-color: var(--clr-black);
    padding: 60px 0 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}

.clients-title {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.clients-carousel {
    width: 100%;
    position: relative;
    display: flex;
    overflow: hidden;
}

/* Efeito de fade nas bordas do carrossel */
.clients-carousel::before,
.clients-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.clients-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--clr-black) 0%, transparent 100%);
}

.clients-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--clr-black) 0%, transparent 100%);
}

.carousel-track {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: max-content;
    animation: scroll var(--scroll-duration, 24s) linear infinite;
    will-change: transform;
}

.client-logo {
    width: 220px;
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.client-img {
    max-height: 55px;
    max-width: 180px;
    object-fit: contain;
    /* Filtragem que transforma logos escuros em branco acinzentado pro dark theme */
    filter: brightness(0) invert(1); 
    opacity: 0.5;
    transition: var(--transition);
}

.client-logo:hover .client-img {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-1 * var(--scroll-distance, 0px))); }
}

/* Systems Section */
.sistemas {
    padding: 100px 0;
    background-color: var(--clr-black);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header p {
    color: var(--clr-gold);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.sistemas-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: 980px;
    margin: 0 auto;
}

.sistema-card {
    background: linear-gradient(145deg, var(--clr-black-light) 0%, rgba(29, 53, 87, 0.4) 100%);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.sistema-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--clr-leather-brown);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.sistema-card:hover::before {
    transform: scaleX(1);
}

.sistema-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border-color: rgba(212, 175, 55, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--clr-gold);
    margin-bottom: 1.5rem;
}

.sistema-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--clr-white);
}

.sistema-card p {
    color: var(--clr-off-white);
    opacity: 0.8;
}

.page-intro,
.page-intro-services {
    padding-top: 0;
}

.page-intro-services {
    padding-bottom: 0;
    background-color: var(--clr-black);
}

.detail-section {
    padding: 80px 0;
    background-color: var(--clr-black);
}

.detail-section-muted {
    background-color: var(--clr-black-light);
}

.detail-section-blue {
    background-color: var(--clr-dark-blue);
}

.detail-row {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.detail-row-reverse {
    flex-direction: row-reverse;
}

.detail-copy {
    flex: 1 1 0;
    min-width: 0;
    max-width: 860px;
}

.detail-icon,
.detail-service-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.detail-icon {
    color: var(--clr-gold);
}

.detail-service-icon {
    color: var(--clr-leather-brown);
}

.detail-title {
    font-size: 2.5rem;
    color: var(--clr-white);
    margin-bottom: 1rem;
}

.detail-intro {
    color: var(--clr-off-white);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.detail-list {
    color: var(--clr-off-white);
    font-size: 1.05rem;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.detail-list li + li {
    margin-top: 0.35rem;
}

/* Services */
.servicos {
    padding: 100px 0;
    background-color: var(--clr-dark-blue);
    position: relative;
}

.servicos-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 1080px;
    margin: 0 auto;
}

.servico-item {
    background: rgba(11, 12, 16, 0.6);
    padding: 2.5rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
    transition: var(--transition);
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.servico-item i {
    font-size: 2.5rem;
    color: var(--clr-leather-brown);
    margin-bottom: 1rem;
}

.servico-item:hover {
    background: var(--clr-leather-brown);
    transform: translateY(-5px);
}
.servico-item:hover i, .servico-item:hover h4 {
    color: var(--clr-white);
}

/* Contact */
.contato {
    padding: 100px 0;
    background-color: var(--clr-black-light);
}

.contato-wrapper {
    display: flex;
    gap: 4rem;
    background: var(--clr-black);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.02);
}

.contato-info {
    flex: 1;
}

.contato-detalhes {
    margin-top: 2rem;
}

.contato-detalhes p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--clr-gold);
}

.lead-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--clr-white);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--clr-gold);
    background: rgba(255,255,255,0.05);
}

.form-btn {
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background-color: var(--clr-black);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: var(--clr-gold);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--clr-gold);
    color: var(--clr-black);
    transform: translateY(-3px);
}
/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Component Linked Cards */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-wrapper, .contato-wrapper {
        padding: 2rem;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-text {
        max-width: 100%;
        text-align: center;
    }

    .about-support {
        max-width: 100%;
    }

    .globe-stats {
        width: min(100%, 560px);
        height: 620px;
        margin: 0 auto;
    }

    .globe-shell {
        left: 50%;
        top: 0;
        width: 400px;
        height: 400px;
        transform: translateX(-50%);
    }

    .globe-content {
        left: 50%;
        right: auto;
        top: auto;
        bottom: 0;
        transform: translateX(-50%);
        width: min(100%, 320px);
        min-height: 230px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }

    .hero p,
    .section-header p,
    .detail-intro,
    .detail-list {
        font-size: 1rem;
    }

    .sistemas-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sistema-card {
        min-height: 300px;
    }

    .servicos-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--clr-dark-blue);
        flex-direction: column;
        padding: 1.25rem 5%;
        text-align: center;
        gap: 1rem;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }

    .logo-img {
        height: 38px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-buttons a,
    .nav-links .btn-primary,
    .form-btn {
        width: 100%;
        text-align: center;
    }

    .about {
        padding-top: 80px;
    }

    .page-offset {
        height: 120px;
    }

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

    .section-header h2,
    .detail-title,
    .contato-info h2 {
        font-size: 2rem;
        line-height: 1.15;
    }

    .section-header p {
        font-size: 1rem;
        max-width: 100%;
    }

    .globe-stats {
        height: 520px;
    }

    .globe-shell {
        width: min(100%, 320px);
        height: 320px;
    }

    .globe-content {
        width: min(100%, 290px);
        min-height: 215px;
        padding: 1.6rem 1.4rem;
        border-radius: 28px;
    }

    .stat-item h3 {
        font-size: 2.2rem;
    }

    .stat-item p {
        font-size: 0.95rem;
    }

    .clients-section {
        padding: 44px 0 28px 0;
    }

    .clients-title {
        margin-bottom: 28px;
        padding: 0 1rem;
        line-height: 1.5;
    }

    .clients-carousel::before,
    .clients-carousel::after {
        width: 56px;
    }

    .client-logo {
        width: 170px;
        flex-basis: 170px;
    }

    .client-img {
        max-width: 140px;
        max-height: 42px;
    }

    .sistemas {
        padding: 80px 0;
    }

    .sistemas-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .sistema-card {
        min-height: auto;
        padding: 2rem 1.5rem;
    }

    .detail-section {
        padding: 60px 0;
    }

    .detail-row,
    .detail-row-reverse {
        flex-direction: column;
        gap: 1.25rem;
    }

    .detail-copy {
        width: 100%;
    }

    .detail-icon,
    .detail-service-icon {
        font-size: 3rem;
    }

    .detail-title {
        margin-bottom: 0.85rem;
    }

    .detail-intro,
    .detail-list {
        font-size: 1rem;
    }

    .servicos-list {
        grid-template-columns: 1fr;
    }

    .servico-item {
        min-height: 150px;
        padding: 2rem 1rem;
    }

    .contato {
        padding: 80px 0;
    }

    .contato-wrapper {
        padding: 1.5rem;
        gap: 2rem;
    }

    .contato-detalhes p {
        align-items: flex-start;
        line-height: 1.5;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.95rem 1rem;
    }

    .footer {
        padding-bottom: 90px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}
