/* ============================================
   EveryGene Landing — Global Styles
   ============================================ */

/* Fonts */
@font-face {
  font-family: 'HWT';
  src: url('/assets/fonts/hwt.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: optional; /* decorative — skip if not cached, prevents CLS */
}

@font-face {
  font-family: 'Quicksand';
  src: url('/assets/fonts/quicksand.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-roman.woff2') format('woff2');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-italic-700.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: optional;
}

/* ============================================
   CSS Variables
   ============================================ */
:root {
  /* Brand Colors */
  --color-mint: #5FBB97;
  --color-mint-dark: #4aa382;
  --color-mint-light: rgba(95, 187, 151, 0.1);
  --color-charcoal: #394053;
  --color-charcoal-light: #4a5268;
  --color-pink: #FF5C67;
  --color-pink-light: rgba(255, 92, 103, 0.1);
  --color-isabelline: #F2E9E4;

  /* Semantic */
  --background: #F2E9E4;
  --surface: #FFFFFF;
  --foreground: #394053;
  --muted: #5B6472;
  --border: #E5E7EB;
  --primary: #5FBB97;
  --primary-foreground: #FFFFFF;
  /* Accessible variants: mint text on light backgrounds and buttons need AA contrast */
  --primary-text: #2C6E52;
  --primary-strong: #2F7455;
  --primary-strong-hover: #256349;
  --mint-on-dark: #7ED0AF;

  /* Typography — fallback stacks chosen to minimize CLS */
  --font-display: 'HWT', Georgia, 'Times New Roman', serif;
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Quicksand', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --section-py: 5rem;
  --border-radius: 0.75rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(57, 64, 83, 0.08);
  --shadow-md: 0 4px 16px rgba(57, 64, 83, 0.12);
  --shadow-lg: 0 8px 32px rgba(57, 64, 83, 0.16);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.7;
  font-size: 1rem;
  /* Sticky footer: ensure footer always at bottom on short pages */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#main-content {
  flex: 1 0 auto;
}

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

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

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--foreground);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.display-font {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

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

/* ============================================
   Layout Utilities
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-py) 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-lg {
  padding: 7rem 0;
}

.surface {
  background: var(--surface);
}

.bg-charcoal {
  background: var(--color-charcoal);
  color: #fff;
}

.bg-mint {
  background: var(--color-mint);
  color: #fff;
}

.bg-isabelline {
  background: var(--background);
}

/* ============================================
   Navigation
   ============================================ */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--foreground);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo:hover { text-decoration: none; }

.nav-logo img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.nav-links a.active {
  color: var(--primary-text);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    align-items: flex-start;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-links .btn {
    display: inline-flex;
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--primary-strong);
  color: #fff;
  border-color: var(--primary-strong);
}

.btn-primary:hover {
  background: var(--primary-strong-hover);
  border-color: var(--primary-strong-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--color-mint);
  color: var(--primary-text);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--color-charcoal) 0%, #2d3244 100%);
  color: #fff;
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(95, 187, 151, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(95, 187, 151, 0.15);
  border: 1px solid rgba(95, 187, 151, 0.3);
  color: var(--color-mint);
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--color-mint);
}

.hero-description {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

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

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--color-mint);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  max-height: 420px;
  width: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-image {
    order: -1;
  }
  .hero-image img {
    max-height: 280px;
  }
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-mint-light);
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-mint);
}

.card-icon svg { width: 26px; height: 26px; }

.card-title {
  font-size: 1.1rem;
  margin-bottom: 0.625rem;
}

.card-body {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ============================================
   Grid Layouts
   ============================================ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-text);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ============================================
   Features Section
   ============================================ */
.feature-icon-lg {
  width: 64px;
  height: 64px;
  background: var(--color-mint-light);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-mint);
}

.feature-icon-lg svg { width: 34px; height: 34px; }

/* ============================================
   Pricing
   ============================================ */
.pricing-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--color-mint);
  box-shadow: var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-strong);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  white-space: nowrap;
}

.pricing-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-price {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  margin: 1.25rem 0;
}

.pricing-price .amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--foreground);
}

.pricing-price .period {
  color: var(--muted);
  font-size: 0.9rem;
  padding-bottom: 0.5rem;
}

.pricing-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.pricing-features {
  flex: 1;
  margin-bottom: 2rem;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.pricing-feature:last-child { border-bottom: none; }

.pricing-feature .check {
  color: var(--color-mint);
  flex-shrink: 0;
  display: inline-flex;
}

.pricing-feature .check svg { width: 16px; height: 16px; }

.pricing-feature .cross {
  color: var(--muted);
  font-size: 1rem;
  flex-shrink: 0;
}

.pricing-feature.disabled {
  color: var(--muted);
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  font-style: italic;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-mint-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-mint);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-role {
  color: var(--muted);
  font-size: 0.8rem;
}

.testimonial-stars {
  color: #f59e0b;
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}

.testimonial-stars svg { width: 16px; height: 16px; }

/* ============================================
   FAQ
   ============================================ */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--foreground);
  gap: 1rem;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  transition: all 0.2s;
}

.faq-item.open .faq-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.75;
}

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

.faq-search {
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
}

.faq-search > label {
  display: block;
  margin-bottom: 0.625rem;
  font-weight: 700;
}

.faq-search-controls {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.faq-search-controls .form-input {
  min-width: 0;
  flex: 1;
}

.faq-search-status {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.faq-search-empty {
  padding: 2rem;
  text-align: center;
  background: var(--background);
  border-radius: var(--border-radius);
}

.faq-search-empty h2 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

@media (max-width: 600px) {
  .faq-search-controls { flex-wrap: wrap; }
  .faq-search-controls .form-input { flex-basis: 100%; }
}

/* ============================================
   Blog
   ============================================ */
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.post-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--color-mint-light);
  color: #1a5038;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  margin-bottom: 0.875rem;
}

.post-title {
  font-size: 1.1rem;
  margin-bottom: 0.625rem;
  color: var(--foreground);
  line-height: 1.4;
}

.post-title a {
  color: inherit;
}

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

.post-excerpt {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  flex: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: auto;
}

.post-date { display: flex; align-items: center; gap: 0.25rem; }
.post-read-time { display: flex; align-items: center; gap: 0.25rem; }

/* Blog Article Layout */
.article-header {
  padding: 4rem 0 3rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--color-charcoal) 0%, #2d3244 100%);
  color: #fff;
}

.article-header .breadcrumb { color: rgba(255,255,255,0.6); }
.article-header .breadcrumb a { color: rgba(255,255,255,0.6); }
.article-header .breadcrumb a:hover { color: #fff; }
.article-header .breadcrumb-sep { color: rgba(255,255,255,0.6); }

.article-header .container {
  max-width: 860px;
}

.article-tag {
  display: inline-block;
  background: var(--color-mint-light);
  color: var(--color-mint);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  margin-bottom: 1.25rem;
}

.article-title {
  margin-bottom: 1.25rem;
  color: #fff;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--foreground);
}

.article-header .article-meta { color: rgba(255,255,255,0.65); }
.article-header .article-author { color: rgba(255,255,255,0.9); }

.article-body {
  max-width: 860px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.article-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.article-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.article-body p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-body ul, .article-body ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-body ol { list-style: decimal; }

.article-body li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-body blockquote {
  border-left: 4px solid var(--color-mint);
  padding: 0.75rem 1.5rem;
  margin: 2rem 0;
  background: var(--color-mint-light);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  color: var(--foreground);
  font-style: italic;
}

.article-body code {
  background: var(--background);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
  font-family: monospace;
}

.article-body a:not(.btn) {
  color: var(--primary-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:not(.btn):hover {
  color: var(--primary-strong-hover);
}

.article-body strong { font-weight: 700; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border);
}

.article-body th {
  background: var(--color-charcoal);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-body td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
  vertical-align: top;
}

.article-body tr:last-child td { border-bottom: none; }

.article-body tr:nth-child(even) td { background: rgba(95, 187, 151, 0.05); }

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--color-charcoal) 0%, #2d3244 100%);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--color-charcoal);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.footer-col h2 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col ul a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgba(255,255,255,0.72);
}

.footer-legal a:hover {
  color: var(--mint-on-dark);
  text-decoration: none;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

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

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

.breadcrumb-sep { color: var(--border); }

/* ============================================
   Page Hero (inner pages)
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--color-charcoal) 0%, #2d3244 100%);
  color: #fff;
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================
   Content Prose (privacy, terms)
   ============================================ */
.prose {
  max-width: 800px;
  margin: 0 auto;
}

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.prose h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.prose p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
}

.prose ul li { margin-bottom: 0.5rem; line-height: 1.75; }
.prose strong { color: var(--foreground); font-weight: 700; }

/* ============================================
   Contact Form
   ============================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--surface);
  color: var(--foreground);
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-mint);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

/* ============================================
   About page
   ============================================ */
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  text-align: center;
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-mint-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-mint);
  margin: 0 auto 1rem;
}

.team-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ============================================
   Misc Utilities
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.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;
}

/* ============================================
   Practice Pages — MCQ
   ============================================ */
.practice-question {
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.mcq-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.mcq-option {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: 0.95rem;
  color: var(--foreground);
  line-height: 1.5;
  font-family: inherit;
}

.mcq-option:hover:not(:disabled) {
  border-color: var(--color-mint);
  background: var(--color-mint-light);
}

.mcq-option.selected {
  border-color: var(--color-charcoal);
  background: rgba(57, 64, 83, 0.05);
}

.mcq-option.correct {
  border-color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
}

.mcq-option.incorrect {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.06);
}

.mcq-option:disabled { cursor: default; }

.mcq-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--background);
  border: 1.5px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.mcq-option.selected .mcq-letter {
  background: var(--color-charcoal);
  border-color: var(--color-charcoal);
  color: #fff;
}

.mcq-option.correct .mcq-letter {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.mcq-option.incorrect .mcq-letter {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.answer-reveal[hidden] { display: none; }

.reveal-btn { cursor: pointer; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  :root { --section-py: 3.5rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .cta-banner { padding: 3.5rem 0; }
}

/* Readable links and tables on narrow screens. */
#main-content p a:not(.btn),
#main-content li a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--border-radius);
}
.article-body .table-scroll table {
  min-width: 560px;
  margin: 0;
}
@media (max-width: 600px) {
  .article-body th, .article-body td { padding: 0.625rem 0.5rem; }
  .btn { white-space: normal; text-align: center; }
}
/* Reveal the skip link when navigating by keyboard. */
.sr-only:focus {
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Original EveryGene resource images retain the complete cover or photograph. */
.resource-photo {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto 1.5rem;
  border-radius: 8px;
}
.resource-photo-deck { max-width: 640px; }
.resource-note { text-align: center; color: var(--muted); font-size: 0.875rem; margin-top: 1rem; }
.workbook-cards .btn { margin-top: 1rem; }
.coverage-topics {
  columns: 2;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 1.5rem;
  list-style: disc;
}
.coverage-topics li { break-inside: avoid; margin-bottom: 0.75rem; }
@media (max-width: 640px) { .coverage-topics { columns: 1; } }

.resource-feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; }
.resource-feature .resource-photo { margin-bottom: 0; }
@media (max-width: 640px) { .resource-feature { grid-template-columns: 1fr; } }
