/* =========================================================================
   2º Tabelionato de Notas de Apucarana/PR — folha de estilo
   Site estático simples (inspirado no layout original). Sem dependências.
   ========================================================================= */

:root {
  --forest-900: #33473d;
  --forest-800: #3c5749;
  --forest-700: #4a6b5f;
  --forest-600: #567a6b;
  --sage-500:   #6f9e86;
  --sage-600:   #5c8a72;
  --whatsapp:   #25a55a;

  --cream:   #f6f3ec;
  --cream-2: #efece2;
  --paper:   #fffdf8;
  --ink:     #263029;
  --muted:   #63706a;
  --line:    #e3ddd0;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(51,71,61,.06), 0 8px 24px rgba(51,71,61,.06);
  --shadow-sm: 0 1px 2px rgba(51,71,61,.05), 0 4px 12px rgba(51,71,61,.05);
  --max: 1140px;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; display: block; }
a { color: var(--forest-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; color: var(--forest-800); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1001;
  background: var(--forest-800); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------ Top bar ------------------------------ */
.topbar { background: var(--forest-700); color: #eef3ef; font-size: .84rem; }
.topbar a { color: #eef3ef; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; padding-block: 8px; }
.topbar .ti { display: inline-flex; align-items: center; gap: 7px; }
.topbar .ti svg { flex: 0 0 auto; opacity: .9; }
.topbar .status { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; }
.topbar .dot { width: 8px; height: 8px; border-radius: 50%; background: #e2795f; display: inline-block; }

/* ------------------------------ Header ------------------------------ */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 900; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 48px; height: 48px; border-radius: 12px; background: var(--forest-800); color: var(--cream);
  display: grid; place-items: center; font-family: var(--font-serif); font-weight: 700; font-size: 1.35rem;
}
.brand .btxt strong { display: block; font-family: var(--font-serif); color: var(--forest-800); font-size: 1.15rem; line-height: 1.1; }
.brand .btxt span { display: block; color: var(--muted); font-size: .8rem; letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); padding: 8px 12px; border-radius: 8px; font-size: .95rem; font-weight: 500; }
.nav a:hover { background: var(--cream-2); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--forest-700); font-weight: 600; }

.nav-toggle {
  display: none; background: var(--cream); border: 1px solid var(--line); border-radius: 10px;
  width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center; color: var(--forest-800);
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw);
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--cream); padding: 84px 18px 24px; box-shadow: -12px 0 40px rgba(0,0,0,.12);
    transform: translateX(100%); transition: transform .25s ease; z-index: 950;
  }
  .nav.open { transform: translateX(0); }
  .nav a { padding: 12px 14px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(30,40,34,.4); opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 940; }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
}

/* ------------------------------ Buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: .97rem;
  cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .05s;
  text-decoration: none; line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--forest-800); color: var(--cream); }
.btn-primary:hover { background: var(--forest-900); color: #fff; }
.btn-outline { background: transparent; color: var(--forest-800); border-color: var(--forest-700); }
.btn-outline:hover { background: var(--cream-2); }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-wa:hover { background: #1f9350; color: #fff; }

/* ------------------------------ Hero ------------------------------ */
.hero { background: var(--cream-2); border-bottom: 1px solid var(--line); }
.hero .container { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-block: 64px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; background: #dfe6e0; color: var(--forest-800);
  padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: 18px;
}
.hero h1 { margin-bottom: 18px; }
.hero .lead { font-size: 1.12rem; color: #3f4a43; max-width: 46ch; margin-bottom: 26px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }

.card-atendimento { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card-atendimento h2 { font-size: 1.4rem; margin-bottom: 18px; }
.card-atendimento ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 16px; }
.card-atendimento li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; }
.card-atendimento li svg { flex: 0 0 auto; color: var(--forest-700); margin-top: 3px; }
.card-atendimento .muted { color: var(--muted); font-size: .86rem; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; padding-block: 44px; gap: 30px; }
}

/* ------------------------------ Sections ------------------------------ */
section { padding-block: 56px; }
.section-alt { background: var(--cream-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head .kicker { color: var(--sage-600); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }
.section-head h2 { margin-top: 6px; }
.section-head p { color: var(--muted); }

/* cards grid */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); transition: box-shadow .18s, transform .18s;
}
.card h3 { color: var(--forest-800); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.card .more { font-weight: 600; font-size: .9rem; color: var(--forest-700); display: inline-flex; align-items: center; gap: 6px; }
a.card:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-2px); }

.feature { text-align: left; }
.feature .ico { width: 44px; height: 44px; border-radius: 10px; background: #e4ece5; color: var(--forest-700); display: grid; place-items: center; margin-bottom: 14px; }

/* ------------------------------ Page header (inner pages) ------------------------------ */
.page-header { background: var(--cream-2); border-bottom: 1px solid var(--line); padding-block: 44px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin-inline: 8px; opacity: .6; }
.page-header p { color: var(--muted); max-width: 60ch; margin-bottom: 0; }

/* ------------------------------ Prose / legal pages ------------------------------ */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #333c37; }
.prose ul { color: #333c37; padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose .updated { color: var(--muted); font-size: .88rem; font-style: italic; }

/* info list (contato) */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ico { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; background: #e4ece5; color: var(--forest-700); display: grid; place-items: center; }
.info-list b { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }

/* ------------------------------ FAQ ------------------------------ */
.faq { max-width: 820px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--forest-800); list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--sage-600); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 20px 18px; color: var(--muted); }

/* ------------------------------ Forms ------------------------------ */
.form-wrap { max-width: 720px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.field .req { color: #c0532f; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .96rem; background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sage-500); outline-offset: 1px; border-color: var(--sage-500); }
.field textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: #333c37; }
.check input { width: auto; margin-top: 4px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }
.form-status { margin-top: 14px; font-size: .92rem; }

/* ------------------------------ CTA band ------------------------------ */
.cta-band { background: var(--forest-800); color: #eaf1ec; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cddcd2; max-width: 52ch; margin-inline: auto; }
.cta-band .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.cta-band .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.1); }

/* ------------------------------ Footer ------------------------------ */
.site-footer { background: var(--forest-900); color: #c9d6ce; padding-block: 48px 26px; font-size: .92rem; }
.site-footer a { color: #c9d6ce; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 34px; }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand .mark { width: 44px; height: 44px; border-radius: 10px; background: var(--forest-700); color: var(--cream); display: grid; place-items: center; font-family: var(--font-serif); font-weight: 700; margin-bottom: 12px; }
.footer-brand p { color: #a9bcb1; max-width: 34ch; }
.dpo { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; color: #a9bcb1; font-size: .84rem; }
.dpo strong { color: #d7e2db; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 18px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; color: #a9bcb1; font-size: .82rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }

/* ------------------------------ WhatsApp float ------------------------------ */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 800;
  width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,165,90,.45);
}
.wa-float:hover { background: #1f9350; }

/* ------------------------------ Cookie banner ------------------------------ */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: #21302a; color: #e7eee9; padding: 16px 20px;
  box-shadow: 0 -6px 24px rgba(0,0,0,.18);
}
.cookie-banner[hidden] { display: none; }
.cookie-inner { max-width: var(--max); margin-inline: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cookie-inner p { margin: 0; font-size: .9rem; flex: 1 1 380px; color: #d5e0da; }
.cookie-inner a { color: #a9d3ba; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: .9rem; }
.cookie-actions .btn-ghost { background: transparent; color: #e7eee9; border: 1px solid rgba(255,255,255,.35); }
.cookie-actions .btn-ghost:hover { background: rgba(255,255,255,.08); }
.cookie-actions .btn-accept { background: var(--sage-500); color: #10201a; border: none; }
.cookie-actions .btn-accept:hover { background: #7fb096; }

.topbar .tb-ig { margin-left: auto; }
.footer-brand .social-ig { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: #c9d6ce; font-size: .9rem; }
.footer-brand .social-ig:hover { color: #fff; }
@media (max-width: 720px) { .topbar .tb-ig { margin-left: 0; } }

.mt-0 { margin-top: 0; }
.center { text-align: center; }
