/* Layout: grade assimétrica fixa (título à esquerda, conteúdo à direita), cores chapadas, fios finos, sem sombras nem gradientes. */
:root {
  color-scheme: light;
  --ink: #14181F;
  --paper: #FFFFFF;
  --stone: #F1EEE8;
  --line: #DAD5CB;
  --muted: #5C626B;
  --brand: #7A5C26;
  --wa: #1A8F4A;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* Botões e links de ação */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1; padding: 15px 22px; border-radius: 6px; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #157A3F; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2A303A; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: 11px 16px; font-size: 0.92rem; }
.more { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.more:hover { color: var(--brand); border-color: var(--brand); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

/* Cabeçalho */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { text-decoration: none; color: var(--ink); line-height: 1.2; }
.brand b { display: block; font-weight: 600; font-size: 1.08rem; letter-spacing: -0.015em; }
.brand small { display: block; font-size: 0.78rem; color: var(--muted); }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; }
.top nav a.link { color: var(--ink); text-decoration: none; font-size: 0.95rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.top nav a.link:hover, .top nav a.link[aria-current="page"] { border-bottom-color: var(--ink); }

/* Vistas e grade */
.view { display: none; }
.view.active { display: block; }
section { padding: 88px 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 64px; align-items: start; }
.row > .side h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
.row > .side p { color: var(--muted); margin-top: 14px; max-width: 30ch; }
.row > .side .more, .row > .side .btn { margin-top: 24px; display: inline-flex; }
.stone { background: var(--stone); border-top: 0; }

/* Abertura */
.hero { background: var(--stone); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: end; }
.hero .text { align-self: center; }
.hero .text { padding: 88px 0 96px; }
.hero .over { font-size: 0.95rem; color: var(--muted); margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.03; letter-spacing: -0.035em; max-width: 12em; }
.hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 33em; margin-top: 24px; }
.hero .cta-row { margin-top: 36px; }
.hero figure { margin: 0 0 0 auto; width: min(100%, 380px); }
.hero .frame { aspect-ratio: 4 / 5; background: #E2DDD3; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); font-size: 0.92rem; }
.hero .frame b { display: block; color: var(--ink); font-weight: 600; }
.hero .frame img { width: 100%; height: 100%; object-fit: cover; }

.has-photo { padding: 0 !important; display: block !important; background: none !important; }
.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero figure:has(.cutout) { width: min(100%, 440px); }
.hero .cutout { aspect-ratio: auto; }
.hero .cutout img { height: auto; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%); }
.hero figure:has(.arch) { width: min(100%, 480px); padding-top: 44px; }
.hero .arch { border-radius: 999px 999px 0 0; overflow: hidden; }
.about-wrap { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 56px; align-items: start; padding: 56px 0 96px; }
.about-wrap .prose { padding: 0; }
.about-photo img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .about-wrap { grid-template-columns: 1fr; gap: 32px; } .about-photo { max-width: 340px; } }
/* Situações */
.head { max-width: 40ch; margin-bottom: 36px; }
.head h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
.head p, .aside { color: var(--muted); }
.head p { margin-top: 12px; }
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); text-decoration: none; color: var(--ink); transition: border-color .15s ease, background .15s ease; }
.case:hover { border-color: var(--ink); background: #FBFAF7; }
.case .ico { width: 28px; height: 28px; color: var(--brand); margin-bottom: 10px; }
.case h3 { font-size: 1.22rem; }
.case p { color: var(--muted); font-size: 0.97rem; flex: 1; }
.case .go { font-weight: 600; font-size: 0.92rem; margin-top: 8px; }
.case:hover .go { color: var(--brand); }
@media (max-width: 900px) { .cases { grid-template-columns: 1fr; } }
@media (min-width: 620px) and (max-width: 900px) { .cases { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .case { transition: none; } }

/* Áreas */
.area { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.area:first-child { border-top: 2px solid var(--ink); }
.area h3 { font-size: 1.3rem; }
.area p { color: var(--muted); max-width: 56ch; }
.area ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.area li a { color: var(--ink); font-size: 0.97rem; }
.area li a:hover { color: var(--brand); }

/* Tabela */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.98rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 15px 20px 15px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 0.82rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid var(--ink); padding-top: 0; }
td:last-child { font-weight: 600; }
.source { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }

/* Como funciona */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.steps li { border-top: 2px solid var(--ink); padding-top: 18px; counter-increment: s; }
.steps li::before { content: counter(s) "."; font-weight: 600; color: var(--muted); display: block; margin-bottom: 26px; }
.steps h3 { font-size: 1.2rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.97rem; }

/* Quem atende */
.statement { font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.35; letter-spacing: -0.015em; max-width: 30em; }
.statement + .cta-row { margin-top: 28px; }

/* Listas de artigos */
.alist a, .post-link { display: block; padding: 26px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.alist a:first-child { border-top: 2px solid var(--ink); }
.alist .meta, .post-link .tag { display: block; font-size: 0.84rem; color: var(--muted); margin-bottom: 8px; }
.post-link .tag br { display: none; }
.alist h3, .post-link h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.18; max-width: 26em; }
.alist a:hover h3, .post-link:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.alist p, .post-link p { color: var(--muted); margin-top: 8px; max-width: 58ch; font-size: 0.98rem; }
.posts { padding: 24px 0 96px; max-width: 820px; }
.posts .post-link:first-child { border-top: 0; }

/* Perguntas */
.faq { margin: 0; }
.faq div { padding: 24px 0; border-top: 1px solid var(--line); }
.faq div:first-child { border-top: 2px solid var(--ink); }
.faq dt { font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.faq dd { margin: 8px 0 0; color: var(--muted); max-width: 62ch; }

/* Fechamento e rodapé */
.final { background: var(--ink); color: #fff; border-top: 0; }
.final h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; }
.final p { color: #C3C7CE; font-size: 1.1rem; max-width: 44ch; }
.final .cta-row { margin-top: 28px; }
footer { background: var(--ink); color: #A4A9B2; padding: 0 0 96px; font-size: 0.88rem; }
footer .wrap > div { border-top: 1px solid #343A45; padding-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; }
footer strong { color: #fff; font-weight: 600; }
footer p + p { margin-top: 4px; }
footer a { color: #D6D9DE; }
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 30; border-radius: 999px; box-shadow: 0 6px 18px rgba(20,24,31,.25); }

/* Páginas internas */
.page-head { background: var(--stone); box-shadow: 0 0 0 100vmax var(--stone); clip-path: inset(0 -100vmax); padding: 72px 0 56px; }
.page-head .eyebrow, .page-head .back { font-size: 0.92rem; color: var(--muted); }
.page-head .back a { color: var(--muted); text-decoration: none; }
.page-head .back a::before { content: "← "; }
.page-head .back a:hover { color: var(--ink); }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); letter-spacing: -0.03em; line-height: 1.06; margin-top: 16px; max-width: 17em; }
.prose { max-width: 70ch; padding: 56px 0 96px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose ul, .prose ol { padding-left: 1.2em; margin-bottom: 0; }
.prose li + li { margin-top: 0.45em; }
.prose .intro { font-size: 1.3rem; line-height: 1.45; letter-spacing: -0.01em; }
.prose .meta { font-family: var(--sans); font-size: 0.84rem; color: var(--muted); text-transform: none; }
article.prose { font-family: var(--serif); font-size: 1.14rem; line-height: 1.68; max-width: 64ch; }
article.prose h2, article.prose table, article.prose .cta-box { font-family: var(--sans); }
article.prose .intro { font-family: var(--sans); }
.note { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 2.4em !important; color: var(--muted); font-family: var(--sans); font-size: 0.86rem; line-height: 1.5; }
.cta-box { margin-top: 2.6em !important; background: var(--stone); border-radius: 6px; padding: 30px 28px; display: grid; gap: 12px; justify-items: start; font-size: 1rem; line-height: 1.5; }
.cta-box h3 { font-size: 1.4rem; }
.cta-box p { color: var(--muted); }
.cta-box .btn { margin-top: 6px; }
.todo { border: 1px dashed #A9A294; border-radius: 4px; padding: 14px 16px; font-size: 0.93rem; color: var(--muted); font-family: var(--sans); }
.todo b, .photo-slot b { display: block; color: var(--ink); font-weight: 600; font-size: 0.86rem; margin-bottom: 2px; }
.contact-wrap { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 56px; align-items: start; padding: 56px 0 96px; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.contact > div:not(.todo) { border-top: 2px solid var(--ink); padding-top: 14px; }
.contact .k { display: block; font-size: 0.84rem; color: var(--muted); margin-bottom: 4px; }
.photo-slot { aspect-ratio: 4 / 5; background: #E2DDD3; display: grid; place-items: center; text-align: center; padding: 24px; font-size: 0.92rem; color: var(--muted); }
.photo-slot small { display: block; }

@media (max-width: 900px) {
  section { padding: 60px 0; }
  .row, .hero .wrap, .contact-wrap { grid-template-columns: 1fr; }
  .hero .wrap { gap: 0; }


  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps li::before { margin-bottom: 10px; }
  .area { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .photo-slot { max-width: 300px; }
}

/* ---------- Menu ---------- */
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; position: relative; border-radius: 6px; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .3s ease, top .3s ease; }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }
.menu-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.top { transition: box-shadow .3s ease; }
.top.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgba(20,24,31,.35); }

/* ---------- Animações ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.btn { transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.more { transition: color .2s ease, border-color .2s ease; }
.case { transition: border-color .25s ease, background .25s ease, translate .25s ease, box-shadow .25s ease; }
.case:hover { translate: 0 -3px; box-shadow: 0 14px 30px -22px rgba(20,24,31,.45); }
.case .go, .alist h3, .post-link h3 { transition: color .2s ease; }
.case .go::after { content: ""; }
.case .go { display: inline-block; transition: color .2s ease, transform .25s ease; }
.case:hover .go { transform: translateX(3px); }
.fab { transition: opacity .35s ease, transform .35s ease, background .2s ease; }
.fab.hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero .text > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero .text > :nth-child(2) { animation-delay: .08s; }
  .hero .text > :nth-child(3) { animation-delay: .16s; }
  .hero .text > :nth-child(4) { animation-delay: .24s; }
  .hero figure { animation: settle 1s cubic-bezier(.2,.7,.2,1) .15s both; }
  .page-head > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .page-head > :nth-child(2) { animation-delay: .07s; }
  @supports (animation-timeline: view()) {
    .case, .area, .steps li, .alist a, .faq > div, .table-wrap, .statement, .head, .row > .side, .about-photo, .photo-slot, .post-link, .cta-box {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Celular ---------- */
@media (max-width: 900px) {
  .top .wrap { flex-wrap: nowrap; padding-top: 10px; padding-bottom: 10px; }
  .menu-btn { display: block; }
  .top nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 4px 28px 24px; box-shadow: 0 20px 30px -24px rgba(20,24,31,.4);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .top nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease, visibility 0s; }
  .top nav a.link { font-size: 1.1rem; padding: 15px 0; border-bottom: 1px solid var(--line); }
  .top nav a.link:hover, .top nav a.link[aria-current="page"] { border-bottom-color: var(--line); }
  .top nav a.link[aria-current="page"] { font-weight: 600; }
  .top nav .btn { margin-top: 20px; justify-content: center; padding: 15px 20px; font-size: 1rem; }
  body.menu-open { overflow: hidden; }

  .hero .wrap { gap: 0; }
  .hero .text { padding: 44px 0 36px; }
  .hero .over { font-size: 0.88rem; margin-bottom: 16px; }
  .hero h1 { font-size: clamp(2.1rem, 9.4vw, 2.8rem); }
  .hero .lead { font-size: 1.05rem; margin-top: 18px; }
  .hero .cta-row { margin-top: 28px; flex-direction: column; align-items: stretch; gap: 18px; }
  .hero .cta-row .btn { justify-content: center; padding: 16px 20px; }
  .hero .cta-row .more { align-self: flex-start; }
  .hero figure, .hero figure:has(.cutout), .hero figure:has(.arch) { margin: 0 auto; width: min(82%, 320px); padding-top: 0; }

  .head { margin-bottom: 24px; }
  .cases { gap: 10px; }
  .case { display: grid; grid-template-columns: 40px minmax(0, 1fr) 16px; grid-template-areas: "ico t go" "ico p go"; column-gap: 14px; row-gap: 4px; align-items: center; padding: 16px 16px 16px 14px; }
  .case .ico { grid-area: ico; width: 40px; height: 40px; padding: 9px; margin: 0; border-radius: 8px; background: var(--stone); align-self: center; }
  .case h3 { grid-area: t; font-size: 1.05rem; }
  .case p { grid-area: p; font-size: 0.9rem; line-height: 1.45; }
  .case .go { grid-area: go; font-size: 0; margin: 0; }
  .case .go::after { content: "›"; font-size: 1.6rem; line-height: 1; color: var(--muted); font-weight: 400; }
  .case:hover { translate: none; }
  .cases + .cta-row, .stone .cta-row { flex-direction: column; align-items: stretch; gap: 16px; }
  .cases + .cta-row .btn, .stone .cta-row .btn { justify-content: center; }
  .stone .cta-row .more { align-self: flex-start; }

  .row { gap: 20px; }
  .row > .side p { max-width: none; }
  .row > .side .more, .row > .side .btn { margin-top: 16px; }

  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; }
  .table-wrap thead { display: none; }
  .table-wrap tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .table-wrap tr:first-child { border-top: 2px solid var(--ink); }
  .table-wrap td { border: 0; padding: 0; }
  .table-wrap td:first-child { font-size: 0.88rem; color: var(--muted); margin-bottom: 2px; }

  .statement { font-size: 1.2rem; }
  .final .cta-row { flex-direction: column; align-items: stretch; }
  .final .cta-row .btn { justify-content: center; }
  .cta-box .btn { width: 100%; justify-content: center; }
  .fab { right: 16px; bottom: 16px; padding: 14px; }
  .fab .fab-label { display: none; }
  .fab svg { width: 24px; height: 24px; }
  .page-head { padding: 44px 0 36px; }
  .prose { padding: 36px 0 72px; }
  article.prose { font-size: 1.06rem; }
  footer { padding-bottom: 88px; }
}

/* ---------- Monograma ---------- */
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mono { width: 52px; height: auto; flex: none; }
.brand > span { display: block; padding-left: 12px; border-left: 1px solid var(--line); }
footer { padding-top: 56px; }
footer .mono-foot { display: block; width: 92px; height: auto; margin-bottom: 28px; }
.final + footer, .final ~ footer { padding-top: 0; }
@media (max-width: 900px) {
  .brand { gap: 10px; }
  .brand .mono { width: 42px; }
  .brand > span { padding-left: 10px; }
  .brand b { font-size: 1rem; }
}
