/* =============================================
   1º Ofício de Chaval — Estilos
   Estilo: elegante, clássico, creme + azul-escuro
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --navy:   #182645;
  --navy2:  #243458;
  --creme:  #faf8f3;
  --creme2: #f2ede3;
  --texto:  #182645;
  --sub:    #4a5568;
  --linha:  #ddd8cc;
  --branco: #ffffff;
  --radius: 4px;
  --sombra: 0 2px 20px rgba(24,38,69,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--creme);
  color: var(--texto);
  line-height: 1.7;
}

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--navy);
  line-height: 1.15;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
p  { color: var(--sub); font-size: 1rem; }
a  { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Utilitários ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.section   { padding: 6rem 0; }
.section-alt { background: var(--creme2); }

.label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 1rem;
}
.divider {
  width: 40px; height: 1px;
  background: var(--navy);
  margin: 1.2rem 0 2.5rem;
  opacity: 0.3;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border: 1.5px solid transparent;
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--navy);
  color: var(--branco);
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy2); border-color: var(--navy2); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--branco); }
.btn-outline-white {
  background: transparent;
  color: var(--branco);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover { background: var(--branco); color: var(--navy); }
.btn-whatsapp {
  background: #25D366;
  color: var(--branco);
  border-color: #25D366;
}
.btn-whatsapp:hover { background: #1da851; border-color: #1da851; }

/* =============================================
   HEADER
   ============================================= */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--creme);
  border-bottom: 1px solid var(--linha);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav-logo img {
  height: 50px;
  width: auto;
}
.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.2;
}
.nav-logo-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}
.nav-logo-text small {
  font-size: 0.7rem;
  color: var(--sub);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sub);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); text-decoration: none; }
.nav-cta { margin-left: 1.5rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--navy);
  transition: all 0.3s;
}

/* =============================================
   HERO
   ============================================= */
#hero {
  padding: 9rem 0 6rem;
  background: var(--creme);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.hero-content .label { color: var(--sub); }
.hero-content h1 {
  font-style: italic;
  margin-bottom: 1.5rem;
}
.hero-content p {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 420px;
}
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--linha);
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--sub);
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-image {
  position: relative;
}
.hero-image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}
.hero-image-caption {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  background: rgba(24,38,69,0.85);
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

/* =============================================
   DIVISOR ELEGANTE
   ============================================= */
.divider-section {
  border: none;
  border-top: 1px solid var(--linha);
  margin: 0;
}

/* =============================================
   SERVIÇOS
   ============================================= */
#servicos { background: var(--branco); }
.servicos-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--linha);
}
.servicos-grid {
  display: grid;
  gap: 0;
}
.servicos-grid-3 { grid-template-columns: repeat(3, 1fr); }
.servicos-grid-4 { grid-template-columns: repeat(2, 1fr); }

.servico-card {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--linha);
  border-bottom: 1px solid var(--linha);
  transition: background 0.2s;
}
/* grid 3 colunas */
.servicos-grid-3 .servico-card:nth-child(3n)     { border-right: none; }
.servicos-grid-3 .servico-card:nth-last-child(-n+3) { border-bottom: none; }
/* grid 2 colunas (4 cards) */
.servicos-grid-4 .servico-card:nth-child(2n)     { border-right: none; }
.servicos-grid-4 .servico-card:nth-last-child(-n+2) { border-bottom: none; }
.servico-card:hover { background: var(--creme); }

.servico-numero {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--linha);
  line-height: 1;
  margin-bottom: 1rem;
}
.servico-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.servico-card p  { font-size: 0.88rem; line-height: 1.65; }

/* =============================================
   CALCULADORA
   ============================================= */
.calc-wrap {
  max-width: 680px;
}
.calc-tabs {
  display: flex;
  border-bottom: 1px solid var(--linha);
  margin-bottom: 2rem;
  gap: 0;
}
.calc-tab {
  padding: 0.75rem 1.5rem;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sub);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
  margin-bottom: -1px;
}
.calc-tab:hover { color: var(--navy); }
.calc-tab.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
}
.calc-painel { display: none; }
.calc-painel.active { display: block; }
.calc-info {
  font-size: 0.82rem;
  color: var(--sub);
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--creme2);
  border-left: 3px solid var(--linha);
}
.calc-resultado-box {
  margin-top: 1.5rem;
  border: 1px solid var(--linha);
  padding: 1.5rem;
  background: var(--creme);
}
.calc-resultado-box.calc-erro {
  border-color: #e0b4b4;
  background: #fdf5f5;
}
.calc-resultado-box.calc-erro p { color: #8b2e2e; }
.calc-linha {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--linha);
  font-size: 0.9rem;
}
.calc-linha:last-of-type { border-bottom: none; }
.calc-total {
  font-weight: 700;
  font-size: 1.05rem !important;
  color: var(--navy);
  padding-top: 0.75rem !important;
  margin-top: 0.25rem;
  border-top: 2px solid var(--navy) !important;
  border-bottom: none !important;
}
.calc-obs {
  font-size: 0.78rem;
  color: var(--sub);
  margin-top: 0.75rem;
  line-height: 1.6;
  opacity: 0.85;
}

/* =============================================
   TRANSPARÊNCIA
   ============================================= */
.transparencia-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.transparencia-destaque {
  background: var(--branco);
  border: 1px solid var(--linha);
  padding: 3rem 2.5rem;
  text-align: center;
}

/* =============================================
   LGPD
   ============================================= */
.lgpd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--linha);
  border: 1px solid var(--linha);
}
.lgpd-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
  background: var(--branco);
  text-decoration: none;
  transition: background 0.2s;
}
.lgpd-card:hover { background: var(--creme); text-decoration: none; }
.lgpd-card:hover .lgpd-arrow { transform: translateX(4px); }
.lgpd-icon {
  width: 48px; height: 48px;
  background: var(--creme2);
  border: 1px solid var(--linha);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--navy);
}
.lgpd-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.lgpd-card p  { font-size: 0.82rem; }
.lgpd-arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--sub);
  transition: transform 0.2s;
}

/* =============================================
   AGENDA 2030
   ============================================= */
.agenda-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.ods-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.ods-item {
  aspect-ratio: 1;
  background: var(--c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 2px;
}

/* =============================================
   AGENDAMENTO
   ============================================= */
#agendamento { background: var(--creme2); }
.agendamento-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: start;
}
.agendamento-info ul {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.agendamento-info ul li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--sub);
  align-items: flex-start;
}
.agendamento-info ul li span { color: var(--navy); font-size: 1rem; margin-top: 1px; }

.form-card {
  background: var(--branco);
  padding: 2.5rem;
  border: 1px solid var(--linha);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--linha);
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--texto);
  background: var(--creme);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--branco);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-submit { width: 100%; justify-content: center; }

/* =============================================
   CONSULTA
   ============================================= */
#consulta { background: var(--branco); }
.consulta-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.consulta-box p { margin-bottom: 2.5rem; }
.search-wrap {
  display: flex;
  gap: 0;
  border: 1px solid var(--navy);
  margin-bottom: 1.5rem;
}
.search-wrap input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border: none;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  background: var(--creme);
  color: var(--texto);
}
.search-wrap input:focus { outline: none; background: var(--branco); }
.search-wrap button {
  border-radius: 0;
  padding: 0.8rem 1.5rem;
}
.consulta-aviso { font-size: 0.8rem; color: var(--sub); opacity: 0.7; }

/* =============================================
   CONTATO
   ============================================= */
#contato { background: var(--navy); }
#contato h2 { color: var(--branco); }
#contato .label { color: rgba(255,255,255,0.5); }
#contato .divider { background: rgba(255,255,255,0.2); opacity: 1; }
.contato-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contato-lista { list-style: none; margin-top: 2rem; }
.contato-lista li {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contato-lista li:first-child { border-top: 1px solid rgba(255,255,255,0.1); }
.contato-icon {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.contato-text strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 3px;
}
.contato-text a,
.contato-text span {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}
.contato-text a:hover { color: var(--branco); text-decoration: underline; }
.mapa-wrap { height: 100%; min-height: 340px; }
.mapa-wrap iframe { display: block; width: 100%; height: 340px; border: none; filter: grayscale(30%); }

/* =============================================
   FOOTER
   ============================================= */
#footer {
  background: #0f1a30;
  color: rgba(255,255,255,0.45);
  padding: 2rem 0;
  font-size: 0.8rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-inner a { color: rgba(255,255,255,0.6); }

/* =============================================
   RESPONSIVO
   ============================================= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-image { display: none; }
  .servicos-grid-3 { grid-template-columns: 1fr 1fr; }
  .servicos-grid-4 { grid-template-columns: 1fr; }
  .servico-card { border-right: none; }
  .agendamento-wrap,
  .contato-wrap,
  .transparencia-wrap,
  .agenda-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .servicos-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .lgpd-grid { grid-template-columns: 1fr; }
  .ods-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--creme);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--linha);
  }
  .servicos-grid { grid-template-columns: 1fr; }
  .servico-card { border-right: none; }
  .form-row { grid-template-columns: 1fr; }
  .search-wrap { flex-direction: column; border: none; gap: 0.75rem; }
  .search-wrap input { border: 1px solid var(--navy); }
  .search-wrap button { width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
}
