/* Chipway House — editorial casino comparison
   Palette: soft sand / brown / sage — Bold Colour, poster-style landing */

:root {
  --sand: #f4ecdf;
  --sand-deep: #ead9bd;
  --paper: #fbf7ef;
  --brown: #5a3a22;
  --brown-deep: #3d2716;
  --ink: #2a2118;
  --sage: #7c8f6e;
  --sage-deep: #5f7052;
  --sage-pale: #e3ead9;
  --line: #d8c7a8;
  --white: #ffffff;
  --danger: #a4432b;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(58, 39, 22, 0.10);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brown-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--brown-deep);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; max-width: 68ch; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

.section--tight { padding: 40px 0; }

.section--sand { background: var(--sand); }
.section--paper { background: var(--paper); }
.section--brown { background: var(--brown-deep); color: var(--sand); }
.section--brown h2, .section--brown h3 { color: var(--sand); }
.section--sage { background: var(--sage-pale); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--sage-deep);
  display: inline-block;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brown-deep);
}

.brand:hover { text-decoration: none; }

.brand__mark { width: 34px; height: 34px; flex-shrink: 0; }

.brand__text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
}

.main-nav a:hover { color: var(--brown-deep); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--brown-deep);
  margin: 4px 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary {
  background: var(--brown-deep);
  color: var(--sand);
}
.btn--primary:hover { box-shadow: var(--shadow); }

.btn--sage {
  background: var(--sage-deep);
  color: var(--white);
}
.btn--sage:hover { box-shadow: var(--shadow); }

.btn--ghost {
  background: transparent;
  border-color: var(--brown-deep);
  color: var(--brown-deep);
}

.btn--small { padding: 9px 16px; font-size: 0.85rem; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--sand-deep) 0%, var(--sand) 65%);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero__title { margin-bottom: 18px; }

.hero__lede { font-size: 1.14rem; max-width: 46ch; }

.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.hero__notice {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brown-deep);
}

.pill--warn {
  background: var(--brown-deep);
  color: var(--sand);
  border-color: var(--brown-deep);
}

.hero__panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.hero__panel-title {
  font-family: var(--sans);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--sage-deep);
  margin-bottom: 14px;
}

.hero__quick-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.hero__quick-row:last-child { border-bottom: none; }
.hero__quick-row strong { font-family: var(--serif); color: var(--brown-deep); }

/* ---------- Ranked list (operator showcase) ---------- */

.ranked-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rank-row {
  display: grid;
  grid-template-columns: 56px 1.4fr 1.6fr auto auto;
  gap: 20px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.rank-row--feature {
  border-color: var(--sage-deep);
  border-width: 2px;
  background: var(--sage-pale);
}

.rank-row__num {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--sage-deep);
  font-weight: 700;
}

.rank-row__name {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--brown-deep);
  margin: 0 0 4px;
}

.rank-row__meta {
  font-size: 0.85rem;
  color: var(--brown);
  font-weight: 600;
}

.rank-row__notes {
  font-size: 0.92rem;
  color: var(--ink);
  margin: 0;
}

.rank-row__score {
  text-align: center;
}

.rank-row__score-num {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--brown-deep);
  font-weight: 700;
  display: block;
}

.rank-row__score-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage-deep);
  font-weight: 700;
}

.rank-row__cta { white-space: nowrap; }

/* ---------- Cards / grids ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.bordered-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--paper);
}

.bordered-card h3 { margin-bottom: 10px; }
.bordered-card p:last-child { margin-bottom: 0; }

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.step-list li:last-child { border-bottom: none; }

.step-list__num {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--sage-deep);
  font-weight: 700;
}

/* ---------- Notice / callouts ---------- */

.notice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brown-deep);
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 0 0 22px;
}

.notice--sage { border-left-color: var(--sage-deep); }
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: var(--brown-deep); }

.resource-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.resource-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brown-deep);
}

.resource-chip:hover { border-color: var(--brown-deep); text-decoration: none; }

/* ---------- FAQ ---------- */

.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brown-deep);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq__icon {
  font-family: var(--sans);
  font-size: 1.3rem;
  color: var(--sage-deep);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq.is-open .faq__icon { transform: rotate(45deg); }

.faq__a {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--ink);
  display: none;
}

.faq.is-open .faq__a { display: block; }

/* ---------- Methodology score bars ---------- */

.method-bar { margin-bottom: 18px; }
.method-bar__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brown-deep);
  margin-bottom: 6px;
}
.method-bar__track {
  height: 10px;
  border-radius: 999px;
  background: var(--sand-deep);
  overflow: hidden;
}
.method-bar__fill {
  height: 100%;
  background: var(--sage-deep);
  border-radius: 999px;
}

/* ---------- Table ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

table.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: var(--paper);
}

.compare-table th, .compare-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.compare-table th {
  font-family: var(--serif);
  color: var(--brown-deep);
  background: var(--sand-deep);
  font-size: 0.85rem;
}

.compare-table tr:last-child td { border-bottom: none; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--brown-deep);
  color: var(--sand);
  padding: 56px 0 28px;
}

.site-footer a { color: var(--sand); }
.site-footer h4 { color: var(--sage-pale); font-family: var(--sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 36px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid p { color: #d9c9a8; font-size: 0.92rem; }

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand__mark { width: 30px; height: 30px; }
.footer-brand__text { font-family: var(--serif); font-size: 1.15rem; color: var(--sand); font-weight: 600; }

.footer-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.footer-resources a {
  border: 1px solid #6b4a2c;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
}
.footer-resources a:hover { border-color: var(--sand); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid #6b4a2c;
  padding-top: 22px;
  font-size: 0.82rem;
  color: #c8b691;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}

.footer-legal-line {
  font-size: 0.8rem;
  color: #c8b691;
  max-width: 90ch;
  margin: 0 0 18px;
}

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 620px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  z-index: 80;
  display: none;
}

.cookie-banner.is-visible { display: block; }

.cookie-banner p { font-size: 0.9rem; margin-bottom: 14px; }

.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Page header (non-home) ---------- */

.page-hero {
  background: var(--sand-deep);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}

.page-hero p { font-size: 1.05rem; }

.prose {
  max-width: 74ch;
}

.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { max-width: 68ch; }
.prose li { margin-bottom: 0.5em; }

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.center-head { max-width: 62ch; margin: 0 auto 40px; text-align: center; }
.small-print { font-size: 0.82rem; color: var(--brown); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rank-row {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .rank-row__num { display: inline-block; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; flex-direction: column; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  h1 { font-size: 2.2rem; }
  .section { padding: 44px 0; }
}

@media (max-width: 640px) {
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 22px;
    gap: 14px;
  }
}
