/* CSS CRH SERVIÇOS - ESTILO CORPORATIVO PREMIUM */

:root {
    --navy: #0A1931;
    --blue-corp: #185ADB;
    --blue-light: #EFEFEF;
    --grey-light: #F9F9F9;
    --grey-text: #4A4A4A;
    --graphite: #2D2D2D;
    --white: #FFFFFF;
    --cta: #FF914D; /* Cor de destaque para CTAs */
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--grey-text);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--navy);
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

.bg-light { background-color: var(--grey-light); }
.bg-dark { background-color: var(--navy); }
.bg-corporate { background-color: var(--blue-corp); }
.text-white { color: var(--white); }
.center { text-align: center; }
.center-text { max-width: 800px; margin: 0 auto 30px; text-align: center; }

.section-title {
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title.center::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--blue-corp);
    margin: 15px auto;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--blue-corp);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn:hover {
    background: var(--navy);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border-color: var(--blue-corp);
    color: var(--blue-corp);
}

.btn-outline:hover {
    background: var(--blue-corp);
    color: var(--white);
}

.btn-header {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* HEADER */
header {
    background: var(--white);
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-desktop a {
    margin-left: 25px;
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-desktop a:hover { color: var(--blue-corp); }

.menu-mobile-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-mobile-icon span {
    width: 25px;
    height: 3px;
    background: var(--navy);
    transition: var(--transition);
}

.nav-mobile {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.nav-mobile.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
    display: flex;
}

.nav-mobile a {
    padding: 15px 0;
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

/* HERO */
.hero {
    background: var(--grey-light);
    padding: 160px 0 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text .label {
    display: inline-block;
    color: var(--blue-corp);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 35px;
}

.hero-ctas .btn { margin-right: 15px; }

.image-wrapper { position: relative; }
.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.floating-info {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 250px;
}

/* SOBRE */
.sobre-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.sobre-content p { margin-bottom: 20px; }

.sobre-visual { position: relative; }
.sobre-visual img { width: 100%; border-radius: 10px; }

.sobre-cards {
    display: flex;
    gap: 20px;
    position: absolute;
    bottom: 20px;
    left: -40px;
}

.sobre-card {
    background: var(--blue-corp);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 5px;
    font-weight: 700;
}

/* NUMBERS */
.section-numbers {
    background: var(--navy);
    padding: 60px 0;
    color: var(--white);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.number-item h3 { color: var(--white); font-size: 2.5rem; }
.number-item p { opacity: 0.8; font-weight: 600; }

/* CARDS GRID */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--blue-corp);
}

.card-icon { font-size: 2.5rem; margin-bottom: 20px; }
.card h3 { margin-bottom: 15px; font-size: 1.2rem; }

/* ÁREA DE COBERTURA */
.section-cobertura {
    padding: 80px 0;
}

.map-banner {
    width: 100%;
    margin-top: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
}

.mapa-img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.mapa-img:hover {
    transform: scale(1.02);
}

/* PROCESSO */
.processo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.processo-item { position: relative; padding-left: 50px; }
.processo-item .step {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--blue-corp);
    opacity: 0.3;
}

.processo-item h4 { margin-bottom: 10px; font-size: 1.1rem; }

/* FLUXOGRAMA */
.flow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 50px auto;
    position: relative;
}

.flow-step {
    width: 250px;
    margin: 5px 0;
    z-index: 2;
}

.flow-box {
    background: var(--white);
    color: var(--navy);
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    border: 2px solid var(--blue-corp);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 0.85rem;
}

.flow-box.decision {
    background: var(--blue-corp);
    color: var(--white);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    padding: 30px 10px;
    width: 200px;
    margin: 0 auto;
}

.flow-box.final { border-style: dashed; }
.flow-box.highlight { background: var(--cta); color: var(--white); border: none; }

.flow-arrow { font-size: 1.5rem; margin: 5px 0; color: var(--blue-corp); font-weight: bold; }

.flow-branches {
    display: flex;
    justify-content: center;
    gap: 80px;
    width: 100%;
    margin: 20px 0;
    position: relative;
}

.flow-branches::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    width: 300px;
    height: 2px;
    background: var(--blue-corp);
    transform: translateX(-50%);
}

.branch { width: 250px; display: flex; flex-direction: column; align-items: center; position: relative; }
.branch::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    width: 2px;
    height: 20px;
    background: var(--blue-corp);
}

.branch-label { font-weight: 800; font-size: 0.8rem; margin-bottom: 10px; background: var(--navy); padding: 2px 10px; border-radius: 10px; }
.branch.success .branch-label { color: #2ecc71; }
.branch.error .branch-label { color: #e74c3c; }

/* ATENDIMENTO */
.atendimento-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
}

.atend-node {
    padding: 20px 40px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-weight: 700;
}

.atend-node.crh { background: var(--blue-corp); color: var(--white); border-color: var(--blue-corp); }
.atend-link { font-size: 2rem; color: var(--blue-corp); }

/* IMPRODUTIVAS */
.improdutiva-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.improd-item {
    background: var(--white);
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.improd-fluxo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    font-size: 0.8rem;
    flex-wrap: wrap;
    color: var(--blue-corp);
}

/* DIFERENCIAIS */
.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.dif-card {
    background: var(--grey-light);
    padding: 30px;
    border-radius: 10px;
    transition: var(--transition);
}

.dif-card:hover { background: var(--white); box-shadow: var(--shadow); }
.dif-card h4 { font-size: 1rem; margin-bottom: 10px; color: var(--blue-corp); }

/* COMPROMISSO */
.compromisso-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.comp-item {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    text-align: center;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.2);
}

/* MVV */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.mvv-card { padding: 30px; border: 1px solid #eee; border-radius: 10px; }
.mvv-card h3 { margin-bottom: 20px; border-left: 4px solid var(--blue-corp); padding-left: 15px; }
.mvv-card ul { list-style: none; padding-left: 15px; }
.mvv-card li { margin-bottom: 5px; font-weight: 600; }

/* FOOTER */
footer {
    background: var(--navy);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Deixa a logo branca no rodapé escuro */
}

.footer-links a {
    color: var(--white);
    margin-left: 30px;
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-grid, .sobre-grid, .cards-grid, .mvv-grid { grid-template-columns: 1fr; }
    .hero-image { order: -1; }
    .numbers-grid, .processo-grid, .compromisso-grid { grid-template-columns: 1fr 1fr; }
    .nav-desktop, .btn-header { display: none; }
    .menu-mobile-icon { display: flex; }
    .flow-branches { width: 100%; }
}

@media (max-width: 600px) {
    .numbers-grid, .processo-grid, .compromisso-grid, .improdutiva-grid { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 2.2rem; }
    .atendimento-visual { flex-direction: column; }
    .atend-link { transform: rotate(90deg); }
    .footer-grid { flex-direction: column; gap: 40px; text-align: center; }
    .footer-links { display: flex; flex-direction: column; width: 100%; }
    .footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Deixa a logo branca no rodapé escuro */
}

.footer-links a { margin: 10px 0; }
}
