/* css/style.css - VERSÃO LIMPA E DEFINITIVA (TODAS AS PÁGINAS) */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Identidade Visual HS MED */
    --primary-blue: #003B5C;  /* Azul Escuro */
    --vivid-blue: #0098dc;    /* Azul Claro Vibrante */
    --bg-light: #F2F6F9;      /* Fundo suave */
    --text-color: #555;
    --white: #ffffff;
    --radius-box: 20px;       /* Padrão de Arredondamento */
}

/* --- BASE --- */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Garante rodapé no final */
}

h1, h2, h3, h4, h5 { color: var(--primary-blue); font-weight: 700; }
a { text-decoration: none; transition: 0.3s; }

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--primary-blue);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}
.top-bar i { color: var(--vivid-blue); margin-right: 6px; }

/* --- NAVBAR (MENU) --- */
.navbar {
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    height: 90px; 
    padding: 0; 
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar .container { height: 100%; }

.navbar-brand { 
    height: 100%; 
    display: flex; 
    align-items: center; 
    padding: 0; 
    margin-right: 40px; 
}

.navbar-brand img {
    height: 50px; /* Tamanho ideal para logo quadrada */
    width: auto;
    object-fit: contain;
    display: block;
}

.navbar-nav { height: 100%; align-items: center; }

.nav-link {
    color: var(--primary-blue) !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin: 0 15px;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--vivid-blue);
    transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--vivid-blue) !important; }

.btn-header {
    background-color: var(--vivid-blue);
    color: white !important;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0, 152, 220, 0.25);
    transition: transform 0.3s ease;
}
.btn-header:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
}

/* --- BARRA DE BUSCA (Para a Página de Produtos) --- */
.search-wrapper {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    padding: 5px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    max-width: 600px;
    margin: 0 auto;
}
.search-wrapper input {
    border: none;
    box-shadow: none;
    width: 100%;
    outline: none;
    color: #555;
    font-size: 1rem;
}
.search-wrapper button {
    background: none;
    border: none;
    color: var(--vivid-blue);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

/* --- HERO SECTION (HOME) --- */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(to right, #fff 55%, var(--bg-light) 50%);
    display: flex;
    align-items: center;
}

.hero-subtitle {
    color: var(--vivid-blue);
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.hero-title { font-size: 3rem; line-height: 1.15; margin-bottom: 25px; }

.hero-img {
    border-radius: var(--radius-box);
    box-shadow: 20px 20px 0 var(--vivid-blue); 
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.hero-img:hover { transform: scale(1.01); }

/* --- CARDS DE SERVIÇOS (HOME) --- */
.services-section { padding: 80px 0; background: white; }

.service-card {
    background: white;
    border: 1px solid #f0f0f0;
    padding: 40px 30px;
    border-radius: var(--radius-box);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}
.service-card:hover {
    border-color: var(--vivid-blue);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    color: var(--vivid-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: 0.3s;
}
.service-card:hover .icon-box { background: var(--vivid-blue); color: white; }

/* --- SEÇÃO VANTAGENS (HOME - DIFERENCIAIS) --- */
.advantages-section {
    padding: 90px 0;
    background-color: #f0f8ff;
}
.section-title-box { max-width: 700px; margin: 0 auto 50px; text-align: center; }
.section-title-box h2 { font-size: 2rem; margin-bottom: 15px; }

.adv-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.adv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 152, 220, 0.15);
    border-color: #e0f2ff;
}
.adv-icon-circle {
    width: 70px;
    height: 70px;
    background-color: #e6f4fa;
    color: var(--vivid-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transition: 0.3s;
}
.adv-card:hover .adv-icon-circle { background-color: var(--vivid-blue); color: white; }
.adv-title { font-size: 1.1rem; font-weight: 700; color: var(--primary-blue); margin-bottom: 10px; }
.adv-desc { font-size: 0.9rem; color: #666; line-height: 1.5; }

/* --- SIDEBAR (PÁGINA DE PRODUTOS) --- */
.sidebar-box {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #eee;
}
.sidebar-title {
    font-size: 1.1rem;
    border-bottom: 2px solid var(--vivid-blue);
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: var(--primary-blue);
}
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li {
    margin-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 12px;
}
.sidebar-list li:last-child { border: none; }
.sidebar-list a {
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sidebar-list a:hover { color: var(--vivid-blue); padding-left: 5px; }
.sidebar-list i { font-size: 0.8rem; color: #ccc; }

/* --- PRODUTOS E HOVER (GRID DE PRODUTOS) --- */
.product-card-wrapper {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    background: white;
    border: 1px solid #f0f0f0;
}
.product-card-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 152, 220, 0.15);
    border-color: var(--vivid-blue);
}
.product-img-box {
    position: relative;
    height: 250px;
    overflow: hidden;
}
.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card-wrapper:hover .product-img-box img { transform: scale(1.1); }

/* Overlay (Cortina Azul) */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 59, 92, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: all 0.4s ease;
    text-align: center;
}
.product-card-wrapper:hover .product-overlay { opacity: 1; }
.overlay-text {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: 0.4s ease;
}
.product-card-wrapper:hover .overlay-text { transform: translateY(0); }
.product-info {
    padding: 15px;
    text-align: center;
    background: white;
    z-index: 2;
    position: relative;
}
.product-info h5 { font-size: 1rem; margin: 0; }

/* --- SEÇÃO SOBRE --- */
.about-section { padding: 80px 0; background: white; }
.about-img {
    border-radius: var(--radius-box);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* --- CONTATO E FORMULÁRIO --- */
.contact-section {
    background-color: var(--bg-light);
    padding: 90px 0;
}

.form-box {
    background: white;
    padding: 45px;
    border-radius: var(--radius-box);
    box-shadow: 0 20px 60px rgba(0,0,0,0.06); 
}

.form-control, .form-select {
    background-color: #fcfcfc;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    height: 50px;
    padding-left: 20px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
    background-color: white;
    border-color: var(--vivid-blue);
    box-shadow: 0 0 0 4px rgba(0, 152, 220, 0.1);
}
textarea.form-control { height: auto; padding-top: 15px; }

.btn-submit {
    background-color: var(--vivid-blue);
    color: white;
    width: 100%;
    padding: 15px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 152, 220, 0.3);
}
.btn-submit:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
}

/* --- CORREÇÃO DE MARGENS (Remove divisórias brancas) --- */
section {
    margin: 0 !important;
    border: none !important;
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary-blue);
    color: #e0e0e0;
    padding: 60px 0 20px;
    margin-top: auto;
    border-top: none;
}
footer h5 { color: white; margin-bottom: 25px; font-size: 1.1rem; }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 12px; }
footer a { color: #e0e0e0; font-size: 0.9rem; }
footer a:hover { color: var(--vivid-blue); padding-left: 5px; }

/* --- MOBILE --- */
@media (max-width: 991px) {
    .navbar { height: auto; padding: 15px 0; } 
    .navbar-brand img { height: 50px; margin-bottom: 10px; }
    .hero-section { flex-direction: column; text-align: center; padding: 50px 0; background: white; }
    .hero-img { box-shadow: none; margin-top: 30px; border-radius: 20px; }
    .form-box { padding: 30px; }
}
/* --- CTA FINAL DA PÁGINA DE PRODUTOS --- */
.products-cta-section {
    padding-bottom: 80px;
    background-color: white;
}

.cta-box {
    background: var(--primary-blue); /* Azul Escuro Institucional */
    color: white;
    border-radius: 25px; /* Bem arredondado */
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(13, 59, 92, 0.15); /* Sombra elegante */
    max-width: 1000px;
    margin: 0 auto; /* Centraliza o box */
}

/* Efeito de fundo sutil (círculo decorativo) */
.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.cta-text {
    color: #dbeafe; /* Azulzinho muito claro */
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta-white {
    background-color: white;
    color: var(--primary-blue) !important;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid white;
    transition: 0.3s;
    display: inline-block;
}

.btn-cta-white:hover {
    background-color: transparent;
    color: white !important;
    transform: translateY(-3px);
}