/* =====================================================
   910 Bet Brasil — style.css
   Black & gold luxury, condensed serif, hairline borders
   ===================================================== */

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

:root {
  --black: #0A0A0A;
  --gold: #C9A84C;
  --burgundy: #6B1E2E;
  --gold-dim: #9a7a34;
  --text: #E8E0D0;
  --text-muted: #9A9080;
  --border: rgba(201,168,76,0.25);
  --sidebar-w: 220px;
  --content-max: 780px;
  --gap: 2rem;
}

html { font-size: 18px; line-height: 1.65; scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  -webkit-font-smoothing: antialiased;
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: var(--gold);
  color: var(--black);
  padding: 0.5rem 1rem;
  font-weight: bold;
  border-radius: 2px;
}

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

/* ===================== HEADER ===================== */
.site-header {
  background: var(--black);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.25rem;
  height: 64px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.brand {
  font-family: 'Georgia', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.08em;
  white-space: nowrap;
  margin-right: auto;
}
.brand:hover { color: #fff; }

/* Menu toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
  border-radius: 2px;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--gold);
  transition: transform 0.2s, opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* CTA buttons in header */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  font-size: 0.78rem;
  font-family: Georgia, serif;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 700;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cta-signup {
  background: var(--gold);
  color: var(--black);
  border: 1.5px solid var(--gold);
}
.cta-signup:hover { background: #e0bb60; border-color: #e0bb60; }
.cta-login {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.cta-login:hover { background: rgba(201,168,76,0.12); }

/* Nav aside (desktop: visible; mobile: collapsed) */
.nav-aside {
  background: var(--black);
  border-top: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.nav-aside.is-open { max-height: 600px; }
.nav-aside nav ul { list-style: none; padding: 0.5rem 0; }
.nav-aside nav ul li a {
  display: block;
  padding: 0.65rem 1.5rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-aside nav ul li a:hover,
.nav-aside nav ul li a[aria-current="page"] {
  color: var(--gold);
  border-left-color: var(--gold);
}

/* Desktop: show nav inline below header */
@media (min-width: 769px) {
  .nav-aside {
    max-height: none;
    overflow: visible;
    border-top: none;
    border-bottom: 1px solid var(--border);
  }
  .nav-aside nav { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }
  .nav-aside nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
  }
  .nav-aside nav ul li a {
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
    border-left: none;
    border-bottom: 2px solid transparent;
    letter-spacing: 0.04em;
  }
  .nav-aside nav ul li a:hover { border-bottom-color: var(--gold); }
  .menu-toggle { display: none; }
}

/* ===================== PAGE LAYOUT ===================== */
.page-layout {
  flex: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: var(--gap) 1.25rem;
}

/* Inner pages: sidebar left + main right */
.page-layout--inner {
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
}

/* Home: full-width */
.page-layout--home {
  display: block;
}

/* ===================== SIDEBAR ===================== */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  border-right: 1px solid var(--border);
  padding-right: 1.5rem;
}

.sidebar nav ul { list-style: none; }
.sidebar nav ul li { border-bottom: 1px solid var(--border); }
.sidebar nav ul li:last-child { border-bottom: none; }
.sidebar nav ul li a {
  display: block;
  padding: 0.65rem 0.25rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-decoration: none;
  line-height: 1.4;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.sidebar nav ul li a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .sidebar { display: none; }
  .page-layout--inner { display: block; }
}

/* ===================== MAIN / ARTICLE ===================== */
main { flex: 1; min-width: 0; }

article { max-width: var(--content-max); }

.page-layout--home article { max-width: 100%; }

/* Sections */
section { margin-bottom: 3rem; }

/* ===================== HEADINGS ===================== */
h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  margin-top: 2rem;
  margin-bottom: 0.35rem;
  color: var(--gold);
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: #fff;
}

/* h2 + p.subtitle pattern (structure lottery) */
h2 + p.subtitle,
h2 + p.subhead,
h2 + p.desc,
h2 + p.lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* ===================== BYLINE ===================== */
.byline {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}
.byline strong { color: var(--gold); }
.byline time { color: var(--text-muted); }

/* ===================== STAGE LABEL ===================== */
.stage-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-family: Georgia, serif;
}
.stage-label--awareness { background: var(--burgundy); color: #fff; }
.stage-label--consideration { background: var(--gold-dim); color: var(--black); }
.stage-label--decision { background: var(--gold); color: var(--black); }

/* ===================== BODY CONTENT ===================== */
.page-content { font-size: 1rem; line-height: 1.7; }

.page-content p { margin-bottom: 1.1rem; }

.page-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-content a:hover { color: #fff; }

.page-content h2 { margin-top: 2.25rem; }
.page-content h3 { margin-top: 1.75rem; }

.page-content ul, .page-content ol {
  margin: 0.75rem 0 1.1rem 1.4rem;
}
.page-content li { margin-bottom: 0.4rem; }

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.page-content th {
  background: rgba(201,168,76,0.15);
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  text-align: left;
}
.page-content td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.8rem;
  vertical-align: top;
}
.page-content tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

.page-content blockquote {
  border-left: 3px solid var(--gold);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: rgba(201,168,76,0.06);
  font-style: italic;
  color: var(--text-muted);
}

.page-content strong { color: #fff; }
.page-content em { color: var(--text-muted); }

.page-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ===================== HERO SECTION ===================== */
.hero-section {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

/* ===================== CHILD LIST (ul>li>article>h3/p) ===================== */
.child-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.child-list > li > article {
  border: 1px solid var(--border);
  padding: 1.25rem 1.35rem;
  background: rgba(255,255,255,0.02);
  border-radius: 2px;
  transition: border-color 0.2s;
  height: 100%;
}
.child-list > li > article:hover { border-color: var(--gold); }
.child-list > li > article h3 {
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
  line-height: 1.35;
}
.child-list > li > article h3 a {
  color: #fff;
  text-decoration: none;
}
.child-list > li > article h3 a:hover { color: var(--gold); }
.child-list > li > article p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.4rem;
}
.card-date { font-size: 0.75rem; color: var(--gold-dim); }

/* ===================== AUTHOR SECTION ===================== */
.author-section {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 1.75rem;
}
.author-section h2 { margin-top: 0; }
.author-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================== CONTACT SECTION ===================== */
.content-section h2 { margin-top: 1.5rem; }

/* ===================== FOOTER ===================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.5);
  padding: 2rem 1.25rem;
  text-align: center;
}

.site-footer p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.4rem;
  transition: color 0.15s;
}
.site-footer a:hover { color: var(--gold); }

.site-footer small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.5;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
  justify-content: center;
  align-items: center;
}

.footer-trust a {
  padding: 0.5rem 0.6rem;
  min-height: 44px;
}

/* ===================== RESPONSIVE OVERRIDES ===================== */
@media (max-width: 768px) {
  :root { --gap: 1.25rem; }
  html { font-size: 17px; }

  .header-inner { padding: 0 1rem; height: 60px; }

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

  .page-layout { padding: 1.25rem 1rem; }

  .child-list { grid-template-columns: 1fr; }

  .site-footer { padding: 1.5rem 1rem; }
  .site-footer p { font-size: 0.8rem; }
  .site-footer small { font-size: 0.72rem; }
  .site-footer a {
    min-height: 44px;
    padding: 0.5rem 0.5rem;
  }
  .footer-trust { gap: 0.15rem 0; }
}

@media (max-width: 480px) {
  .cta { padding: 0 0.5rem; font-size: 0.7rem; }
}

/* ===================== UTILITIES ===================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

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