/*
Theme Name: Guia 5rbet Brasil 2026
Theme URI: https://5rbet.buzz/
Author: Guia 5rbet Brasil
Description: Tema editorial original, móvel primeiro, criado para a reconstrução de agosto de 2026.
Version: 1.0.0
Text Domain: guia-5rbet
*/

:root {
  --bg: #f3f7f6;
  --paper: #ffffff;
  --soft: #e7f3ef;
  --ink: #142b2a;
  --muted: #637572;
  --deep: #123c3a;
  --primary: #167d72;
  --violet: #6d5bd0;
  --amber: #f0b84a;
  --line: #d3e3df;
  --focus: #5a46c8;
  --shadow: 0 14px 34px rgba(20,70,65,.10);
  --radius: 14px;
  --wide: 1140px;
  --reading: 780px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: "Noto Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.72; }
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: #0e675f; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--violet); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
p, li { overflow-wrap: anywhere; }
.wrap { width: min(calc(100% - 32px), var(--wide)); margin-inline: auto; }
.reading { width: min(100%, var(--reading)); }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; transform: translateY(-160%); padding: 10px 14px; border-radius: 8px; background: var(--paper); color: var(--ink); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 50; min-height: 68px; background: rgba(18,60,58,.98); color: #fff; box-shadow: 0 8px 22px rgba(12,42,40,.18); }
.header-inner { min-height: 68px; display: flex; align-items: center; gap: 20px; }
.brand { flex: 0 0 auto; text-decoration: none; }
.brand img { width: 222px; max-height: 52px; object-fit: contain; object-position: left center; }
.brand-text { font-size: 1.05rem; font-weight: 850; color: #fff; letter-spacing: -.02em; }
.menu-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; background: transparent; color: #fff; font: inherit; font-weight: 800; }
.primary-nav { margin-left: auto; min-width: 0; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; padding: 0; margin: 0; list-style: none; }
.primary-nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: 10px; color: #fff; font-size: .82rem; font-weight: 760; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: rgba(255,255,255,.13); color: #fff; }

main { min-width: 0; }
.hero { position: relative; padding: 76px 0 0; background: linear-gradient(145deg, var(--deep) 0%, #0f5a55 68%, #167d72 100%); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 420px; height: 420px; right: -110px; top: -220px; border-radius: 50%; background: rgba(240,184,74,.16); }
.hero-copy { position: relative; z-index: 1; width: min(100%, 900px); padding-bottom: 48px; }
.eyebrow { margin: 0 0 12px; color: #b8e8df; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
h1 { max-width: 950px; margin: 0 0 22px; font-size: clamp(2.55rem, 5.5vw, 4.25rem); line-height: 1.04; letter-spacing: -.048em; }
.hero .lead { max-width: 780px; margin: 0; font-size: clamp(1.05rem, 2vw, 1.28rem); color: #e8f7f4; }
.hero-figure { position: relative; z-index: 2; width: min(calc(100% - 32px), var(--wide)); margin: 0 auto -38px; }
.hero-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 6px solid rgba(255,255,255,.15); border-radius: 22px; box-shadow: 0 22px 56px rgba(5,25,24,.35); }
.hero-figure figcaption, .editorial-image figcaption { margin-top: 8px; color: var(--muted); font-size: .83rem; }
.hero-figure figcaption { color: #d9f0ec; }

.home-content { padding-top: 86px; }
.content-section { padding: 58px 0; scroll-margin-top: 88px; }
.content-section:nth-of-type(even) { background: var(--soft); }
.content-section.deep-band { background: var(--deep); color: #fff; }
.content-section.deep-band a { color: #8ce1d2; }
.content-section h2, .article-body h2 { position: relative; margin: 0 0 22px; font-size: clamp(1.75rem, 3.5vw, 2.6rem); line-height: 1.14; letter-spacing: -.032em; }
.content-section h2::before, .article-body h2::before { content: ""; display: block; width: 52px; height: 5px; margin-bottom: 15px; border-radius: 6px; background: linear-gradient(90deg, var(--primary), var(--violet)); }
.content-section p { max-width: var(--reading); }
.editorial-image { width: min(100%, 920px); margin: 34px 0 12px; }
.editorial-image img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.featured-image { width: min(100%, 1040px); }
.featured-image img { aspect-ratio: 16/9; }
.editorial-image.mobile-image img { object-position: center; }

.article-header { padding: 64px 0 38px; background: linear-gradient(145deg, var(--deep), #17675f); color: #fff; }
.article-header h1 { font-size: clamp(2.35rem, 5vw, 3.8rem); }
.article-header .lead { max-width: 760px; color: #d9efeb; }
.article-body { width: min(calc(100% - 32px), 900px); margin: 0 auto; padding: 52px 0 76px; }
.article-body > p:first-of-type { font-size: 1.12rem; color: #244947; }
.article-body h2 { margin-top: 58px; scroll-margin-top: 88px; }
.article-body h3 { margin-top: 36px; font-size: 1.35rem; }

table { width: 100%; border-collapse: collapse; margin: 30px 0; background: var(--paper); box-shadow: 0 9px 24px rgba(20,70,65,.07); }
th, td { padding: 14px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--deep); color: #fff; font-size: .9rem; }
tbody tr:nth-child(even) { background: #f7faf9; }
.table-scroll { width: 100%; overflow-x: auto; margin: 28px 0; border-radius: var(--radius); }
.table-scroll table { min-width: 680px; margin: 0; }

.faq { padding: 64px 0 76px; background: #ece9fb; }
.faq h2 { max-width: var(--wide); margin-inline: auto; }
.faq-list { display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid #d8d2f1; border-radius: var(--radius); box-shadow: 0 8px 18px rgba(70,55,130,.06); }
.faq summary { cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 820; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 1.55rem; color: var(--violet); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 20px 20px; }

.core-page .article-body { min-height: 52vh; }
.core-page .article-body p { max-width: 760px; }
.contact-box { padding: 22px; border-left: 5px solid var(--violet); border-radius: 0 var(--radius) var(--radius) 0; background: var(--soft); }

.site-footer { padding: 48px 0 28px; background: #0d302e; color: #d9ece9; }
.footer-grid { display: grid; grid-template-columns: minmax(260px,1.2fr) minmax(240px,1fr); gap: 36px; align-items: start; }
.site-footer strong { display: block; color: #fff; font-size: 1.12rem; }
.site-footer p { margin: 8px 0; }
.site-footer a { color: #e8d58e; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; }
.copyright { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); color: #acc4c0; font-size: .84rem; }

@media (max-width: 980px) {
  .site-header, .header-inner { min-height: 58px; }
  .brand img { width: 190px; max-height: 44px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .primary-nav { position: fixed; inset: 58px 0 0; display: none; padding: 18px 16px 32px; background: #0d302e; overflow-y: auto; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; align-items: stretch; gap: 7px; }
  .primary-nav a { min-height: 48px; padding: 12px 14px; font-size: 1rem; white-space: normal; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { width: min(calc(100% - 32px), var(--wide)); }
  .hero { padding-top: 48px; }
  .hero-copy { padding-bottom: 32px; }
  h1 { font-size: clamp(2.15rem, 11vw, 2.75rem); }
  .hero-figure { margin-bottom: -22px; }
  .hero-figure img { border-width: 3px; border-radius: 14px; aspect-ratio: 4/3; object-position: center; }
  .home-content { padding-top: 58px; }
  .content-section { padding: 42px 0; }
  .content-section h2, .article-body h2 { font-size: 1.72rem; }
  .article-header { padding: 44px 0 28px; }
  .article-header h1 { font-size: 2.28rem; }
  .article-body { padding-top: 38px; }
  .article-body h2 { margin-top: 44px; }
  .editorial-image { margin-top: 24px; }
  .editorial-image img { border-radius: 12px; aspect-ratio: 4/3; }
  .faq { padding: 46px 0 56px; }
  th, td { padding: 11px 12px; }
}

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