/* Helena Duarte Advocacia de Família
   Paleta: papel frio, verde-petróleo, ocre (uso pontual).
   Tipografia: Gloock (títulos), Hanken Grotesk (texto). */
:root {
  --paper: #F2F4F3;
  --white: #FFFFFF;
  --ink: #18302F;
  --petrol: #2E5A57;
  --muted: #536866;
  --mist: #E3EAE7;
  --line: #CDD6D3;
  --ochre: #E2B44B;
  --ochre-ink: #5E4410;
  --display: "Gloock", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1160px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--display); letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

/* Demo bar */
.demo-bar { background: var(--ochre); color: var(--ochre-ink); font-size: 0.85rem; font-weight: 600; text-align: center; padding: 6px 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-family: var(--body); font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--petrol); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(242, 244, 243, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--display); font-weight: 400; font-size: 1.25rem; }
.brand-text span { font-size: 0.85rem; color: var(--muted); }
.main-nav ul { display: flex; gap: 22px; list-style: none; }
.main-nav a { text-decoration: none; font-weight: 500; font-size: 0.97rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-color: var(--ochre); }
.nav-toggle { display: none; }
.header-cta { min-height: 42px; padding: 8px 18px; font-size: 0.95rem; }

@media (max-width: 960px) {
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; background: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 16px; font: 600 0.95rem var(--body); color: var(--ink); cursor: pointer; }
  .main-nav ul { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .main-nav ul.open { display: flex; }
  .main-nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* Hero */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: end; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); max-width: 14ch; }
.lead { margin-top: 24px; font-size: 1.2rem; color: var(--muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.hero-card-name { font-family: var(--display); font-size: 1.5rem; }
.hero-card-oab { color: var(--muted); font-size: 0.95rem; margin-top: 2px; }
.hero-card dl { margin: 20px 0 0; display: grid; gap: 16px; }
.hero-card dl div { border-top: 1px solid var(--line); padding-top: 14px; }
.hero-card dt { font-weight: 700; font-size: 0.9rem; color: var(--petrol); }
.hero-card dd { margin: 2px 0 0; font-size: 0.98rem; }

/* Section heads */
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.1rem; }

/* Guide (the signature section) */
.guide { background: var(--ink); color: var(--paper); padding: 96px 0; }
.guide .section-head p { color: #B9C9C5; }
.guide-panel { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0; background: #1F3B3A; border-radius: 16px; overflow: hidden; }
.guide-tabs { display: flex; flex-direction: column; padding: 16px; gap: 4px; background: #15292A; }
.guide-tabs button { text-align: left; background: none; border: 0; color: #C9D6D3; font: 500 1.05rem var(--body); padding: 14px 16px; border-radius: 8px; cursor: pointer; transition: background-color .2s, color .2s; }
.guide-tabs button:hover { background: rgba(255, 255, 255, 0.06); color: var(--paper); }
.guide-tabs button[aria-selected="true"] { background: var(--ochre); color: var(--ink); font-weight: 700; }
.guide-body { padding: 40px 44px 36px; min-width: 0; }
.guide-body h3 { font-family: var(--display); font-size: 2rem; }
.guide-intro { margin-top: 14px; font-size: 1.12rem; max-width: 62ch; color: #E4ECEA; }
.guide-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; margin-top: 32px; }
.guide-cols h4 { font-weight: 700; font-size: 1rem; color: var(--ochre); margin-bottom: 12px; }
.guide-cols ul { list-style: none; display: grid; gap: 12px; }
.guide-cols li { color: #D7E2DF; }
.guide-cols li strong { color: var(--paper); }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border: 1.5px solid var(--ochre); border-radius: 4px; }
.checklist li::after { content: ""; position: absolute; left: 6px; top: calc(0.3em + 3px); width: 5px; height: 9px; border: solid var(--ochre); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.guide-note { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.92rem; color: #A9BCB8; }
[role="tabpanel"].is-entering { animation: panel-in .45s cubic-bezier(.22, .8, .24, 1); }
[role="tabpanel"].is-entering .guide-cols > div { animation: panel-in .55s cubic-bezier(.22, .8, .24, 1) .06s both; }
[role="tabpanel"].is-entering .guide-cols > div + div { animation-delay: .14s; }
@keyframes panel-in { from { opacity: 0; transform: translateX(var(--from-x, 0)); } to { opacity: 1; transform: none; } }
.guide-tabs button { transition: background-color .25s, color .25s, transform .25s; }
.guide-tabs button:active { transform: scale(.97); }

@media (max-width: 860px) {
  .guide-panel { grid-template-columns: 1fr; }
  .guide-tabs { flex-direction: row; overflow-x: auto; padding: 12px; scrollbar-width: thin; }
  .guide-tabs button { white-space: nowrap; flex: none; padding: 10px 14px; }
  .guide-body { padding: 28px 22px; }
  .guide-cols { grid-template-columns: 1fr; gap: 28px; }
}

/* Practice areas */
.practice { padding: 96px 0; }
.practice-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.sticky-head { position: sticky; top: 104px; }
.practice-list { margin: 0; }
.practice-list div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.practice-list div:last-child { border-bottom: 1px solid var(--line); }
.practice-list dt { font-family: var(--display); font-size: 1.4rem; line-height: 1.25; }
.practice-list dd { margin: 0; color: var(--muted); }

/* Process */
.process { padding: 96px 0; background: var(--mist); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--display); font-size: 1.3rem; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 56px; right: -16px; height: 2px; background: var(--line); }
.steps h3 { font-family: var(--display); font-size: 1.4rem; }
.steps p { margin-top: 10px; color: var(--muted); }

/* Principles */
.principles { padding: 96px 0; }
.principles h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); max-width: 18ch; }
.principles-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 44px; }
.principles-grid div { border-left: 3px solid var(--ochre); padding-left: 18px; }
.principles-grid h3 { font-weight: 700; font-size: 1.12rem; }
.principles-grid p { margin-top: 8px; color: var(--muted); }

/* About */
.about { padding: 0 0 96px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.about-portrait { aspect-ratio: 4 / 5; max-width: 100%; border-radius: 16px; background: var(--petrol); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; position: relative; overflow: hidden; }
.about-portrait::before { content: ""; position: absolute; width: 140%; height: 70%; bottom: -30%; left: -20%; border-radius: 50%; background: var(--ink); }
.portrait-initials { position: relative; font-family: var(--display); font-size: clamp(5rem, 12vw, 8rem); color: var(--paper); line-height: 1; }
.portrait-caption { position: relative; font-size: 0.9rem; color: #C9D6D3; }
.portrait-photo { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.about-copy h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.about-copy p { margin-top: 18px; max-width: 60ch; }
.credentials { list-style: none; margin-top: 26px; display: grid; gap: 10px; }
.credentials li { padding-left: 22px; position: relative; color: var(--muted); }
.credentials li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 10px; height: 2px; background: var(--ochre); }

/* FAQ */
.faq { padding: 96px 0; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; }
.faq h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 600; font-size: 1.1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: translateY(-75%) rotate(45deg); transition: transform .2s; }
.faq-list details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-list details p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }

/* Contact */
.contact { padding: 96px 0 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.contact-info h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.contact-info > p { margin-top: 14px; color: var(--muted); max-width: 46ch; }
.contact-data { margin: 32px 0 0; display: grid; gap: 18px; }
.contact-data dt { font-weight: 700; font-size: 0.9rem; color: var(--petrol); }
.contact-data dd { margin: 2px 0 0; }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--petrol); outline: none; box-shadow: 0 0 0 3px rgba(226, 180, 75, 0.45); }
.field textarea { resize: vertical; }
.form-error { color: #9C2B1E; font-weight: 600; font-size: 0.95rem; }
.form-privacy { font-size: 0.85rem; color: var(--muted); }
.map-wrap { margin-top: 80px; height: 420px; border-top: 1px solid var(--line); }
.map-wrap iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(1.02); }
/* Mapa leve: desenho de ruas em CSS até o visitante clicar */
.map-load { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border: 0; cursor: pointer; font: inherit; color: var(--ink);
  background:
    linear-gradient(28deg, transparent 47%, #fff 47% 49.5%, transparent 49.5%) 0 0 / 100% 100%,
    linear-gradient(-62deg, transparent 58%, #fff 58% 60%, transparent 60%) 0 0 / 100% 100%,
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(255,255,255,.75) 118px 124px),
    repeating-linear-gradient(0deg, transparent 0 96px, rgba(255,255,255,.75) 96px 102px),
    radial-gradient(circle at 72% 30%, #CFE0D4 0 70px, transparent 71px),
    var(--mist); }
.map-pin { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -46px 0 0 -15px; border-radius: 50% 50% 50% 0; background: var(--ink); transform: rotate(-45deg); box-shadow: 0 6px 14px rgba(24, 48, 47, .3); }
.map-pin::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--ochre); }
.map-label { margin-top: 64px; display: grid; justify-items: center; gap: 2px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 10px 22px; font-weight: 700; transition: background-color .2s, color .2s; }
.map-label small { font-weight: 500; font-size: .85rem; color: var(--muted); }
.map-load:hover .map-label { background: var(--ink); color: var(--paper); }
.map-load:hover .map-label small { color: #C9D6D3; }

/* Footer */
.site-footer { background: var(--ink); color: #C9D6D3; padding: 64px 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); gap: 40px; }
.footer-name { font-family: var(--display); font-size: 1.35rem; color: var(--paper); margin-bottom: 8px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ochre); }
.footer-legal { color: #A9BCB8; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.85rem; color: #93A8A4; }

/* WhatsApp floating button */
.wa-float { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #1F8F5A; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(24, 48, 47, 0.3); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: #18784B; }

/* Responsive */
@media (max-width: 960px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid, .practice-grid, .about-grid, .faq-wrap, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .sticky-head { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
  .steps li::after { display: none; }
  .principles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-portrait { max-width: 420px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .guide, .practice, .process, .principles, .faq, .contact { padding-top: 64px; padding-bottom: 64px; }
  .contact { padding-bottom: 0; }
  .about { padding-bottom: 64px; }
  .practice-list div { grid-template-columns: 1fr; gap: 6px; }
  .steps, .principles-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .hero-actions .btn { width: 100%; }
  .map-wrap { height: 320px; margin-top: 56px; }
  .brand-text span { display: none; }
}
/* Transição animada: entrada das seções ao rolar */
/* Só ativa quando o JS marca a página (classe .js) e o visitante não pede menos movimento */
.js .reveal { opacity: 0; }
.js .reveal.is-in { animation: reveal-up .8s cubic-bezier(.22, .8, .24, 1) var(--d, 0s) both; }
.js .reveal-blur.is-in { animation-name: reveal-blur-up; animation-duration: 1s; }
@keyframes reveal-up {
  from { opacity: 0; translate: 0 28px; scale: .985; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes reveal-blur-up {
  from { opacity: 0; translate: 0 22px; filter: blur(6px); }
  to { opacity: 1; translate: 0 0; filter: blur(0); }
}
