/* =============================================
   655 Bet Casino — Folha de estilo principal
   Paleta: #4A7C59 (verde) / #C8B89A (areia) / #F5F0E8 (creme)
   ============================================= */

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

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

body {
  font-family: 'Georgia', 'Cambria', serif;
  font-size: 17px;
  line-height: 1.7;
  color: #2a2a2a;
  background-color: #F5F0E8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Typography ---------------------------------- */
h1, h2, h3, h4 {
  font-family: 'Georgia', serif;
  line-height: 1.3;
  color: #1e3a2a;
}

h1 { font-size: clamp(1.5rem, 4vw, 2.4rem); margin-bottom: 0.5rem; }
h2 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); margin: 2rem 0 0.75rem; }
h3 { font-size: clamp(1rem, 2vw, 1.3rem); margin: 1.5rem 0 0.5rem; }

h2 > span, h3 > span {
  display: inline;
  border-bottom: 2px solid #C8B89A;
  padding-bottom: 2px;
}

p { margin-bottom: 1rem; max-width: 72ch; }
a { color: #4A7C59; text-decoration: underline; }
a:hover { color: #2e5c3e; }

ul, ol { padding-left: 1.25rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

strong { font-weight: 700; }
em { font-style: italic; }

code, kbd, .mono {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  background: #ede9df;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* --- Skip link ---------------------------------- */
.skip-link-anchor { position: absolute; top: 0; left: 0; }

/* --- Header ------------------------------------- */
.site-header {
  background-color: #fff;
  border-bottom: 2px solid #C8B89A;
  position: sticky;
  top: 0;
  z-index: 200;
  max-height: 120px;
}

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

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

.brand-text {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #4A7C59;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.site-logo {
  height: 40px;
  width: auto;
  display: block;
}

/* Nav desktop */
.main-nav {
  flex: 1;
  overflow: hidden;
}

.main-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: center;
  margin: 0;
}

.main-nav p a {
  font-size: 0.82rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #2e5c3e;
  padding: 0.5rem 0.3rem;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

.main-nav p a:hover,
.main-nav p a[aria-current="page"] {
  color: #4A7C59;
  border-bottom-color: #4A7C59;
}

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

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}

.cta-signup {
  background: #4A7C59;
  color: #fff;
  border: 2px solid #4A7C59;
}

.cta-signup:hover {
  background: #2e5c3e;
  border-color: #2e5c3e;
  color: #fff;
}

.cta-login {
  background: transparent;
  color: #4A7C59;
  border: 2px solid #4A7C59;
}

.cta-login:hover {
  background: #4A7C59;
  color: #fff;
}

/* Nav toggle (hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 2px solid #C8B89A;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0 10px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #4A7C59;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Content layout ------------------------------ */
.content-with-aside {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

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

.content-aside {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}

/* --- Main wrappers ------------------------------ */
main {
  flex: 1;
  padding: 2rem 1rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* --- Aside card --------------------------------- */
.aside-card {
  background: #fff;
  border: 1.5px solid #C8B89A;
  border-radius: 16px;
  padding: 1.25rem 1.1rem;
  margin-bottom: 1.5rem;
}

.aside-card h2 {
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4A7C59;
}

.aside-card h2 > span {
  border-bottom: none;
}

.aside-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.aside-card ul li {
  margin-bottom: 0.5rem;
}

.aside-card ul li a {
  font-size: 0.88rem;
  line-height: 1.4;
  text-decoration: none;
  color: #2e5c3e;
  display: block;
  padding: 0.25rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ede9df;
}

.aside-card ul li:last-child a {
  border-bottom: none;
}

.aside-card ul li a:hover {
  color: #4A7C59;
  text-decoration: underline;
}

.aside-cta-card p {
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
  color: #555;
  max-width: none;
}

.aside-cta-btn {
  width: 100%;
  justify-content: center;
}

/* --- Content body (div text) ---------------- */
.content-body h2 {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  margin-top: 2.25rem;
}

.content-body h3 {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.content-body a {
  color: #4A7C59;
  text-decoration: underline;
}

.content-body a:hover {
  color: #2e5c3e;
}

.content-body ul,
.content-body ol {
  max-width: 68ch;
}

.content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1rem 0;
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.content-body table th,
.content-body table td {
  border: 1px solid #C8B89A;
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.content-body table th {
  background: #4A7C59;
  color: #fff;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.content-body table tr:nth-child(even) td {
  background: #f9f6f0;
}

/* --- Byline ------------------------------------- */
.byline {
  font-size: 0.82rem;
  font-family: 'Courier New', monospace;
  color: #6b7d70;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
  max-width: none;
}

.byline time {
  color: #4A7C59;
}

/* --- Stage label -------------------------------- */
.stage-label {
  display: inline-block;
  font-size: 0.72rem;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.stage-awareness { background: #e8f2ec; color: #3a6648; }
.stage-consideration { background: #f0ebe0; color: #7a6440; }
.stage-decision { background: #4A7C59; color: #fff; }

/* --- Hero image --------------------------------- */
.hero-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin-bottom: 1.25rem;
  display: block;
}

/* --- Home layout specific ----------------------- */
.home-hero {
  margin-bottom: 1.5rem;
}

.home-hero h1 {
  margin-bottom: 0.25rem;
}

/* --- Child-page table (home) -------------------- */
.child-table-section {
  margin-top: 3rem;
}

.child-table-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.child-table-section table td {
  border: 1px solid #C8B89A;
  padding: 0.65rem 0.9rem;
  vertical-align: top;
}

.child-table-section table tr:nth-child(even) td {
  background: #f9f6f0;
}

.child-table-section table td a {
  color: #4A7C59;
  font-weight: 600;
  text-decoration: none;
}

.child-table-section table td a:hover {
  text-decoration: underline;
}

.td-desc {
  color: #555;
  font-size: 0.85rem;
}

.td-date {
  white-space: nowrap;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: #7a6440;
}

/* --- FAQ layout --------------------------------- */
.faq-eyebrow {
  margin-bottom: 0.5rem;
}

.faq-eyebrow span {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4A7C59;
  border: 1.5px solid #4A7C59;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.faq-body details {
  border: 1.5px solid #C8B89A;
  border-radius: 12px;
  margin-bottom: 1rem;
  padding: 0;
  background: #fff;
  overflow: hidden;
}

.faq-body details summary {
  font-weight: 700;
  padding: 1rem 1.1rem;
  cursor: pointer;
  list-style: none;
  color: #1e3a2a;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-body details summary::-webkit-details-marker { display: none; }

.faq-body details summary::after {
  content: '+';
  font-size: 1.4rem;
  color: #4A7C59;
  font-family: 'Courier New', monospace;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.faq-body details[open] summary::after {
  content: '−';
}

.faq-body details > *:not(summary) {
  padding: 0 1.1rem 1rem;
}

/* --- About layout ------------------------------- */
.author-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #C8B89A;
}

.author-card {
  background: #fff;
  border: 1.5px solid #C8B89A;
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  margin-top: 1rem;
}

.author-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e3a2a;
  margin-bottom: 0.25rem;
  max-width: none;
}

.author-credentials {
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: #4A7C59;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  max-width: none;
}

.author-bio {
  color: #444;
  font-size: 0.95rem;
  max-width: 68ch;
}

/* --- Footer ------------------------------------- */
.site-footer {
  background: #1e3a2a;
  color: #d9d0c3;
  padding: 2.5rem 1rem 1.5rem;
  margin-top: auto;
}

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

.footer-brand strong {
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: #F5F0E8;
  margin-bottom: 0.5rem;
}

.footer-desc {
  font-size: 0.82rem;
  color: #a8a099;
  max-width: 38ch;
  margin: 0;
}

.footer-contact {
  font-style: normal;
}

.footer-contact a,
.footer-contact span {
  color: #C8B89A;
  font-size: 0.88rem;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-contact a:hover { text-decoration: underline; }

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav ul li a {
  color: #C8B89A;
  font-size: 0.85rem;
  text-decoration: none;
  display: block;
  padding: 0.35rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.footer-nav ul li a:hover {
  color: #F5F0E8;
  text-decoration: underline;
}

.responsible-gambling {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  font-family: 'Courier New', monospace;
  color: #a8a099;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(200,184,154,0.25);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  max-width: none;
  margin: 0;
}

.copyright {
  grid-column: 1 / -1;
  font-size: 0.76rem;
  color: #6b6460;
  font-family: 'Courier New', monospace;
  max-width: none;
  margin: 0;
}

/* --- Mobile ------------------------------------- */
@media (max-width: 768px) {
  /* Header */
  .site-header {
    max-height: 120px;
  }

  .header-inner {
    padding: 0 0.75rem;
    min-height: 60px;
    gap: 0.35rem;
  }

  /* Hide nav links, show toggle */
  .nav-toggle {
    display: flex;
    order: 2;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 2px solid #C8B89A;
    z-index: 300;
    padding: 0.5rem 0.75rem 1rem;
    order: 10;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav p {
    flex-direction: column;
    gap: 0;
  }

  .main-nav p a {
    font-size: 0.9rem;
    padding: 0.65rem 0.5rem;
    min-height: 44px;
    border-bottom: 1px solid #ede9df;
    white-space: normal;
  }

  .main-nav p a:last-child {
    border-bottom: none;
  }

  /* Keep CTAs visible on mobile */
  .header-ctas {
    order: 3;
    margin-left: auto;
  }

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

  /* Content layout stack */
  .content-with-aside {
    flex-direction: column;
  }

  .content-aside {
    width: 100%;
    position: static;
    order: 2;
  }

  /* Footer grid stack */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .responsible-gambling {
    grid-column: 1;
  }

  .copyright {
    grid-column: 1;
  }

  /* Tables scroll */
  .child-table-section,
  .content-body {
    overflow-x: auto;
  }

  main {
    padding: 1rem 0.75rem 2rem;
  }

  h1 {
    font-size: 1.45rem;
  }

  body {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .td-desc {
    display: none;
  }

  .aside-card {
    padding: 1rem 0.85rem;
  }
}

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