/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    --color-orange: #F15A24;
    --color-orange-hover: #D04515;
    --color-black: #0A0A0A;
    --color-dark: #1A1A1A;
    --color-gray-dark: #333333;
    --color-gray: #888888;
    --color-gray-light: #E5E5E5;
    --color-light: #F9F9F9;
    --color-white: #FFFFFF;

    --font-primary: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s ease;

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-orange: 0 10px 30px rgba(241, 90, 36, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

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

.text-orange { color: var(--color-orange); }
.text-white { color: var(--color-white); }
.text-gray { color: var(--color-gray); }

.bg-light { background-color: var(--color-light); }
.bg-dark { background-color: var(--color-dark); }
.bg-black { background-color: var(--color-black); }

/* ==========================================================================
   Typography & Sections
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--color-black);
}

.section {
    padding: 100px 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header.dark-header .section-title {
    color: var(--color-white);
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--color-black);
    margin: 0 auto 24px auto;
    border-radius: 2px;
}

.divider-orange {
    background-color: var(--color-orange);
}

.section-desc {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-medium);
    cursor: pointer;
    font-family: var(--font-display);
}

.btn-primary {
    background-color: var(--color-orange);
    color: var(--color-white);
    border: 2px solid var(--color-orange);
    box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-orange);
    box-shadow: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.125rem;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-medium);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled .nav-link {
    color: var(--color-black);
}

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

.logo img {
    height: 40px;
    width: auto;
    transition: all var(--transition-medium);
}

.navbar:not(.scrolled) .logo img {
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--color-white);
    font-family: var(--font-display);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-orange);
    transition: width var(--transition-medium);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--color-orange);
}

.navbar.scrolled .nav-link:hover {
    color: var(--color-orange);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--color-white);
    border-radius: 3px;
    transition: all var(--transition-fast);
}

.navbar.scrolled .menu-toggle .bar {
    background-color: var(--color-black);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--color-black);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--color-black);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-black) 0%, #1a1a2e 100%);
    overflow: hidden;
    color: var(--color-white);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 80% 20%, rgba(241, 90, 36, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-title {
    font-size: 4rem;
    color: var(--color-white);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-gray-light);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-white);
    border-radius: 15px;
    display: block;
    position: relative;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background-color: var(--color-white);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

.mouse:hover {
    opacity: 1;
}

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

/* ==========================================================================
   Sobre Nós
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.about-card {
    background-color: var(--color-white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition-medium);
    border: 1px solid var(--color-gray-light);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-black);
    transform: scaleX(0);
    transition: transform var(--transition-medium);
    transform-origin: left;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

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

.about-card.highlighted {
    background-color: var(--color-black);
    color: var(--color-white);
    border: none;
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.about-card.highlighted::before {
    background-color: var(--color-orange);
    transform: scaleX(1);
}

.about-card.highlighted h3 {
    color: var(--color-white);
}

.about-card.highlighted p {
    color: var(--color-gray-light);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-light);
    border-radius: 50%;
}

.about-card.highlighted .icon-wrapper {
    background-color: rgba(255, 255, 255, 0.1);
}

.icon-wrapper img {
    max-width: 40px;
    max-height: 40px;
}

.about-card h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

/* ==========================================================================
   Nossos Sistemas
   ========================================================================== */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.system-card {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    transition: all var(--transition-medium);
    gap: 30px;
    cursor: pointer;
}

.system-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--color-orange);
    transform: translateX(10px);
}

.system-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background-color: var(--color-black);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition-medium);
}

.system-icon img {
    max-width: 60px;
    max-height: 60px;
}

.system-card:hover .system-icon {
    transform: scale(1.1) rotate(5deg);
}

.system-info {
    flex-grow: 1;
}

.system-category {
    font-size: 0.875rem;
    color: var(--color-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.system-name {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: 12px;
}

.system-desc {
    color: var(--color-gray-light);
    font-size: 1rem;
}

/* ==========================================================================
   Diferenciais
   ========================================================================== */
.features-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    background-color: var(--color-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    gap: 40px;
    border: 1px solid var(--color-gray-light);
    transition: all var(--transition-medium);
}

.feature-item:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(241, 90, 36, 0.3);
}

.feature-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    max-width: 100%;
    max-height: 100%;
}

.feature-text h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 80px 0 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--color-gray);
    max-width: 300px;
    margin-bottom: 20px;
}

.contact-details p {
    color: var(--color-gray);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-details a {
    color: var(--color-white);
    transition: color var(--transition-fast);
}

.contact-details a:hover {
    color: var(--color-orange);
}

.footer-links h3, .footer-map h3 {
    color: var(--color-white);
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-gray);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-orange);
    padding-left: 4px;
}

.map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--color-gray-dark);
    color: var(--color-gray);
    font-size: 0.875rem;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-card.highlighted {
        transform: none;
    }

    .systems-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-medium);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        color: var(--color-black) !important;
        font-size: 1.5rem;
    }

    .navbar:not(.scrolled) .nav-link {
        color: var(--color-black);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .system-card {
        flex-direction: column;
        text-align: center;
    }

    .system-card:hover {
        transform: translateY(-10px);
    }
}

/* ==========================================================================
   System Detail Pages
   ========================================================================== */
.system-hero {
    padding-top: 150px;
    padding-bottom: 80px;
    background-color: var(--color-black);
    text-align: center;
}

.system-hero-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px auto;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.system-hero-icon img {
    max-width: 70px;
    max-height: 70px;
}

.system-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-box {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-light);
    transition: all var(--transition-fast);
}

.feature-box:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-orange);
    transform: translateY(-5px);
}

.feature-box h4 {
    color: var(--color-black);
    font-size: 1.25rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-box h4::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--color-orange);
    border-radius: 50%;
}

.feature-box p {
    color: var(--color-gray-dark);
    font-size: 0.95rem;
}

.feature-box ul {
    margin-top: 10px;
    padding-left: 20px;
    list-style-type: disc;
    color: var(--color-gray-dark);
}

.feature-box li {
    margin-bottom: 5px;
}

/* ==========================================================================
   Clients Carousel
   ========================================================================== */
.overflow-hidden {
    overflow: hidden;
}

.clients-carousel {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 40px 0;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}

.clients-track {
    display: inline-flex;
    align-items: center;
    gap: 80px;
    animation: scrollCarousel 40s linear infinite;
    padding-left: 80px;
}

.clients-track:hover {
    animation-play-state: paused;
}

.client-logo {
    flex-shrink: 0;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(100%) opacity(0.6);
    transition: all var(--transition-medium);
}

.client-logo img:hover {
    filter: grayscale(0%) opacity(1);
}

@keyframes scrollCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50%)); }
}
