/* =========================================================
   capcycling.org — Non Gamstop Casinos UK | main.css
   ========================================================= */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: local('Inter');
}

:root {
  --bg: #FFFFFF;
  --bg-alt: #F8F9FA;
  --border: #E5E7EB;
  --text: #111827;
  --muted: #6B7280;
  --accent: #16A34A;
  --accent-dark: #15803d;
  --dark: #0f172a;
  --dark2: #1e293b;
  --radius: 8px;
  --font: 'Inter', system-ui, sans-serif;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── CONTAINER ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ── HEADER ── */
.site-header {
  background: var(--dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}
.site-logo span { color: var(--accent); }

/* Desktop nav */
.desktop-nav { display: flex; gap: 1.5rem; list-style: none; }
.desktop-nav a {
  color: #e2e8f0;
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.desktop-nav a:hover { color: var(--accent); text-decoration: none; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s;
}

/* Mobile nav */
.mobile-nav { display: none; }
.mobile-nav.open {
  display: flex;
  flex-direction: column;
  background: var(--dark2);
  padding: 1rem;
  gap: .75rem;
}
.mobile-nav a {
  color: #e2e8f0;
  font-size: 1rem;
  font-weight: 500;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #fff;
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero h1, .hero-desc { color: #f1f5f9; }
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}
.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 720px;
  margin: 0 auto 2rem;
  color: #cbd5e1;
  line-height: 1.8;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-label {
  font-size: .8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-cta-wrap { margin-bottom: 2rem; }
.hero-cta-wrap .btn-primary { font-size: 1.1rem; padding: 16px 36px; }
.trust-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: #fbbf24;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.trust-stars span { color: #94a3b8; font-size: .85rem; }

/* Hero author block */
.hero-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}
.hero-author-info { text-align: left; }
.hero-author-info strong { display: block; color: #f1f5f9; font-size: .95rem; }
.hero-author-info em { color: #94a3b8; font-size: .8rem; font-style: normal; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #16A34A, #15803d);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  animation: pulse 2s infinite;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-1px); text-decoration: none; color: #fff; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .4); }
  50%       { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9rem;
}
.btn-secondary:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ── CONTENT SECTIONS ── */
.content-section {
  padding: 4rem 0;
}
.content-section-alt { background: var(--bg-alt); }
.content-section-dark { background: var(--dark); color: #f1f5f9; }

.content-section h2 {
  display: block;
  width: 100%;
  float: none;
  clear: both;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}
.content-section-dark h2 { color: #f1f5f9; }
.content-section-alt h2 { color: var(--dark); }

/* H2 BANNER */
.h2-banner-wrap {
  display: block;
  width: calc(100% + 32px);
  margin-left: -16px;
  overflow: hidden;
  line-height: 0;
  clear: both;
  margin-bottom: 2rem;
  border-radius: 0;
}
.h2-banner-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 767px) {
  .h2-banner-img { aspect-ratio: 1 / 1; object-position: center top; }
}
.h2-banner-wrap figcaption {
  font-size: 11px;
  color: #6b7280;
  text-align: right;
  padding: 4px 8px 0;
  font-style: italic;
  line-height: 1.4;
  background: var(--bg);
}
.content-section-alt .h2-banner-wrap figcaption { background: var(--bg-alt); }

/* Section body */
.section-body { font-size: 1rem; line-height: 1.8; }
.section-body p { margin-bottom: 1.25rem; }
.section-body p:last-child { margin-bottom: 0; }
.section-body ul, .section-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.section-body li { margin-bottom: .5rem; }
.section-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .9rem;
  overflow-x: auto;
  display: block;
}
.section-body th {
  background: var(--dark);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.section-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.section-body tr:last-child td { border-bottom: none; }
.section-body tr td:first-child { font-weight: 600; }

/* ── VITRINA ── */
.vitrina-section {
  background: var(--bg-alt);
  padding: 4rem 0;
}
.vitrina-section h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .5rem;
}
.vitrina-intro {
  color: var(--muted);
  margin-bottom: 2rem;
}
.vitrina-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.casino-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: box-shadow .2s, transform .2s;
  position: relative;
}
.casino-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.casino-card.top-pick {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(22,163,74,.2);
}
.casino-rank {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}
.casino-card.top-pick .casino-rank { background: var(--accent); }
.casino-main { flex: 1; }
.casino-badge {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--dark);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: .5rem;
  border: 1px solid var(--border);
}
.casino-card.top-pick .casino-badge {
  background: rgba(22,163,74,.1);
  border-color: var(--accent);
  color: var(--accent-dark);
}
.casino-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .25rem;
}
.casino-license, .casino-bonus {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: .25rem;
}
.casino-license { font-weight: 500; }
.casino-bonus { color: var(--text); }
.casino-features {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .5rem;
}
.feature-tag {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: .75rem;
  color: var(--muted);
}
.casino-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
  flex-shrink: 0;
}
.casino-rating {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
}

/* ── EEAT AUTHOR BOX ── */
.eeat-section {
  background: var(--dark);
  color: #f1f5f9;
  padding: 4rem 0;
}
.author-box {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 2rem;
}
.author-box-img {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}
.author-box-info h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: .25rem;
}
.author-box-info .author-title {
  color: var(--accent);
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.author-box-info p {
  color: #cbd5e1;
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.expertise-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.expertise-tag {
  background: rgba(22,163,74,.15);
  border: 1px solid rgba(22,163,74,.3);
  color: #4ade80;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
}

/* ── REVIEWED BY ── */
.reviewed-section {
  background: var(--bg-alt);
  padding: 4rem 0;
}
.reviewed-section h2 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 2rem;
}
.reviewed-by-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .reviewed-by-cards { grid-template-columns: 1fr; }
}
.reviewer-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.reviewer-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.reviewer-header img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.reviewer-info strong { display: block; font-size: .95rem; color: var(--dark); }
.reviewer-info em { font-size: .8rem; color: var(--muted); font-style: normal; }
.reviewer-stars { color: #fbbf24; font-size: .9rem; margin-bottom: .5rem; }
.reviewer-quote { font-size: .9rem; color: var(--muted); line-height: 1.7; font-style: italic; }
.reviewer-date { font-size: .75rem; color: var(--muted); margin-top: .75rem; }

/* ── FAQ ── */
.faq-section {
  padding: 4rem 0;
  background: var(--bg);
}
.faq-section h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 2rem;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.1rem 1.25rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background .2s;
}
.faq-question:hover { background: var(--bg-alt); }
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 300;
  transition: transform .3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.8;
}
.faq-item.open .faq-answer { display: block; }

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .site-logo { font-size: 1.2rem; display: inline-block; margin-bottom: .5rem; }
.footer-brand p { font-size: .85rem; line-height: 1.7; max-width: 340px; }
.footer-links h4 {
  color: #f1f5f9;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: #94a3b8; font-size: .85rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  font-size: .8rem;
  line-height: 1.8;
}
.footer-bottom p { margin-bottom: .5rem; }

/* ── STICKY CTA ── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark2);
  padding: .75rem 1rem;
  z-index: 200;
  box-shadow: 0 -4px 16px rgba(0,0,0,.3);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.sticky-cta p { color: #e2e8f0; font-size: .9rem; font-weight: 600; margin: 0; }
.sticky-cta-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.4rem;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── POPUP ── */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 300;
  align-items: center;
  justify-content: center;
}
.popup-overlay.open { display: flex; }
.popup-box {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  position: relative;
}
.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
}
.popup-box h3 { font-size: 1.4rem; font-weight: 800; color: var(--dark); margin-bottom: .75rem; }
.popup-box p { color: var(--muted); margin-bottom: 1.5rem; }

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--bg-alt);
  padding: .75rem 0;
  font-size: .85rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 .4rem; }

/* ── AUTHOR PAGE ── */
.author-page { padding: 4rem 0; }
.author-hero {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}
.author-hero img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  flex-shrink: 0;
}
.author-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: .25rem; }
.author-hero .author-job { color: var(--accent); font-weight: 600; margin-bottom: 1rem; }

/* ── MEDIA QUERIES ── */
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 3rem 0 2.5rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-author { flex-direction: column; text-align: center; }
  .hero-author-info { text-align: center; }

  .casino-card {
    flex-direction: column;
    align-items: stretch;
  }
  .casino-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .author-box { flex-direction: column; }
  .author-box-img { width: 80px; height: 80px; }

  .footer-inner { grid-template-columns: 1fr; }

  .sticky-cta { display: flex; }

  .author-hero { flex-direction: column; }
  .author-hero img { width: 120px; height: 120px; }
}

@media (min-width: 769px) {
  .sticky-cta { display: none !important; }
}

/* ── UTILITIES ── */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.section-intro { color: var(--muted); font-size: 1.05rem; margin-bottom: 2rem; line-height: 1.7; }
