/*
Theme Name: 55ww Guia Editorial
Theme URI: https://55ww.buzz/
Author: 55ww.buzz
Description: Tema editorial independente em estilo esmeralda para o guia 55ww.
Version: 1.0.0
Text Domain: 55ww-guide
*/

:root {
  --bg: #071915;
  --surface: #0b211c;
  --surface-2: #102a24;
  --text: #f4f8f6;
  --muted: #afc2ba;
  --border: #29483e;
  --gold: #e8c45b;
  --mint: #3bc29a;
  --focus: #79e0be;
  --warning: #e0a54b;
  --content: 1180px;
  --article: 760px;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.78;
  overflow-wrap: anywhere;
}
body.menu-open { overflow: hidden; }
a { color: var(--mint); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 1000; padding: 10px 16px; background: var(--gold); color: #071915; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 100; height: 68px; background: rgba(7,25,21,.98); border-bottom: 1px solid var(--border); }
.header-inner, .site-footer-inner { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { color: var(--text); font-size: 1.65rem; font-weight: 850; letter-spacing: -.04em; text-decoration: none; }
.site-brand span { color: var(--gold); }
.primary-nav ul { display: flex; align-items: center; gap: 6px; padding: 0; margin: 0; list-style: none; }
.primary-nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 11px; color: var(--text); text-decoration: none; border-radius: 8px; font-size: .92rem; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--surface-2); color: var(--gold); }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--surface-2); font: inherit; font-weight: 700; }
.site-main { min-height: 65vh; }
.page-hero { padding: 78px 0 36px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #0b211c 0%, #071915 100%); }
.hero-inner { width: min(calc(100% - 40px), 900px); margin-inline: auto; }
.eyebrow { margin: 0 0 16px; color: var(--gold); text-transform: uppercase; letter-spacing: .13em; font-size: .78rem; font-weight: 800; }
h1 { max-width: 900px; margin: 0; font-size: clamp(2.45rem, 5.4vw, 4.25rem); line-height: 1.04; letter-spacing: -.045em; }
.hero-summary { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 18px; border: 1px solid var(--gold); border-radius: 8px; color: #071915; background: var(--gold); font-weight: 800; text-decoration: none; }
.button-link.secondary { color: var(--text); background: transparent; border-color: var(--border); }
.article-wrap { width: min(calc(100% - 40px), var(--article)); margin: 0 auto; padding: 52px 0 88px; }
.article-wrap > p:first-child { color: #dbe9e3; font-size: 1.08rem; }
.article-wrap h2 { position: relative; margin: 76px 0 22px; padding-top: 20px; font-size: clamp(1.75rem, 4vw, 2.45rem); line-height: 1.18; letter-spacing: -.03em; border-top: 1px solid var(--border); }
.article-wrap h2::before { content: ""; position: absolute; top: -1px; left: 0; width: 68px; height: 3px; background: var(--gold); }
.article-wrap h3 { margin: 38px 0 14px; color: var(--mint); font-size: 1.3rem; line-height: 1.35; }
.article-wrap p, .article-wrap li { color: #d9e5e0; }
.article-wrap li + li { margin-top: 9px; }
.article-wrap ol, .article-wrap ul { padding-left: 1.35rem; }
.content-image { width: min(100%, 900px); margin: 34px 0 12px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 18px 42px rgba(0,0,0,.2); }
.content-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.content-image.hero-image img { aspect-ratio: 16 / 9; }
.content-image figcaption { padding: 12px 16px; color: var(--muted); font-size: .82rem; }
.note { margin: 30px 0; padding: 20px 22px; border-left: 4px solid var(--gold); border-radius: 0 8px 8px 0; background: var(--surface-2); color: var(--text); }
.quick-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin: 28px 0; }
.quick-links a { display: block; min-height: 100%; padding: 20px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--surface); text-decoration: none; }
.quick-links a:hover { border-color: var(--gold); transform: translateY(-2px); }
details { margin: 12px 0; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
summary { min-height: 48px; padding: 13px 16px; color: var(--text); font-weight: 750; cursor: pointer; }
details p { padding: 0 16px 15px; margin: 0; }
.site-footer { border-top: 1px solid var(--border); background: #06130f; }
.site-footer-inner { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(260px,.7fr); gap: 64px; padding: 64px 0 34px; }
.footer-title { margin: 0 0 12px; font-size: 1.35rem; font-weight: 850; }
.footer-note { max-width: 650px; margin: 0; color: var(--muted); }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.footer-links a { min-height: 44px; display: flex; align-items: center; }
.footer-bottom { width: min(calc(100% - 40px), var(--content)); margin: 0 auto; padding: 20px 0 28px; border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; }
.error-page { min-height: 55vh; padding: 100px 20px; text-align: center; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { position: fixed; inset: 68px 0 auto 0; display: none; max-height: calc(100vh - 68px); overflow-y: auto; padding: 16px 20px 24px; border-bottom: 1px solid var(--border); background: var(--bg); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; }
  .primary-nav a { min-height: 48px; padding-inline: 14px; }
  .site-footer-inner { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-inner, .hero-inner, .article-wrap, .site-footer-inner, .footer-bottom { width: min(calc(100% - 32px), var(--content)); }
  .page-hero { padding: 52px 0 28px; }
  h1 { font-size: clamp(2.15rem, 11vw, 2.7rem); }
  .hero-summary { font-size: 1.03rem; }
  .hero-actions, .hero-actions a { width: 100%; }
  .article-wrap { padding: 38px 0 56px; }
  .article-wrap h2 { margin-top: 54px; }
  .quick-links { grid-template-columns: 1fr; }
  .footer-links { 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; }
}
