/* ============================================
   Class Action Buddy - Website Styles
   ============================================ */

:root {
  --primary: #5D82F2;
  --primary-dark: #4A6BD4;
  --primary-light: #EEF2FF;
  --success: #22C55E;
  --success-light: #F0FFF4;
  --warning: #F59E0B;
  --text-primary: #1a1a2e;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --bg: #F8FAFC;
  --white: #ffffff;
  --border: #E2E8F0;
  --radius: 12px;
  --radius-lg: 16px;
  --max-width: 1200px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* ---- Navigation ---- */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--primary-dark);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-primary);
}

/* ---- Hero ---- */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 16px 32px;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.hero-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--white);
}

/* ---- Section styles ---- */
.section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Cards grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.card-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.badge-green {
  background: var(--success-light);
  color: #15803D;
}

.badge-orange {
  background: #FFF7ED;
  color: #C2410C;
}

.badge-blue {
  background: var(--primary-light);
  color: var(--primary);
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.card-payout {
  font-size: 22px;
  font-weight: 700;
  color: var(--success);
}

.card-deadline {
  font-size: 14px;
  color: var(--text-muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  margin-top: 12px;
}

.card-link:hover {
  gap: 8px;
}

/* ---- Email Signup ---- */
.email-signup {
  background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  color: var(--white);
  margin: 40px 0;
}

.email-signup h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.email-signup p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.email-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.email-form input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.email-form input::placeholder {
  color: rgba(255,255,255,0.6);
}

.email-form input:focus {
  border-color: rgba(255,255,255,0.6);
}

.email-form button {
  padding: 14px 28px;
  background: var(--white);
  color: var(--primary);
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
  white-space: nowrap;
}

.email-form button:hover {
  transform: translateY(-2px);
}

.email-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.email-success {
  font-size: 16px;
  font-weight: 600;
  margin-top: 12px;
}

.email-privacy {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 12px;
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.faq-arrow {
  font-size: 20px;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Eligibility Tool ---- */
.eligibility-tool {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 600px;
  margin: 0 auto;
}

.eligibility-step {
  display: none;
}

.eligibility-step.active {
  display: block;
}

.eligibility-label {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.eligibility-select,
.eligibility-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}

.eligibility-select:focus,
.eligibility-input:focus {
  border-color: var(--primary);
}

.eligibility-btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.eligibility-result {
  padding: 20px;
  border-radius: var(--radius);
  margin-top: 16px;
}

.eligibility-result.eligible {
  background: var(--success-light);
  border: 1px solid var(--success);
}

.eligibility-result.not-eligible {
  background: #FEF2F2;
  border: 1px solid #EF4444;
}

/* ---- Blog ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  text-decoration: none;
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--primary-light);
}

.blog-card-body {
  padding: 24px;
}

.blog-card-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.blog-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.blog-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Blog article */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.article-header {
  margin-bottom: 32px;
}

.article-header h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-meta {
  font-size: 14px;
  color: var(--text-muted);
}

.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 32px 0 12px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 24px 0 8px;
}

.article-body p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.article-body ul, .article-body ol {
  margin: 0 0 16px 24px;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-body blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-muted);
}

.article-cta {
  background: var(--primary-light);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}

.article-cta h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.article-cta p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  padding: 16px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

/* ---- Settlement detail ---- */
.settlement-detail {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.settlement-hero {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.settlement-hero h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
}

.settlement-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.settlement-stat {
  flex: 1;
  min-width: 140px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.settlement-stat-value {
  font-size: 28px;
  font-weight: 700;
}

.settlement-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.settlement-stat-value.green { color: var(--success); }
.settlement-stat-value.orange { color: var(--warning); }
.settlement-stat-value.blue { color: var(--primary); }

.settlement-info {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.settlement-info h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.settlement-info p,
.settlement-info li {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.settlement-info ul {
  margin: 12px 0 12px 20px;
}

.settlement-cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  color: var(--white);
}

.settlement-cta-box h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.settlement-cta-box p {
  opacity: 0.9;
  margin-bottom: 20px;
}

.settlement-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--primary);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 600;
  transition: transform 0.2s;
}

.settlement-cta-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--primary);
}

/* ---- Footer ---- */
.footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
  margin-top: 60px;
}

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

.footer-brand {
  font-size: 14px;
  line-height: 1.7;
}

.footer-brand strong {
  color: var(--white);
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
}

.footer h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 8px;
}

.footer a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 13px;
  text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }

  .hero h1 { font-size: 32px; }
  .hero p { font-size: 17px; }

  .section-header h2 { font-size: 28px; }

  .card-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }

  .email-form { flex-direction: column; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .settlement-stats { flex-direction: column; }

  .article-header h1 { font-size: 28px; }
}

/* ---- Structured Data / Schema.org hidden ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
