/* ============================================================
   SITE DE PRESENÇA — Plano Essencial
   Um site de página única + blog com 2 artigos.
   Moderno, leve e direto: tudo que a empresa precisa para
   existir bem no Google e ser encontrada.
   ============================================================ */
:root {
  --brand: #2563EB;
  --brand-dark: #1D4ED8;
  --brand-soft: #EFF4FF;
  --ink: #0F172A;
  --text: #475569;
  --muted: #94A3B8;
  --line: #E2E8F0;
  --bg-alt: #F8FAFC;
  --radius: 14px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--oa-demo-h, 0px) + var(--header-h) + 16px); }
body { font-family: 'DM Sans', system-ui, sans-serif; color: var(--text); background: #fff; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.eyebrow { display: inline-block; margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 12px; }
.section-head p { font-size: 17px; }

/* ── Placeholder de imagem ── */
.ph { display: grid; place-items: center; gap: 6px; border-radius: var(--radius); background: repeating-linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0 12px, transparent 12px 24px), linear-gradient(135deg, #EEF3FF, #DDE7FF); border: 1px dashed #B4C8F5; color: #3B63C4; text-align: center; font-size: 13px; font-weight: 700; }
.ph svg { width: 32px; height: 32px; opacity: 0.7; }
.ph small { display: block; font-weight: 500; color: #7C98D8; }

/* ── Botões ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border: 1.5px solid transparent; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn:focus-visible { outline: 3px solid #93B4F8; outline-offset: 2px; }
.btn[disabled] { opacity: 0.7; cursor: wait; transform: none; }

/* ── Cabeçalho ── */
.site-header { position: sticky; top: var(--oa-demo-h, 0); z-index: 100; height: var(--header-h); background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05); }
.site-header .container { display: flex; align-items: center; gap: 28px; height: 100%; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.logo-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; border: 1.5px dashed var(--brand); color: var(--brand); font-size: 10px; font-weight: 700; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { padding: 8px 14px; border-radius: 8px; color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; transition: color 0.2s, background 0.2s; }
.site-nav a:hover { color: var(--ink); background: var(--bg-alt); }
.site-nav a.active, .site-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.header-cta { padding: 10px 18px; font-size: 14px; }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }

/* ============================================================
   ONE PAGE
   ============================================================ */
.hero { padding: 72px 0 88px; background: linear-gradient(180deg, var(--brand-soft), #fff 85%); }
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4.6vw, 54px); margin-bottom: 18px; }
.hero h1 span { color: var(--brand); }
.hero-lead { max-width: 540px; margin-bottom: 30px; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .ph { aspect-ratio: 5 / 4; }

.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.about .ph { aspect-ratio: 4 / 3; }
.about h2 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 14px; }
.about p + p { margin-top: 12px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.fact { padding: 16px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--line); }
.fact strong { display: block; font-size: 24px; color: var(--ink); line-height: 1.1; }
.fact span { font-size: 13px; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.service .icon { width: 46px; height: 46px; margin-bottom: 16px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.service .icon svg { width: 22px; height: 22px; }
.service h3 { font-size: 18px; margin-bottom: 6px; }
.service p { font-size: 15px; }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.quote .stars { margin-bottom: 12px; color: #F59E0B; letter-spacing: 2px; }
.quote blockquote { flex: 1; margin-bottom: 20px; color: var(--ink); font-size: 15px; }
.person { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; border: 1.5px dashed #B4C8F5; background: var(--brand-soft); color: var(--brand); font-size: 10px; font-weight: 700; }
.person strong { display: block; font-size: 14px; color: var(--ink); }
.person span { font-size: 13px; color: var(--muted); }

/* ── Cartões de artigo (home e blog) ── */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.post { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.post:hover { transform: translateY(-3px); border-color: #B4C8F5; box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08); }
.post .ph { border-radius: 0; border: none; aspect-ratio: 16 / 9; }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 26px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.post-meta .cat { color: var(--brand); font-weight: 700; }
.post h3 { margin-bottom: 10px; font-size: 21px; }
.post p { flex: 1; margin-bottom: 18px; font-size: 15px; }
.read-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--brand); }
.read-more svg { width: 16px; height: 16px; transition: transform 0.2s; }
.post:hover .read-more svg { transform: translateX(3px); }
.blog-foot { margin-top: 36px; text-align: center; }

/* ── Contato ── */
.contact { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.form-card { padding: 32px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07); }
.form-card h3 { font-size: 22px; margin-bottom: 6px; }
.form-card > p { margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin-bottom: 14px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.field input, .field textarea { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }
.field.invalid input, .field.invalid textarea { border-color: #EF4444; }
.field .error { display: none; margin-top: 5px; font-size: 12px; color: #DC2626; }
.field.invalid .error { display: block; }
.form-note { margin-top: 12px; font-size: 12px; color: var(--muted); }
.form-success { display: none; padding: 20px 0; text-align: center; }
.form-success .check { width: 58px; height: 58px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: #DCFCE7; color: #16A34A; }
.form-success .check svg { width: 28px; height: 28px; }
.form-success h3 { margin-bottom: 6px; }
form.sent { display: none; }
form.sent + .form-success { display: block; }
.info { display: grid; gap: 12px; }
.info-item { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--bg-alt); }
.info-item .icon { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.info-item .icon svg { width: 20px; height: 20px; }
.info-item strong { display: block; color: var(--ink); }
.info-item span { font-size: 14px; }
.map { aspect-ratio: 16 / 6; margin-top: 40px; }

/* ============================================================
   BLOG E ARTIGOS
   ============================================================ */
.page-top { padding: 56px 0 48px; background: var(--brand-soft); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 16px; font-size: 13px; }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--muted); }
.breadcrumb a { color: var(--text); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 700; }
.page-top h1 { max-width: 800px; font-size: clamp(32px, 4vw, 46px); margin-bottom: 12px; }
.page-top p { max-width: 640px; font-size: 18px; }
.blog-empty { margin-top: 28px; padding: 20px 24px; border-radius: 12px; border: 1.5px dashed var(--line); color: var(--muted); font-size: 14px; text-align: center; }

/* Barra de progresso de leitura */
.read-progress { position: fixed; top: calc(var(--oa-demo-h, 0px) + var(--header-h)); left: 0; z-index: 99; width: 100%; height: 3px; transform-origin: 0 50%; transform: scaleX(0); background: var(--brand); }

.article-head { padding: 56px 0 40px; }
.article-head .inner { max-width: 760px; margin: 0 auto; }
.article-head h1 { margin: 10px 0 16px; font-size: clamp(32px, 4.2vw, 48px); }
.article-head .lead { font-size: 19px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; }
.byline .person strong { font-size: 15px; }
.byline .dot { color: var(--muted); }
.article-cover { max-width: 1000px; margin: 0 auto 48px; padding: 0 24px; }
.article-cover .ph { aspect-ratio: 16 / 8; }

.prose { max-width: 720px; margin: 0 auto; padding: 0 24px; font-size: 18px; color: #334155; }
.prose p { margin-bottom: 20px; }
.prose h2 { margin: 44px 0 16px; font-size: 28px; scroll-margin-top: calc(var(--oa-demo-h, 0px) + var(--header-h) + 20px); }
.prose h3 { margin: 28px 0 10px; font-size: 21px; }
.prose ul, .prose ol { margin: 0 0 22px 24px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--brand); }
.toc { margin-bottom: 36px; padding: 22px 26px; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--line); }
.toc strong { display: block; margin-bottom: 10px; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.toc ol { margin: 0 0 0 20px; font-size: 16px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--brand); }
.callout { margin: 28px 0; padding: 20px 24px; border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; background: var(--brand-soft); font-size: 17px; }
.callout strong { display: block; margin-bottom: 4px; }
.prose table { width: 100%; margin: 8px 0 28px; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--bg-alt); color: var(--ink); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink); }
.share button { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.share button:hover { border-color: var(--brand); color: var(--brand); }
.share button:focus-visible { outline: 3px solid #93B4F8; outline-offset: 2px; }
.author-box { display: flex; gap: 18px; margin: 32px 0 0; padding: 24px; border-radius: 16px; background: var(--bg-alt); }
.author-box .avatar { width: 64px; height: 64px; }
.author-box strong { display: block; color: var(--ink); }
.author-box span { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.author-box p { margin: 0; font-size: 15px; }
.article-cta { max-width: 720px; margin: 48px auto 0; padding: 32px; border-radius: 18px; background: var(--ink); color: #CBD5E1; text-align: center; }
.article-cta h2 { margin-bottom: 8px; color: #fff; font-size: 26px; }
.article-cta p { margin-bottom: 22px; }
.related { margin-top: 72px; padding: 72px 0; background: var(--bg-alt); }
.related .posts { max-width: 560px; grid-template-columns: 1fr; }

/* ── Rodapé ── */
.site-footer { padding: 48px 0 28px; background: var(--ink); color: #94A3B8; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.site-footer .logo { color: #fff; }
.site-footer h4 { margin-bottom: 12px; color: #fff; font-size: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #94A3B8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .about-f { margin-top: 12px; max-width: 280px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; }

.whats { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; display: grid; place-items: center; border: none; border-radius: 50%; background: #22C55E; color: #fff; box-shadow: 0 12px 28px rgba(34, 197, 94, 0.4); cursor: pointer; transition: transform 0.2s; }
.whats:hover { transform: scale(1.06); }
.whats:focus-visible { outline: 3px solid #86EFAC; outline-offset: 3px; }
.whats svg { width: 26px; height: 26px; }

/* ── Responsivo ── */
@media (max-width: 960px) {
  .hero .container, .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .services, .quotes { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 24px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1); }
  .site-nav.open a { padding: 12px 14px; font-size: 16px; }
  .menu-btn { display: grid; }
  .header-cta { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .container { padding: 0 18px; }
  .services, .quotes, .posts, .facts, .form-grid, .foot-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .form-card { padding: 24px 20px; }
  .prose { font-size: 17px; padding: 0 18px; }
  .article-cover { padding: 0 18px; }
  .article-cta { margin-left: 18px; margin-right: 18px; padding: 26px 20px; }
  .author-box { flex-direction: column; }
  .site-footer { padding-bottom: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
