/* =========================================
   BigWin Buzz Guia — Style Sheet
   Cores: #5A7A5A (verde-salva), #C4A882 (terra), #F5F0E8 (creme)
   ========================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #5A7A5A;
  --green-dark: #3d5a3d;
  --green-light: #7a9e7a;
  --tan: #C4A882;
  --tan-light: #d9c4a8;
  --cream: #F5F0E8;
  --cream-dark: #e8e0d0;
  --text: #2a2a2a;
  --text-muted: #6b6b6b;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 2px 12px rgba(90,122,90,0.10);
  --font: 'Nunito', system-ui, -apple-system, sans-serif;
  --max-w: 1100px;
  --header-h: 68px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

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

a {
  color: var(--green-dark);
  text-decoration: underline;
}

a:hover {
  color: var(--green);
}

.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;
}

/* ---- Site Wrap ---- */
.site-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================
   HEADER
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Brand */
.brand {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 40px;
  width: auto;
}

.brand-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* ---- Nav Details / Toggle ---- */
.nav-details {
  flex: 1;
  position: relative;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-sm);
  color: var(--white);
  cursor: pointer;
  padding: 10px 14px;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.2rem;
  list-style: none;
  user-select: none;
}

.nav-toggle::-webkit-details-marker { display: none; }

.hamburger {
  font-size: 1.3rem;
  line-height: 1;
}

/* Desktop nav */
.nav-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu li a {
  display: block;
  padding: 8px 12px;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  min-height: 44px;
  line-height: 28px;
  transition: background 0.2s;
}

.nav-menu li a:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

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

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  line-height: 1.2;
}

.cta-signup {
  background: var(--tan);
  color: var(--text);
  border: 2px solid var(--tan);
}

.cta-signup:hover {
  background: var(--tan-light);
  border-color: var(--tan-light);
  color: var(--text);
}

.cta-login {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}

.cta-login:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: var(--white);
}

.cta-block {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* ==========================================
   HERO (home only)
   ========================================== */
.hero-banner {
  background: var(--green);
  padding: 40px 16px 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-img {
  width: 340px;
  max-width: 100%;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.hero-text {
  flex: 1;
  min-width: 260px;
}

.hero-h1 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 12px;
}

.hero-desc {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-top: 10px;
}

.wave-divider {
  margin-top: 32px;
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: 60px;
  display: block;
}

/* ==========================================
   CONTENT LAYOUT (sidebar + main)
   ========================================== */
.content-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 16px 48px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
}

/* Sidebar LEFT */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  order: -1;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: flex-start;
}

.sidebar-inner {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 16px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--green);
}

.sidebar-heading {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-links li a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  transition: background 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.sidebar-links li a:hover {
  background: var(--cream);
  color: var(--green-dark);
}

.sidebar-cta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--cream-dark);
}

/* Main content */
.main-content {
  flex: 1;
  min-width: 0;
}

/* ==========================================
   ARTICLE / PAGE BODY
   ========================================== */
.page-article {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.article-header-section {
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--cream-dark);
  background: linear-gradient(135deg, #f9f6f0 0%, var(--white) 100%);
}

.article-h1 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.25;
  margin-bottom: 10px;
}

.stage-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tan);
  border: 1px solid var(--tan);
  border-radius: 20px;
  padding: 2px 10px;
  margin-bottom: 10px;
}

.byline {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.byline strong {
  color: var(--green-dark);
}

.byline time {
  color: var(--text-muted);
}

.page-body {
  padding: 32px;
  max-width: 72ch;
}

.page-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--green-dark);
  margin: 2em 0 0.6em;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--cream-dark);
}

.page-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  margin: 1.5em 0 0.5em;
}

.page-body p {
  margin-bottom: 1em;
}

.page-body ul,
.page-body ol {
  margin: 0.75em 0 1em 1.5em;
}

.page-body li {
  margin-bottom: 0.35em;
}

.page-body a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-body a:hover {
  color: var(--green);
}

.page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.92rem;
}

.page-body th,
.page-body td {
  padding: 10px 14px;
  border: 1px solid var(--cream-dark);
  text-align: left;
}

.page-body th {
  background: var(--green);
  color: var(--white);
  font-weight: 700;
}

.page-body tr:nth-child(even) td {
  background: var(--cream);
}

/* Service hero img */
.service-hero-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-top: 16px;
}

/* ==========================================
   HOME CHILD CARDS
   ========================================== */
.child-grid {
  padding: 32px;
  border-top: 1px solid var(--cream-dark);
  background: var(--cream);
}

/* Direct children are articles (no wrapping div) — structure lottery compliance */
.child-grid > article.child-card,
.cases-grid > article.case-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-top: 3px solid var(--tan);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.section-heading {
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.3;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  min-height: 44px;
  align-self: flex-start;
  transition: background 0.2s;
}

.card-link:hover {
  background: var(--green-dark);
  color: var(--white);
}

/* ==========================================
   CASES GRID
   ========================================== */
.cases-grid {
  padding: 32px;
  border-top: 1px solid var(--cream-dark);
}

.case-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.case-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.case-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ==========================================
   RANK LIST
   ========================================== */
.rank-preview {
  padding: 24px 32px;
  border-top: 1px solid var(--cream-dark);
  background: var(--cream);
}

.rank-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.rank-pos {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.rank-name {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ==========================================
   AUTHOR PROFILE
   ========================================== */
.author-profile {
  padding: 32px;
  border-top: 1px solid var(--cream-dark);
  background: var(--cream);
}

.author-heading {
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.author-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border-left: 4px solid var(--tan);
  box-shadow: var(--shadow);
}

.author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.author-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--green-dark);
}

.author-credentials {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

.author-bio {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
}

/* ==========================================
   FAQ BODY
   ========================================== */
.faq-body details {
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  padding: 14px 18px;
  background: var(--cream);
}

.faq-body details summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 0.97rem;
  color: var(--green-dark);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq-body details[open] summary {
  margin-bottom: 10px;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.85);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  flex-shrink: 0;
}

.footer-logo {
  height: 34px;
  width: auto;
  opacity: 0.9;
}

.footer-brand-text {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--white);
}

.footer-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-link {
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
  font-size: 0.82rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 4px 2px;
}

.trust-link:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}

.responsible-gambling {
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  text-align: center;
  padding: 10px 16px;
  line-height: 1.5;
}

/* ==========================================
   HEADING DECORATION (h2 > span)
   ========================================== */
.section-heading > span,
.sidebar-heading > span,
.author-heading > span,
.case-card-title > span,
.card-title > span {
  display: inline;
}

/* ==========================================
   MOBILE — ≤768px
   ========================================== */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  body {
    font-size: 16px;
  }

  /* Header: brand + toggle + CTAs on one row */
  .header-inner {
    padding: 0 12px;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .brand-logo {
    height: 32px;
  }

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

  /* Show toggle, hide desktop menu (closed state) */
  .nav-details {
    flex: 0 0 auto;
  }

  .nav-toggle {
    display: inline-flex;
    padding: 8px 12px;
    min-width: 44px;
    min-height: 44px;
  }

  /* Nav menu hidden until details is open */
  .nav-details .nav-menu {
    display: none;
  }

  .nav-details[open] .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(var(--header-h) + 2px);
    left: 0;
    right: 0;
    background: var(--green-dark);
    z-index: 200;
    padding: 8px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    gap: 2px;
    flex-wrap: nowrap;
  }

  .nav-details[open] .nav-menu li a {
    white-space: normal;
    font-size: 0.9rem;
    padding: 12px 14px;
    min-height: 44px;
    line-height: 1.4;
  }

  .header-ctas {
    gap: 6px;
    margin-left: auto;
  }

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

  /* Content layout: stack sidebar below on mobile */
  .content-layout {
    flex-direction: column;
    padding: 16px 12px 32px;
    gap: 16px;
  }

  /* Sidebar goes below main on mobile (order) */
  .sidebar {
    width: 100%;
    position: static;
    order: 1;
  }

  .main-content {
    order: 0;
    width: 100%;
  }

  /* Hero */
  .hero-banner {
    padding: 24px 12px 0;
  }

  .hero-content {
    flex-direction: column;
    gap: 16px;
  }

  .hero-img {
    width: 100%;
  }

  .hero-h1 {
    font-size: 1.4rem;
  }

  /* Article */
  .article-header-section {
    padding: 20px 16px 16px;
  }

  .article-h1 {
    font-size: 1.3rem;
  }

  .page-body {
    padding: 20px 16px;
    max-width: 100%;
  }

  .child-grid,
  .cases-grid,
  .rank-preview,
  .author-profile {
    padding: 20px 16px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 12px;
  }

  /* Prevent overflow */
  .page-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-details[open] {
    position: static;
  }
}

@media (max-width: 480px) {
  .cta {
    padding: 8px 8px;
    font-size: 0.74rem;
  }

  .header-ctas {
    gap: 4px;
  }
}

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%}