/*
Theme Name: HH55 Guia Dossiê J8KRY1TS
Theme URI: https://hh55.buzz/
Author: HH55 Guia Brasil
Description: Tema editorial independente em estilo dossiê índigo para o HH55 Guia Brasil.
Version: 1.0.0
Text Domain: hh55-guia
*/

:root {
  --ink: #182235;
  --muted: #5c687b;
  --indigo: #182854;
  --indigo-deep: #0e1836;
  --paper: #f3f5f9;
  --panel: #ffffff;
  --soft: #e7ebf3;
  --line: #c5cedd;
  --accent: #5068da;
  --teal: #117f82;
  --amber: #c78823;
  --focus: #0b777b;
  --wide: 1180px;
  --reading: 780px;
  --radius: 10px;
  --shadow: 0 18px 44px rgba(20,34,76,.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #314bbd; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: #17328f; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-shell { width: min(calc(100% - 48px), var(--wide)); margin-inline: auto; }

.site-header { background: var(--indigo-deep); color: #fff; border-bottom: 1px solid rgba(255,255,255,.14); position: relative; z-index: 20; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.custom-logo-link { display: inline-flex; align-items: center; min-height: 52px; }
.custom-logo { width: auto; max-width: 280px; height: 54px; object-fit: contain; }
.brand-fallback { color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid rgba(255,255,255,.5); border-radius: 8px; background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.primary-nav ul { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: inline-flex; min-height: 48px; align-items: center; padding: 8px 10px; color: #f7f9ff; text-decoration: none; font-size: 14px; font-weight: 700; border-radius: 7px; }
.primary-nav a:hover, .primary-nav .current-menu-item a { background: rgba(255,255,255,.12); }

.cover { background: linear-gradient(135deg, var(--indigo-deep), var(--indigo) 62%, #213b70); color: #fff; padding: clamp(54px, 8vw, 100px) 0; }
.cover-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr); gap: clamp(36px, 6vw, 78px); align-items: center; }
.eyebrow { margin: 0 0 12px; color: #8fe5df; font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0 0 24px; font-size: clamp(38px, 5.3vw, 68px); line-height: 1.06; letter-spacing: -.035em; }
.cover p { max-width: 720px; margin: 0 0 18px; color: #e6ebfa; font-size: clamp(18px, 2vw, 21px); }
.cover-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 18px; border-radius: 7px; color: #fff; background: var(--teal); text-decoration: none; font-weight: 800; }
.button.alt { background: transparent; border: 1px solid rgba(255,255,255,.52); }
.hero-image { overflow: hidden; border-radius: var(--radius); box-shadow: 0 24px 64px rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.16); }
.hero-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.content-wrap { width: min(calc(100% - 48px), var(--wide)); margin: 0 auto; padding: clamp(54px, 7vw, 96px) 0; }
.article-body { width: min(100%, var(--reading)); margin-inline: auto; }
.article-body > section { margin: 0 0 clamp(58px, 8vw, 96px); scroll-margin-top: 28px; }
.article-body h2, .page-article h2 { position: relative; margin: 0 0 20px; padding-left: 22px; font-size: clamp(29px, 4vw, 43px); line-height: 1.15; letter-spacing: -.025em; }
.article-body h2::before, .page-article h2::before { content: ""; position: absolute; left: 0; top: .12em; bottom: .08em; width: 5px; background: linear-gradient(var(--accent), var(--teal)); border-radius: 4px; }
.article-body h3, .page-article h3 { margin: 34px 0 14px; font-size: clamp(22px, 2.5vw, 29px); line-height: 1.25; }
p { margin: 0 0 1.25em; }
.lede { font-size: 20px; color: #35435a; }
.editorial-figure { width: min(100%, 1040px); margin: 38px auto 48px; background: var(--panel); box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.editorial-figure img { width: 100%; aspect-ratio: 14/9; object-fit: cover; }
.editorial-figure figcaption { padding: 13px 18px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.wide-break { width: min(1040px, calc(100vw - 48px)); margin-left: 50%; transform: translateX(-50%); }
.note, .verdict { padding: 24px; background: #e8f4f3; border-left: 5px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; margin: 30px 0; }
.verdict { background: #fff4db; border-color: var(--amber); }
.link-panel { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin: 30px 0; }
.link-panel a { min-height: 64px; display: flex; align-items: center; padding: 15px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: #203ba7; font-weight: 800; text-decoration: none; }
.link-panel a:hover { border-color: var(--accent); box-shadow: 0 8px 22px rgba(44,65,150,.1); }

.table-wrap { width: min(1040px, calc(100vw - 48px)); margin: 32px 0 40px 50%; transform: translateX(-50%); overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; min-width: 680px; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--indigo); color: #fff; font-size: 15px; }
tr:last-child td { border-bottom: 0; }
ol.steps, ul.checklist { margin: 26px 0; padding-left: 26px; }
ol.steps li, ul.checklist li { margin-bottom: 14px; padding-left: 6px; }

.faq-section { margin-top: 74px; }
.faq-item { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); overflow: hidden; }
.faq-item summary { min-height: 54px; display: flex; align-items: center; padding: 13px 18px; font-weight: 800; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer { padding: 0 18px 18px; color: #35435a; }

.page-hero { background: linear-gradient(135deg, var(--indigo-deep), var(--indigo)); color: #fff; padding: clamp(48px, 7vw, 86px) 0; }
.page-hero .site-shell { max-width: 920px; }
.page-hero h1 { max-width: 900px; font-size: clamp(36px, 5vw, 61px); }
.page-hero p { max-width: 720px; margin: 0; color: #dfe5f7; font-size: 19px; }
.page-article { width: min(calc(100% - 48px), var(--reading)); margin: 0 auto; padding: clamp(48px, 7vw, 88px) 0; }
.page-article > :first-child { margin-top: 0; }
.source-list a { font-weight: 700; }

.site-footer { background: var(--indigo-deep); color: #dce3f6; padding: 54px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.footer-title { margin: 0 0 10px; color: #fff; font-size: 20px; font-weight: 800; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a, .site-footer a { color: #f2f5ff; }
.footer-note { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); font-size: 14px; color: #b7c2db; }

@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; padding-block: 10px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { display: none; width: 100%; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; padding-bottom: 12px; }
  .primary-nav a { width: 100%; }
  .cover-grid { grid-template-columns: 1fr; }
  .hero-image { max-width: 760px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; line-height: 1.68; }
  .site-shell, .content-wrap, .page-article { width: min(calc(100% - 32px), var(--wide)); }
  .custom-logo { max-width: 220px; height: 48px; }
  .cover { padding: 46px 0 56px; }
  .cover-grid { gap: 30px; }
  h1 { font-size: clamp(35px, 10vw, 44px); }
  .article-body > section { margin-bottom: 58px; }
  .article-body h2, .page-article h2 { font-size: 29px; padding-left: 17px; }
  .link-panel { grid-template-columns: 1fr; }
  .wide-break, .table-wrap { width: calc(100vw - 32px); }
  .editorial-figure { margin-block: 28px 38px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

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

