/* Cartório do Registro Civil · site por Eixo Tecnologia */
:root {
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --navy: #031b49; --navy-2: #0a2a63; --navy-3: #12357a; --sky: #5aa9ef; --sky-d: #3f8fdc; --paper: #f5f7fb;
  --bg: #ffffff; --text: #4a5468; --heading: #031b49; --muted: #6c7489; --accent: var(--sky-d);
  --line: #e2e7f0; --radius: 14px; --radius-btn: 6px;
  --header-bg: rgba(3,27,73,.97); --menu-bg: var(--navy); --menu-text: #fff;
  --form-bg: #fff; --form-label: var(--navy); --input-bg: var(--paper);
  --footer-bg: #020f2b; --footer-text: #8f9cbc; --footer-link: var(--sky);
}
/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; color: var(--heading); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head.left { text-align: left; margin: 0; }
.section-head p { color: var(--muted); }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: var(--radius-btn); font-weight: 600; font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, padding .3s; padding: 18px 0; }
.header.scrolled { background: var(--header-bg); box-shadow: 0 6px 30px rgba(0,0,0,.08); padding: 10px 0; backdrop-filter: blur(10px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: .93rem; font-weight: 500; }
.nav a:not(.btn) { position: relative; opacity: .9; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--accent); transition: width .25s; }
.nav a:not(.btn):hover::after { width: 100%; }
.nav .btn { padding: 10px 20px; }
.nav-toggle { display: none; color: inherit; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; position: relative; z-index: 60; }
  .nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px; font-size: 1.2rem; background: var(--menu-bg); color: var(--menu-text); transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility .35s; }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
}

/* ---------- Formulário ---------- */
.form { display: grid; gap: 16px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--form-bg); box-shadow: 0 20px 60px rgba(0,0,0,.12); }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--form-label); }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-weight: 400; padding: 12px 14px; border-radius: calc(var(--radius) / 2); border: 1px solid var(--line); background: var(--input-bg); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.form .btn { width: 100%; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Animações ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Rodapé ---------- */
.footer { background: var(--footer-bg); color: var(--footer-text); padding: 28px 0; font-size: .88rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.footer p { margin: 0; }
.credit a { font-weight: 700; color: var(--footer-link); border-bottom: 1px dashed currentColor; }
.credit a:hover { opacity: .8; }
.heart { color: #ef4444; display: inline-block; animation: beat 1.4s infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } }
@media (max-width: 640px) { .footer-inner { flex-direction: column; text-align: center; } }

/* ---------- WhatsApp flutuante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.45); transition: transform .2s; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; animation: pulse 2s infinite; z-index: -1; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }

/* Espaço no rodapé para o botão flutuante do WhatsApp não cobrir os créditos */
@media (max-width: 640px) { .footer { padding-bottom: 96px; } }

/* Menu mobile em tela cheia: o desfoque do cabeçalho prenderia o menu à altura do cabeçalho */
@media (max-width: 900px) {
  .header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav { height: 100vh; height: 100dvh; overflow-y: auto; }
}

/* ---------- Específico ---------- */
body { font-size: .95rem; }
h1, h2, h3 { font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.08; }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
h3 { font-size: 1.45rem; }
.eyebrow { color: var(--sky-d); letter-spacing: .25em; }
.eyebrow.light { color: var(--sky); }
.btn { font-weight: 600; letter-spacing: .03em; }
.btn-sky { background: var(--sky); color: var(--navy); }
.btn-sky:hover { background: #7cbbf3; }
.btn-line { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-line:hover { border-color: var(--sky); color: var(--sky); }
.btn-light { background: #fff; color: var(--navy); }
.header { color: #fff; background: rgba(3,27,73,.97); }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 46px; height: auto; }
.logo span { font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1; }
.logo small { display: block; font-family: var(--font-body); font-size: .56rem; letter-spacing: .22em; color: var(--sky); margin-top: 4px; }

.hero { padding: 150px 0 90px; color: #c3cde3; background: radial-gradient(ellipse at 80% 40%, var(--navy-3), transparent 55%), var(--navy); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--sky), transparent); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.kicker { display: inline-block; color: var(--sky); font-weight: 600; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { color: #fff; }
.hero h1 em { color: var(--sky); }
.hero p { font-size: 1.05rem; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-info { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: #fff; font-weight: 500; }
.hero-info span { margin-right: 8px; }
.hero-logo img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 30px 70px rgba(0,0,0,.4), 0 0 0 1px rgba(90,169,239,.25); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .3s, box-shadow .3s, border-color .3s; display: flex; flex-direction: column; }
.svc:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(3,27,73,.1); border-color: var(--sky); }
.ic { font-size: 1.6rem; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); margin-bottom: 14px; }
.svc p { color: var(--muted); flex: 1; }
.svc a { color: var(--sky-d); font-weight: 600; font-size: .88rem; }
.note { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 22px; }
.note.light { color: #8f9cbc; }

.section-soft { background: var(--paper); }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab { font: inherit; font-weight: 600; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.tab.active, .tab:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.doc { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 32px; box-shadow: 0 14px 34px rgba(3,27,73,.06); }
.doc ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.doc li { padding-left: 30px; position: relative; color: var(--heading); font-weight: 500; }
.doc li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); color: var(--sky); font-size: .7rem; display: grid; place-items: center; font-weight: 700; }
.tip { margin: 0; background: #eef5fd; border-left: 3px solid var(--sky); padding: 10px 14px; border-radius: 6px; font-size: .88rem; }

.section-navy { background: var(--navy); color: #c3cde3; }
.section-navy h2, .section-navy h3 { color: #fff; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { border: 1px solid rgba(90,169,239,.3); border-radius: 14px; padding: 24px; background: rgba(255,255,255,.03); }
.steps b { font-family: var(--font-head); font-size: 2.6rem; color: var(--sky); line-height: 1; }
.steps p { margin: 0; }
.narrow { max-width: 780px; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: center; color: #fff; }
.contact-list small { display: block; color: #8f9cbc; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.contact-list a { color: #fff; font-weight: 700; font-size: 1.2rem; }
.ic2 { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(90,169,239,.3); display: grid; place-items: center; flex-shrink: 0; }
.ic2.wa { background: #25d366; border-color: #25d366; color: #fff; }

.footer-inner { flex-direction: column; justify-content: center; text-align: center; gap: 6px; }
.f-mark { width: 54px; height: auto; margin-bottom: 4px; }
.footer p { font-size: .82rem; }

@media (max-width: 960px) {
  .hero-grid, .contact { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero-logo { max-width: 420px; }
}
@media (max-width: 600px) {
  .services, .steps { grid-template-columns: 1fr; }
  .doc { padding: 22px; }
}
.restrito { color: var(--footer-text); opacity: .75; } .restrito:hover { opacity: 1; color: var(--footer-link); }
