/* ==========================================================
   BRS Valve Service - Estilos da página Quem Somos
   (usa também as classes globais de style.css)
   ========================================================== */

/* ===== Hero Quem Somos ===== */
.qs-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, #ffffff 0%, #f4f7fb 100%);
    overflow: hidden;
}

/* Imagem ocupando o lado direito, com degradê branco na borda esquerda */
.qs-hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-image: url('../images/tecnica-brs.jpg');
    background-size: cover;
    background-position: center top;
}

.qs-hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0.6) 12%, rgba(255, 255, 255, 0) 28%);
}

.qs-hero-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
    padding: 60px 0;
}

.qs-hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #002244;
    line-height: 1.1;
    margin-bottom: 15px;
}

.qs-hero-subtitle {
    font-size: 1.6rem;
    font-weight: 500;
    color: #002244;
    line-height: 1.3;
    margin-bottom: 20px;
}

.qs-hero-content p {
    font-size: 1.05rem;
    color: #444f5c;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* ===== Diferenciais (ícone em cima) ===== */
.qs-features {
    background-color: #f7f9fc;
    padding: 40px 0;
    border-top: 1px solid #eef1f5;
    border-bottom: 1px solid #eef1f5;
}

.qs-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.qs-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 25px;
    position: relative;
}

/* Linha divisória vertical entre colunas (reutilizada nos Valores) */
.qs-feature:not(:last-child)::after,
.qs-value:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: #dde3ea;
}

.qs-icon {
    color: #002244;
    margin-bottom: 15px;
}

.qs-icon svg {
    width: 42px;
    height: 42px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qs-feature h3,
.qs-value h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #002244;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.qs-feature p,
.qs-value p {
    font-size: 0.92rem;
    color: #5d6875;
    line-height: 1.5;
}

/* ===== Blocos com imagem + texto (História e Segmentos) ===== */
.qs-split {
    padding: 80px 0;
}

.qs-split-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.qs-split-image {
    flex: 1;
}

.qs-split-image img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 34, 68, 0.12);
}

.qs-split-content {
    flex: 1;
}

.qs-split-content p {
    font-size: 1.02rem;
    color: #555f6b;
    line-height: 1.7;
    margin-bottom: 18px;
}

.qs-split-content .btn-primary {
    margin-top: 12px;
}

.qs-history {
    background-color: #ffffff;
}

/* ===== Valores ===== */
.qs-values {
    background-color: #f4f7fb;
    padding: 80px 0;
}

.qs-values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.qs-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 30px;
    position: relative;
}

.qs-value .qs-icon svg {
    width: 46px;
    height: 46px;
}

/* ===== Representante autorizado / Marcas ===== */
.qs-brands {
    background-color: #ffffff;
    padding: 80px 0;
}

.qs-brands-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.qs-brands-text {
    flex: 1;
}

.qs-brands-text p {
    font-size: 1.02rem;
    color: #555f6b;
    line-height: 1.7;
    max-width: 480px;
}

.qs-brands-logos {
    flex: 1.2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px 40px;
}

.qs-brand {
    flex: 0 0 calc(33.333% - 27px); /* 3 por linha */
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qs-brand img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.qs-brand:hover img {
    transform: scale(1.06);
}

/* ===== Segmentos ===== */
.qs-segments {
    background-color: #f4f7fb;
}

.qs-segments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 25px;
    margin-top: 30px;
}

.qs-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 5px 8px;
}

/* Divisória vertical, exceto na última coluna de cada linha */
.qs-segment:not(:nth-child(4n)) {
    border-right: 1px solid #dde3ea;
}

.qs-segment .qs-icon {
    margin-bottom: 0;
}

.qs-segment .qs-icon svg {
    width: 34px;
    height: 34px;
    stroke-width: 1.8;
}

.qs-segment span {
    font-size: 0.88rem;
    color: #333d48;
    line-height: 1.3;
}

/* ===== Responsividade ===== */
@media (max-width: 1024px) {
    .qs-hero-content h1 { font-size: 2.6rem; }
    .qs-hero-subtitle { font-size: 1.35rem; }
}

@media (max-width: 900px) {
    /* Hero: imagem passa para baixo do texto */
    .qs-hero {
        flex-direction: column;
        align-items: stretch;
    }
    .qs-hero-image {
        position: relative;
        width: 100%;
        height: 300px;
        order: 2;
    }
    .qs-hero-image::before {
        display: none;
    }
    .qs-hero-content {
        max-width: 100%;
        padding: 50px 0 40px;
    }

    .qs-features-grid,
    .qs-values-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 30px;
    }
    .qs-feature:nth-child(2n)::after,
    .qs-value:nth-child(2n)::after {
        display: none;
    }

    .qs-split-container,
    .qs-brands-container {
        flex-direction: column;
        gap: 40px;
    }
    .qs-split-image {
        width: 100%;
    }
    .qs-split-image img {
        height: 320px;
    }
    /* Na seção de segmentos, a imagem fica abaixo do texto */
    .qs-segments .qs-split-image {
        order: 2;
    }
}

@media (max-width: 600px) {
    .qs-features-grid,
    .qs-values-grid {
        grid-template-columns: 1fr;
    }
    .qs-feature::after,
    .qs-value::after {
        display: none;
    }

    .qs-brand {
        flex: 0 0 calc(50% - 20px); /* 2 por linha */
        height: 65px;
    }

    .qs-segments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .qs-segment:not(:nth-child(4n)) {
        border-right: none;
    }
    .qs-segment:nth-child(odd) {
        border-right: 1px solid #dde3ea;
    }
}
