/* =========================================================
   FONTES LOCAIS
   ========================================================= */
@font-face {
    font-family: 'Playfair Display';
    src: url('../font/Playfair_Display/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../font/Playfair_Display/PlayfairDisplay-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}
/* FIM FONTES LOCAIS */

/*
=========================================================
Projeto:            Global Group Import
Desenvolvedor:      Eng. Hewerton Trindade Bianchi
Início:             06/05/2026
Última atualização: 06/05/2026
Arquivo:            style.css
=========================================================
*/


/* =========================================================
   VARIÁVEIS GLOBAIS / PALETA DE CORES
   ========================================================= */
:root {

    /* Fundos */
    --bg-primary:    #181818;
    --bg-secondary:  #212121;
    --bg-card:       #2a2a2a;

    /* Verde Oliva - Paleta principal */
    --olive-dark:    #3d5016;
    --olive-main:    #556B2F;
    --olive-light:   #7a9640;
    --olive-accent:  #9ab54e;

    /* Texto */
    --text-primary:   #f2f2f2;
    --text-secondary: #b8b8b8;
    --text-muted:     #6e6e6e;

    /* Bordas e divisores */
    --border-color: #333333;

    /* Dimensões */
    --header-height: 90px;

    /* Transições */
    --transition-fast:   0.3s ease;
    --transition-medium: 0.55s ease;
    --transition-slow:   0.8s ease;

}
/* FIM VARIÁVEIS */


/* =========================================================
   RESET GLOBAL E BASE
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}
/* FIM RESET */


/* =========================================================
   HEADER / NAVEGAÇÃO PRINCIPAL
   (position: fixed — permanece visível durante o scroll)
   ========================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(24, 24, 24, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--olive-dark);
    z-index: 1000;
    transition:
        background-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

    /* Sombra suave ao rolar a página */
    .header.scrolled {
        box-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
    }

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* --- Logo --- */
.header-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-logo img {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--olive-accent);
    letter-spacing: 0.4px;
    white-space: nowrap;
}

/* --- Menu de Navegação (Desktop) --- */
.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: block;
    padding: 8px 14px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 4px;
    position: relative;
    transition: color var(--transition-fast);
}

    /* Linha decorativa abaixo do item */
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 3px;
        left: 14px;
        right: 14px;
        height: 2px;
        background-color: var(--olive-accent);
        border-radius: 2px;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform var(--transition-fast);
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--olive-accent);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        transform: scaleX(1);
    }

/* --- Ações do Header --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* --- Bandeiras de idioma --- */
.language-flags {
    display: flex;
    align-items: center;
    gap: 4px;
}

.flag-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 1.35rem;
    line-height: 1;
    transition:
        transform var(--transition-fast),
        background-color var(--transition-fast);
}

    .flag-btn:hover {
        transform: scale(1.25);
        background-color: rgba(255, 255, 255, 0.07);
    }

/* --- Botão WhatsApp --- */
.whatsapp-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    border-radius: 50%;
    color: #fff;
    font-size: 1.15rem;
    transition:
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

    .whatsapp-btn:hover {
        background-color: #1da851;
        transform: scale(1.1);
    }

/* --- Botão Hambúrguer (Mobile) --- */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 5px;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition:
        transform var(--transition-fast),
        opacity var(--transition-fast);
}

    /* Animação hambúrguer → X quando ativo */
    .hamburger-btn.active .hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .hamburger-btn.active .hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

/* FIM HEADER */


/* =========================================================
   OVERLAY DO MENU MOBILE
   ========================================================= */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

/* FIM OVERLAY */


/* =========================================================
   RESPONSIVIDADE — MENU MOBILE
   (Abaixo de 900px exibe hambúrguer + menu lateral deslizante)
   ========================================================= */
@media (max-width: 900px) {

    /* Exibe o botão hambúrguer */
    .hamburger-btn {
        display: flex;
    }

    /* Menu desliza da direita */
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 280px;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-secondary);
        border-left: 1px solid var(--border-color);
        z-index: 999;
        transition: right var(--transition-medium);
        overflow-y: auto;
        padding: 24px 0;
    }

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

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 0 12px;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
        border-radius: 8px;
    }

        .nav-link::after {
            bottom: 6px;
            left: 16px;
            right: 16px;
        }

} /* FIM @media 900px */


/* =========================================================
   CARROSSEL / SLIDER PRINCIPAL
   ========================================================= */
.carousel {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--header-height));
    margin-top: var(--header-height);
    overflow: hidden;
    background-color: #111;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* --- Slides --- */
.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

    .carousel-slide.active {
        opacity: 1;
        pointer-events: auto;
        z-index: 1;
    }

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* --- Conteúdo / Texto sobre o slide --- */
.slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.30) 0%,
        rgba(0, 0, 0, 0.60) 100%
    );
}

.slide-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 3.6rem);
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 3px 24px rgba(0, 0, 0, 0.75);
    padding: 0 32px;
    max-width: 860px;
    line-height: 1.25;

    /* Animação: aparece deslizando de cima para baixo + fade */
    opacity: 0;
    transform: translateY(-44px);
    transition:
        opacity  0.8s ease 0.35s,
        transform 0.8s ease 0.35s;
}

    /* Ativa a animação apenas no slide ativo */
    .carousel-slide.active .slide-title {
        opacity: 1;
        transform: translateY(0);
    }

/* --- Botões Prev / Next --- */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: rgba(85, 107, 47, 0.75);
    color: #fff;
    border-radius: 50%;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition:
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

    .carousel-btn:hover {
        background-color: var(--olive-main);
        transform: translateY(-50%) scale(1.12);
    }

    .carousel-btn-prev { left: 20px; }
    .carousel-btn-next { right: 20px; }

/* --- Indicadores de posição --- */
.carousel-indicators {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transition:
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

    .indicator.active {
        background-color: var(--olive-accent);
        transform: scale(1.35);
    }

/* FIM CARROSSEL */


/* =========================================================
   SEÇÃO DE PRODUTOS
   ========================================================= */
.products-section {
    padding: 64px 0;
    background-color: var(--bg-primary);
}

/* --- Cabeçalho da seção --- */
.section-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 24px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--olive-accent);
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* --- Grid de Produtos (preenche toda a largura) --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* --- Card de Produto --- */
.product-card {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--bg-card);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

    /* Zoom suave na imagem ao passar o mouse */
    .product-card:hover .product-image {
        transform: scale(1.06);
    }

/* --- Overlay inferior do Card (aparece no hover) --- */
.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 15%;
    background-color: rgba(61, 80, 22, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;

    /* Oculto por padrão — desliza de baixo para cima no hover */
    transform: translateY(100%);
    transition: transform var(--transition-fast);
}

    .product-card:hover .product-overlay {
        transform: translateY(0);
    }

.product-title {
    font-size: clamp(0.8rem, 1.4vw, 1rem);
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* FIM SEÇÃO DE PRODUTOS */

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 560px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0 16px;
    }
}


/* =========================================================
   RODAPÉ
   ========================================================= */
.footer {
    background-color: #111111;
    border-top: 2px solid var(--olive-dark);
    padding-top: 48px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

/* --- Colunas do Rodapé --- */
.footer-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--olive-accent);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

    .footer-links a:hover {
        color: var(--olive-accent);
    }

.footer-contact li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

    .footer-contact li i {
        color: var(--olive-accent);
        width: 16px;
        flex-shrink: 0;
    }

/* --- Ícones de Redes Sociais --- */
.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    width: 38px;
    height: 38px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast);
}

    .social-link:hover {
        background-color: var(--olive-main);
        color: #fff;
        border-color: var(--olive-main);
    }

/* --- Rodapé inferior — copyright --- */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* FIM RODAPÉ */


/* =========================================================
   PÁGINAS INTERNAS (Sobre Nós, Catálogo, Contato)
   ========================================================= */

/* Espaço para compensar o header fixo */
.page-content {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    padding: 60px 24px;
}

/* Banner hero das páginas internas */
.page-hero {
    margin-top: var(--header-height);
    padding: 80px 24px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #1e2b0d 100%);
    border-bottom: 1px solid var(--olive-dark);
    text-align: center;
}

.page-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--olive-accent);
    margin-bottom: 12px;
}

.page-hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Container padrão para conteúdo de páginas */
.page-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}

.page-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--olive-accent);
    margin-bottom: 20px;
}

.page-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* --- Formulário de Contato --- */
.contact-form {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
    width: 100%;
}

    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        border-color: var(--olive-light);
        box-shadow: 0 0 0 3px rgba(122, 150, 64, 0.2);
    }

    .form-group textarea {
        resize: vertical;
        min-height: 130px;
    }

.btn-submit {
    padding: 13px 32px;
    background-color: var(--olive-main);
    color: #fff;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition:
        background-color var(--transition-fast),
        transform var(--transition-fast);
    align-self: flex-start;
}

    .btn-submit:hover {
        background-color: var(--olive-light);
        transform: translateY(-2px);
    }

/* --- Grid do Catálogo --- */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.catalog-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

    .catalog-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }

.catalog-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.catalog-card-body {
    padding: 16px;
}

.catalog-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.catalog-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FIM PÁGINAS INTERNAS */


/* =========================================================
   UTILITÁRIOS GERAIS
   ========================================================= */

/* Esconde elementos visualmente mas mantém acessível */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* FIM UTILITÁRIOS */
