/*
Theme Name: Guia 67a Terracotta Run FlOtKIcL
Theme URI: https://67a.buzz/
Author: Guia 67a Brasil
Description: Tema editorial independente criado exclusivamente para a execução run-FlOtKIcL.
Version: 1.0.0
Text Domain: guia67a
*/

:root {
  --paper: #f7f0e5;
  --surface: #fffdf8;
  --soft: #efe1d2;
  --forest: #314a43;
  --forest-2: #263d37;
  --terracotta: #b95f45;
  --sage: #5f806f;
  --ochre: #d6a143;
  --ink: #302a26;
  --muted: #6d625b;
  --line: #dccdbd;
  --info: #e8f0ea;
  --focus: #215c49;
  --wide: 1180px;
  --reading: 760px;
  --radius: 32px;
  --small-radius: 12px;
  --shadow: 0 16px 38px rgba(80, 50, 35, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DejaVu Sans", "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.78;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: #7f3c2c; text-decoration-thickness: .1em; text-underline-offset: .16em; }
a:hover { color: var(--forest); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 999; transform: translateY(-160%); background: #fff; color: #111; padding: 10px 16px; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,253,248,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { width: min(var(--wide), calc(100% - 48px)); min-height: 76px; margin: auto; display: flex; align-items: center; gap: 28px; }
.site-brand { flex: 0 0 220px; }
.custom-logo-link { display: inline-flex; align-items: center; min-height: 48px; }
.custom-logo { width: 218px; max-height: 64px; object-fit: contain; object-position: left center; }
.brand-fallback { font-weight: 800; font-size: 1.2rem; color: var(--forest); text-decoration: none; }
.menu-toggle { display: none; margin-left: auto; min-width: 76px; min-height: 48px; border: 2px solid var(--forest); border-radius: 999px; background: var(--surface); color: var(--forest); font: inherit; font-weight: 700; cursor: pointer; }
.primary-navigation { margin-left: auto; }
.primary-navigation ul { display: flex; align-items: center; justify-content: flex-end; gap: 2px; margin: 0; padding: 0; list-style: none; }
.primary-navigation a { display: flex; align-items: center; min-height: 48px; padding: 7px 10px; color: var(--forest-2); font-size: .76rem; font-weight: 700; text-decoration: none; border-radius: 10px; white-space: nowrap; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a { background: var(--soft); color: #6f2d20; }

.site-main { width: 100%; }
.page-shell { padding: clamp(36px, 7vw, 90px) 0 clamp(64px, 9vw, 112px); }
.page-header { width: min(var(--wide), calc(100% - 48px)); margin: 0 auto clamp(38px, 6vw, 72px); position: relative; }
.page-header::before { content: ""; position: absolute; z-index: -1; width: min(44vw, 480px); aspect-ratio: 1.4; right: 0; top: -20px; border-radius: 45% 55% 62% 38%; background: linear-gradient(140deg, var(--soft), #e4c6b1); opacity: .75; }
.eyebrow { margin: 0 0 12px; color: var(--terracotta); font-weight: 800; letter-spacing: .09em; text-transform: uppercase; font-size: .78rem; }
h1, h2, h3 { color: var(--forest-2); line-height: 1.14; letter-spacing: -.025em; text-wrap: balance; }
h1 { max-width: 930px; margin: 0; font-size: clamp(2.25rem, 5.1vw, 4.1rem); }
h2 { margin: clamp(54px, 8vw, 92px) 0 20px; font-size: clamp(1.72rem, 3.5vw, 2.65rem); }
h3 { margin: 38px 0 14px; font-size: clamp(1.25rem, 2vw, 1.65rem); }
.entry-content { width: min(var(--reading), calc(100% - 48px)); margin: 0 auto; }
.front-page .entry-content { width: min(var(--wide), calc(100% - 48px)); }
.entry-content > p, .entry-content > ul, .entry-content > ol, .entry-content > .faq-block { max-width: var(--reading); margin-left: auto; margin-right: auto; }
.entry-content p { margin-top: 0; margin-bottom: 1.25em; }
.entry-content > h2, .entry-content > h3 { max-width: var(--reading); margin-left: auto; margin-right: auto; }
.entry-content > h2::before { content: ""; display: block; width: 54px; height: 7px; margin-bottom: 18px; border-radius: 99px; background: var(--terracotta); }
.entry-content > h2:nth-of-type(3n)::before { background: var(--sage); }
.entry-content > h2:nth-of-type(3n+2)::before { background: var(--ochre); }
.entry-content strong { color: var(--forest-2); }

.editorial-figure { max-width: 1040px; margin: clamp(30px, 6vw, 62px) auto; }
.editorial-figure img { width: 100%; border-radius: 46px 16px 46px 16px; box-shadow: var(--shadow); background: var(--soft); aspect-ratio: var(--image-ratio, 14/9); object-fit: cover; }
.editorial-figure.is-square { max-width: 760px; }
.editorial-figure.is-square img { --image-ratio: 1/1; }
.editorial-figure figcaption { max-width: var(--reading); margin: 10px auto 0; color: var(--muted); font-size: .88rem; }
.editorial-figure.is-hero { max-width: var(--wide); }
.editorial-figure.is-hero img { --image-ratio: 16/9; border-radius: 60px 22px 60px 22px; }

.table-wrap { width: min(1040px, 100%); margin: 34px auto 48px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--small-radius); background: var(--surface); box-shadow: 0 8px 22px rgba(80,50,35,.06); }
.table-wrap:focus-visible { outline: 3px solid #c35f43; outline-offset: 3px; }
table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: .91rem; line-height: 1.55; }
th, td { padding: 15px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--forest); color: #fff; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #faf4ea; }

.faq-block { margin-top: clamp(58px, 8vw, 96px) !important; padding: clamp(24px, 5vw, 48px); border-radius: var(--radius); background: var(--info); }
.faq-block h2 { margin-top: 0; }
.faq-block details { border-top: 1px solid #b9c9be; }
.faq-block details:last-child { border-bottom: 1px solid #b9c9be; }
.faq-block summary { min-height: 56px; display: flex; align-items: center; cursor: pointer; color: var(--forest-2); font-weight: 700; }
.faq-block details p { padding: 0 0 18px; margin: 0; }

.site-footer { background: var(--forest-2); color: #f8f3e9; padding: 58px 0 34px; }
.footer-inner { width: min(var(--wide), calc(100% - 48px)); margin: auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; }
.footer-title { margin: 0 0 12px; color: #fff; font-size: 1.35rem; font-weight: 800; }
.footer-statement { max-width: 620px; margin: 0 0 14px; color: #e9dfd1; }
.footer-email { color: #fff; font-weight: 700; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 18px; align-content: start; }
.footer-nav a { color: #fff; min-height: 44px; display: flex; align-items: center; }
.footer-bottom { width: min(var(--wide), calc(100% - 48px)); margin: 36px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.22); color: #d8cec0; font-size: .85rem; }

@media (max-width: 1020px) {
  .header-inner { width: min(var(--wide), calc(100% - 40px)); }
  .site-brand { flex-basis: 200px; }
  .custom-logo { width: 198px; }
  .primary-navigation a { font-size: .7rem; padding-inline: 7px; }
}

@media (max-width: 1250px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-navigation { position: absolute; left: 0; right: 0; top: 100%; display: none; margin: 0; padding: 12px 24px 20px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: stretch; gap: 5px; }
  .primary-navigation a { min-height: 48px; font-size: .87rem; white-space: normal; }
}

@media (max-width: 839px) {
  body { font-size: 17px; }
  .header-inner { min-height: 70px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-navigation { position: absolute; left: 0; right: 0; top: 100%; display: none; margin: 0; padding: 12px 20px 20px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: stretch; gap: 5px; }
  .primary-navigation a { min-height: 48px; font-size: .87rem; white-space: normal; }
  .page-header::before { width: 62vw; opacity: .55; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 599px) {
  body { font-size: 16px; line-height: 1.72; }
  .header-inner, .page-header, .entry-content, .front-page .entry-content, .footer-inner, .footer-bottom { width: calc(100% - 32px); }
  .site-brand { flex-basis: 178px; }
  .custom-logo { width: 176px; max-height: 56px; }
  .menu-toggle { min-width: 70px; }
  .primary-navigation { padding-inline: 16px; }
  .primary-navigation ul { grid-template-columns: 1fr; }
  .page-shell { padding-top: 42px; }
  h1 { font-size: clamp(2rem, 10.5vw, 2.7rem); }
  h2 { margin-top: 52px; }
  .editorial-figure { margin-block: 30px; }
  .editorial-figure img, .editorial-figure.is-hero img { border-radius: 28px 12px 28px 12px; aspect-ratio: 5/4; }
  .faq-block { padding: 22px 18px; }
  .footer-nav { grid-template-columns: 1fr; }
}

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