/* 
 * TRACEVIA - Estilos Principais
 * Arquivo: assets/css/style.css
 */

/* ==================== TYPOGRAPHY ==================== */

:root {
    --font-primary: 'Exo 2', 'Helvetica Neue', Arial, sans-serif;
    --font-institutional: 'Oxanium', 'Exo 2', 'Helvetica Neue', Arial, sans-serif;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

input,
textarea,
select,
button {
    font-family: var(--font-primary);
}

h1,
h2,
h3,
.nav-menu ul li a,
.btn-primary,
.btn-blue,
.btn-white,
.btn-link {
    font-family: var(--font-institutional);
    letter-spacing: 0.03em;
}

h1,
h2 {
    font-weight: 700;
    text-transform: uppercase;
}

h3 {
    font-weight: 700;
}

/* HEADER PRINCIPAL */
.header {
    --header-logo-height: 96px;
    background-color: rgb(0, 0, 0);
    width: 100%;
    padding: 14px 40px 10px;
    color: white;
    border-bottom: 5px solid #FEDC00;
    display: grid;
    align-items: center;
    justify-items: center;
}

/* PRIMEIRA LINHA DO HEADER */
.header-top {
    grid-area: 1 / 1;
    width: 100%;
    max-width: 1280px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: calc(var(--header-logo-height) + 12px);
    gap: 24px;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    z-index: 2;
}

.header-left .logo {
    display: inline-flex;
    align-items: center;
}

/* LOGO COM ALTURA BASE PARA ALINHAR O HEADER */
.header-left .logo img {
    max-height: var(--header-logo-height);
    height: auto;
    width: auto;
    display: block;
}

/* ÁREA DIREITA */
.header-right {
    display: flex;
    align-items: center;
}

/* MENU */
.nav-menu {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    justify-self: center;
    margin: 0;
    z-index: 1;
}

.nav-menu-brand {
    display: none;
}

.menu-close {
    display: none;
}

.nav-menu ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color .3s;
}

.nav-menu ul li a:hover {
    color: #FEDC00;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* LANGUAGE DROPDOWN */
.language-selector {
    position: relative;
    cursor: pointer;
}

.language-current {
    display: flex;
    align-items: center;
    gap: 4px;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 25px;
    right: 0;
    background: rgb(0, 0, 0);
    padding: 5px 10px;
    border-radius: 6px;
}


.header-right,
.header-icons,
.language-selector {
    overflow: visible;
}

.language-dropdown {
    z-index: 9999;
    min-width: 70px;
    /* evita cortar ESP */

}


.language-selector:hover .language-dropdown {
    display: block;
}

.language-option {
    color: rgb(255, 255, 255);
    padding: 6px 8px;
    transition: background .3s, color .3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-option:hover {
    background: #FEDC00;
    color: black;
}

.flag-icon {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    /* opcional, deixa levemente arredondado */
}

.language-current-flag {
    width: 20px;
    height: 14px;
}

/* ==================== HERO CAROUSEL ==================== */
.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-dark);
}

.carousel-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    padding: 100px 80px;
    max-width: 800px;
}

.carousel-content h1 {
    font-size: 52px;
    font-weight: 700;
    font-style: normal;
    margin-bottom: 30px;
    line-height: 1.1;
    letter-spacing: 0.04em;
}

.carousel-content p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--color-white);
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--text-primary);
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 80px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--color-primary);
}

/* ==================== LEGACY SECTION ==================== */
.legacy-section {
    background: var(--bg-white);
    padding: 120px 80px;
    text-align: center;
}

.legacy-section h2 {
    font-size: 48px;
    color: var(--color-secondary);
    font-style: normal;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.4;
    letter-spacing: 0.04em;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.legacy-section p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.btn-blue {
    background: var(--color-secondary);
    color: var(--text-light);
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.3s;
}

.btn-blue:hover {
    background: var(--color-primary);
    color: var(--text-primary);
}

/* ==================== SOLUTIONS/NEWS PAGES ==================== */
.page-section {
    background: var(--bg-white);
    padding: 80px 80px 120px;
    min-height: calc(100vh - 200px);
}

.page-header {
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 48px;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 900px;
}

.page-divider {
    width: 100%;
    height: 3px;
    background: var(--color-tertiary);
    margin-bottom: 60px;
}

/* Card Grid (3 columns) */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.content-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.content-card-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.content-card-body {
    padding: 30px;
    background: var(--bg-white);
}

.content-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.content-card-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-secondary);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.btn-read-more:hover {
    color: var(--color-primary);
}

.btn-read-more .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: all 0.3s;
}

.content-card:hover .btn-read-more .arrow {
    transform: rotate(-45deg) translateX(3px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: var(--bg-white);
    border: 2px solid var(--color-tertiary);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.pagination .active {
    background: var(--color-tertiary);
    color: var(--color-white);
}

.pagination .disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==================== HOME SOLUTIONS SECTION ==================== */
.solutions-section {
    background: #ebebeb;
    padding: 100px 80px;
    color: #000000;
}

/* Header (título + botão alinhados como na news) */
.solutions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.solutions-header h2 {
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #000000;
}

/* Botão igual ao padrão (herda a cor da sessão) */
.btn-white {
    background: transparent;
    color: #000000;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.25s ease;
}

.btn-white:hover {
    background: var(--color-primary);
    color: var(--text-primary);
}

/* Grid — corresponde ao news-grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

/* Card — estrutura e comportamento idênticos aos news cards */
.solution-card {
    position: relative;
    height: 350px;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center center;
    border-radius: 8px;
    background-repeat: no-repeat;

    /* borda superior igual ao padrão de destaque */
    border-top: 3px solid var(--color-primary);

    /* transições (transform + sombra) */
    transition: transform 0.28s cubic-bezier(.2, .9, .3, 1), box-shadow 0.28s cubic-bezier(.2, .9, .3, 1);
    transform: translateY(0);
    /* garante estado inicial */
    will-change: transform, box-shadow;
}

/* Hover: levanta + sombra — idêntico ao news */
.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

/* Pseudo-layer (gradiente) — NÃO bloqueia hover nem eventos */
.solution-card::before {
    content: '';
    position: absolute;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0; */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
    pointer-events: none;
    /* importante para permitir hover no card */
    z-index: 1;
}

/* Conteúdo textual — acima do ::before */
.solution-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
    color: #ffffff;
}

.solution-info h3 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #FEDC00;
}

.solution-info p {
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
}

/* Responsividade: manter espaçamentos como nas news */
@media (max-width: 768px) {
    .solutions-section {
        padding: 60px 30px;
    }

    .solutions-grid {
        gap: 24px;
    }

    .solution-card {
        height: 300px;
    }

    .solutions-header h2 {
        font-size: 32px;
    }
}




/* ==================== NEWS SECTION ==================== */
.news-section {
    background: #FFFFFF;
    padding: 100px 80px;
    color: #000000;
}

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

.news-header h2 {
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #000000;
}

/* Clients header: match News / Solutions h2 styling */
.clients-section .page-header h2 {
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #000000;
}

.btn-white {
    background: transparent;
    color: #000000;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.3s;
}

.btn-white:hover {
    background: var(--color-primary);
    color: var(--text-primary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.news-card {
    border-top: 3px solid var(--color-primary);
    padding: 20px;
    color: #000000;

    /* Sombra adicionada */
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Efeito sutil ao passar o mouse */
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.news-date {
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--color-gray-medium);
}

.news-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #000000;
}

.news-card .btn-link {
    color: #000000;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color 0.3s;
}

.news-card .btn-link:hover {
    color: var(--color-primary);
}


/* ==================== FOOTER ==================== */
.footer {
    background: rgb(0, 0, 0);
    padding: 80px 80px 40px;
    border-top: 5px solid #FEDC00;
    /* linha amarela no topo */

    margin-top: auto;
}

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

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #FFFFFF;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 14px;
    line-height: 2;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--color-primary);
    /* amarelo */
}

.footer-social h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFFFFF;
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgb(0, 0, 0);
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--color-primary);
    /* amarelo */
    color: var(--text-primary);
    /* preto */
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #FFFFFF;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--color-primary);
}

.arrow {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.arrow-right {
    transform: rotate(-45deg);
}

.arrow-left {
    transform: rotate(135deg);
}

.btn-read-more .arrow,
.news-card .btn-link .arrow {
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.news-card:hover .btn-link .arrow {
    transform: rotate(-45deg) translateX(3px);
}

.btn-voltar .arrow {
    margin-right: 8px;
}


/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {

    .header {
        --header-logo-height: 78px;
        padding: 12px 28px 8px;
    }

    .header-top {
        min-height: auto;
        gap: 16px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        margin-top: 0;
        padding: 72px 24px 24px;
        background: #000000;
        border-left: 2px solid #FEDC00;
        z-index: 1100;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .menu-close {
        display: inline-flex;
        position: absolute;
        top: 18px;
        right: 16px;
        width: 38px;
        height: 38px;
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 6px;
        background: transparent;
        color: #ffffff;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: border-color 0.3s ease, color 0.3s ease;
        z-index: 2;
    }

    .menu-close span {
        width: 11px;
        height: 11px;
        border-left: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        display: inline-block;
    }

    .menu-close:hover {
        color: #FEDC00;
        border-color: #FEDC00;
    }

    .nav-menu-brand {
        display: inline-flex;
        align-items: center;
        margin-bottom: 28px;
    }

    .nav-menu-brand img {
        width: 170px;
        height: auto;
        display: block;
    }

    .nav-menu ul {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 18px;
    }

    .nav-menu ul li a {
        font-size: 17px;
    }

    .nav-menu.menu-open {
        transform: translateX(0);
    }

    .menu-toggle.menu-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.menu-open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.menu-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 768px) {

    .header {
        --header-logo-height: 70px;
        padding: 12px 20px 8px;
    }

    .header-top {
        min-height: auto;
        gap: 12px;
    }

    .header-top,
    .carousel-content,
    .legacy-section,
    .solutions-section,
    .news-section,
    .footer {
        padding-left: 30px;
        padding-right: 30px;
    }

    .carousel-content h1 {
        font-size: 34px;
        line-height: 1.15;
    }

    .nav-menu {
        width: min(300px, 86vw);
        padding-top: 64px;
    }

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

    .solutions-grid,
    .news-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .btn-white {
        font-size: 12px;
        padding: 8px 12px;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

    .solutions-header h2,
    .news-header h2 {
        font-size: 26px;
        letter-spacing: 0.02em;
    }

    .solutions-header,
    .news-header {
        flex-wrap: nowrap;
        gap: 10px;
    }

    .clients-section {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .clients-grid {
        grid-template-columns: 1fr !important;
        justify-items: center;
        text-align: center;
    }

    .clients-column {
        width: 100%;
    }

    .clients-list {
        justify-content: center !important;
    }

    .page-section.news-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .page-section.solutions-page,
    .page-section.contacts-page {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Language Selector */

.language-current {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.language-current:hover {
    background: rgba(255, 255, 255, 0.2);
}

.language-arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.language-selector:hover .language-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.language-selector:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.3s;
}

.language-option:hover {
    background: #ffd900;
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}