/* OntarioBetGuide.ca — Main Stylesheet */
/* Palette: Navy #0a1f44 | Gold #d4a843 | White #fff | Light bg #f5f7fa */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0a1f44;
  --navy-light: #142d5f;
  --gold: #d4a843;
  --gold-dark: #b8902e;
  --white: #ffffff;
  --bg: #f5f7fa;
  --text: #2d2d2d;
  --text-muted: #666;
  --border: #e0e4ec;
  --success: #2e7d32;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(10,31,68,0.09);
  --shadow-hover: 0 6px 24px rgba(10,31,68,0.15);
  --max-width: 1140px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

a { color: var(--navy); text-decoration: underline; }
a:hover { color: var(--gold-dark); }

img { max-width: 100%; height: auto; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.65rem; margin-bottom: 0.75rem; margin-top: 2rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; margin-top: 1.5rem; }
p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.35rem; }

/* ── LAYOUT ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ── HEADER ── */
.site-header {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.site-logo span { color: var(--gold); }
.site-logo:hover { color: var(--white); }

.site-nav { display: flex; align-items: center; gap: 0.25rem; }

.site-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 0.45rem 1rem !important;
}
.nav-cta:hover { background: var(--gold-dark) !important; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1a3a7a 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero h1 { color: var(--white); font-size: 2.6rem; margin-bottom: 1.25rem; }
.hero .subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-lg { padding: 0.9rem 2.25rem; font-size: 1.05rem; }

/* ── CARDS / GRID ── */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg); }

.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { margin-top: 0; }
.section-header p { color: var(--text-muted); max-width: 580px; margin: 0 auto; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* ── SPORTSBOOK COMPARISON TABLE ── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.comparison-table th {
  background: var(--navy);
  color: var(--white);
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
}
.comparison-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
}
.comparison-table tr:nth-child(even) td { background: var(--bg); }
.comparison-table tr:hover td { background: #e8ecf5; }
.comparison-table .rank-col { font-weight: 700; color: var(--navy); }

/* ── SPORTSBOOK CARD (homepage list) ── */
.sb-list { display: flex; flex-direction: column; gap: 1.25rem; }

.sb-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.sb-card:hover { box-shadow: var(--shadow-hover); }

.sb-rank {
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
}

.sb-info h3 { margin: 0 0 0.3rem; font-size: 1.15rem; }
.sb-info p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

.sb-meta {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.tag {
  background: var(--bg);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.tag-green { background: #e8f5e9; color: var(--success); border-color: #c8e6c9; }

.sb-action { text-align: right; }
.sb-action .btn { white-space: nowrap; }
.sb-rating {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  text-align: right;
}
.stars { color: var(--gold); }

/* ── REVIEW PAGE SPECIFIC ── */
.review-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white;
  padding: 3rem 0;
}
.review-hero h1 { color: white; font-size: 2rem; }
.review-hero .meta { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin-top: 0.5rem; }

.review-score-box {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 1.25rem 1.75rem;
  display: inline-block;
  margin-top: 1.25rem;
}
.review-score-box .score { font-size: 3rem; font-weight: 800; color: var(--gold); line-height: 1; }
.review-score-box .score-label { font-size: 0.85rem; color: rgba(255,255,255,0.8); }

.review-body { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; padding: 2.5rem 0; }

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.pros, .cons {
  padding: 1.25rem;
  border-radius: var(--radius);
}
.pros { background: #e8f5e9; border: 1px solid #c8e6c9; }
.cons { background: #fff3e0; border: 1px solid #ffe0b2; }
.pros h4 { color: var(--success); margin-bottom: 0.5rem; }
.cons h4 { color: #e65100; margin-bottom: 0.5rem; }
.pros ul, .cons ul { margin: 0; padding-left: 1.25rem; }
.pros li, .cons li { font-size: 0.9rem; margin-bottom: 0.25rem; }

.review-sidebar { position: sticky; top: 80px; }

.sidebar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.sidebar-card h4 {
  color: var(--navy);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-label { color: var(--text-muted); }
.spec-value { font-weight: 600; color: var(--navy); }

/* ── FAQ ── */
.faq-list { margin: 1.5rem 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-q {
  background: var(--bg);
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after { content: '+'; font-size: 1.25rem; color: var(--gold); }
.faq-a {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text);
  border-top: 1px solid var(--border);
}

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--bg);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  color: var(--text-muted);
}
.breadcrumb li + li::before { content: '›'; margin-right: 0.25rem; }
.breadcrumb a { color: var(--navy); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── GUIDES ── */
.guide-content h2 { margin-top: 2.25rem; }
.guide-content h2:first-child { margin-top: 0; }

.callout {
  background: #e8ecf5;
  border-left: 4px solid var(--navy);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.callout strong { color: var(--navy); }

.callout-warning {
  background: #fff8e1;
  border-left-color: var(--gold);
}
.callout-success {
  background: #e8f5e9;
  border-left-color: var(--success);
}

.odds-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}
.odds-table th {
  background: var(--navy);
  color: white;
  padding: 0.7rem 1rem;
  text-align: left;
}
.odds-table td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); }
.odds-table tr:nth-child(even) td { background: var(--bg); }

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand .logo { color: white; font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.footer-brand .logo span { color: var(--gold); }
.footer-brand p { font-size: 0.88rem; margin-top: 0.75rem; line-height: 1.6; }

.footer-col h5 {
  color: white;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  font-size: 0.82rem;
  line-height: 1.6;
}
.footer-bottom p { margin-bottom: 0.4rem; }
.footer-disclaimer { color: rgba(255,255,255,0.55); }
.footer-compliance {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.compliance-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ── ABOUT / STATIC PAGES ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white;
  padding: 3.5rem 0;
  text-align: center;
}
.page-hero h1 { color: white; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 580px; margin: 0.75rem auto 0; }

.content-page { padding: 3rem 0; }
.content-page .container { max-width: 820px; }

/* ── RATING BARS ── */
.rating-bars { margin: 1rem 0; }
.rating-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.rating-label { width: 140px; font-size: 0.88rem; color: var(--text-muted); flex-shrink: 0; }
.rating-bar-wrap { flex: 1; background: var(--border); border-radius: 4px; height: 8px; }
.rating-bar { height: 8px; border-radius: 4px; background: var(--gold); }
.rating-num { width: 32px; font-size: 0.85rem; font-weight: 700; color: var(--navy); text-align: right; }

/* ── INTERNAL LINK BOX ── */
.related-guides {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}
.related-guides h4 { margin-bottom: 0.75rem; color: var(--navy); }
.related-guides ul { margin: 0; padding-left: 1.25rem; }
.related-guides a { color: var(--navy); font-weight: 500; }

/* ── RESPONSIBLE GAMBLING ── */
.rg-box {
  background: #e8ecf5;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.rg-box h3 { color: var(--navy); margin-top: 0; }
.rg-hotline {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .review-body { grid-template-columns: 1fr; }
  .review-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 1.85rem; }
  .site-nav { display: none; flex-direction: column; }
  .mobile-menu-btn { display: block; }
  .sb-card { grid-template-columns: 1fr; }
  .sb-rank { display: none; }
  .sb-action { text-align: left; }
  .pros-cons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .comparison-table { font-size: 0.82rem; }
  .comparison-table th, .comparison-table td { padding: 0.6rem 0.75rem; }
}

@media (max-width: 480px) {
  .hero-badges { gap: 0.5rem; }
  .badge { font-size: 0.75rem; padding: 0.25rem 0.65rem; }
}
