/* ======================================================
   HOME LAYOUT — RESPONSIVE IMPROVEMENTS (June 2025)
   ==============================================================*/

/* -------------------------
   1. GLOBAL TWEAKS
-------------------------- */
body {
    overflow-x: hidden;
    /* evita scroll horizontal */
}

/* -------------------------
   2. SLIDER
-------------------------- */
.slider-wrapper {
    width: 100%;
    /* usa a largura do contêiner em vez de 100vw — previne overflow */
    height: clamp(250px, 70vh, 700px);
    /* adapta-se ao viewport, nunca passando de 700 px */
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navigation {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
}

.star-nav {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 0;
    background: rgba(15, 15, 15, 0.5);
    cursor: pointer;
}

.star-nav.active {
    background: #ff0800;
}

/* -------------------------
   3. INFO SECTION
-------------------------- */
.info-section {
    display: flex;
    flex-wrap: wrap;
    /* permite quebrar linha quando faltar espaço */
    justify-content: center;
    gap: 2.5rem;
    /* 40 px */
    padding: 2.5rem 1.25rem;
    /* 40 px top/bottom – 20 px sides */
}

.info-container {
    flex: 1 1 280px;
    /* cresce / encolhe; base = 280 px */
    max-width: 320px;
    background: #1c1c1c;
    padding: 2.5rem 1.25rem;
    text-align: center;
    border: 1px solid #333;
    border-radius: 10px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    /* 20 px entre itens internos */
}

.info-container p {
    color: #ddd;
}

.info-button {
    padding: 0.625rem 1.25rem;
    background: #ff1e00;
    border-radius: 5px;
    color: #fff;
    font-weight: 600;
    transition: background 0.3s ease;
}

.info-button:hover {
    background: #e51900;
}

/* -------------------------
   4. ABOUT FACTORY SECTION
-------------------------- */
.about-factory-section {
    text-align: center;
    padding: 0 1.25rem 3rem;
    /* lateral 20 px – 48 px bottom */
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin: 3rem 0 2rem;
    color: #f3ebeb;
}

.factory-image {
    max-width: 90%;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
}

.factory-text-container {
    max-width: 50rem;
    /* 800 px */
    margin: 0 auto;
    color: #f7f6f6;
    line-height: 1.7;
    font-size: 1.1rem;
    text-align: justify;
}

/* -------------------------
   5. MEDIA QUERIES
-------------------------- */
@media (max-width: 768px) {

    /* Slider bullets um pouco menores */
    .star-nav {
        width: 14px;
        height: 14px;
    }

    /* Info cards em coluna */
    .info-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .navigation {
        bottom: 0.75rem;
        /* 12 px */
        gap: 0.5rem;
    }

    .factory-text-container {
        font-size: 1rem;
    }
}