/*
Theme Name: Atlas 78f
Theme URI: https://78f.buzz/
Author: 78f Editorial
Description: Tema editorial independente para o guia 78f.
Version: 1.0.0
Text Domain: atlas78f
*/

:root {
  --bg: #07111f;
  --bg-soft: #0d1b2d;
  --panel: #12243a;
  --panel-strong: #17314d;
  --cyan: #55d7ed;
  --violet: #988cff;
  --coral: #ff8d75;
  --text: #f6f8fc;
  --muted: #bdc9d8;
  --border: #31506f;
  --info: #13324a;
  --warn: #f5c36b;
  --focus: #a5efff;
  --wide: 1220px;
  --read: 760px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow: 0 18px 48px rgba(0,0,0,.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 8%, rgba(85,215,237,.09), transparent 26rem),
    radial-gradient(circle at 8% 38%, rgba(152,140,255,.08), transparent 24rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
a { color: var(--cyan); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: #a5efff; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 5px; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 9999; transform: translateY(-150%); padding: .75rem 1rem; background: var(--text); color: var(--bg); }
.skip-link:focus { transform: none; }
.site-shell { width: min(calc(100% - 40px), var(--wide)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 50; min-height: 68px; background: rgba(7,17,31,.94); border-bottom: 1px solid rgba(49,80,111,.75); backdrop-filter: blur(12px); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--text); text-decoration: none; font-size: 1.45rem; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { width: 13px; height: 13px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--violet)); box-shadow: 0 0 0 6px rgba(85,215,237,.08); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 12px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; font-size: .93rem; font-weight: 650; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--cyan); }
.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--panel); cursor: pointer; }
.menu-toggle span { display: block; width: 21px; height: 2px; margin: 4px auto; background: currentColor; }
.site-main { min-height: 68vh; }
.hero { padding: clamp(46px, 7vw, 92px) 0 44px; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.hero-copy { grid-column: span 7; min-width: 0; }
.hero-visual { grid-column: span 5; min-width: 0; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--cyan); font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--coral); }
h1, h2, h3 { margin-top: 0; color: var(--text); line-height: 1.13; letter-spacing: -.035em; text-wrap: balance; }
h1 { margin-bottom: 22px; font-size: clamp(2.35rem, 5.1vw, 4.05rem); }
h2 { margin-bottom: 20px; font-size: clamp(1.75rem, 3.2vw, 2.65rem); }
h3 { margin-bottom: 12px; font-size: clamp(1.18rem, 2vw, 1.45rem); }
p, ul, ol { margin-top: 0; margin-bottom: 1.2em; }
.lead { max-width: 720px; color: #d8e2ed; font-size: clamp(1.05rem, 1.8vw, 1.23rem); line-height: 1.68; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 19px; border: 1px solid transparent; border-radius: 12px; background: var(--cyan); color: #06131d; text-decoration: none; font-weight: 800; }
.button:hover { background: #a5efff; color: #06131d; transform: translateY(-1px); }
.button-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.button-secondary:hover { background: var(--panel); color: var(--text); }
.media-card { margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow); }
.media-card img { width: 100%; aspect-ratio: 14 / 9; object-fit: cover; }
.media-card.is-hero img { aspect-ratio: 16 / 9; }
.media-card figcaption { padding: 10px 14px 13px; color: var(--muted); font-size: .82rem; }
.disclosure { margin: 0 0 42px; padding: 17px 20px; border: 1px solid var(--border); border-left: 4px solid var(--coral); border-radius: var(--radius-sm); background: var(--info); color: #dce8f3; }
.content-section { padding: clamp(50px, 7vw, 88px) 0; scroll-margin-top: 86px; }
.content-section + .content-section { border-top: 1px solid rgba(49,80,111,.48); }
.reading { width: min(100%, var(--read)); }
.reading.center { margin-inline: auto; }
.section-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 24px; align-items: start; }
.section-grid .copy { grid-column: span 7; min-width: 0; }
.section-grid .visual { grid-column: 8 / span 5; min-width: 0; position: sticky; top: 98px; }
.section-grid.reverse .visual { grid-column: 1 / span 5; grid-row: 1; }
.section-grid.reverse .copy { grid-column: 6 / span 7; grid-row: 1; }
.task-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin: 28px 0; }
.task-link { min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(145deg, var(--panel), rgba(23,49,77,.82)); color: var(--text); text-decoration: none; }
.task-link:hover { border-color: var(--cyan); color: var(--text); transform: translateY(-2px); }
.task-link strong { display: block; margin-bottom: 5px; color: var(--cyan); }
.note, .checklist { margin: 26px 0; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--info); }
.note strong, .checklist strong { color: var(--cyan); }
.checklist ul { columns: 2; gap: 32px; margin-bottom: 0; padding-left: 1.25rem; }
.steps { counter-reset: steps; list-style: none; padding: 0; }
.steps li { position: relative; min-height: 54px; margin-bottom: 14px; padding: 14px 16px 14px 62px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.steps li::before { counter-increment: steps; content: counter(steps); position: absolute; top: 12px; left: 14px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--violet); color: #08111f; font-weight: 900; }
.faq-list { display: grid; gap: 12px; margin-top: 28px; }
details { border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
summary { min-height: 52px; padding: 14px 46px 14px 18px; cursor: pointer; color: var(--text); font-weight: 750; }
details p { padding: 0 18px 18px; margin: 0; color: #d3ddea; }
.page-hero { padding: clamp(44px, 6vw, 76px) 0 32px; }
.page-hero .hero-copy { grid-column: span 7; }
.page-content { padding-bottom: clamp(64px, 9vw, 112px); }
.page-content > .content-section:first-child { padding-top: 36px; }
.home-return { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--border); }
.site-footer { border-top: 1px solid var(--border); background: #050c16; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
.footer-brand p { max-width: 460px; color: var(--muted); }
.footer-title { margin: 0 0 12px; color: var(--text); font-size: .82rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 7px; }
.footer-links a { color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0 28px; border-top: 1px solid rgba(49,80,111,.48); color: var(--muted); font-size: .86rem; }
.error-page { width: min(calc(100% - 40px), 760px); margin: 0 auto; padding: 100px 0; text-align: center; }
.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; }
.at-symbol::before { content: "@"; }

@media (max-width: 1023px) {
  .main-nav { position: fixed; inset: 69px 0 auto; display: none; padding: 18px 20px 24px; background: #08111f; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .main-nav.is-open { display: grid; }
  .main-nav a { padding-inline: 14px; border: 1px solid transparent; border-radius: 10px; }
  .main-nav a:hover, .main-nav a[aria-current="page"] { border-color: var(--border); background: var(--panel); }
  .menu-toggle { display: block; }
  .hero-copy, .page-hero .hero-copy { grid-column: span 7; }
  .hero-visual { grid-column: span 5; }
}

@media (max-width: 839px) {
  .site-shell { width: min(calc(100% - 48px), var(--wide)); }
  .hero-grid, .section-grid { grid-template-columns: 1fr; }
  .hero-copy, .hero-visual, .page-hero .hero-copy, .section-grid .copy, .section-grid .visual, .section-grid.reverse .copy, .section-grid.reverse .visual { grid-column: 1; grid-row: auto; }
  .section-grid .visual { position: static; }
  .hero-visual { margin-top: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 599px) {
  body { font-size: 16px; }
  .site-shell { width: min(calc(100% - 32px), var(--wide)); }
  .header-inner { min-height: 66px; }
  .main-nav { top: 67px; }
  .hero { padding-top: 42px; }
  h1 { font-size: clamp(2.05rem, 11vw, 2.72rem); }
  h2 { font-size: clamp(1.68rem, 8vw, 2.1rem); }
  .task-links { grid-template-columns: 1fr; }
  .checklist ul { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-bottom: 6px; }
}

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