/*
Theme Name: 35t Independent Guide
Theme URI: https://35t.cam/
Author: 35t.cam Editorial
Description: Tema editorial independente em pt-BR para o guia 35t.cam.
Version: 1.0.0
Text Domain: 35t-guide
*/

:root {
  --bg: #071915;
  --surface: #0b211c;
  --surface-2: #102a24;
  --surface-3: #15372f;
  --gold: #e8c45b;
  --mint: #3bc29a;
  --text: #f4f8f6;
  --muted: #afc2ba;
  --border: #29483e;
  --focus: #79e0be;
  --warning: #e0a54b;
  --max: 1180px;
  --article: 760px;
  --shadow: 0 18px 42px rgba(0, 0, 0, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.78;
  overflow-wrap: break-word;
}
body.menu-open { overflow: hidden; }
a { color: #8de7ca; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: #fff; }
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; left: 16px; top: -80px; z-index: 1000; background: #fff; color: #071915; padding: 10px 16px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 100; min-height: 68px; background: rgba(7, 25, 21, .97); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.header-inner { width: min(calc(100% - 40px), var(--max)); min-height: 68px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.custom-logo-link { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 48px; }
.custom-logo { width: 116px; max-height: 48px; object-fit: contain; }
.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 11px; color: var(--text); text-decoration: none; border-radius: 8px; font-weight: 700; font-size: 15px; }
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--surface-3); color: var(--gold); }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: 25px; cursor: pointer; }

main { min-height: 65vh; }
.article-shell { width: min(calc(100% - 40px), var(--article)); margin: 0 auto; }
.wide-shell { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.hero { padding: 90px 0 42px; border-bottom: 1px solid var(--border); }
.hero .article-shell { margin-left: max(20px, calc((100% - min(1180px, calc(100% - 40px))) / 2)); }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: 13px; line-height: 1.4; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0 0 24px; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.05; letter-spacing: -.035em; }
.page-title { font-size: clamp(36px, 4.6vw, 58px); }
h2 { margin: 0 0 24px; padding-top: 4px; font-size: clamp(29px, 3.6vw, 43px); line-height: 1.16; letter-spacing: -.025em; }
h2::before { content: ""; display: block; width: 54px; height: 3px; margin: 0 0 18px; background: var(--gold); border-radius: 3px; }
h3 { margin: 34px 0 12px; color: #89dfc2; font-size: 22px; line-height: 1.3; }
p, ul, ol { margin: 0 0 22px; }
.lead { color: #dce9e4; font-size: clamp(18px, 2vw, 21px); line-height: 1.72; }
.hero-actions, .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px; border: 1px solid var(--gold); border-radius: 8px; background: var(--gold); color: #071915; text-decoration: none; font-weight: 850; }
.button:hover { background: #f7d979; color: #071915; }
.button.secondary { background: transparent; color: var(--text); border-color: var(--border); }
.button.secondary:hover { border-color: var(--mint); color: #fff; }
.hero-media { width: min(calc(100% - 40px), var(--max)); margin: 44px auto 0; }
.hero-media img, .editorial-image img { width: 100%; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); object-fit: cover; }
.hero-media img { aspect-ratio: 16 / 9; }
.editorial-image { margin: 34px 0; }
.editorial-image img { aspect-ratio: 3 / 2; }
figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }

.content-section { padding: 82px 0; border-bottom: 1px solid var(--border); }
.content-section.alt { background: var(--surface); }
.content-section.compact { padding: 58px 0; }
.section-kicker { display: inline-block; margin-bottom: 15px; color: var(--mint); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.notice { margin: 28px 0; padding: 22px 24px; border-left: 4px solid var(--gold); background: var(--surface-3); border-radius: 0 8px 8px 0; }
.notice p:last-child { margin-bottom: 0; }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.fact-card { padding: 22px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; }
.fact-card strong { display: block; margin-bottom: 7px; color: var(--gold); }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--border); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--mint); font-weight: 900; }
ol.steps { counter-reset: steps; list-style: none; padding: 0; }
ol.steps li { position: relative; min-height: 54px; padding: 8px 0 18px 58px; }
ol.steps li::before { counter-increment: steps; content: counter(steps); position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-weight: 900; }
.table-wrap { overflow-x: auto; margin: 30px 0; border: 1px solid var(--border); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 650px; background: var(--surface); }
th, td { padding: 16px 18px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--gold); background: var(--surface-2); font-size: 14px; }
tr:last-child td { border-bottom: 0; }
.faq-list details { margin: 0 0 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.faq-list summary { display: flex; align-items: center; min-height: 56px; padding: 12px 18px; cursor: pointer; color: var(--text); font-weight: 800; }
.faq-list details > div { padding: 0 18px 18px; color: #d9e5e0; }
.faq-list details > div p:last-child { margin-bottom: 0; }
.sitecore-card { margin: 34px 0; padding: 24px; border: 1px solid var(--border); background: var(--surface-2); border-radius: 16px; }

.site-footer { padding: 62px 0 28px; border-top: 1px solid var(--border); background: #061410; }
.footer-grid { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 42px; }
.footer-grid h2 { font-size: 18px; margin-bottom: 15px; }
.footer-grid h2::before { width: 28px; margin-bottom: 10px; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #dce9e4; }
.footer-note { color: var(--muted); font-size: 15px; }
.copyright { width: min(calc(100% - 40px), var(--max)); margin: 34px auto 0; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }

.error-page { padding: 110px 0; text-align: center; }
.error-page p { max-width: 600px; margin: 0 auto 24px; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .main-nav { position: fixed; inset: 69px 0 auto; max-height: calc(100vh - 69px); overflow-y: auto; padding: 18px 20px 28px; background: #071915; border-bottom: 1px solid var(--border); transform: translateY(-120%); visibility: hidden; transition: transform .2s ease, visibility .2s ease; }
  .main-nav.is-open { transform: translateY(0); visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { width: 100%; min-height: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .fact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-inner, .article-shell, .wide-shell, .hero-media, .footer-grid, .copyright { width: calc(100% - 32px); }
  .custom-logo { width: 102px; }
  .hero { padding: 58px 0 30px; }
  .hero .article-shell { margin-left: 16px; }
  h1 { font-size: clamp(34px, 11vw, 42px); }
  .content-section { padding: 48px 0; }
  .hero-actions, .cta-row { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .footer-about { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
