:root {
  --green-900: #1b5e20;
  --green-800: #2e7d32;
  --green-700: #388e3c;
  --green-100: #f0f7f1;
  --green-50:  #f6fbf6;
  --amber-600: #f57c00;
  --amber-50:  #fff8f0;
  --gray-900: #1a1a1a;
  --gray-700: #444;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --gray-50:  #fafafa;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-900);
  background: #fff;
  scroll-behavior: smooth;
}

/* ── Header ────────────────────────────────────────────── */

header {
  background: #fff;
  border-bottom: 1px solid var(--gray-300);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-800);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.logo:hover {
  color: var(--green-900);
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}

nav a:hover {
  color: var(--green-800);
  background: var(--green-100);
  text-decoration: none;
}

/* ── Layout ─────────────────────────────────────────────── */

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* ── Typography ─────────────────────────────────────────── */

h1 {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  color: var(--gray-900);
  letter-spacing: -0.01em;
  border-bottom: 2px solid var(--gray-300);
  padding-bottom: 0.6rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

p {
  margin-bottom: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
}

a {
  color: var(--green-800);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--green-900);
  text-decoration: underline;
}

/* ── Intro section ──────────────────────────────────────── */

.intro-section {
  background: var(--green-100);
  border: 1px solid #c8e6cb;
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
}

.intro-section p:last-child {
  margin-bottom: 0;
}

.tagline {
  font-size: 1.1rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* ── Company cards ──────────────────────────────────────── */

.company-card {
  background: #fff;
  border: 1px solid var(--gray-300);
  border-left: 4px solid var(--green-700);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.company-card:hover {
  box-shadow: var(--shadow-md);
}

.company-card p:last-of-type {
  margin-bottom: 1rem;
}

.company-card.featured {
  background: var(--amber-50);
  border-left-color: var(--amber-600);
  border-color: #f5cba7;
}

.company-card.featured h3::after {
  content: " ★ Featured";
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--amber-600);
  letter-spacing: 0.03em;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ── CTA buttons ────────────────────────────────────────── */

.cta-button {
  display: inline-block;
  background: var(--green-800);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  margin-top: 0.25rem;
  margin-right: 0.75rem;
}

.cta-button:hover {
  background: var(--green-900);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ── Secondary companies grid ───────────────────────────── */

.secondary-companies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.secondary-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
  border-top: 3px solid var(--green-700);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: box-shadow 0.2s;
}

.secondary-card:hover {
  box-shadow: var(--shadow-sm);
}

.secondary-card p {
  font-size: 0.93rem;
  color: var(--gray-500);
  margin: 0;
}

/* ── Tables ─────────────────────────────────────────────── */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-300);
}

.comparison-table th {
  background: var(--gray-100);
  font-weight: 600;
  color: var(--gray-900);
}

.comparison-table tr:hover td {
  background: var(--green-50);
}

/* ── FAQ ────────────────────────────────────────────────── */

.faq-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.faq-item p {
  margin-bottom: 0;
  color: var(--gray-500);
}

/* ── Breadcrumb ─────────────────────────────────────────── */

.breadcrumb {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

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

/* ── Footer ─────────────────────────────────────────────── */

footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.8);
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1080px;
  margin: 0 auto;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-links h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.5);
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,.75);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,.4);
}

.footer-bottom p {
  color: rgba(255,255,255,.4);
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  nav ul {
    gap: 0.1rem;
  }

  h1 {
    font-size: 1.65rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  main {
    padding: 2rem 1rem 3rem;
  }

  .company-card {
    padding: 1.25rem 1.25rem;
  }

  .intro-section {
    padding: 1.25rem;
  }

  .secondary-companies {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}
