/*
Theme Name: Guia 5cbet Brasil ZfMtssiK
Theme URI: https://5cbet.buzz/
Author: Guia 5cbet Brasil
Description: Tema editorial independente criado para a execução ZfMtssiK.
Version: 1.0.0
Text Domain: guia-5cbet-zfmtssik
*/

:root {
  --paper: #f8f0e5;
  --surface: #fffdf8;
  --clay-soft: #efe1d2;
  --forest: #29453d;
  --forest-2: #3f6658;
  --terracotta: #a94f38;
  --terracotta-dark: #853c2b;
  --sage: #607d6e;
  --ochre: #c78d25;
  --ink: #2d2824;
  --muted: #665f58;
  --line: #d9c8b6;
  --focus: #174f3c;
  --shadow: 0 16px 38px rgba(80, 50, 35, .12);
  --wide: 1180px;
  --read: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans", "DejaVu Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.74;
  text-rendering: optimizeLegibility;
}
a { color: var(--terracotta-dark); text-decoration-thickness: .09em; text-underline-offset: .2em; }
a:hover { color: var(--forest); }
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; }
.site-shell { width: min(var(--wide), calc(100% - 48px)); margin-inline: auto; }
.read-column { width: min(var(--read), 100%); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255, 253, 248, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.custom-logo-link { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 48px; }
.custom-logo { width: auto; height: 52px; max-width: 300px; object-fit: contain; }
.site-name-fallback { color: var(--forest); font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--forest); border-radius: 12px; background: var(--surface); color: var(--forest); font: inherit; font-weight: 700; }
.primary-menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-menu a { display: flex; align-items: center; min-height: 48px; padding: 9px 11px; color: var(--ink); border-radius: 10px; font-size: .84rem; font-weight: 700; text-decoration: none; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { background: var(--clay-soft); color: var(--terracotta-dark); }

.site-main { display: block; }
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 8vw, 104px);
  background: radial-gradient(circle at 86% 20%, rgba(199,141,37,.16), transparent 32%), var(--paper);
  overflow: hidden;
}
.hero::after { content: ""; position: absolute; right: -8vw; bottom: -15vw; width: 48vw; height: 38vw; border-radius: 50% 50% 0 0; background: rgba(169,79,56,.08); transform: rotate(-8deg); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .86fr) minmax(420px, 1.14fr); gap: clamp(34px, 6vw, 76px); align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--terracotta-dark); font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { color: var(--forest); line-height: 1.14; text-wrap: balance; }
h1 { margin: 0 0 22px; font-size: clamp(2.35rem, 5.2vw, 4.15rem); letter-spacing: -.045em; }
h2 { margin: 0 0 22px; font-size: clamp(1.7rem, 3.1vw, 2.7rem); letter-spacing: -.025em; }
h3 { margin: 32px 0 12px; font-size: clamp(1.25rem, 2vw, 1.62rem); }
p { margin: 0 0 1.25em; }
.hero-copy > p:first-of-type { font-size: clamp(1.04rem, 1.7vw, 1.24rem); color: #494139; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button-link { display: inline-flex; align-items: center; min-height: 48px; padding: 11px 18px; border-radius: 999px; background: var(--forest); color: #fff; font-weight: 800; text-decoration: none; }
.button-link:hover { background: var(--terracotta-dark); color: #fff; }
.hero-media { margin: 0; position: relative; }
.hero-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 44% 20% 32% 18% / 28% 26% 42% 24%; box-shadow: var(--shadow); }

.content-section { position: relative; padding: clamp(58px, 8vw, 102px) 0; }
.content-section:nth-child(even) { background: var(--surface); }
.content-section.soft { background: var(--clay-soft); }
.content-section.dark { background: var(--forest); color: #f7f2e9; }
.content-section.dark h2, .content-section.dark h3 { color: #fff9ed; }
.content-section.dark a { color: #ffcf9e; }
.section-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr); gap: clamp(34px, 6vw, 74px); align-items: start; }
.section-grid.reverse .section-copy { order: 2; }
.section-grid.reverse .editorial-figure { order: 1; }
.section-copy > *:last-child, .page-content > *:last-child { margin-bottom: 0; }
.editorial-figure { margin: 0; }
.editorial-figure img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 34px 14px 42px 18px; box-shadow: var(--shadow); }
.editorial-figure figcaption { margin-top: 10px; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.dark .editorial-figure figcaption { color: #e3d9ce; }
.callout { margin: 28px 0; padding: 24px; border-left: 6px solid var(--terracotta); border-radius: 0 22px 22px 0; background: #fff8ef; }
.dark .callout { background: rgba(255,255,255,.09); border-left-color: var(--ochre); }
.link-band { margin-top: 32px; padding: 22px; border-radius: 18px; background: rgba(96,125,110,.12); }
.link-band a { font-weight: 800; }

.page-hero { padding: clamp(44px, 7vw, 82px) 0 40px; background: linear-gradient(135deg, var(--clay-soft), var(--paper)); border-bottom: 1px solid var(--line); }
.page-hero .read-column { margin-left: max(24px, calc((100% - min(var(--wide), calc(100% - 48px))) / 2)); }
.page-hero p { color: var(--muted); max-width: 66ch; font-size: 1.08rem; }
.page-content { width: min(var(--read), calc(100% - 48px)); margin: 0 auto; padding: clamp(48px, 7vw, 86px) 0 clamp(70px, 9vw, 112px); }
.page-content > h2 { margin-top: 68px; }
.page-content > h2:first-child { margin-top: 0; }
.page-content > h3 { margin-top: 38px; }
.page-content ul, .page-content ol { padding-left: 1.35em; }
.page-content li { margin-bottom: .7em; }
.page-content table { width: 100%; margin: 30px 0; border-collapse: collapse; background: var(--surface); box-shadow: 0 10px 28px rgba(80,50,35,.08); }
.page-content th, .page-content td { padding: 15px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.page-content th { background: var(--forest); color: #fff; }
.asset-panel { margin: 36px calc(50% - 50vw); padding: 34px max(24px, calc((100vw - min(980px, calc(100vw - 48px))) / 2)); background: var(--clay-soft); }
.asset-panel table { width: min(980px, 100%); margin-inline: auto; }

.faq-section { padding: clamp(64px, 8vw, 100px) 0; background: var(--surface); }
.faq-list { width: min(880px, 100%); margin: 34px auto 0; }
.faq-item { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: clip; }
.faq-item summary { cursor: pointer; min-height: 56px; padding: 18px 52px 18px 20px; color: var(--forest); font-weight: 800; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 15px; font-size: 1.45rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 20px 20px; }

.site-footer { padding: 64px 0 26px; background: var(--forest); color: #f3ece2; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.site-footer h2 { color: #fff; font-size: 1.35rem; }
.site-footer a { color: #ffd2a5; }
.footer-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 22px; margin: 0; padding: 0; list-style: none; }
.footer-menu a { display: inline-flex; min-height: 44px; align-items: center; }
.footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); font-size: .82rem; color: #ded5ca; }

@media (max-width: 1040px) {
  body { font-size: 17px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-navigation { position: absolute; inset: 77px 0 auto; display: none; padding: 18px 24px 24px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .primary-navigation.is-open { display: block; }
  .primary-menu { align-items: stretch; flex-direction: column; }
  .primary-menu a { font-size: 1rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-media { max-width: 900px; }
}

@media (max-width: 768px) {
  .site-shell, .page-content { width: min(100% - 32px, var(--wide)); }
  .custom-logo { height: 44px; max-width: 235px; }
  .hero { padding-top: 42px; }
  .hero-grid, .section-grid { grid-template-columns: 1fr; gap: 30px; }
  .section-grid.reverse .section-copy, .section-grid.reverse .editorial-figure { order: initial; }
  .hero-media img, .editorial-figure img { border-radius: 24px 12px 30px 14px; }
  .page-hero .read-column { width: auto; margin-inline: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-menu { grid-template-columns: 1fr; }
  .page-content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .asset-panel { margin-inline: calc(50% - 50vw); padding-inline: 16px; }
}

@media (max-width: 390px) {
  body { font-size: 16px; }
  .header-inner { min-height: 70px; }
  .primary-navigation { top: 71px; }
  .custom-logo { max-width: 205px; height: 40px; }
  h1 { font-size: clamp(2rem, 10.3vw, 2.55rem); }
  .hero-actions { display: grid; }
  .button-link { justify-content: center; text-align: center; }
}

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