/* ==========================================================
   BRS Valve Service - Estilos globais do site
   ========================================================== */

/* Reset básico e tipografia */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', 'Segoe UI', sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
}

/* Container Global com medida fixa máxima de 1280px */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px; /* Margem de segurança para telas menores */
    position: relative;
}

/* Estilos da Seção Hero */
.hero {
    position: relative;
    width: 100%;
    height: 500px; /* Altura correspondente à proporção do banner na imagem */
    background-image: url('../images/bg-valvulas-industriais.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

/* Overlay do Gradiente Azul Escuro */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente escuro à esquerda, esfumaçando para a direita */
    background: linear-gradient(to right, #002244 0%, rgba(0, 34, 68, 0.85) 40%, rgba(0, 34, 68, 0) 100%);
    z-index: 1;
}

/* Organização interna do Hero (Conteúdo Esquerda / Selo Direita) */
.hero-container {
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-content {
    max-width: 600px;
    color: #ffffff;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background-color: #0d6efd; /* Azul vibrante igual ao da imagem */
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.hero-btn:hover {
    background-color: #0b5ed7;
}

/* Ícone de seta no botão */
.hero-btn svg {
    margin-left: 10px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Selo / Imagem da direita no Hero */
.hero-seal {
    max-width: 160px;
}

.hero-seal img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsividade básica */
@media (max-width: 900px) {
    .hero-content h1 { font-size: 2.4rem; }
    .hero-seal { display: none; /* Oculta o selo em telas muito pequenas para não encavalar */ }
}

@media (max-width: 768px) {
    .hero::before {
        background: linear-gradient(to right, #002244 0%, rgba(0, 34, 68, 0.95) 70%, rgba(0, 34, 68, 0.4) 100%);
    }
    .hero-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== Seção de Diferenciais ===== */
.features {
    background-color: #f7f9fc; /* Fundo cinza-azulado bem claro */
    padding: 35px 0;
    border-bottom: 1px solid #eef1f5;
}

.features-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feature-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 10px 20px;
    position: relative;
}

/* Linha divisória vertical entre os itens */
.feature-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 55px;
    background-color: #dde3ea;
}

.feature-icon {
    color: #002244; /* Azul escuro dos ícones */
    flex-shrink: 0;
}

.feature-icon svg {
    width: 42px;
    height: 42px;
    display: block;
}

.feature-text h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #002244;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.9rem;
    color: #6b7785;
}

@media (max-width: 768px) {
    .features-container {
        flex-direction: column;
        gap: 10px;
    }
    .feature-item {
        width: 100%;
        justify-content: flex-start;
    }
    .feature-item:not(:last-child)::after {
        display: none;
    }
}

/* ===== Classes reutilizáveis para as seções ===== */
.section-label {
    display: block;
    color: #0d6efd;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: #002244;
    line-height: 1.2;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 13px 26px;
    background-color: #0d6efd;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0b5ed7;
}

.btn-primary svg {
    margin-left: 10px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===== Seção Quem Somos ===== */
.about {
    background-color: #ffffff;
    padding: 80px 0;
}

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

.about-content {
    flex: 1;
}

.about-content p {
    font-size: 1.05rem;
    color: #555f6b;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 520px;
}

.about-image {
    flex: 1;
}

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

@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        gap: 40px;
    }
    .about-image {
        width: 100%;
    }
    .about-image img {
        height: 320px;
    }
    .section-title {
        font-size: 1.9rem;
    }
}

/* ===== Seção Nossos Serviços ===== */
.services {
    background-color: #f4f7fb; /* Fundo cinza-azulado claro */
    padding: 80px 0;
}

/* Cabeçalho centralizado (reutilizável) */
.section-header {
    text-align: center;
    margin-bottom: 45px;
}

.section-header .section-title {
    margin-bottom: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 34, 68, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 34, 68, 0.14);
}

.service-image {
    height: 190px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05); /* Leve zoom na imagem ao passar o mouse */
}

.service-body {
    padding: 22px 22px 18px;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #002244;
    margin-bottom: 8px;
}

.service-body p {
    font-size: 0.95rem;
    color: #555f6b;
    line-height: 1.5;
    padding-right: 25px; /* Espaço para não encostar na seta */
}

.service-arrow {
    align-self: flex-end;
    margin-top: auto;
    color: #0d6efd;
    transition: transform 0.3s ease;
}

.service-card:hover .service-arrow {
    transform: translateX(4px);
}

.service-arrow svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Seção Aplicações ===== */
.applications {
    background-color: #ffffff;
    padding: 80px 0;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
}

.application-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 15px 5px;
    transition: transform 0.3s ease;
}

.application-item:hover {
    transform: translateY(-4px);
}

.application-icon {
    color: #002244; /* Azul escuro dos ícones */
    transition: color 0.3s ease;
}

.application-item:hover .application-icon {
    color: #0d6efd;
}

.application-icon svg {
    width: 46px;
    height: 46px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.application-item span {
    font-size: 0.98rem;
    font-weight: 500;
    color: #333d48;
}

@media (max-width: 900px) {
    .applications-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 500px) {
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Seção Principais Marcas ===== */
.brands {
    background-color: #ffffff;
    padding: 10px 0 70px; /* Topo reduzido para dar continuidade à seção Aplicações, como no template */
}

.brands-label {
    text-align: center;
    margin-bottom: 30px;
}

.brands-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.brand-logo {
    flex: 1;
    min-width: 0; /* Permite que logos grandes encolham dentro do espaço */
    height: 84px; /* 60px + 40% */
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.brand-logo:hover img {
    transform: scale(1.08);
}

.brands-more {
    flex-shrink: 0;
    border-left: 1px solid #dde3ea;
    padding-left: 30px;
    height: 84px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7785;
    text-align: center;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

@media (max-width: 900px) {
    .brands-row {
        flex-wrap: wrap;
        justify-content: center;
    }
    .brand-logo {
        flex: 0 0 calc(33.333% - 30px); /* 3 logos por linha */
    }
    .brands-more {
        flex-basis: 100%;
        justify-content: center;
        border-left: none;
        padding-left: 0;
        height: auto;
    }
}

@media (max-width: 500px) {
    .brand-logo {
        flex: 0 0 calc(50% - 30px); /* 2 logos por linha */
        height: 70px; /* 50px + 40% */
    }
}

/* ===== Seção Chamada para Ação (CTA) ===== */
.cta {
    position: relative;
    padding: 60px 0;
    background-image: url('../images/bg-valvulas-industriais.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

/* Camada azul escura sobre a imagem, deixando-a bem sutil como no template */
.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 34, 68, 0.97) 0%, rgba(0, 34, 68, 0.9) 50%, rgba(0, 34, 68, 0.82) 100%);
    z-index: 1;
}

.cta-container {
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cta-content h2 {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #dce6f2;
}

.cta-btn {
    flex-shrink: 0;
    padding: 15px 32px;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .cta-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .cta-content h2 {
        font-size: 1.7rem;
    }
    .cta-content br {
        display: none; /* Deixa o texto fluir naturalmente no celular */
    }
}
