/*
Theme Name: 56b Guia Grid AcZmKJMg
Theme URI: https://56b.cam/
Author: 56b Guia Brasil
Description: Tema editorial independente criado para a reconstrução AcZmKJMg.
Version: 1.0.0
Text Domain: guia-56b-grid-aczmkjmg
*/

:root {
  --bg: #f5f3ed;
  --surface: #ffffff;
  --ink: #151515;
  --muted: #5b5b56;
  --line: #20201e;
  --reverse: #111111;
  --reverse-ink: #fafaf7;
  --accent: #a82f25;
  --accent-dark: #7d211a;
  --info: #e8eef2;
  --max: 1240px;
  --reading: 760px;
  --pad: clamp(1rem, 4vw, 4rem);
  --section: clamp(3rem, 7vw, 6.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Noto Sans", "Segoe UI", Arial, sans-serif; font-size: clamp(1rem, .3vw + .96rem, 1.14rem); line-height: 1.72; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-decoration-thickness: .09em; text-underline-offset: .18em; }
a:hover { color: #54150f; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #2d5f8b; outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -8rem; z-index: 999; padding: .8rem 1rem; background: #fff; color: #111; border: 2px solid #111; }
.skip-link:focus { top: 1rem; }
.site-shell { width: min(100% - (2 * var(--pad)), var(--max)); margin-inline: auto; }

.site-header { position: relative; z-index: 20; background: var(--reverse); color: var(--reverse-ink); border-bottom: 3px solid var(--accent); }
.header-grid { min-height: 70px; display: grid; grid-template-columns: minmax(185px, 245px) 1fr; align-items: stretch; gap: 1.5rem; }
.brand-link { display: flex; align-items: center; min-height: 70px; padding-right: 1.25rem; border-right: 1px solid #555; }
.brand-link img { width: min(220px, 100%); height: auto; max-height: 58px; object-fit: contain; object-position: left center; }
.brand-fallback { color: #fff; font-weight: 800; font-size: 1.1rem; text-decoration: none; }
.menu-toggle { display: none; justify-self: end; align-self: center; min-width: 48px; min-height: 48px; color: #fff; background: transparent; border: 1px solid #777; font: inherit; font-weight: 700; }
.primary-nav { display: flex; align-items: stretch; min-width: 0; }
.primary-nav ul { display: flex; align-items: stretch; gap: 0; padding: 0; margin: 0; list-style: none; width: 100%; }
.primary-nav li { display: flex; min-width: 0; }
.primary-nav a { display: flex; align-items: center; min-height: 70px; padding: .7rem clamp(.55rem, 1vw, .95rem); color: #fff; font-size: clamp(.79rem, .45vw + .68rem, .95rem); font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; border-left: 1px solid #383838; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: #292929; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }

.site-main { min-height: 60vh; }
.hero { padding: clamp(3rem, 7vw, 7rem) 0 clamp(2.5rem, 5vw, 5rem); background: var(--reverse); color: var(--reverse-ink); border-bottom: 1px solid #444; }
.hero-kicker { display: inline-flex; padding: .35rem .6rem; margin-bottom: 1.25rem; color: #fff; border: 1px solid #777; font-size: .82rem; font-weight: 700; letter-spacing: .04em; }
h1 { max-width: 1060px; margin: 0; font-size: clamp(2.35rem, 7vw, 5.25rem); line-height: 1.03; letter-spacing: -.045em; }
.hero-intro { max-width: 780px; margin: 1.8rem 0 0; color: #e2e2dd; font-size: clamp(1.05rem, .7vw + .9rem, 1.35rem); }
.article-body { padding-bottom: var(--section); }
.article-body section { position: relative; padding-block: var(--section); border-bottom: 1px solid var(--line); }
.article-body section::before { display: block; margin-bottom: 1rem; color: var(--accent-dark); font-size: .82rem; font-weight: 800; letter-spacing: .08em; content: attr(data-chapter); }
.article-body section:last-child { border-bottom: 0; }
.prose { width: min(100%, var(--reading)); }
.prose > :first-child { margin-top: 0; }
.wide { width: min(100%, 1100px); }
h2 { max-width: 920px; margin: 0 0 1.35rem; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.12; letter-spacing: -.025em; }
h3 { max-width: 820px; margin: 2rem 0 .8rem; font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.25; }
p, ul, ol { max-width: var(--reading); }
p { margin: 0 0 1.2rem; }
li + li { margin-top: .55rem; }
blockquote { max-width: 880px; margin: 2rem 0; padding: 1.2rem 1.5rem; background: var(--info); border-left: 6px solid var(--accent); }
.editorial-image { width: min(100%, 1100px); margin: clamp(2rem, 5vw, 4rem) 0; background: #111; border: 1px solid #111; }
.editorial-image img { width: 100%; }
.editorial-image figcaption { padding: .8rem 1rem; background: #fff; color: var(--muted); font-size: .88rem; border-top: 1px solid #111; }
.hero-image img { aspect-ratio: 16 / 9; object-fit: cover; }
.portrait-image { max-width: 760px; }

.table-scroll { max-width: 1100px; margin: 2rem 0; overflow-x: auto; border: 2px solid var(--line); }
table { width: 100%; min-width: 720px; border-collapse: collapse; background: #fff; font-size: .94rem; }
th, td { padding: .85rem 1rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #fff; background: #171717; }
tr:nth-child(even) td { background: #efeee9; }
.steps { counter-reset: step; }
.steps li::marker { color: var(--accent-dark); font-weight: 800; }

.faq-block { width: min(100%, 900px); }
.faq-block details { background: #fff; border: 1px solid var(--line); border-bottom: 0; }
.faq-block details:last-child { border-bottom: 1px solid var(--line); }
.faq-block summary { min-height: 56px; padding: 1rem 3rem 1rem 1rem; cursor: pointer; font-weight: 800; }
.faq-block .answer { padding: 0 1rem 1.2rem; }

.trust-page .hero { padding-block: clamp(2.5rem, 5vw, 5rem); }
.trust-page h1 { max-width: 900px; font-size: clamp(2.3rem, 5vw, 4.2rem); }
.trust-content { padding-block: var(--section); }
.trust-content > * { max-width: var(--reading); }
.contact-card { max-width: 760px; margin: 2rem 0; padding: 1.4rem; background: #fff; border: 3px solid #111; }

.site-footer { padding: 3rem 0; background: var(--reverse); color: var(--reverse-ink); border-top: 5px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: minmax(220px, 1.2fr) 2fr; gap: 2.5rem; }
.footer-name { margin: 0 0 .5rem; font-size: 1.3rem; font-weight: 800; }
.footer-disclosure { max-width: 520px; color: #d7d7d2; }
.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1.2rem; margin: 0; padding: 0; list-style: none; }
.footer-nav a, .site-footer a { color: #fff; }
.footer-email { margin-top: 1.25rem; text-align: right; }

@media (max-width: 1020px) {
  .header-grid { grid-template-columns: minmax(180px, 230px) auto; }
  .menu-toggle { display: block; }
  .primary-nav { position: absolute; top: 70px; right: var(--pad); left: var(--pad); display: none; background: #111; border: 1px solid #777; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav li, .primary-nav a { display: block; width: 100%; }
  .primary-nav a { min-height: 48px; padding: .85rem 1rem; text-align: left; border: 0; border-bottom: 1px solid #444; }
}

@media (max-width: 640px) {
  :root { --pad: 1rem; --section: 3.25rem; }
  .brand-link { border-right: 0; }
  .hero { padding-top: 3.2rem; }
  .hero-image img { aspect-ratio: 5 / 4; object-position: center; }
  .article-body section::before { margin-bottom: .7rem; }
  .editorial-image { margin-block: 2rem; }
  .portrait-image { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav ul { justify-content: flex-start; display: grid; grid-template-columns: 1fr; }
  .footer-email { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

