/* style.css */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1500px;
    margin: auto;
    overflow: hidden;
    padding: 50px 0; /* Padding padrão para o conteúdo dentro do container */
}

/* ===================================== */
/* CABEÇALHO (HEADER)                    */
/* ===================================== */
header {
    background: #0056b3; /* Azul principal do cabeçalho */
    color: #fff;
    border-bottom: #004085 3px solid; /* Borda inferior para destaque */
}

.header-inner {
    display: flex;
    align-items: center; /* Alinha itens verticalmente ao centro */
    justify-content: space-between; /* Distribui espaço entre os blocos (marca e navegação) */
    padding: 10px 0; /* Faixa azul mais enxuta */
    gap: 20px; /* Espaçamento entre a marca e o menu */
}

/* Marca do cartório (lado esquerdo) */
.header-brand {
    flex-shrink: 0; /* Evita que a marca encolha em telas menores */
    padding-left: 0; /* Garante que comece na borda do container */
}

.header-brand h1 {
    font-size: 2.2rem; /* Título forte e imponente */
    font-weight: 700;
    margin-bottom: 2px; /* Espaçamento menor */
    line-height: 1.1; /* Ajusta a altura da linha para o título */
}

.header-brand h1 a { /* Estilo para o link do H1 */
    color: #fff;
    text-decoration: none;
}

.header-brand h1 a:hover {
    text-decoration: underline;
}

.header-brand .header-subtitle {
    font-size: 0.9rem; /* Subtítulo um pouco menor e discreto */
    opacity: 0.9;
    margin-bottom: 1px;
}

.header-brand .tabelia {
    font-size: 0.85rem; /* Nome da tabeliã ainda mais discreto */
    opacity: 0.8;
}

/* Navegação (lado direito) */
.main-nav {
    flex-grow: 1; /* Permite que o menu ocupe o espaço restante */
    text-align: right; /* Alinha o menu à direita */
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Alinha os itens do menu à direita */
    flex-wrap: wrap; /* Permite que os itens quebrem para a próxima linha se não houver espaço */
    gap: 12px; /* Espaçamento entre os itens do menu */
}

.main-nav li {
    margin: 0; /* Remove margens extras dos itens da lista */
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px; /* Aumenta o padding para a fonte parecer maior e ter mais área clicável */
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1.20rem; /* Aumenta a fonte dos links */
    white-space: nowrap; /* Impede que o texto do link quebre em várias linhas */
}

.main-nav a:hover {
    background-color: #004085; /* Fundo mais escuro ao passar o mouse */
    color: #fff;
}

/* Estilo para o link ativo (página atual) */
.main-nav a.active {
    background-color: #fff; /* Fundo branco */
    color: #0056b3; /* Texto azul */
    font-weight: bold;
    text-decoration: none; /* Remove sublinhado para o ativo */
}

/* ===================================== */
/* SEÇÃO HERO / DESTAQUE                 */
/* ===================================== */
.hero {
    background: linear-gradient(rgba(0, 86, 179, 0.7), rgba(0, 86, 179, 0.7)), url('https://via.placeholder.com/1500x500/004085/FFFFFF?text=Fundo+Cartorio') no-repeat center center/cover;
    /* Imagem de fundo padrão, substitua por uma real se tiver */
    color: #fff;
    text-align: center;
    padding: 80px 0; /* Padding maior para o hero */
    min-height: 350px; /* Altura mínima para o hero */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-inner {
    max-width: 800px;
    padding: 20px;
}

.hero-label {
    display: block;
    font-size: 1.1em;
    margin-bottom: 10px;
    opacity: 0.8;
}

.hero h2 {
    font-size: 3em; /* Título principal do hero */
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Sombra para o texto ficar mais visível */
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4); /* Sombra para o texto ficar mais visível */
}

.hero .btn {
    display: inline-block;
    background: #28a745; /* Verde para o botão */
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

/* ===================================== */
/* SEÇÕES GERAIS                         */
/* ===================================== */
section {
    padding: 60px 0; /* Espaçamento padrão para todas as seções */
}

section h3 {
    font-size: 2.5em;
    color: #0056b3;
    text-align: center;
    margin-bottom: 40px;
}

/* ===================================== */
/* SEÇÃO NOSSOS SERVIÇOS (HOME)          */
/* ===================================== */
.servicos-section {
    background-color: #f9f9f9;
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* 3 colunas, ajusta para telas menores */
    gap: 40px; /* Espaçamento entre os blocos */
    justify-content: center; /* Centraliza o grid */
    align-items: stretch; /* Garante que todos os itens tenham a mesma altura */
}

.servico-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Efeito de sombra restaurado e aprimorado */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Para alinhar o conteúdo verticalmente */
    flex-direction: column;
    justify-content: space-between;
}

.servico-item:hover {
    transform: translateY(-5px); /* Efeito de "levantar" ao passar o mouse */
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.servico-item h4 {
    color: #0056b3;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.servico-item p {
    font-size: 1em;
    color: #555;
    flex-grow: 1; /* Permite que o parágrafo ocupe o espaço restante */
}

.servico-item .btn {
    display: inline-block;
    background: #0056b3;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.servico-item .btn:hover {
    background-color: #004085;
}

/* ===================================== */
/* SEÇÃO DOCUMENTOS NECESSÁRIOS          */
/* ===================================== */
.documentos-section {
    background-color: #eef4f8;
}

.documentos-section .container {
    text-align: center;
}

.documentos-section p {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1em;
    color: #555;
}

.documentos-section .btn {
    display: inline-block;
    background: #0056b3;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.documentos-section .btn:hover {
    background-color: #004085;
}

/* ===================================== */
/* SEÇÃO CONTATO                         */
/* ===================================== */
.contato-section {
    background-color: #f9f9f9;
    text-align: center; /* Centraliza todo o conteúdo da seção de contato */
}

.contato-info {
    max-width: 900px;
    margin: 0 auto 30px;
    font-size: 1.1em;
    color: #555;
}

.contato-info p {
    margin-bottom: 10px;
}

.contato-info a {
    color: #0056b3;
    text-decoration: none;
}

.contato-info a:hover {
    text-decoration: underline;
}

.contato-section form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: left; /* Alinha os labels e inputs à esquerda dentro do formulário */
}

.contato-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.contato-section input[type="text"],
.contato-section input[type="email"],
.contato-section textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.contato-section textarea {
    resize: vertical;
    min-height: 100px;
}

.contato-section button {
    display: block;
    width: 100%;
    background: #0056b3;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contato-section button:hover {
    background-color: #004085;
}

/* ===================================== */
/* SEÇÃO LOCALIZAÇÃO                     */
/* ===================================== */
.localizacao-section {
    background-color: #eef4f8;
    text-align: center;
}

.localizacao-section p {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1em;
    color: #555;
}

.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 36.25%; /* Proporção 16:9 para o mapa (altura/largura) */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===================================== */
/* RODAPÉ (FOOTER)                       */
/* ===================================== */
footer {
    background: #004085;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}

footer p {
    margin-bottom: 8px;
}

footer a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ddd;
}

/* ===================================== */
/* PÁGINA DE SERVIÇOS DETALHADOS         */
/* ===================================== */
.pagina-servicos .intro-servicos {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.1em;
    color: #444;
    line-height: 1.7;
}

.servico-detalhe {
    background: #f5f9ff;
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.servico-detalhe h4 {
    color: #0056b3;
    margin-bottom: 15px;
    font-size: 1.6em;
}

.servico-detalhe h5 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1.15em;
    color: #003f80;
}

.servico-detalhe ul {
    margin-left: 25px;
    margin-bottom: 15px;
    list-style: disc;
}

.servico-detalhe li {
    margin-bottom: 8px;
    font-size: 1em;
}

.aviso, .aviso-geral {
    margin-top: 20px;
    padding: 15px 20px;
    border-left: 4px solid #ffc107;
    background: #fffbea;
    font-size: 0.98em;
    border-radius: 5px;
}

.aviso-geral {
    margin-top: 40px;
}

.voltar-inicio {
    text-align: center;
    margin-top: 40px;
}

/* ===================================== */
/* PÁGINA DE POLÍTICA DE PRIVACIDADE     */
/* ===================================== */
.pagina-politica .intro-politica {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.1em;
    color: #444;
    line-height: 1.7;
}

.politica-item {
    background: #f5f9ff;
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.politica-item h4 {
    color: #0056b3;
    margin-bottom: 15px;
    font-size: 1.6em;
}

.politica-item ul {
    margin-left: 25px;
    margin-bottom: 15px;
    list-style: disc;
}

.politica-item li {
    margin-bottom: 8px;
    font-size: 1em;
}

/* ===================================== */
/* RESPONSIVIDADE (MOBILE)               */
/* ===================================== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column; /* Empilha a marca e o menu verticalmente */
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .header-brand {
        padding-left: 0;
    }

    .main-nav {
        text-align: center; /* Centraliza o menu em mobile */
        width: 100%;
    }

    .main-nav ul {
        justify-content: center; /* Centraliza os itens do menu em mobile */
        gap: 10px;
    }

    .main-nav a {
        font-size: 0.9rem;
        padding: 6px 10px;
    }

    .hero {
        padding: 50px 0;
        min-height: 280px;
    }

    .hero h2 {
        font-size: 2.2em;
    }

    .hero p {
        font-size: 1em;
    }

    section {
        padding: 30px 0;
    }

    section h3 {
        font-size: 2em;
        margin-bottom: 25px;
    }

    .servicos-grid {
        grid-template-columns: 1fr; /* Uma coluna em mobile */
    }

    .servico-item {
        padding: 20px;
    }

    .contato-section form {
        padding: 20px;
    }

    .map-container {
        padding-bottom: 75%; /* Ajusta a proporção do mapa para mobile */
    }

    footer {
        padding: 25px 0;
    }
}
