/*
Theme Name: Win444 Emerald Guide
Theme URI: https://win444.homes/
Author: win444.homes
Description: Tema editorial independente em pt-BR para o guia win444.
Version: 1.0.0
Text Domain: win444-guide
*/

:root {
  --bg: #105917;
  --header: #0c4306;
  --nav: #148400;
  --surface: #0a4710;
  --surface-2: #0d3712;
  --lime: #e9ff19;
  --lime-2: #5cf10f;
  --orange: #ff6d2d;
  --cyan: #09eaa1;
  --text: #fff;
  --muted: #d5e8c4;
  --border: #4fba34;
  --focus: #f4ff76;
  --max: 1040px;
  --read: 820px;
  --shadow: 0 20px 45px rgba(0, 0, 0, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 8%, rgba(92, 241, 15, .15), transparent 30rem),
    linear-gradient(180deg, var(--bg), #07350d 72%, #052609);
  font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
body.menu-open { overflow: hidden; }
a { color: var(--lime); text-underline-offset: .2em; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
img { display: block; max-width: 100%; height: auto; }
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 999; padding: .7rem 1rem; background: #fff; color: #07350d; }
.skip-link:focus { top: 1rem; }
.site-shell { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.site-header { background: var(--header); border-bottom: 1px solid rgba(233, 255, 25, .25); position: relative; z-index: 20; }
.brand-row { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo { color: #fff; text-decoration: none; font-size: clamp(2.8rem, 7vw, 4.4rem); font-weight: 900; line-height: 1; letter-spacing: -.08em; }
.site-logo span { color: var(--lime); }
.site-logo img { width: min(280px, 44vw); height: auto; max-height: 64px; object-fit: contain; }
.header-cta, .button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .45rem;
  padding: .65rem 1.15rem; border: 2px solid transparent; border-radius: 999px;
  background: var(--orange); color: #fff; text-decoration: none; font-weight: 800; line-height: 1.25;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18); transition: transform .2s ease, filter .2s ease;
}
.header-cta:hover, .button:hover { color: #fff; filter: brightness(1.08); transform: translateY(-2px); }
.button.secondary, .button-secondary { background: transparent; border-color: var(--lime); color: var(--lime); }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--border); border-radius: 12px; background: #073b0b; color: #fff; font: inherit; font-weight: 800; }
.nav-row { background: var(--nav); }
.primary-nav { display: flex; align-items: center; justify-content: center; min-height: 50px; }
.primary-nav ul { display: flex; align-items: center; justify-content: center; gap: clamp(22px, 4vw, 34px); list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 48px; color: #fff; text-decoration: none; font-weight: 800; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--lime); }
.mobile-only { display: none; }
main { min-height: 60vh; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); width: min(calc(100% - 32px), var(--max)); margin: 30px auto 42px; min-height: 390px; overflow: hidden; border: 1px solid rgba(233,255,25,.35); border-radius: 26px; box-shadow: var(--shadow); background: #032509; }
.hero img { grid-column: 2; grid-row: 1; align-self: center; width: 100%; height: auto; object-fit: contain; }
.hero-content { position: relative; z-index: 2; grid-column: 1; grid-row: 1; width: auto; padding: clamp(36px, 6vw, 64px); background: linear-gradient(90deg, rgba(3,37,9,.98), rgba(3,37,9,.86)); }
.eyebrow { margin: 0 0 .45rem; color: var(--cyan); font-size: .82rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3 { margin: 0 0 .75em; line-height: 1.13; letter-spacing: -.025em; text-wrap: balance; scroll-margin-top: 24px; }
h1 { font-size: clamp(2.25rem, 5.5vw, 4.6rem); font-weight: 900; }
h2 { margin-top: 1.8em; color: var(--cyan); font-size: clamp(1.65rem, 3.5vw, 2.5rem); }
h3 { margin-top: 1.5em; color: var(--lime); font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p, li { color: var(--muted); }
.hero p { max-width: 610px; color: #fff; }
.hero .lead { font-size: clamp(1rem, 2.2vw, 1.2rem); }
.hero-statement { padding: .8rem 1rem; border-left: 4px solid var(--lime); background: rgba(3, 37, 9, .62); font-size: .93rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.25rem; }
.content-wrap { width: min(calc(100% - 32px), var(--read)); margin-inline: auto; padding: 10px 0 64px; }
.page-intro { width: min(calc(100% - 32px), var(--read)); margin: 36px auto 10px; padding: clamp(28px, 5vw, 48px); border-left: 7px solid var(--lime); border-radius: 0 22px 22px 0; background: linear-gradient(135deg, #0a4710, #092e0e); box-shadow: var(--shadow); }
.page-intro h1 { font-size: clamp(2rem, 5vw, 3.7rem); }
.lead { color: #fff; font-size: 1.08rem; }
.content-section { margin: 0 0 36px; }
.content-section + .content-section { border-top: 1px solid rgba(79,186,52,.42); padding-top: 4px; }
.content-section > p:first-of-type { color: #fff; }
.section-image { margin: 26px 0 34px; overflow: hidden; border: 1px solid rgba(233,255,25,.28); border-radius: 18px; background: #062b0a; box-shadow: var(--shadow); }
.section-image img { width: 100%; }
.section-image figcaption { padding: .6rem 1rem; color: var(--muted); font-size: .84rem; }
.table-scroll { width: 100%; margin: 22px 0 30px; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 660px; border-collapse: collapse; background: rgba(4, 43, 9, .75); }
th, td { padding: .85rem 1rem; border-bottom: 1px solid rgba(79,186,52,.35); text-align: left; vertical-align: top; }
th { color: #062e0b; background: var(--cyan); font-size: .9rem; }
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.notice { margin: 24px 0; padding: 20px 22px; border-left: 5px solid var(--lime); border-radius: 0 12px 12px 0; background: rgba(233,255,25,.09); }
.notice strong { color: #fff; }
.evidence-grid, .task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0 32px; }
.evidence-card { min-width: 0; padding: 20px; border: 1px solid rgba(79, 186, 52, .62); border-radius: 14px; background: rgba(4, 43, 9, .72); }
.evidence-card h3 { margin-top: 0; }
.evidence-card p:last-child { margin-bottom: 0; }
.source-box { margin: 26px 0; padding: 22px; border: 1px solid var(--cyan); border-radius: 14px; background: rgba(9, 234, 161, .08); }
.source-box p { margin: .35rem 0; }
.source-box .button { margin-top: 1rem; }
.check-list { padding-left: 1.25rem; }
.check-list li { margin-bottom: .55rem; }
.faq-list { display: grid; gap: 12px; margin: 24px 0 34px; }
.faq-list details { border: 1px solid rgba(79, 186, 52, .62); border-radius: 12px; background: rgba(4, 43, 9, .72); }
.faq-list summary { min-height: 56px; padding: 15px 52px 15px 18px; cursor: pointer; color: #fff; font-weight: 850; list-style-position: inside; }
.faq-list details[open] summary { color: var(--lime); }
.faq-list details p { margin: 0; padding: 0 18px 18px; }
.internal-routes a { display: inline-flex; min-height: 46px; align-items: center; padding: .55rem .8rem; border: 1px solid rgba(79, 186, 52, .7); border-radius: 9px; background: rgba(4, 43, 9, .55); text-decoration: none; }
.steps { margin: 22px 0 32px; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; min-height: 70px; margin: 0 0 14px; padding: 15px 18px 15px 72px; border: 1px solid rgba(79,186,52,.55); border-radius: 12px; background: rgba(4,43,9,.68); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 16px; top: 14px; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--lime); color: #07350d; font-weight: 900; }
.steps strong { display: block; color: #fff; }
.link-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.updated { margin-top: 46px; padding-top: 18px; border-top: 1px solid rgba(79,186,52,.4); color: #b9d7aa; font-size: .9rem; }
.editorial-form { display: grid; gap: 16px; margin-top: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.editorial-form label { display: grid; gap: 6px; color: #fff; font-weight: 800; }
.editorial-form input, .editorial-form select, .editorial-form textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px; background: #052d09; color: #fff; font: inherit; }
.editorial-form textarea { min-height: 150px; resize: vertical; }
.form-status { padding: 14px 16px; border-radius: 9px; background: rgba(9,234,161,.14); border: 1px solid var(--cyan); color: #fff; }
.honeypot { position: absolute !important; left: -9999px !important; }
.site-footer { padding: 42px 0 28px; border-top: 1px solid var(--border); background: #052a09; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-brand { margin: 0 0 12px; color: #fff; font-size: 2rem; font-weight: 900; letter-spacing: -.05em; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; }
.footer-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(79,186,52,.35); font-size: .86rem; }
.not-found { min-height: 50vh; padding-block: 80px; }

body:has(> .site-bottom-cta) { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.site-bottom-cta {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 9990;
  width: min(calc(100% - 32px), 680px);
  transform: translateX(-50%);
  pointer-events: none;
}
.site-bottom-cta__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(233, 255, 25, .45);
  border-radius: 20px;
  background: rgba(3, 37, 9, .94);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .5);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}
.site-bottom-cta__button {
  display: inline-flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: .7rem 1rem;
  border: 2px solid transparent;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.site-bottom-cta__button:hover { color: #fff; filter: brightness(1.1); transform: translateY(-2px); }
.site-bottom-cta__login { border-color: var(--lime); background: #073b0b; }
.site-bottom-cta__register {
  background: var(--lime);
  color: #062e0b;
  box-shadow: 0 8px 22px rgba(233, 255, 25, .25);
}
.site-bottom-cta__register:hover { color: #062e0b; }

@media (max-width: 800px) {
  body { font-size: 16px; }
  body.menu-open { overflow: auto; }
  .brand-row { min-height: 78px; gap: 10px; }
  .site-logo { font-size: clamp(2.15rem, 11vw, 3rem); }
  .site-logo img { width: min(190px, 52vw); max-height: 44px; }
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-row { background: #0b520c; }
  .primary-nav { display: none; padding: 12px 0 18px; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .primary-nav a { justify-content: center; border: 1px solid rgba(79,186,52,.55); border-radius: 8px; background: rgba(4,43,9,.55); }
  .mobile-only { display: block; }
  .mobile-only a { background: var(--orange); }
  .hero { display: flex; min-height: 470px; margin-top: 18px; flex-direction: column; }
  .hero img { order: 2; width: 100%; height: auto; object-fit: contain; }
  .hero-content { order: 1; width: 100%; padding: 28px 22px; background: #032509; }
  .hero h1 { font-size: clamp(2rem, 10.5vw, 3.1rem); }
  .page-intro { margin-top: 20px; padding: 24px 20px; }
  .content-wrap { padding-bottom: 42px; }
  .field-row, .footer-grid, .evidence-grid, .task-grid { grid-template-columns: 1fr; }
  .steps li { padding-left: 66px; }
}

@media (max-width: 390px) {
  .site-shell, .content-wrap, .page-intro { width: min(calc(100% - 28px), var(--max)); }
  .primary-nav ul { grid-template-columns: 1fr; }
  .hero { min-height: 500px; border-radius: 18px; }
  .hero-content { padding: 24px 18px; }
  .button { width: 100%; text-align: center; }
  .button-row, .link-row { display: grid; }
  .faq-list summary { padding-left: 14px; padding-right: 14px; }
}

@media (max-width: 480px) {
  body:has(> .site-bottom-cta) { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .site-bottom-cta { bottom: max(8px, env(safe-area-inset-bottom)); width: calc(100% - 20px); }
  .site-bottom-cta__inner { gap: 8px; padding: 8px; border-radius: 16px; }
  .site-bottom-cta__button { min-height: 52px; padding: .65rem .55rem; font-size: .92rem; }
}

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