/* main.css — clearmindstalkingtherapies.co.uk */
:root {
  --primary: #1a3a5c;
  --secondary: #2e7d32;
  --accent: #f57c00;
  --light: #f5f7fa;
  --dark: #111827;
  --text: #374151;
  --border: #e5e7eb;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.1);
}

/* ===== KEYFRAMES ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes spinBadge {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 5px rgba(46,125,50,0.4); }
  50% { box-shadow: 0 0 20px rgba(46,125,50,0.8); }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Roboto, Arial, sans-serif; color: var(--text); background: #fff; line-height: 1.7; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ===== HEADER / NAV ===== */
.site-header { background: var(--primary); color: #fff; padding: 0 20px; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-logo { font-size: 1.2rem; font-weight: 700; color: #fff; letter-spacing: -0.5px; }
.site-logo span { color: #ffd54f; }
.main-nav ul { list-style: none; display: flex; gap: 24px; }
.main-nav a { color: rgba(255,255,255,0.9); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.main-nav a:hover { color: #ffd54f; text-decoration: none; }
.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 0.3s; }
.mobile-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--primary); padding: 16px 20px; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.mobile-nav a { color: #fff; font-size: 1rem; display: block; padding: 6px 0; }
.mobile-nav.open { display: block; }

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, var(--primary) 0%, #0d2137 60%, #1a3a5c 100%); color: #fff; padding: 70px 20px 60px; text-align: center; animation: fadeInUp 0.7s ease; }
.hero h1 { font-size: 2.4rem; font-weight: 800; line-height: 1.25; margin-bottom: 16px; max-width: 780px; margin-left: auto; margin-right: auto; }
.hero .subtitle { font-size: 1.15rem; opacity: 0.88; max-width: 620px; margin: 0 auto 28px; }
.hero-cta { display: inline-block; background: var(--accent); color: #fff; padding: 14px 36px; border-radius: 50px; font-size: 1.05rem; font-weight: 700; animation: pulse 2s ease-in-out infinite; transition: background 0.2s; }
.hero-cta:hover { background: #e65100; text-decoration: none; }
.hero-author-block { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.2); }
.hero-author-block img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #ffd54f; }
.hero-author-block .author-details { text-align: left; }
.hero-author-block .author-name { font-weight: 700; color: #ffd54f; font-size: 0.95rem; }
.hero-author-block .author-role { font-size: 0.82rem; opacity: 0.8; }
.hero-pub-date { font-size: 0.82rem; opacity: 0.7; margin-top: 4px; }
.trust-badges { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 32px; }
.badge { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; padding: 8px 16px; font-size: 0.85rem; display: flex; align-items: center; gap: 6px; }
.badge-icon { font-size: 1.1rem; }

/* ===== SECTIONS ===== */
.section { padding: 60px 20px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-alt { background: var(--light); }
.section h2 { font-size: 1.9rem; color: var(--primary); margin-bottom: 16px; font-weight: 700; }
.section h3 { font-size: 1.3rem; color: var(--primary); margin: 24px 0 10px; font-weight: 600; }
.section p { margin-bottom: 14px; }
.section ul, .section ol { padding-left: 24px; margin-bottom: 14px; }
.section li { margin-bottom: 6px; }
.intro-lead { font-size: 1.15rem; color: var(--dark); font-weight: 500; margin-bottom: 20px; border-left: 4px solid var(--accent); padding-left: 16px; }

/* ===== CASINO CARDS ===== */
.casino-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top: 32px; }
.casino-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; animation: fadeInUp 0.6s ease both; }
.casino-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.casino-card-header { background: linear-gradient(135deg, var(--primary), #2563eb); padding: 20px; color: #fff; display: flex; align-items: center; gap: 14px; }
.casino-rank { background: var(--accent); color: #fff; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; flex-shrink: 0; }
.casino-name { font-size: 1.1rem; font-weight: 700; }
.casino-license { font-size: 0.8rem; opacity: 0.8; }
.casino-body { padding: 18px; }
.casino-bonus { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 6px; padding: 10px 14px; margin-bottom: 14px; font-weight: 600; color: var(--secondary); font-size: 0.95rem; }
.casino-features { list-style: none; padding: 0; margin-bottom: 16px; }
.casino-features li { padding: 4px 0; font-size: 0.88rem; display: flex; align-items: center; gap: 6px; }
.casino-features li::before { content: "✓"; color: var(--secondary); font-weight: 700; }
.casino-cta { display: block; background: var(--secondary); color: #fff; text-align: center; padding: 11px 16px; border-radius: 6px; font-weight: 700; font-size: 0.95rem; animation: glowPulse 3s ease-in-out infinite; transition: background 0.2s; }
.casino-cta:hover { background: #1b5e20; text-decoration: none; }
.casino-disclaimer { font-size: 0.75rem; color: #9ca3af; margin-top: 8px; text-align: center; }

/* ===== TRUST SECTION ===== */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 28px; }
.trust-item { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); box-shadow: var(--shadow); animation: slideInLeft 0.5s ease both; }
.trust-icon { font-size: 2rem; margin-bottom: 12px; }
.trust-item h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 8px; }
.trust-item p { font-size: 0.9rem; color: #6b7280; }

/* ===== SAFETY CHECKLIST ===== */
.safety-checklist { background: #fff; border-radius: var(--radius); padding: 28px; border: 2px solid var(--secondary); margin-top: 24px; }
.safety-checklist h3 { color: var(--secondary); margin-bottom: 16px; }
.checklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checklist-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; }
.check-icon { color: var(--secondary); font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.check-text { font-size: 0.9rem; }

/* ===== INTERACTIVE ELEMENTS ===== */
.interactive-section { background: var(--primary); color: #fff; padding: 60px 20px; }
.interactive-inner { max-width: 900px; margin: 0 auto; }
.interactive-section h2 { color: #ffd54f; margin-bottom: 8px; font-size: 1.8rem; }
.interactive-section .sub { opacity: 0.85; margin-bottom: 32px; }

/* Quiz */
.quiz { background: rgba(255,255,255,0.08); border-radius: 12px; padding: 28px; margin-bottom: 24px; border: 1px solid rgba(255,255,255,0.15); }
.quiz h3 { font-size: 1.15rem; margin-bottom: 18px; color: #ffd54f; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.quiz-option { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; padding: 12px 14px; cursor: pointer; font-size: 0.9rem; color: #fff; transition: all 0.2s; text-align: left; }
.quiz-option:hover { background: rgba(255,255,255,0.2); }
.quiz-option.selected { background: var(--secondary); border-color: var(--secondary); }
.quiz-result { background: rgba(255,255,255,0.1); border-radius: 8px; padding: 14px; font-size: 0.9rem; min-height: 44px; display: none; }
.quiz-result.show { display: block; animation: fadeInUp 0.4s ease; }
.quiz-btn { background: var(--accent); color: #fff; border: none; padding: 10px 24px; border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 0.95rem; margin-top: 8px; transition: background 0.2s; }
.quiz-btn:hover { background: #e65100; }

/* Calculator */
.calculator { background: rgba(255,255,255,0.08); border-radius: 12px; padding: 28px; margin-bottom: 24px; border: 1px solid rgba(255,255,255,0.15); }
.calculator h3 { font-size: 1.15rem; margin-bottom: 18px; color: #ffd54f; }
.calc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.calc-group label { display: block; font-size: 0.82rem; opacity: 0.8; margin-bottom: 5px; }
.calc-group input, .calc-group select { width: 100%; padding: 10px 12px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.12); color: #fff; font-size: 0.9rem; }
.calc-group input::placeholder { color: rgba(255,255,255,0.5); }
.calc-btn { background: var(--accent); color: #fff; border: none; padding: 10px 24px; border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 0.95rem; transition: background 0.2s; }
.calc-btn:hover { background: #e65100; }
.calc-result { margin-top: 14px; padding: 14px; background: rgba(255,255,255,0.1); border-radius: 8px; font-size: 0.9rem; display: none; }
.calc-result.show { display: block; animation: fadeInUp 0.4s ease; }

/* Finder */
.finder { background: rgba(255,255,255,0.08); border-radius: 12px; padding: 28px; margin-bottom: 24px; border: 1px solid rgba(255,255,255,0.15); }
.finder h3 { font-size: 1.15rem; margin-bottom: 18px; color: #ffd54f; }
.finder-form { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.finder-form select { padding: 10px 14px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.12); color: #fff; font-size: 0.9rem; flex: 1; min-width: 140px; }
.finder-btn { background: var(--secondary); color: #fff; border: none; padding: 10px 24px; border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 0.95rem; transition: background 0.2s; }
.finder-btn:hover { background: #1b5e20; }
.finder-output { margin-top: 14px; padding: 14px; background: rgba(255,255,255,0.1); border-radius: 8px; font-size: 0.9rem; display: none; }
.finder-output.show { display: block; animation: fadeInUp 0.4s ease; }

/* Checker */
.checker { background: rgba(255,255,255,0.08); border-radius: 12px; padding: 28px; border: 1px solid rgba(255,255,255,0.15); }
.checker h3 { font-size: 1.15rem; margin-bottom: 18px; color: #ffd54f; }
.checker-input-row { display: flex; gap: 10px; margin-bottom: 14px; }
.checker-input-row input { flex: 1; padding: 10px 14px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.12); color: #fff; font-size: 0.9rem; }
.checker-input-row input::placeholder { color: rgba(255,255,255,0.5); }
.checker-btn { background: var(--secondary); color: #fff; border: none; padding: 10px 24px; border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 0.95rem; transition: background 0.2s; }
.checker-btn:hover { background: #1b5e20; }
.checker-result { padding: 14px; background: rgba(255,255,255,0.1); border-radius: 8px; font-size: 0.9rem; display: none; }
.checker-result.show { display: block; animation: fadeInUp 0.4s ease; }

/* ===== FAQ ===== */
.faq-list { margin-top: 28px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-question { background: #fff; padding: 16px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--primary); user-select: none; transition: background 0.2s; }
.faq-question:hover { background: var(--light); }
.faq-question .faq-arrow { font-size: 0.8rem; transition: transform 0.3s; }
.faq-question.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { display: none; padding: 16px 20px; background: var(--light); font-size: 0.93rem; line-height: 1.7; border-top: 1px solid var(--border); }
.faq-answer.open { display: block; animation: fadeInUp 0.3s ease; }

/* ===== REVIEWED BY ===== */
.reviewed-by-section { background: #fffbf0; border: 1px solid #fde68a; border-radius: var(--radius); padding: 20px 24px; margin: 32px 0; display: flex; align-items: center; gap: 16px; }
.reviewed-by-section img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.reviewed-by-section .reviewer-info strong { display: block; font-size: 0.95rem; color: var(--dark); }
.reviewed-by-section .reviewer-info span { font-size: 0.82rem; color: #6b7280; }
.reviewed-by-section .reviewer-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); font-weight: 700; margin-bottom: 2px; }

/* ===== AUTHOR META ===== */
.author-meta { display: flex; align-items: flex-start; gap: 18px; background: var(--light); border-radius: var(--radius); padding: 24px; margin-top: 40px; border: 1px solid var(--border); }
.author-meta img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); flex-shrink: 0; }
.author-meta-info .author-name { font-size: 1.1rem; font-weight: 700; color: var(--primary); display: block; }
.author-meta-info .author-role-title { font-size: 0.85rem; color: var(--accent); font-weight: 600; display: block; margin-top: 2px; }
.author-meta-info p { font-size: 0.88rem; color: #6b7280; margin-top: 6px; }

/* ===== REGULATORY TABLE ===== */
.reg-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 0.9rem; }
.reg-table th { background: var(--primary); color: #fff; padding: 12px 14px; text-align: left; }
.reg-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.reg-table tr:nth-child(even) td { background: var(--light); }
.reg-badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 0.78rem; font-weight: 700; }
.reg-badge.uk { background: #dbeafe; color: #1e40af; }
.reg-badge.mga { background: #d1fae5; color: #065f46; }
.reg-badge.curacao { background: #fef3c7; color: #92400e; }
.reg-badge.kahnawake { background: #ede9fe; color: #5b21b6; }

/* ===== COMPARISON TABLE ===== */
.comparison-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 0.88rem; box-shadow: var(--shadow); border-radius: 8px; overflow: hidden; }
.comparison-table th { background: var(--primary); color: #fff; padding: 12px 14px; text-align: left; }
.comparison-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: #f9fafb; }
.ct-yes { color: var(--secondary); font-weight: 700; }
.ct-no { color: #dc2626; font-weight: 700; }

/* ===== DISCLAIMER ===== */
.disclaimer { background: #fef9e7; border: 1px solid #fce4a1; border-radius: var(--radius); padding: 14px 18px; font-size: 0.8rem; color: #78350f; margin-top: 24px; }
.disclaimer strong { color: #92400e; }

/* ===== FOOTER ===== */
.site-footer { background: #0d1b2a; color: rgba(255,255,255,0.7); padding: 40px 20px 24px; font-size: 0.85rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-brand .logo { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-brand p { font-size: 0.82rem; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.78rem; color: rgba(255,255,255,0.4); }
.footer-disclaimer { font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-top: 10px; line-height: 1.5; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .main-nav { display: none; }
  .hero h1 { font-size: 1.7rem; }
  .casino-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .checklist-grid { grid-template-columns: 1fr; }
  .quiz-options { grid-template-columns: 1fr; }
  .calc-form { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-author-block { flex-direction: column; text-align: center; }
  .hero-author-block .author-details { text-align: center; }
  .author-meta { flex-direction: column; align-items: center; text-align: center; }
  .reviewed-by-section { flex-direction: column; text-align: center; }
  .comparison-table { font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .section { padding: 40px 16px; }
  .hero { padding: 50px 16px 40px; }
  .hero h1 { font-size: 1.5rem; }
  .finder-form { flex-direction: column; }
}
