/* VARIÁVEIS GLOBAIS (Fácil de alterar cores aqui) */
:root {
    --bg-color: #FFFFFF;
    --text-color: #111111;
    --accent-color: #FF4500;
    /* Laranja Industrial / Safety Orange */
    --gray-light: #F4F4F4;
    --border-style: 2px solid #111111;
    --font-header: 'Archivo Black', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* RESET BÁSICO */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-mono);
    line-height: 1.4;
}

/* UTILITÁRIOS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* NAVBAR RESPONSIVA */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-bottom: var(--border-style);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

/* Estilo do Logo - Ajuste a altura conforme necessário */
.brand-logo {
    height: 40px;
    display: block;
}

/* Fallback caso a imagem não carregue */
.brand-text {
    font-family: var(--font-header);
    font-size: 1.2rem;
    letter-spacing: -1px;
    display: none;
    /* Ative se não tiver imagem */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.cta-small {
    background: var(--text-color);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
}

/* HERO SECTION */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    border-bottom: var(--border-style);
}

.hero-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-family: var(--font-header);
    font-size: 4rem;
    line-height: 0.95;
    margin: 20px 0;
    text-transform: uppercase;
}

.hero-image {
    background: var(--gray-light);
    border-left: var(--border-style);
    overflow: hidden;
    position: relative;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border: var(--border-style);
    box-shadow: 4px 4px 0px var(--text-color);
    transition: transform 0.1s;
}

.btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--text-color);
}

/* CATÁLOGO GRID RESPONSIVO */
.section-title {
    margin-bottom: 30px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.section-title h2 {
    font-family: var(--font-header);
}

.product-grid {
    display: grid;
    /* Isso cria o efeito responsivo automático: 
       cria quantas colunas couberem com no mínimo 300px cada */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.product-card {
    border: var(--border-style);
    padding: 15px;
    background: #fff;
    transition: background 0.3s;
}

.product-card:hover {
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.1);
}

.p-header {
    border-bottom: 1px dashed #999;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 0.8rem;
}

.temp-img {
    height: 200px;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    color: #888;
}

.p-specs .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.btn-add {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background: transparent;
    border: var(--border-style);
    cursor: pointer;
    font-family: var(--font-mono);
    font-weight: bold;
    text-transform: uppercase;
}

.btn-add:hover {
    background: var(--accent-color);
    color: #fff;
}

/* FORMULÁRIO */
.contact-section {
    background: var(--gray-light);
    border-top: var(--border-style);
}

.form-wrapper {
    background: #fff;
    border: var(--border-style);
    padding: 40px;
    box-shadow: 10px 10px 0px var(--text-color);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.9rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px;
    border: var(--border-style);
    border-radius: 0;
    /* Remove borda arredondada (Brutalismo) */
    font-family: var(--font-mono);
    background: #fff;
}

.btn-submit {
    background: var(--text-color);
    color: #fff;
    padding: 20px;
    border: none;
    width: 100%;
    font-family: var(--font-mono);
    font-size: 1rem;
    cursor: pointer;
}

.btn-submit:hover {
    background: var(--accent-color);
}

/* FOOTER */
footer {
    background: var(--text-color);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    font-size: 0.8rem;
}

/* --- MÍDIA QUERIES (RESPONSIVIDADE MÓVEL) --- */
@media (max-width: 768px) {

    /* Ajuste da Navbar no celular */
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 20px 10px;
    }

    .nav-links {
        gap: 15px;
        font-size: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Hero vira uma coluna só */
    .hero {
        grid-template-columns: 1fr;
    }

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

    .hero h1 {
        font-size: 2.5rem;
        /* Fonte menor no celular */
    }

    .hero-image {
        min-height: 250px;
        border-left: none;
        border-top: var(--border-style);
    }

    .form-wrapper {
        padding: 20px;
        box-shadow: 5px 5px 0px var(--text-color);
    }
}

/* WHATSAPP FLOAT BUTTON */
.whatsapp-float {
    position: fixed;
    width: 68px;
    /* Increased by ~12% from 60px */
    height: 68px;
    bottom: 30px;
    right: 30px;
    background: transparent;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.3));
}

/* CAROUSEL */
.carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    list-style: none;
    gap: 20px;
    padding: 10px 0;
}

.carousel-slide {
    min-width: calc((100% - 40px) / 3);
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: var(--border-style);
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    font-weight: bold;
    font-family: var(--font-header);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--accent-color);
    color: #fff;
}

.prev-btn {
    left: -50px;
}

.next-btn {
    right: -50px;
}

/* Adjust for responsiveness */
@media (max-width: 1300px) {
    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}

/* PRODUCT CARDS REFINEMENT */
.product-card {
    border: var(--border-style);
    padding: 15px;
    background: #fff;
    transition: background 0.3s;
    height: 100%;
    /* Ensure all cards in a row have same height */
    display: flex;
    flex-direction: column;
}

.p-image {
    height: 250px;
    /* Fixed height for image container */
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    overflow: hidden;
}

.p-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}


@media (max-width: 768px) {
    .carousel-slide {
        min-width: 100%;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        /* Ensure it stays visible on small screens */
        width: 60px;
        /* Slightly smaller on mobile but still prominent */
        height: 60px;
    }
}

/* BANNER SECTION */
.section-divider {
    border: none;
    border-top: var(--border-style);
    margin: 0;
}

.banner-section {
    width: 100%;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    min-height: 200px;
    /* Ensure section has height for centering */
    display: flex;
    align-items: center;
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    width: 100%;
}

.banner-track {
    display: flex;
    align-items: center;
    /* Vertically center banners inside track */
    width: 500%;
    animation: slide-banners 25s infinite ease-in-out;
}


.banner-track.paused {
    animation-play-state: paused;
}

.banner-slide {
    width: 20%;
    /* 100% / 5 slides */
    flex-shrink: 0;
}

.banner-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* 
   ANIMATION LOGIC for 4 slides + 1 loop slide:
   Total cycle: 25s
   Each slide: 5s
   - 4.5s (18%) static 
   - 0.5s (2%) transition
   
   0% -> 18%: Slide 1 (static)
   18% -> 20%: Transition 1 to 2
   20% -> 38%: Slide 2 (static)
   38% -> 40%: Transition 2 to 3
   40% -> 58%: Slide 3 (static)
   58% -> 60%: Transition 3 to 4
   60% -> 78%: Slide 4 (static)
   78% -> 80%: Transition 4 to 1 (duplicate)
   80% -> 98%: Loop Slide (duplicate of 1) - effectively same as being at 0%
   98% -> 100%: Jump or quick transition (handled by infinite loop)
*/

@keyframes slide-banners {

    0%,
    18% {
        transform: translateX(0);
    }

    20%,
    38% {
        transform: translateX(-20%);
    }

    40%,
    58% {
        transform: translateX(-40%);
    }

    60%,
    78% {
        transform: translateX(-60%);
    }

    80%,
    98% {
        transform: translateX(-80%);
    }

    100% {
        transform: translateX(0);
    }
}

@media (max-width: 1200px) {
    .banner-container {
        max-width: 100%;
    }
}