/* --- CONFIGURAÇÕES GERAIS --- */
:root {
    --primary: #0a192f; /* Azul Escuro Sóbrio (Fundo Hero/Nav) */
    --accent: #00d4ff;  /* Azul Brilhante para CTA */
    --text-dark: #111;
    --text-light: #ccd6f6;
    --bg-light: #f8f9fa; /* Fundo Seções Claras */
    --white: #ffffff;
    --gray: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
    background-color: var(--white);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary);
}

h1 { color: var(--white); } /* Exceção do Hero */

p {
    color: var(--gray);
    margin-bottom: 15px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

/* --- SEÇÕES (Espaçamento Geral) --- */
section {
    padding: 100px 0; /* Espaçamento padrão de uma linha acima e abaixo */
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* --- NAVBAR --- */
.navbar {
    background: var(--primary);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: 0.3s ease-in-out;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
    font-family: 'Inter', sans-serif;
}

.logo span {
    color: var(--accent);
    margin-left: 5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-sm-header {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent) !important;
    padding: 8px 20px;
    border-radius: 5px;
}

.btn-sm-header:hover {
    background: var(--accent);
    color: var(--primary) !important;
}

/* --- HERO --- */
.hero {
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)), 
                url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&q=80&w=1600') center/cover;
    height: 85vh; /* Levemente menor que antes */
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* --- BOTÕES --- */
.btn-primary {
    background: var(--accent);
    color: var(--primary);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 13px 30px;
    border-radius: 5px;
    text-decoration: none;
    margin-left: 15px;
    transition: 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

/* --- SOBRE (Ajustes Foto Real) --- */
.about {
    background: var(--white);
}

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

/* Garante espaçamento entre o badge e o header fixo */
.badge-wrapper {
    margin-bottom: 20px; /* Espaço para o badge */
}

.badge {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-block;
}

.check-list {
    list-style: none;
    margin-top: 20px;
}

.check-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.check-list i {
    color: var(--accent);
    margin-right: 10px;
    font-size: 1.1rem;
}

/* AJUSTE FOTO REAL: Estilização da imagem real do perito */
.img-container {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden; /* Garante que a foto respeite o arredondamento */
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); /* Sombra elegante */
    border: 2px solid #ddd;
}

.perito-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz a imagem preencher o espaço sem distorcer */
    object-position: center; /* Centraliza a foto dentro da div */
}

/* --- SERVIÇOS --- */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- PROCESSO (Como Funciona) --- */
.steps {
    background: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.step-item {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    position: relative;
    border-top: 4px solid var(--accent);
}

/* Adiciona margem inferior apenas na última div do grid */
.step-item-last {
    margin-bottom: 40px; /* Espaço para o formulário de contato */
}

.step-num {
    background: var(--accent);
    color: var(--primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 15px;
}

/* --- CONTATO (Formulário) --- */
.contact {
    background: var(--bg-light);
}

.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
}

.contact-info {
    background: var(--primary);
    color: var(--white);
    padding: 60px;
}

.contact-info h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--text-light);
}

.info-item i {
    color: var(--accent);
    margin-right: 15px;
    font-size: 1.2rem;
}

.contact-form {
    padding: 60px;
}

/* Refinamento dos campos do formulário */
.contact-form input, 
.contact-form select, 
.contact-form textarea {
    width: 100%;
    padding: 15px; /* Mais padding pra elegância */
    margin-bottom: 15px; /* Espaço uniforme */
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    color: var(--primary);
    background-color: #fafafa;
}

.contact-form select {
    appearance: none; /* Remove seta padrão */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23666' d='M0 0l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.contact-form textarea {
    resize: none;
}

/* --- FOOTER --- */
footer {
    background: var(--primary);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
}

footer .logo { font-size: 1.3rem; }

footer p { margin-bottom: 0; color: var(--text-light); font-size: 0.9rem;}

.social {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.social a {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: 0.3s;
}

.social a:hover {
    color: var(--accent);
}

.legal {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    .hero-btns { display: flex; flex-direction: column; gap: 10px; align-items: center;}
    .btn-secondary { margin-left: 0;}
    .img-container { height: 300px;} /* Reduz altura da foto em tablets */
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem;}
    
    .contact-box { grid-template-columns: 1fr; }
    .contact-info, .contact-form { padding: 40px; }
    
    .nav-links { display: none; }
    
    .section-title h2 { font-size: 2rem;}
    .grid { gap: 20px;}
    
    section { padding: 60px 0;}
}