/* ============================================
   leviwalters.co.uk — Non Gamstop Casinos UK
   main.css v1.0 — March 2026
   ============================================ */

@font-face {
  font-family: 'Inter';
  font-display: swap;
  src: local('Inter');
}

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

*, *::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 {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER & NAV ===== */
.site-header {
  background: var(--dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}
.site-logo span { color: var(--accent); }

.desktop-nav { display: flex; gap: 24px; align-items: center; }
.desktop-nav a {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.desktop-nav a:hover { color: #fff; text-decoration: none; }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 700 !important;
  font-size: 0.85rem !important;
}
.nav-cta:hover { background: #15803d; text-decoration: none !important; }

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

.mobile-nav { display: none; }
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav.open {
    display: flex;
    flex-direction: column;
    background: var(--dark2);
    padding: 16px 20px;
    gap: 12px;
  }
  .mobile-nav a {
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .mobile-nav a:last-child { border-bottom: none; }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #fff;
  padding: 64px 0 48px;
}

.hero h1, .hero-desc { color: #f1f5f9; }

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-badge {
  display: inline-block;
  background: rgba(22, 163, 74, 0.2);
  color: #4ade80;
  border: 1px solid rgba(22, 163, 74, 0.4);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 700px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.trust-stars {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.trust-stars .stars { color: #fbbf24; font-size: 1rem; letter-spacing: 2px; }

.hero-author {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 12px 18px;
  max-width: fit-content;
}

.hero-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.hero-author-info { display: flex; flex-direction: column; }
.hero-author-name { font-weight: 700; font-size: 0.9rem; color: #f1f5f9; }
.hero-author-title { font-size: 0.78rem; color: #94a3b8; }
.hero-author-date { font-size: 0.72rem; color: #64748b; margin-top: 2px; }

/* ===== 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;
  text-decoration: none;
  font-size: 1rem;
  animation: pulse 2s infinite;
  transition: transform 0.2s;
}
.btn-primary:hover { transform: translateY(-1px); text-decoration: none; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.18); text-decoration: none; }

/* ===== CONTENT SECTIONS ===== */
.content-section {
  padding: 56px 0;
}

.content-section-alt {
  background: var(--bg-alt);
}

.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: 20px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

/* ===== H2 BANNER ===== */
.h2-banner-wrap {
  display: block;
  width: calc(100% + 32px);
  margin-left: -16px;
  overflow: hidden;
  line-height: 0;
  clear: both;
  margin-bottom: 28px;
  border-radius: var(--radius);
}

.h2-banner-img {
  display: block;
  width: 100%;
  aspect-ratio: 3/1;
  object-fit: cover;
}

@media (max-width: 767px) {
  .h2-banner-img { aspect-ratio: 1/1; object-position: center top; }
}

.h2-banner-wrap figcaption {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  padding: 4px 8px 0;
  font-style: italic;
  background: #fff;
}

.section-body { font-size: 1rem; line-height: 1.8; color: var(--text); }
.section-body p { margin-bottom: 18px; }
.section-body p:last-child { margin-bottom: 0; }

.section-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 18px;
}

.section-body ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.section-body ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.section-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 24px;
  font-size: 0.9rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.section-body table thead tr { background: var(--dark); color: #fff; }
.section-body table th { padding: 12px 14px; text-align: left; font-weight: 600; font-size: 0.85rem; }
.section-body table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.section-body table tbody tr:last-child td { border-bottom: none; }
.section-body table tbody tr:hover { background: #f0fdf4; }

/* ===== VITRINA / CASINO CARDS ===== */
.vitrina-section {
  background: var(--bg-alt);
  padding: 56px 0;
}

.vitrina-section h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  text-align: center;
}

.vitrina-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 36px;
  font-size: 1rem;
}

.vitrina-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.casino-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 16px;
  align-items: center;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}

.casino-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.casino-card.top-pick {
  border: 2px solid var(--accent);
  box-shadow: 0 4px 20px rgba(22, 163, 74, 0.15);
}

.top-pick-ribbon {
  position: absolute;
  top: -1px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 0 0 6px 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.casino-rank {
  width: 40px;
  height: 40px;
  background: var(--dark);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.casino-card.top-pick .casino-rank { background: var(--accent); }

.casino-main { display: flex; flex-direction: column; gap: 6px; }

.casino-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.casino-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
}

.casino-license {
  font-size: 0.82rem;
  color: var(--muted);
}

.casino-bonus {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.casino-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.feature-tag {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
}

.casino-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 140px;
}

.casino-rating {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
}

.casino-cta .btn-primary {
  padding: 10px 20px;
  font-size: 0.88rem;
  width: 100%;
  justify-content: center;
  text-align: center;
  animation: none;
}

.casino-cta .btn-primary:hover {
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

@media (max-width: 768px) {
  .casino-card {
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
  }
  .casino-cta {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    min-width: auto;
  }
  .casino-cta .btn-primary { width: auto; flex: 1; }
}

/* ===== E-E-A-T AUTHOR BOX ===== */
.eeat-section {
  padding: 56px 0;
  background: var(--dark);
  color: #f1f5f9;
}

.eeat-inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 36px;
  align-items: start;
}

.author-portrait {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  display: block;
}

.eeat-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.author-title-badge {
  display: inline-block;
  background: rgba(22,163,74,0.2);
  color: #4ade80;
  border: 1px solid rgba(22,163,74,0.4);
  border-radius: 50px;
  padding: 3px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.eeat-bio {
  color: #94a3b8;
  line-height: 1.75;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.expertise-tag {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #cbd5e1;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .eeat-inner { grid-template-columns: 1fr; text-align: center; }
  .author-portrait { margin: 0 auto; }
  .expertise-tags { justify-content: center; }
}

/* ===== REVIEWED BY ===== */
.reviewed-by-section {
  padding: 56px 0;
  background: var(--bg-alt);
}

.reviewed-by-section h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  text-align: center;
}

.reviewed-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 36px;
}

.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: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.reviewer-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin: 0 auto 12px;
  display: block;
}

.reviewer-name { font-weight: 700; color: var(--dark); font-size: 1rem; margin-bottom: 2px; }
.reviewer-title { color: var(--muted); font-size: 0.8rem; margin-bottom: 8px; }
.reviewer-stars { color: #fbbf24; font-size: 1rem; margin-bottom: 10px; letter-spacing: 2px; }
.reviewer-quote { font-size: 0.85rem; color: var(--muted); line-height: 1.6; font-style: italic; }
.reviewer-date { font-size: 0.75rem; color: #9ca3af; margin-top: 8px; }

/* ===== FAQ ===== */
.faq-section {
  padding: 56px 0;
}

.faq-section h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  text-align: center;
}

.faq-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 36px;
}

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  font-family: var(--font);
  transition: background 0.2s;
}

.faq-question:hover { background: var(--bg-alt); }

.faq-icon {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

.faq-item.open .faq-answer { display: block; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .site-logo { color: #fff; font-size: 1.15rem; }
.footer-tagline { color: #64748b; font-size: 0.85rem; margin-top: 8px; line-height: 1.6; max-width: 280px; }

.footer-col h4 { color: #fff; font-weight: 700; font-size: 0.9rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #64748b; font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.disclaimer {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.6;
  max-width: 700px;
}

.footer-legal { font-size: 0.78rem; color: #64748b; }
.footer-legal a { color: #64748b; }
.footer-legal a:hover { color: var(--accent); text-decoration: none; }

.gamble-aware {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #fca5a5;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; }
}

/* ===== STICKY CTA ===== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--dark);
  border-top: 2px solid var(--accent);
  padding: 12px 20px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.sticky-cta-text { color: #f1f5f9; font-size: 0.88rem; font-weight: 600; }
.sticky-cta-text span { color: var(--accent); }

@media (max-width: 768px) {
  .sticky-cta.visible { display: flex; }
}

/* ===== POPUP ===== */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.popup-overlay.open { display: flex; }

.popup-box {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
}

.popup-icon { font-size: 3rem; margin-bottom: 12px; }
.popup-title { font-size: 1.4rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.popup-text { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; line-height: 1.6; }
.popup-disclaimer { font-size: 0.73rem; color: #9ca3af; margin-top: 12px; }

/* ===== SECTION BACKGROUNDS (explicit, no nth-child) ===== */
.section-bg-white { background: var(--bg); }
.section-bg-alt { background: var(--bg-alt); }
.section-bg-dark { background: var(--dark); color: #f1f5f9; }
