/* ============================================================
   CSS CUSTOM PROPERTIES — BURGUNDY / GOLD PALETTE
   ============================================================ */
:root {
  --base:    #3B1220;
  --deep:    #250A14;
  --accent:  #E3B44B;
  --accent2: #C4566E;
  --surface: #F8F3F1;
  --ink:     #22121A;
  --muted:   #75606A;

  --radius: 4px;
  --max-w:  1200px;

  --font-head: Tahoma, 'Segoe UI', Verdana, sans-serif;
  --font-body: Georgia, 'Times New Roman', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
}

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

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

a:hover {
  color: var(--accent);
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--base);
  line-height: 1.25;
}

h1 { font-size: 2.25rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.6rem;  margin-top: 2rem; margin-bottom: 0.6rem; }
h3 { font-size: 1.2rem;  margin-top: 1.5rem; margin-bottom: 0.5rem; }

p  { margin-bottom: 1rem; }

strong { color: var(--base); }

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

li { margin-bottom: 0.35rem; }

/* Checklist & Steps */
.checklist,
.steps-list {
  padding-left: 0;
  list-style: none;
  margin-bottom: 1.25rem;
}

.checklist li,
.steps-list li {
  padding: 0.4rem 0.4rem 0.4rem 2rem;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0.4rem;
  color: var(--accent);
  font-weight: bold;
  font-family: var(--font-head);
}

.steps-list { counter-reset: steps; }

.steps-list li {
  counter-increment: steps;
}

.steps-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0.25rem;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--accent);
  color: var(--deep);
  border-radius: 50%;
  font-size: 0.8rem;
  font-family: var(--font-head);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  transform: translateY(-50%);
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1rem;
}

.content-block {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 1.25rem 1rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: bold;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--deep);
  background: linear-gradient(
    180deg,
    #f2cc72 0%,
    var(--accent) 40%,
    #c9952e 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 2px 6px rgba(59,18,32,0.25);
  border: 1px solid #b07d20;
  border-radius: var(--radius);
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}

.btn:hover {
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    0 4px 10px rgba(59,18,32,0.3);
  color: var(--deep);
  text-decoration: none;
}

.btn:focus-visible {
  outline: 3px solid var(--surface);
  outline-offset: 2px;
}

.btn:active {
  filter: brightness(0.96);
  box-shadow: inset 0 2px 4px rgba(59,18,32,0.3);
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  background: var(--base);
}

.header-top {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 1rem 1rem 0.6rem;
  text-align: center;
}

/* Logo wordmark */
.logo-wordmark {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: bold;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  user-select: none;
}

.logo-wordmark span {
  color: #fff;
}

/* Nav bar */
header nav {
  background: var(--deep);
  border-top: 2px solid var(--accent);
}

header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  max-width: var(--max-w);
  margin-inline: auto;
}

header nav ul li {
  margin: 0;
}

header nav ul li a {
  display: block;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: bold;
  text-decoration: none;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}

header nav ul li a:hover {
  background: var(--base);
  color: var(--accent);
}

header nav ul li a.active {
  color: var(--accent);
  background: rgba(255,255,255,0.07);
}

header nav ul li a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

/* ============================================================
   BONUS BANNER (full-bleed, headline left / button right)
   ============================================================ */
.bonus-banner {
  background: var(--deep);
  border-bottom: 3px solid var(--accent);
  padding: 0.9rem 1rem;
}

.bonus-banner-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.bonus-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.bonus-banner-text strong {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--accent);
}

.bonus-banner-text span {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.78);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--base) 0%, var(--deep) 100%);
  padding: 2rem 1rem;
  border-bottom: 3px solid var(--accent);
}

.page-hero h1 {
  color: var(--accent);
  font-size: 1.75rem;
  margin-bottom: 0.4rem;
}

.page-hero .hero-sub {
  color: rgba(255,255,255,0.78);
  font-size: 0.98rem;
  margin: 0;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
main {
  padding: 0;
}

article {
  margin-bottom: 1.5rem;
}

/* ============================================================
   SECOND BONUS BANNER (full-width band inside content)
   ============================================================ */
.second-banner {
  background: var(--base);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  margin: 2rem 0;
  color: #fff;
}

.second-banner strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.second-banner p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 0.9rem;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0;
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: #fff;
}

table thead tr {
  border-bottom: 2px solid var(--accent);
}

table thead th {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--accent);
  text-align: left;
  padding: 0.65rem 0.85rem;
  background: var(--deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

table tbody tr {
  border-bottom: 1px solid rgba(117,96,106,0.22);
  transition: background 0.12s;
}

table tbody tr:last-child {
  border-bottom: none;
}

table tbody tr:hover {
  background: rgba(227,180,75,0.08);
}

table tbody td {
  padding: 0.6rem 0.85rem;
  color: var(--ink);
  vertical-align: top;
}

/* ============================================================
   CARDS (outlined, accent left border)
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.card {
  background: #fff;
  border: 1px solid rgba(117,96,106,0.3);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  transition: box-shadow 0.18s, border-left-color 0.18s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(59,18,32,0.12);
  border-left-color: var(--accent2);
}

.card h3 {
  font-size: 1.08rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--base);
}

.card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.card a {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: bold;
  color: var(--accent2);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.card a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.card a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* ============================================================
   FAQ ACCORDION — CSS-only hidden-checkbox technique
   ============================================================ */
.faq-section {
  margin: 2rem 0;
}

.faq-section h2 {
  margin-bottom: 1rem;
}

.faq-item {
  border: 1px solid rgba(117,96,106,0.28);
  border-left: 4px solid var(--accent2);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  background: #fff;
  overflow: hidden;
}

/* Hide the native checkbox */
.faq-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Label acts as the accordion trigger */
.faq-item label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--base);
  cursor: pointer;
  user-select: none;
  transition: background 0.14s;
  gap: 0.75rem;
}

.faq-item label:hover {
  background: rgba(227,180,75,0.1);
}

.faq-item label:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

/* Plus / minus drawn purely in CSS — pseudo-element after label */
.faq-item label::after {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent2);
  border-radius: 50%;
  position: relative;
  background:
    /* horizontal bar */
    linear-gradient(var(--accent2), var(--accent2)) center / 10px 2px no-repeat,
    /* vertical bar (plus) */
    linear-gradient(var(--accent2), var(--accent2)) center / 2px 10px no-repeat;
  transition: transform 0.22s, background-color 0.2s;
}

/* When checked: rotate to show minus (hide vertical bar via rotation) */
.faq-item input[type="checkbox"]:checked ~ label::after {
  background:
    linear-gradient(var(--accent), var(--accent)) center / 10px 2px no-repeat,
    /* vertical bar hidden: same colour but effectively merged after 90deg */
    linear-gradient(var(--accent), var(--accent)) center / 2px 0px no-repeat;
  border-color: var(--accent);
  transform: rotate(180deg);
}

.faq-item input[type="checkbox"]:checked ~ label {
  background: rgba(227,180,75,0.1);
  color: var(--base);
}

/* Answer panel */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.faq-item input[type="checkbox"]:checked ~ .faq-answer {
  max-height: 600px;
}

.faq-answer-inner {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.95rem;
  color: var(--ink);
  border-top: 1px solid rgba(117,96,106,0.18);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--deep);
  border-top: 3px solid var(--accent);
  margin-top: 2.5rem;
  padding: 2rem 1rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.footer-nav a {
  font-family: var(--font-head);
  font-size: 0.83rem;
  text-decoration: none;
  color: rgba(255,255,255,0.72);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.footer-disclaimer {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 0.75rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.38);
  font-family: var(--font-head);
}

/* ============================================================
   BREAKPOINT — 640px
   ============================================================ */
@media (min-width: 640px) {

  .content-block {
    padding: 1.75rem 1.5rem;
  }

  .bonus-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .bonus-banner-text {
    flex: 1 1 auto;
  }

  .bonus-banner-text strong {
    font-size: 1.1rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.7rem; }

  .second-banner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  header nav ul li a {
    font-size: 0.86rem;
    padding: 0.65rem 1rem;
  }
}

/* ============================================================
   BREAKPOINT — 1024px
   ============================================================ */
@media (min-width: 1024px) {

  .content-block {
    padding: 2.25rem 2rem;
  }

  .header-top {
    padding: 1.2rem 2rem 0.75rem;
  }

  .logo-wordmark {
    font-size: 2.1rem;
  }

  header nav ul li a {
    font-size: 0.88rem;
    padding: 0.7rem 1.25rem;
  }

  .bonus-banner {
    padding: 1rem 2rem;
  }

  .bonus-banner-text strong {
    font-size: 1.15rem;
  }

  .page-hero {
    padding: 2.75rem 2rem;
  }

  .page-hero h1 {
    font-size: 2.25rem;
  }

  h1 { font-size: 2.5rem; }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* With enough space make a 3-col if 5 cards present,
     but since we use auto-fill this keeps 2 cols; explicit override: */
  .card-grid:has(.card:nth-child(3)) {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  footer {
    padding: 2.5rem 2rem 2rem;
  }

  .footer-inner {
    gap: 1.4rem;
  }

  .faq-item label {
    font-size: 1rem;
  }

  table {
    font-size: 0.95rem;
  }
}

/* ============================================================
   UTILITY — ensure tables never break layout on very small screens
   ============================================================ */
@media (max-width: 479px) {
  table {
    min-width: 360px;
  }

  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.3rem; }

  .bonus-banner-text strong {
    font-size: 0.98rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}