/* ===== RESET & BOX MODEL ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background-color: #F5ECD7;
  color: #3D2B1F;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  color: #3D2B1F;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); margin-bottom: 0.5rem; }
h2 { font-size: clamp(1.2rem, 4vw, 1.65rem); margin-top: 2rem; margin-bottom: 0.35rem; }
h3 { font-size: clamp(1rem, 3vw, 1.2rem); margin-top: 1.5rem; margin-bottom: 0.3rem; }

p { margin-bottom: 1rem; }

a {
  color: #C8622A;
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { color: #3D2B1F; }

ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }

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

/* Prevent content wider than viewport */
img, video, iframe, table, pre, code, canvas, svg {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

pre, code {
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

table {
  border-collapse: collapse;
  width: 100%;
  overflow-x: auto;
  display: block;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #3D2B1F;
  color: #F5ECD7;
  z-index: 9999;
  font-size: 1rem;
}

/* ===== PAGE WRAPPER ===== */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ===== SITE HEADER ===== */
.site-header {
  background: #3D2B1F;
  color: #F5ECD7;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.75rem;
  height: 56px;
  width: 100%;
  max-width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #F5ECD7;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand img {
  flex-shrink: 0;
  border-radius: 4px;
}

/* Nav toggle */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: none;
  border: 1.5px solid rgba(245,236,215,0.4);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  color: #F5ECD7;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #F5ECD7;
  position: relative;
  transition: transform 0.2s;
}
.burger::before,
.burger::after {
  content: '';
  position: absolute;
  left: 0;
}
.burger::before { top: -6px; }
.burger::after  { top:  6px; }

.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { transform: rotate(45deg);  top: 0; }
.nav-toggle[aria-expanded="true"] .burger::after  { transform: rotate(-45deg); top: 0; }

/* CTA buttons in header */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 0.65rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  min-width: 0;
}
.cta-signup {
  background: #C8622A;
  color: #F5ECD7;
  border: 2px solid #C8622A;
}
.cta-signup:hover {
  background: #a84e20;
  border-color: #a84e20;
  color: #F5ECD7;
}
.cta-login {
  background: transparent;
  color: #F5ECD7;
  border: 2px solid rgba(245,236,215,0.6);
}
.cta-login:hover {
  border-color: #F5ECD7;
  color: #F5ECD7;
}

/* Nav aside (mobile: hidden by default) */
.nav-aside {
  background: #3D2B1F;
  border-top: 1px solid rgba(245,236,215,0.15);
  width: 100%;
  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;
  margin: 0;
}
.nav-aside nav ul li a {
  display: block;
  padding: 0.7rem 1rem;
  color: #F5ECD7;
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(245,236,215,0.08);
  min-height: 44px;
}
.nav-aside nav ul li a:hover {
  background: rgba(200,98,42,0.2);
  color: #F5ECD7;
}

/* ===== LAYOUT CONTAINERS ===== */
.layout-home,
.layout-service,
.layout-cases,
.layout-faq,
.layout-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  max-width: 100%;
}

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

article {
  width: 100%;
  max-width: 100%;
  padding: 1.5rem 1rem;
}

div {
  width: 100%;
  max-width: 100%;
}

/* Reading column */
.article-body,
.inner-body,
.faq-body,
.cases-body,
.body-content,
.contact-body {
  max-width: 72ch;
}

/* ===== HERO IMAGE ===== */
.hero-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(61,43,31,0.15);
}

/* ===== BYLINE ===== */
.byline {
  font-size: 0.85rem;
  color: #6b4f3a;
  margin-bottom: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed #C8622A;
}
.byline strong { color: #3D2B1F; }

/* ===== STAGE BADGE ===== */
.stage-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.stage-awareness    { background: #e8dfc8; color: #3D2B1F; }
.stage-consideration{ background: #f0d5c0; color: #3D2B1F; }
.stage-decision     { background: #C8622A; color: #F5ECD7; }

/* ===== SUBTITLE / SUBHEAD ===== */
p.subtitle,
p.subhead,
p.lead,
p.desc {
  font-size: 0.97rem;
  color: #6b4f3a;
  margin-top: -0.1rem;
  margin-bottom: 1rem;
  font-style: italic;
}

/* ===== HOME: CHILD CARDS ===== */
.home-highlights {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #C8622A;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-list li {
  margin: 0;
}

.card-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fff8ee;
  border: 1px solid #e8d9c0;
  border-radius: 4px;
  padding: 0.85rem;
  text-decoration: none;
  color: #3D2B1F;
  box-shadow: 0 2px 4px rgba(61,43,31,0.07);
  transition: box-shadow 0.15s;
  min-height: 44px;
}
.card-link:hover {
  box-shadow: 0 4px 10px rgba(61,43,31,0.15);
  color: #3D2B1F;
}

.card-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: #C8622A;
  line-height: 1;
  flex-shrink: 0;
  min-width: 2rem;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.card-body strong {
  font-size: 0.95rem;
  line-height: 1.35;
}
.card-body small {
  font-size: 0.8rem;
  color: #6b4f3a;
  line-height: 1.4;
}

/* ===== SIDEBAR ===== */
.sidebar {
  background: #fff8ee;
  border-top: 2px solid #e8d9c0;
  padding: 1.25rem 1rem;
  width: 100%;
}

.sidebar-inner h3 {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #C8622A;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar nav ul li {
  margin: 0;
  border-bottom: 1px solid #e8d9c0;
}
.sidebar nav ul li:last-child { border-bottom: none; }
.sidebar nav ul li a {
  display: block;
  padding: 0.6rem 0;
  font-size: 0.88rem;
  color: #C8622A;
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.sidebar nav ul li a:hover { color: #3D2B1F; text-decoration: underline; }

/* ===== AUTHOR SECTION ===== */
.author-profile {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px dashed #C8622A;
}

.author-card {
  background: #fff8ee;
  border: 1px solid #e8d9c0;
  border-radius: 4px;
  padding: 1.1rem;
  margin-top: 0.75rem;
  box-shadow: 0 2px 4px rgba(61,43,31,0.07);
}

.author-name {
  display: block;
  font-size: 1.05rem;
  color: #3D2B1F;
  margin-bottom: 0.3rem;
}
.author-credentials {
  font-size: 0.82rem;
  color: #C8622A;
  margin-bottom: 0.5rem;
  font-style: italic;
}
.author-bio {
  font-size: 0.9rem;
  color: #3D2B1F;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #3D2B1F;
  color: #F5ECD7;
  margin-top: auto;
  width: 100%;
}

.footer-inner {
  padding: 1.75rem 1rem 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(245,236,215,0.2);
}

.footer-address {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(245,236,215,0.85);
}
.footer-address strong {
  color: #F5ECD7;
  display: block;
  margin-bottom: 0.2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}
.footer-links li { margin: 0; }
.footer-links li a {
  color: rgba(245,236,215,0.8);
  font-size: 0.85rem;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-links li a:hover {
  color: #F5ECD7;
  text-decoration: underline;
}

.responsible-gambling {
  font-size: 0.8rem;
  color: rgba(245,236,215,0.7);
  margin-bottom: 0.6rem;
  line-height: 1.5;
  border-left: 3px solid #C8622A;
  padding-left: 0.6rem;
}

.copyright {
  font-size: 0.78rem;
  color: rgba(245,236,215,0.5);
  margin: 0;
}

/* ===== HAND-DRAWN DIVIDER (CSS) ===== */
hr {
  border: none;
  border-top: 2px dashed #C8622A;
  opacity: 0.4;
  margin: 2rem 0;
}

/* ===== ARTICLE HEADER ===== */
.article-header,
.cases-header,
.faq-header,
.hero-section,
.inner-header {
  margin-bottom: 1.5rem;
}

/* ===== CONTACT ===== */
.contact-body form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 480px;
}
.contact-body label {
  font-size: 0.9rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}
.contact-body input,
.contact-body textarea,
.contact-body select {
  width: 100%;
  max-width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid #C8622A;
  border-radius: 4px;
  background: #fff8ee;
  font-size: 1rem;
  color: #3D2B1F;
  font-family: inherit;
}
.contact-body textarea { min-height: 120px; resize: vertical; }

/* ===== FAQ SPECIFICS ===== */
.faq-body details {
  border: 1px solid #e8d9c0;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  background: #fff8ee;
}
.faq-body details summary {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq-body details summary::-webkit-details-marker { display: none; }
.faq-body details[open] summary { color: #C8622A; border-bottom: 1px solid #e8d9c0; }
.faq-body details p { padding: 0.75rem 1rem; margin: 0; }

/* ===== CASES ===== */
.layout-cases .cases-body ol,
.layout-cases .cases-body ul {
  padding-left: 1.4rem;
}

/* ===== DESKTOP (≥769px) ===== */
@media (min-width: 769px) {
  /* Header: show full brand text, hide burger later */
  .header-inner {
    padding: 0 1.5rem;
    height: 60px;
    gap: 0.75rem;
  }

  .brand { font-size: 1rem; }

  /* Keep nav collapsed on desktop too — toggle-driven */
  /* But show it expanded on desktop */
  .nav-toggle { display: none; }

  .nav-aside {
    max-height: none !important;
    border-top: none;
    border-bottom: 1px solid rgba(245,236,215,0.15);
  }

  .nav-aside nav ul {
    display: flex;
    flex-wrap: wrap;
    padding: 0 1.5rem;
    gap: 0;
  }

  .nav-aside nav ul li a {
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    border-bottom: none;
    border-right: none;
    min-height: 40px;
    white-space: nowrap;
  }
  .nav-aside nav ul li a:hover {
    background: rgba(200,98,42,0.25);
  }

  /* Layout: side-by-side */
  .layout-home,
  .layout-service,
  .layout-cases,
  .layout-faq,
  .layout-inner {
    flex-direction: row;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
    gap: 2rem;
  }

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

  article {
    padding: 2rem 0;
  }

  .sidebar {
    width: 240px;
    flex-shrink: 0;
    border-top: none;
    border-left: 2px solid #e8d9c0;
    padding: 2rem 1rem;
    position: sticky;
    top: 60px;
    align-self: flex-start;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .cta {
    height: 38px;
    padding: 0 1rem;
    font-size: 0.82rem;
  }
}

/* ===== LARGE DESKTOP ===== */
@media (min-width: 1100px) {
  .layout-home,
  .layout-service,
  .layout-cases,
  .layout-faq,
  .layout-inner {
    padding: 0 2rem;
  }

  .sidebar { width: 260px; }
}

/* ===== MOBILE SAFETY NET ===== */
@media (max-width: 768px) {
  .layout-home,
  .layout-service,
  .layout-cases,
  .layout-faq,
  .layout-inner {
    padding: 0;
    width: 100%;
    max-width: 100%;
  }

  article {
    padding: 1.25rem 0.85rem;
    width: 100%;
    max-width: 100%;
  }

  .sidebar {
    width: 100%;
    max-width: 100%;
    border-left: none;
    border-top: 2px solid #e8d9c0;
  }

  .header-inner {
    padding: 0 0.6rem;
    gap: 0.3rem;
  }

  .brand {
    font-size: 0.82rem;
  }

  .cta {
    height: 36px;
    padding: 0 0.5rem;
    font-size: 0.72rem;
  }

  /* Force all children of header-inner to not overflow */
  .header-inner > * {
    max-width: 100%;
  }

  /* Card list items should not overflow */
  .card-link {
    word-break: break-word;
  }

  .card-body strong {
    word-break: break-word;
  }

  /* Prevent wide tables / pre in body copy */
  .article-body *,
  .inner-body *,
  .faq-body *,
  .cases-body *,
  .body-content *,
  .contact-body * {
    max-width: 100%;
  }
}

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