:root {
    --primary-color: #BC0016;
    --dark-color: #111111;
    --dark-alt: #1a1a1a;
    --text-color: #333333;
    --text-light: #666666;
    --light-bg: #F4F4F4;
    --white: #FFFFFF;
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--primary-color);
}

.badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-badge {
    display: block;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

h1, h2, h3 {
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Header */
header {
    background-color: var(--white);
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    gap: 30px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--primary-color);
}

nav ul li a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

nav ul li a.active,
nav ul li a:hover {
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-switcher a {
    display: flex;
}

.lang-switcher img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
    transition: var(--transition);
}

.lang-switcher img:hover {
    transform: scale(1.2);
    border-color: var(--primary-color);
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #f4f4f4;
    border-radius: 20px;
    padding: 5px 15px;
    border: 1px solid #eee;
    transition: var(--transition);
}

.search-box:focus-within {
    background-color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(188, 0, 22, 0.1);
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    padding: 5px;
    font-size: 0.85rem;
    width: 150px;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.9rem;
    padding-left: 10px;
}

.search-box button:hover {
    color: var(--primary-color);
}

.search-box {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background-color: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 10px;
    display: none;
    z-index: 2000;
    overflow: hidden;
}

.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f9f9f9;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f9f9f9;
}

.result-lang {
    font-size: 0.6rem;
    font-weight: 800;
    background-color: #eee;
    color: #888;
    padding: 2px 5px;
    border-radius: 3px;
    text-transform: uppercase;
}

.search-result-item a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-color);
    flex: 1;
}

.search-result-item a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--white);
    background-color: #000;
    overflow: hidden;
}

.hero-bw, .hero-color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/hero.jpg');
    background-size: cover;
    background-position: center;
}

.hero-bw {
    filter: grayscale(100%) brightness(0.4);
    z-index: 1;
}

.hero-color {
    z-index: 2;
    filter: brightness(1.2) saturate(1.6) contrast(1.1);
    mask-image: radial-gradient(circle var(--r, 200px) at var(--x, -1000px) var(--y, -1000px), black 0%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle var(--r, 200px) at var(--x, -1000px) var(--y, -1000px), black 0%, transparent 85%);
    pointer-events: none;
    transition: --r 0.3s ease;
    animation: waterRipple 4s infinite ease-in-out;
}

@property --r {
  syntax: '<length>';
  inherits: false;
  initial-value: 200px;
}

@keyframes waterRipple {
    0%, 100% { --r: 200px; }
    50% { --r: 220px; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.hero .container {
    width: 100%;
    position: relative;
    z-index: 4;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 800px; /* Limita a largura para manter a estética do design */
}

.hero h1, .hero p, .hero .badge {
    text-align: left;
}

.hero h1 {
    margin-bottom: 25px;
}

.hero p {
    max-width: 600px;
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 35px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-primary i {
    margin-left: 10px;
}

.btn-primary:hover {
    background-color: #900011;
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.experience-box {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 25px 35px;
    display: flex;
    flex-direction: column;
}

.experience-box .years {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.experience-box .exp-text {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.about-text p {
    margin-bottom: 25px;
    color: var(--text-light);
}

.info-footer {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.info-item .info-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
}

.info-item .info-value {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-light);
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.services-header .title-area {
    flex: 1;
}

.services-header .desc-area {
    flex: 1;
    padding-left: 50px;
}

.services-header .desc-area p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background-color: #eee;
}

.service-card {
    background-color: var(--white);
    padding: 50px 40px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    z-index: 2;
}

.service-card .icon-box {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--white);
}

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

.contact-header h2 {
    margin-bottom: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-block {
    background-color: #fafafa;
    border: 1px solid #eee;
    padding: 40px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.contact-block:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    border-color: #ddd;
    transform: translateY(-3px);
}

.contact-block h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    width: fit-content;
}

.contact-details {
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.detail-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 5px;
    width: 20px;
    text-align: center;
}

.detail-item p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
}

.detail-item p a {
    color: var(--text-color);
    font-weight: 600;
}

.detail-item p a:hover {
    color: var(--primary-color);
}

/* Map Wrappers with Route Overlays */
.map-link {
    display: block;
    width: 100%;
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.map-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.map-overlay-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0;
    transition: var(--transition);
}

.map-wrapper:hover img {
    transform: scale(1.05);
}

.map-wrapper:hover .map-overlay-btn {
    opacity: 1;
}

/* Clients Section */
.clients {
    padding: 80px 0;
    background-color: var(--light-bg);
    text-align: center;
    border-top: 1px solid #eee;
}

.clients-header {
    margin-bottom: 50px;
}

.clients h2 {
    color: var(--dark-color);
}

.clients-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}

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

.client-logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

/* Equilibrando o peso visual de cada logo e ajustando contraste no fundo claro */
.client-logo.csn img {
    height: 80px; /* Aumentado para melhor visibilidade */
    filter: brightness(0); /* Torna a logo branca em preta para contrastar no fundo claro */
}

.client-logo.gm img {
    height: 120px; /* Aumentado para equilibrar com o tamanho da CSN */
}

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

@media (max-width: 768px) {
    .clients-logos {
        gap: 50px;
    }
    .client-logo.csn img {
        height: 60px;
    }
    .client-logo.gm img {
        height: 90px;
    }
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: #888;
    margin: 25px 0;
    font-size: 0.9rem;
}

.logo.inverse .brand {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--dark-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-links h4 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 25px;
    color: var(--white);
}

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

.footer-links ul li a {
    color: #888;
    font-size: 0.85rem;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding: 30px 0;
    border-top: 1px solid #222;
}

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

.footer-bottom p {
    font-size: 0.75rem;
    color: #666;
}

.author-credits {
    opacity: 0.4;
    transition: var(--transition);
    font-size: 0.75rem;
    padding-left: 5px;
}

.author-credits:hover {
    opacity: 0.8;
}

.author-credits a {
    text-decoration: underline;
    font-weight: 600;
}

.footer-meta {
    display: flex;
    gap: 20px;
}

.footer-meta a {
    font-size: 0.65rem;
    font-weight: 700;
    color: #555;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    .about-grid, .services-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .services-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .services-header .desc-area {
        padding-left: 0;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        width: 100%;
        background-color: var(--white);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 30px 20px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        z-index: 1000;
        border-top: 1px solid #eee;
    }

    nav.active {
        display: block;
        animation: fadeInDown 0.3s ease;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    nav ul li a {
        font-size: 1.1rem;
    }

    .header-right {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        padding: 15px 0;
        border-top: 1px solid #f4f4f4;
    }

    .search-box {
        width: 100%;
        max-width: 300px;
    }

    .search-box input {
        width: 100%;
    }

    /* Evitar transbordo horizontal do experience-box no mobile */
    .experience-box {
        bottom: 15px;
        right: 15px;
        padding: 15px 25px;
    }

    .experience-box .years {
        font-size: 1.8rem;
    }

    /* Desativar spotlight no mobile para otimização de performance e compatibilidade */
    .hero-color {
        mask-image: none !important;
        -webkit-mask-image: none !important;
        animation: none !important;
    }
    
    .hero-bw {
        display: none;
    }

    .hero {
        height: auto;
        min-height: 80vh;
        padding: 80px 0;
        display: flex;
        align-items: center;
    }

    .hero-content {
        padding: 0 20px;
    }

    h1 { 
        font-size: 2rem !important; 
        line-height: 1.1;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 30px;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    }

    .hero-content .badge {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    }

    /* Ajustar rodapé inferior para não espremer horizontalmente */
    .footer-bottom .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-meta {
        justify-content: center;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
