/* 2o Tabelionato de Notas de Corinto - folha unica pro site inteiro.
   Paleta sobria de cartorio: azul institucional, dourado discreto e papel. */
:root {
    --azul:      #12304a;
    --azul-2:    #1b4266;
    --dourado:   #b0894f;
    --dourado-2: #8c6c3c;
    --papel:     #f7f5f0;
    --branco:    #ffffff;
    --texto:     #1f2937;
    --texto-2:   #5b6672;
    --borda:     #e3ded4;
    --sombra:    0 2px 16px rgba(18, 48, 74, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--texto);
    background: var(--papel);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Lora', Georgia, serif; font-weight: 600; line-height: 1.25; }
a { color: var(--azul-2); }
img { max-width: 100%; display: block; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Campo que o dono ainda tem que preencher. Fica visivel de proposito:
   dado de cartorio errado no ar e pior que buraco no layout. */
.pendente {
    background: #fff6d8;
    border-bottom: 1px dashed #c8a54b;
    padding: 0 3px;
}

/* ------------------------------------------------------------- topo */
.aviso-topo {
    background: var(--azul);
    color: #cfe0ef;
    font-size: 0.85rem;
    padding: 7px 0;
}
.aviso-topo .container {
    display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between;
}
.aviso-topo a { color: #fff; text-decoration: none; }

.topo {
    background: var(--branco);
    border-bottom: 1px solid var(--borda);
    position: sticky; top: 0; z-index: 20;
}
.topo .container {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding-top: 14px; padding-bottom: 14px;
}
.marca { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.marca .selo { width: 54px; height: 54px; flex: none; }
.logo-rodape { width: 88px; height: 88px; margin-bottom: 16px; opacity: .95; }
.marca strong {
    font-family: 'Lora', Georgia, serif; font-size: 1.05rem; color: var(--azul);
    display: block; line-height: 1.2;
}
.marca span { font-size: 0.78rem; color: var(--texto-2); letter-spacing: .08em; text-transform: uppercase; }

.menu { display: flex; gap: 4px; align-items: center; }
.menu a {
    padding: 9px 12px; border-radius: 6px; text-decoration: none;
    color: var(--texto); font-size: 0.9rem; font-weight: 500;
    white-space: nowrap;   /* "O Cartório" estava quebrando em duas linhas */
}
.menu a:hover { background: var(--papel); color: var(--azul); }
.menu a.ativo { color: var(--azul); font-weight: 600; box-shadow: inset 0 -2px 0 var(--dourado); border-radius: 0; }
.menu .zap {
    background: #128c7e; color: #fff; border-radius: 6px; padding: 9px 16px; font-weight: 600;
}
.menu .zap:hover { background: #0e6d62; color: #fff; }

.abrir-menu {
    display: none; background: none; border: 1px solid var(--borda);
    border-radius: 6px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer;
}

/* ------------------------------------------------------------- capa */
.capa {
    position: relative; overflow: hidden;
    color: #fff;
    padding: 96px 0 104px;
    background: var(--azul);
}
/* Slides: cada foto e uma camada empilhada, e a animacao troca a opacidade.
   Sem JS -- e so uma imagem de fundo trocando, nao merece script. */
.capa .slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; animation: passar 18s infinite;
}
.capa .slide:nth-child(1) { animation-delay: 0s; }
.capa .slide:nth-child(2) { animation-delay: 6s; }
.capa .slide:nth-child(3) { animation-delay: 12s; }
@keyframes passar {
    0%   { opacity: 0; }
    6%   { opacity: 1; }
    30%  { opacity: 1; }
    36%  { opacity: 0; }
    100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .capa .slide { animation: none; }
    .capa .slide:nth-child(1) { opacity: 1; }
}
/* veu escuro: sem ele o texto branco some em cima da foto */
.capa .veu {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(12,38,60,.80) 0%,
                                rgba(10,30,48,.93) 75%);
}
.capa .container { position: relative; z-index: 2; text-align: center; }
.capa h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 14px; }
.capa p.linha {
    color: #bcd2e6; font-size: 1.08rem; max-width: 620px;
    margin: 0 auto;   /* centralizado junto com o titulo */
}
.botoes {
    display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px;
    justify-content: center;
}
.botao {
    display: inline-block; padding: 13px 24px; border-radius: 6px;
    text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.botao.primario { background: var(--dourado); color: #14202c; }
.botao.primario:hover { background: #c49a5c; }
.botao.vazado { border: 1px solid rgba(255,255,255,.45); color: #fff; }
.botao.vazado:hover { background: rgba(255,255,255,.1); }
.botao.zap { background: #128c7e; color: #fff; }
.botao.zap:hover { background: #0e6d62; }

/* ----------------------------------------------------------- secoes */
section { padding: 64px 0; }
section.claro { background: var(--branco); }
.titulo { text-align: center; margin-bottom: 42px; }
.titulo span {
    display: block; color: var(--dourado); font-size: 0.8rem;
    letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px;
}
.titulo h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--azul); }
.titulo p { color: var(--texto-2); max-width: 620px; margin: 12px auto 0; }

.cartoes { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.cartao {
    background: var(--branco); border: 1px solid var(--borda); border-radius: 10px;
    padding: 28px 24px; box-shadow: var(--sombra);
}
section.claro .cartao { background: var(--papel); }
.cartao h3 { color: var(--azul); font-size: 1.12rem; margin-bottom: 10px; }
.cartao p { color: var(--texto-2); font-size: 0.95rem; }
.cartao .numero {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%; margin-bottom: 14px;
    background: var(--azul); color: var(--dourado);
    font-family: 'Lora', serif; font-size: 1rem;
}

/* --------------------------------------------------------- servicos */
.grupo-servico { margin-bottom: 40px; }
.grupo-servico h3 {
    color: var(--azul); font-size: 1.2rem; padding-bottom: 10px; margin-bottom: 18px;
    border-bottom: 2px solid var(--dourado); display: inline-block;
}
.lista-servicos {
    list-style: none; display: grid; gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.lista-servicos li {
    background: var(--branco); border: 1px solid var(--borda); border-radius: 8px;
    padding: 13px 16px; font-size: 0.94rem;
    display: flex; align-items: center; gap: 10px;
}
section.claro .lista-servicos li { background: var(--papel); }
.lista-servicos li::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--dourado); flex: none;
}

/* ------------------------------------------- servico que abre e fecha */
.busca-servico {
    width: 100%; max-width: 520px; margin: 0 auto 34px; display: block;
    padding: 13px 18px; font-size: 1rem; font-family: inherit;
    border: 1px solid var(--borda); border-radius: 8px; background: var(--branco);
}
.busca-servico:focus { outline: none; border-color: var(--dourado); }

.acoes-lista { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 12px; }
.acoes-lista button {
    background: none; border: 1px solid var(--borda); border-radius: 6px;
    padding: 7px 14px; font: inherit; font-size: 0.85rem; color: var(--texto-2);
    cursor: pointer;
}
.acoes-lista button:hover { border-color: var(--dourado); color: var(--azul); }

.servico {
    background: var(--branco); border: 1px solid var(--borda);
    border-radius: 10px; margin-bottom: 10px;
}
section.claro .servico { background: var(--papel); }
.servico > summary {
    cursor: pointer; padding: 15px 20px; font-weight: 600; color: var(--azul);
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    list-style: none; font-size: 0.98rem;
}
.servico > summary::-webkit-details-marker { display: none; }
.servico > summary::after {
    content: '+'; color: var(--dourado); font-size: 1.5rem; line-height: 1; flex: none;
}
.servico[open] > summary::after { content: '\2212'; }
.servico[open] > summary { border-bottom: 1px solid var(--borda); }
.servico > summary:hover { color: var(--azul-2); }
.corpo { padding: 18px 20px 22px; }
.corpo p { color: var(--texto-2); font-size: 0.95rem; }
.corpo h4 {
    margin: 18px 0 8px; font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: .09em; color: var(--azul); font-family: 'Inter', sans-serif;
}
.corpo ul { margin: 0 0 0 20px; color: var(--texto-2); font-size: 0.94rem; }
.corpo li { margin-bottom: 5px; }
.corpo .pedir {
    display: inline-block; margin-top: 18px; font-size: 0.88rem; font-weight: 600;
    color: #128c7e; text-decoration: none;
}
.corpo .pedir:hover { text-decoration: underline; }
.vazio-busca { text-align: center; color: var(--texto-2); padding: 30px 0; }

/* ------------------------------------------------------------ texto */
.texto { max-width: 760px; }
.texto h3 { color: var(--azul); margin: 28px 0 10px; font-size: 1.15rem; }
.texto p + p { margin-top: 14px; }
.texto ul { margin: 12px 0 12px 22px; color: var(--texto-2); }
.texto li { margin-bottom: 7px; }
.nota {
    border-left: 3px solid var(--dourado); background: var(--branco);
    padding: 16px 20px; border-radius: 0 8px 8px 0; margin-top: 24px;
    font-size: 0.93rem; color: var(--texto-2);
}
section.claro .nota { background: var(--papel); }

/* ----------------------------------------------------------- chamada */
.chamada {
    background: var(--azul); color: #fff; text-align: center; padding: 56px 0;
}
.chamada h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 12px; }
.chamada p { color: #bcd2e6; max-width: 560px; margin: 0 auto 26px; }

/* ------------------------------------------ missao, visao e valores */
.pilares { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pilar { padding: 8px 30px; text-align: center; border-right: 1px solid var(--borda); }
.pilar:last-child { border-right: 0; }
.pilar h3 {
    font-family: 'Lora', Georgia, serif; font-size: 1.4rem; color: var(--azul);
    margin-bottom: 14px;
}
.pilar h3::after {
    content: ''; display: block; width: 42px; height: 2px; background: var(--dourado);
    margin: 12px auto 0;
}
.pilar p { color: var(--texto-2); font-size: 0.95rem; }
@media (max-width: 820px) {
    .pilar { border-right: 0; border-bottom: 1px solid var(--borda); padding: 24px 10px; }
    .pilar:last-child { border-bottom: 0; }
}

/* --------------------------------------------------- faixa com foto */
.faixa-foto {
    background: linear-gradient(rgba(18,48,74,.82), rgba(18,48,74,.82)),
                url('fotos/faixa.jpg') center/cover fixed;
    color: #fff; text-align: center; padding: 72px 0;
}
.faixa-foto h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 14px; }
.faixa-foto p { color: #c6d8e8; max-width: 640px; margin: 0 auto; }
@media (max-width: 820px) { .faixa-foto { background-attachment: scroll; } }

/* ------------------------------------------------------------ rodape */
.rodape { background: #0d2438; color: #9fb4c7; font-size: 0.9rem; padding: 48px 0 24px; }
.rodape .container { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.rodape h4 { color: #fff; font-size: 0.82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.rodape a { color: #9fb4c7; text-decoration: none; display: block; padding: 3px 0; }
.rodape a:hover { color: #fff; }
/* assinatura de quem fez: discreta, sem competir com o rodape do cliente.
   A frase inteira e o link -- area de clique maior, ajuda no dedo do celular. */
.rodape a.assinatura {
    display: block; margin-top: 10px; padding: 4px 0;
    font-size: 0.78rem; color: #6b8296; text-decoration: none;
}
.rodape a.assinatura:hover { color: #fff; text-decoration: underline; }

.rodape .fim {
    border-top: 1px solid rgba(255,255,255,.1); margin-top: 34px; padding-top: 18px;
    text-align: center; font-size: 0.83rem; color: #7c93a8;
}

@media (max-width: 820px) {
    .menu { display: none; }
    .menu.aberto {
        display: flex; flex-direction: column; align-items: stretch;
        position: absolute; top: 100%; left: 0; right: 0; background: var(--branco);
        border-bottom: 1px solid var(--borda); padding: 10px 16px 16px;
    }
    .abrir-menu { display: block; }
    .topo .container { position: relative; }
    section { padding: 48px 0; }
    .capa { padding: 56px 0 60px; }
}
