/* ============================================================
   Plataforma 567 Bet — style.css
   Cream paper · Amber #C8873A · Slate #2C3E50 · Nunito + Space Mono
   ============================================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 17px;
  line-height: 1.65;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: #F5F0E8;
  color: #2C3E50;
  min-height: 100vh;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: #C8873A;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { left: 8px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.25;
  color: #2C3E50;
}
h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h2 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h3 { font-size: clamp(1rem, 2.5vw, 1.25rem); }

/* Heading decoration: h2/h3 > span */
h2 > span, h3 > span {
  display: inline;
  border-bottom: 2px solid #C8873A;
  padding-bottom: 2px;
}

p { margin-bottom: 1rem; }
a { color: #C8873A; text-decoration: underline; }
a:hover { color: #2C3E50; }
strong { font-weight: 700; }

/* monospace accents */
code, .mono, .eyebrow-label, .stage-label, .card-date {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 0.8rem;
}

/* ---------- Site header ---------- */
.site-header {
  background: #2C3E50;
  color: #F5F0E8;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 3px solid #C8873A;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 64px;
  flex-wrap: nowrap;
}

/* Brand */
.brand-link {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.brand-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #F5F0E8;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-logo { height: 36px; width: auto; }

/* ---------- Nav details/summary ---------- */
.nav-details {
  flex: 1 1 auto;
  min-width: 0;
}

/* summary = toggle button */
.nav-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  border-radius: 6px;
  color: #F5F0E8;
  font-weight: 700;
  font-size: 0.9rem;
  min-height: 44px;
  min-width: 44px;
  user-select: none;
  background: transparent;
  border: 1px solid rgba(245,240,232,0.2);
}
.nav-toggle::-webkit-details-marker { display: none; }

.toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}
.toggle-icon span {
  display: block;
  height: 2px;
  background: #F5F0E8;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-details[open] .nav-toggle { background: rgba(200,135,58,0.2); }

/* nav menu — collapsed by default (details) */
.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  background: #2C3E50;
  border-top: 1px solid rgba(245,240,232,0.15);
  position: absolute;
  left: 0;
  right: 0;
  z-index: 300;
  padding: 0.5rem 1rem 1rem;
  box-shadow: 0 8px 24px rgba(44,62,80,0.3);
}

.nav-menu li { }

.nav-menu li a {
  display: block;
  color: #F5F0E8;
  text-decoration: none;
  padding: 10px 0;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(245,240,232,0.1);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-menu li a:hover { color: #C8873A; }

/* ---------- Header CTAs ---------- */
.header-ctas {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  border-radius: 6px;
  padding: 0 12px;
  min-height: 44px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1;
}

.cta-signup {
  background: #C8873A;
  color: #fff;
  border: 2px solid #C8873A;
}
.cta-signup:hover { background: #a96d28; border-color: #a96d28; color: #fff; }

.cta-login {
  background: transparent;
  color: #F5F0E8;
  border: 2px solid #F5F0E8;
}
.cta-login:hover { background: #F5F0E8; color: #2C3E50; }

/* ---------- Layout: sidebar + content ---------- */
.layout-with-sidebar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
}

/* Sidebar to the LEFT */
.sidebar {
  flex: 0 0 220px;
  order: -1;
  position: sticky;
  top: 80px;
  align-self: flex-start;
}

.sidebar-inner {
  background: #fff;
  border: 1px solid #e0d8cc;
  border-radius: 10px;
  padding: 1.25rem;
  border-left: 4px solid #C8873A;
}

.sidebar-heading {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: #2C3E50;
}

.sidebar-links {
  list-style: none;
}
.sidebar-links li { margin-bottom: 0.35rem; }
.sidebar-links a {
  font-size: 0.88rem;
  color: #2C3E50;
  text-decoration: none;
  display: block;
  padding: 6px 0;
  border-bottom: 1px dashed #e0d8cc;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.sidebar-links a:hover { color: #C8873A; text-decoration: underline; }

.sidebar-deco {
  margin-top: 1rem;
  height: 3px;
  background: repeating-linear-gradient(90deg, #C8873A 0 8px, transparent 8px 14px);
  border-radius: 2px;
}

.content-area {
  flex: 1 1 0;
  min-width: 0;
}

/* ---------- Sections (body container contract) ---------- */
/* Every section direct child of main must have figure or aside as direct child */

/* Article section */
.article-section {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid #e0d8cc;
  box-shadow: 0 2px 12px rgba(44,62,80,0.05);
}

.article-figure {
  margin: 0 0 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  background: #e8e0d4;
  min-height: 60px;
}

.article-fig-placeholder {
  height: 80px;
  background: repeating-linear-gradient(
    135deg,
    #e8e0d4 0 10px,
    #f0e8dc 10px 20px
  );
}

.hero-img { width: 100%; height: auto; display: block; }

.article-meta { margin-bottom: 0.5rem; }

.article-h1 {
  margin-bottom: 0.5rem;
}

/* Inner / privacy / about / contact / faq sections */
.inner-section, .contact-section, .faq-section {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid #e0d8cc;
  box-shadow: 0 2px 12px rgba(44,62,80,0.05);
}

.deco-figure {
  margin: 0 0 1.25rem;
}
.deco-line {
  height: 4px;
  background: linear-gradient(90deg, #C8873A 0%, #F5F0E8 100%);
  border-radius: 2px;
}

.inner-h1 { margin-bottom: 1rem; }

/* ---------- TOC aside (inside article) ---------- */
.toc-aside {
  background: #F5F0E8;
  border-left: 4px solid #C8873A;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.toc-heading {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.toc-hint { font-size: 0.9rem; color: #5a6a7a; margin: 0; }

/* ---------- Byline ---------- */
.byline {
  font-size: 0.88rem;
  color: #5a6a7a;
  margin-bottom: 1.25rem;
  font-family: 'Space Mono', monospace;
}
.byline time { }

/* ---------- Stage label ---------- */
.stage-label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.stage-awareness { background: #e8f4fd; color: #1a6a9a; }
.stage-consideration { background: #fff3e0; color: #b36a00; }
.stage-decision { background: #e8f5e9; color: #2e7d32; }

/* ---------- Eyebrow ---------- */
.eyebrow-label {
  display: inline-block;
  background: #C8873A;
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.faq-eyebrow { margin-bottom: 0.5rem; }

/* ---------- Prose (body content) ---------- */
.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: #2C3E50;
}
.prose h2 { margin: 2rem 0 0.75rem; }
.prose h3 { margin: 1.5rem 0 0.5rem; }
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol { margin: 0.75rem 0 1rem 1.5rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: #C8873A; text-decoration: underline; }
.prose a:hover { color: #2C3E50; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.25rem 0; font-size: 0.92rem; }
.prose th, .prose td { border: 1px solid #d0c8be; padding: 8px 12px; text-align: left; }
.prose th { background: #F5F0E8; font-weight: 700; }
.prose blockquote {
  border-left: 4px solid #C8873A;
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: #fdf8f2;
  border-radius: 0 6px 6px 0;
  font-style: italic;
}
.prose img { max-width: 100%; height: auto; border-radius: 6px; margin: 1rem 0; }
.prose strong { font-weight: 700; }

/* Underline links in body copy for clarity */
.prose a { text-decoration: underline; }

/* ---------- Hero (home) ---------- */
.hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1rem 1.5rem;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
}

.hero-figure {
  flex: 0 0 8px;
  align-self: stretch;
  margin: 0;
}
.hero-deco {
  width: 8px;
  height: 100%;
  min-height: 120px;
  background: linear-gradient(180deg, #C8873A 0%, #2C3E50 100%);
  border-radius: 4px;
}

.hero-body { flex: 1; min-width: 0; }

.hero-h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.5rem);
  margin-bottom: 0.75rem;
  color: #2C3E50;
}

/* ---------- Cards section (home child pages) ---------- */
.cards-section {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.cards-section > h2 {
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px dashed #C8873A;
}

/* Direct children = article (no wrapping div — contract requirement) */
.cards-section > article,
section.cards-section > article {
  background: #fff;
  border: 1px solid #e0d8cc;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid #C8873A;
  transition: box-shadow 0.15s;
}
.cards-section > article:hover { box-shadow: 0 4px 16px rgba(200,135,58,0.15); }

.card-title {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.card-title > span { border-bottom: none; }
.card-date { display: block; color: #7a8a9a; margin-bottom: 0.35rem; }
.card-desc { font-size: 0.92rem; color: #4a5a6a; margin-bottom: 0.5rem; }
.card-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: #C8873A;
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

/* ---------- Author card (about) ---------- */
.author-card {
  background: #F5F0E8;
  border: 1px solid #d8d0c4;
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 2rem;
  border-top: 4px solid #C8873A;
}
.author-heading { font-size: 1rem; margin-bottom: 0.75rem; }
.author-name { font-size: 1.05rem; margin-bottom: 0.25rem; }
.author-credentials {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: #C8873A;
  margin-bottom: 0.75rem;
}
.author-bio { font-size: 0.95rem; color: #4a5a6a; margin: 0; }

/* ---------- Contact info aside ---------- */
.contact-info {
  background: #F5F0E8;
  border-left: 4px solid #C8873A;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.5rem;
}
.contact-heading { font-size: 1rem; margin-bottom: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #2C3E50;
  color: #ccc;
  margin-top: 3rem;
  border-top: 3px solid #C8873A;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* footer address */
.footer-address {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #bbb;
}
.footer-address strong { color: #F5F0E8; font-size: 0.95rem; }
.footer-address a {
  color: #C8873A;
  text-decoration: none;
  display: inline-block;
  padding: 8px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  width: fit-content;
}
.footer-address a:hover { text-decoration: underline; }

/* footer nav ul */
.footer-nav ul {
  list-style: none;
}
.footer-nav ul li { margin-bottom: 0.2rem; }
.footer-nav ul li a {
  color: #aab;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
}
.footer-nav ul li a:hover { color: #C8873A; text-decoration: underline; }

/* Responsible gambling */
.footer-rg { }
.rg-notice {
  font-size: 0.8rem;
  color: #8a9aaa;
  line-height: 1.55;
  font-family: 'Space Mono', monospace;
}

/* ---------- Home: hero section has figure as direct child ---------- */
/* Already done: .hero-section contains <figure class="hero-figure"> as direct child */

/* ---------- Hand-drawn divider ---------- */
hr.deco-hr {
  border: none;
  height: 2px;
  background: repeating-linear-gradient(90deg, #C8873A 0 6px, transparent 6px 12px);
  margin: 2rem 0;
  border-radius: 2px;
}

/* ---------- FAQ styles ---------- */
.faq-prose details {
  border: 1px solid #e0d8cc;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  padding: 0;
  background: #fdf8f2;
}
.faq-prose details summary {
  padding: 14px 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq-prose details[open] summary { color: #C8873A; border-bottom: 1px solid #e0d8cc; }
.faq-prose details p { padding: 12px 16px; margin: 0; }

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-rg { grid-column: 1 / -1; }

  .hero-section {
    flex-direction: column;
    gap: 1rem;
  }
  .hero-figure { flex: 0 0 auto; align-self: auto; }
  .hero-deco { width: 100%; height: 6px; min-height: 0; }

  .layout-with-sidebar {
    flex-direction: column;
  }
  .sidebar {
    position: static;
    flex: 0 0 auto;
    width: 100%;
    order: 1; /* sidebar below content on small screens */
  }
  .content-area { order: 0; }
}

/* Mobile ≤768px */
@media (max-width: 768px) {
  /* Nav: menu collapses behind <details> — no changes needed in HTML, just ensure menu is block */
  .nav-menu {
    /* already position: absolute; shown only when details is open */
  }

  .nav-toggle { display: flex; }

  /* Hide toggle label on very small screens to save space */
  @media (max-width: 380px) {
    .toggle-label { display: none; }
  }

  .header-inner {
    min-height: 60px;
    flex-wrap: nowrap;
  }

  .brand-text { font-size: 0.85rem; }

  .cta { font-size: 0.75rem; padding: 0 8px; min-height: 44px; }

  .hero-section { padding: 1.5rem 1rem 1rem; }
  .hero-h1 { font-size: 1.4rem; }

  .layout-with-sidebar { padding: 1rem; gap: 1rem; flex-direction: column; }

  .article-section, .inner-section, .contact-section, .faq-section {
    padding: 1.25rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  /* Footer contact link tap area */
  .footer-address a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
  }

  .footer-nav ul li a {
    min-height: 44px;
    padding: 4px 0;
  }

  .cards-section { padding: 0 1rem; }
}

/* ≤480px fine-tune */
@media (max-width: 480px) {
  html { font-size: 16px; }
  .header-inner { gap: 0.5rem; }
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}.tbl-scroll{overflow-x:auto;max-width:100%}