/* ============================================
   TrustedCasinoGuide.co.uk — Main Stylesheet
   Mobile-first · Editorial UK Design
   ============================================ */

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

:root {
  --navy: #0f1f3d;
  --navy-light: #1a2f54;
  --navy-dark: #0a1528;
  --gold: #c5a55a;
  --gold-light: #d4bb7a;
  --gold-muted: #b89c4f;
  --white: #ffffff;
  --off-white: #f8f8f6;
  --grey-100: #f3f4f6;
  --grey-200: #e5e7eb;
  --grey-300: #d1d5db;
  --grey-400: #9ca3af;
  --grey-500: #6b7280;
  --grey-600: #4b5563;
  --grey-700: #374151;
  --grey-800: #1f2937;
  --red-accent: #b91c1c;
  --green-accent: #166534;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: Georgia, 'Times New Roman', Times, serif;
  --max-width: 1180px;
  --header-h: 64px;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 3px rgba(15,31,61,.08);
  --shadow-md: 0 4px 12px rgba(15,31,61,.1);
  --shadow-lg: 0 8px 30px rgba(15,31,61,.12);
  --transition: .2s ease;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--grey-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-muted); }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--navy); line-height: 1.3; font-weight: 700; }
h1 { font-size: 1.85rem; margin-bottom: .6em; }
h2 { font-size: 1.5rem; margin-bottom: .5em; }
h3 { font-size: 1.2rem; margin-bottom: .4em; }

p { margin-bottom: 1em; }
ul, ol { margin-bottom: 1em; padding-left: 1.4em; }
li { margin-bottom: .3em; }

/* --- Utility --- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  border: none;
  line-height: 1.4;
  text-decoration: none;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); color: var(--navy-dark); box-shadow: var(--shadow-sm); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn-secondary:hover { border-color: var(--white); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-visit { background: var(--navy); color: var(--white); padding: 8px 20px; font-size: .85rem; }
.btn-visit:hover { background: var(--navy-light); color: var(--white); }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  transition: box-shadow var(--transition);
  height: var(--header-h);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  color: var(--navy);
  white-space: nowrap;
}
.site-logo:hover { color: var(--navy); }
.logo-text { letter-spacing: -.02em; }
.logo-text strong { font-weight: 700; }
.logo-icon { flex-shrink: 0; }

.header-badge {
  background: var(--navy);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: .03em;
  flex-shrink: 0;
}

/* Nav */
.main-nav { display: none; }
.nav-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 0; }
.nav-list a {
  display: block;
  padding: 10px 14px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--grey-700);
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-list a:hover, .nav-list a.active { color: var(--navy); }
.nav-list a.active { border-bottom: 2px solid var(--gold); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: 8px 0;
  list-style: none;
  z-index: 50;
}
.dropdown li a { padding: 8px 18px; font-size: .85rem; }
.has-dropdown:hover > .dropdown { display: block; }

/* Mobile toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile nav open */
.main-nav.is-open {
  display: flex;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 99;
  overflow-y: auto;
  padding: 24px 20px;
}
.main-nav.is-open .nav-list {
  flex-direction: column;
  width: 100%;
}
.main-nav.is-open .nav-list a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--grey-100); }
.main-nav.is-open .dropdown {
  position: static;
  box-shadow: none;
  border: none;
  padding-left: 16px;
}
.main-nav.is-open .dropdown-open > .dropdown { display: block; }

/* --- Hero --- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 48px;
  text-align: center;
}
.hero h1 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: .4em;
  line-height: 1.2;
}
.hero .subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  max-width: 620px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- Trust Strip --- */
.trust-strip {
  background: var(--off-white);
  border-bottom: 1px solid var(--grey-200);
  padding: 16px 0;
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.trust-items li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--grey-600);
  font-weight: 500;
  margin: 0;
}
.trust-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: var(--gold-muted);
}

/* --- Sections --- */
.section { padding: 52px 0; }
.section-alt { background: var(--grey-100); }
.section-title { text-align: center; margin-bottom: 12px; }
.section-lead { text-align: center; max-width: 680px; margin: 0 auto 36px; color: var(--grey-600); font-size: 1.02rem; }

/* --- Page Header (inner pages) --- */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 40px 0 36px;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: .3em; }
.page-header .page-lead { color: rgba(255,255,255,.78); max-width: 640px; margin: 0 auto; font-size: 1rem; }

/* Breadcrumb */
.breadcrumb {
  padding: 12px 0;
  font-size: .82rem;
  color: var(--grey-400);
  border-bottom: 1px solid var(--grey-100);
}
.breadcrumb a { color: var(--grey-500); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { margin: 0 6px; }

/* --- Comparison Table --- */
.comparison-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 24px; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 700px;
}
.comparison-table th {
  background: var(--navy);
  color: var(--white);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-family: var(--font-body);
}
.comparison-table td {
  padding: 16px;
  border-bottom: 1px solid var(--grey-200);
  vertical-align: middle;
}
.comparison-table tr:nth-child(even) td { background: var(--grey-100); }
.comparison-table .casino-name { font-weight: 700; color: var(--navy); font-size: .95rem; white-space: nowrap; }
.comparison-table .offer-text { font-size: .85rem; line-height: 1.5; }
.comparison-table .tc-note { font-size: .75rem; color: var(--grey-400); display: block; margin-top: 3px; }

/* --- Cards --- */
.card-grid { display: grid; gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }

/* Review card */
.review-card { display: flex; flex-direction: column; }
.review-card .card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.review-card .card-logo {
  width: 56px;
  height: 56px;
  background: var(--grey-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .75rem;
  color: var(--navy);
  flex-shrink: 0;
}
.review-card .card-actions { margin-top: auto; padding-top: 16px; display: flex; gap: 10px; }

/* --- Summary Box (review pages) --- */
.summary-box {
  background: var(--off-white);
  border: 1px solid var(--grey-200);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}
.summary-box h2 { font-size: 1.15rem; margin-bottom: 12px; }
.summary-facts { list-style: none; padding: 0; margin: 0; }
.summary-facts li { padding: 6px 0; border-bottom: 1px solid var(--grey-200); font-size: .9rem; display: flex; gap: 8px; }
.summary-facts li:last-child { border: none; }
.summary-facts .fact-label { font-weight: 600; color: var(--navy); min-width: 140px; }

/* Pros / Cons */
.pros-cons { display: grid; gap: 20px; margin-bottom: 32px; }
.pros h3 { color: var(--green-accent); }
.cons h3 { color: var(--red-accent); }
.pros ul, .cons ul { list-style: none; padding: 0; }
.pros li::before { content: '✓ '; color: var(--green-accent); font-weight: 700; }
.cons li::before { content: '✗ '; color: var(--red-accent); font-weight: 700; }

/* --- Why Trust / Features --- */
.features-grid { display: grid; gap: 24px; text-align: center; }
.feature-item { padding: 20px; }
.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 22px; height: 22px; fill: var(--gold); }
.feature-item h3 { font-family: var(--font-body); font-size: .95rem; margin-bottom: .4em; }
.feature-item p { font-size: .9rem; color: var(--grey-600); margin: 0; }

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--grey-200); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 40px 18px 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  position: relative;
  line-height: 1.4;
}
.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 300;
  transition: transform var(--transition);
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  display: none;
  padding: 0 0 18px;
  font-size: .93rem;
  color: var(--grey-600);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* --- Responsible Gambling Block --- */
.rg-block {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
}
.rg-block h2 { color: var(--white); margin-bottom: .5em; }
.rg-block p { color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto 20px; }
.rg-block .btn-primary:hover { color: var(--navy); }

/* --- Editorial Note --- */
.editorial-note {
  background: var(--off-white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 24px;
  font-size: .9rem;
  color: var(--grey-600);
  margin-bottom: 32px;
}
.editorial-note strong { color: var(--navy); }

/* --- Content Layout --- */
.content-wrap { padding: 40px 0; }
.content-narrow { max-width: 800px; margin: 0 auto; }
.content-narrow h2 { margin-top: 1.6em; }
.content-narrow h2:first-child { margin-top: 0; }

/* --- Contact Form --- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; color: var(--navy); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: var(--font-body);
  color: var(--grey-800);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15,31,61,.08);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* --- Footer --- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  padding: 48px 0 0;
  font-size: .88rem;
}
.footer-grid {
  display: grid;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col h3 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.6); font-size: .85rem; }
.footer-col a:hover { color: var(--gold-light); }

.footer-responsible { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.1); text-align: center; }
.footer-badge-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--red-accent);
  color: var(--white);
  font-weight: 700;
  font-size: .8rem;
  border-radius: 50%;
}
.footer-separator { color: rgba(255,255,255,.25); }
.footer-responsible a { color: var(--gold-light); }
.footer-rg-text { font-size: .82rem; color: rgba(255,255,255,.5); max-width: 640px; margin: 0 auto; }

.footer-affiliate-notice {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  text-align: center;
}
.footer-affiliate-notice a { color: var(--gold-light); }

.footer-bottom { padding: 20px 0; text-align: center; font-size: .8rem; color: rgba(255,255,255,.35); }
.footer-small { margin-top: 6px; font-size: .75rem; }

/* --- Internal Links Bar --- */
.internal-links { padding: 28px 0; background: var(--grey-100); border-top: 1px solid var(--grey-200); }
.internal-links h3 { font-family: var(--font-body); font-size: .9rem; margin-bottom: 10px; }
.link-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.link-tags a {
  display: inline-block;
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 20px;
  font-size: .82rem;
  color: var(--navy);
  transition: background var(--transition), border-color var(--transition);
}
.link-tags a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* --- Support Resources Table --- */
.support-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.support-table th { text-align: left; padding: 10px 14px; background: var(--grey-100); font-size: .85rem; border-bottom: 2px solid var(--grey-300); }
.support-table td { padding: 12px 14px; border-bottom: 1px solid var(--grey-200); font-size: .9rem; }

/* --- Responsive --- */
@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pros-cons { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2.2rem; }
  .hero h1 { font-size: 2.5rem; }
}

@media (min-width: 900px) {
  .main-nav { display: flex; align-items: center; }
  .mobile-toggle { display: none; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  h1 { font-size: 2.4rem; }
  .hero { padding: 72px 0 64px; }
  .hero h1 { font-size: 2.8rem; }
  .hero .subtitle { font-size: 1.12rem; }
  .section { padding: 68px 0; }
  .page-header { padding: 52px 0 48px; }
}

@media (min-width: 1100px) {
  .container { padding: 0 32px; }
}

/* Print */
@media print {
  .site-header, .site-footer, .mobile-toggle, .btn { display: none !important; }
  body { font-size: 12pt; color: #000; }
}
