:root {
  --ink: #17201c;
  --muted: #5d6963;
  --paper: #fbfbf7;
  --white: #ffffff;
  --green: #0f6b4f;
  --green-dark: #0a3f32;
  --coral: #e45d45;
  --gold: #c89b35;
  --sky: #dff0f2;
  --line: #dfe4dd;
  --shadow: 0 20px 50px rgba(23, 32, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(251, 251, 247, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(223, 228, 221, 0.85);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: var(--white);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  height: clamp(500px, 60vh, 590px);
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.hero-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(8, 25, 18, 0.86), rgba(8, 25, 18, 0.52) 48%, rgba(8, 25, 18, 0.08));
  inset: 0;
  position: absolute;
}

.hero-content {
  color: var(--white);
  max-width: 900px;
  padding: clamp(44px, 6vw, 68px) clamp(20px, 6vw, 76px) 48px;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3.55rem;
  line-height: 1.03;
  margin: 12px 0 18px;
  max-width: 900px;
}

.hero-copy {
  font-size: 1.15rem;
  max-width: 670px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-button,
.secondary-button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 850;
  min-height: 46px;
  padding: 12px 18px;
  text-decoration: none;
}

.primary-button {
  background: var(--coral);
  color: var(--white);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.64);
  color: var(--white);
}

.trust-strip {
  background: var(--green-dark);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-strip div {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  padding: 24px clamp(18px, 4vw, 44px);
}

.trust-strip strong {
  display: block;
  font-size: 2rem;
}

.trust-strip span {
  color: rgba(255, 255, 255, 0.78);
}

section {
  padding: clamp(52px, 7vw, 88px) clamp(18px, 5vw, 70px);
}

.featured-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.6fr);
  margin-top: 22px;
}

.featured-agency,
.score-panel,
.agency-card,
details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.featured-agency {
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  position: relative;
}

.rank-badge {
  align-items: center;
  background: var(--gold);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  font-size: 1.1rem;
  font-weight: 950;
  height: 50px;
  justify-content: center;
  position: absolute;
  right: 24px;
  top: 24px;
  width: 54px;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.05;
  margin: 10px 0 16px;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 780px;
}

.proof-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding-left: 20px;
}

.contact-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-grid a,
.contact-grid span {
  background: #f3f6f1;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-dark);
  font-weight: 750;
  overflow-wrap: anywhere;
  padding: 12px;
}

.score-panel {
  align-self: start;
  padding: 26px;
}

.score-row {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 5px;
  padding: 16px 0;
}

.score-row span {
  color: var(--muted);
}

.score-row strong {
  color: var(--green);
}

.directory-section {
  background: var(--sky);
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.filters {
  display: grid;
  gap: 12px;
  max-width: 620px;
  width: 100%;
}

input[type="search"] {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 12px 14px;
  width: 100%;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 40px;
  padding: 8px 12px;
}

.filter-button.active {
  background: var(--green);
  color: var(--white);
}

.agency-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.agency-card {
  display: grid;
  gap: 12px;
  min-height: 280px;
  padding: 20px;
}

.agency-card.highlight {
  border-color: rgba(200, 155, 53, 0.9);
  box-shadow: 0 24px 60px rgba(200, 155, 53, 0.22);
}

.agency-topline {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.agency-rank {
  background: #eff5ed;
  border-radius: 8px;
  color: var(--green-dark);
  font-weight: 900;
  min-width: 44px;
  padding: 6px 9px;
  text-align: center;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  background: #f6f2e6;
  border-radius: 8px;
  color: #6a4a05;
  font-size: 0.8rem;
  font-weight: 850;
  padding: 5px 8px;
}

.agency-card p {
  color: var(--muted);
  margin: 0;
}

.agency-link {
  align-self: end;
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.method-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.method-grid div,
.topic-list a {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.method-grid p {
  color: var(--muted);
  margin: 0;
}

.blog-section {
  background: #f4f8f2;
}

.categories-section {
  background: #fff6f0;
}

.category-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.category-card-grid a {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(23, 32, 28, 0.08);
  display: grid;
  gap: 9px;
  min-height: 210px;
  padding: 22px;
  text-decoration: none;
}

.category-card-grid span {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.category-card-grid strong {
  color: var(--green-dark);
  font-size: 1.15rem;
  line-height: 1.22;
}

.category-card-grid p {
  color: var(--muted);
  margin: 0;
}

.blog-section h2 {
  max-width: 880px;
}

.blog-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(23, 32, 28, 0.09);
  display: grid;
  gap: 12px;
  min-height: 310px;
  padding: 22px;
}

.blog-category {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-card h3 {
  font-size: 1.18rem;
  line-height: 1.22;
  margin: 0;
}

.blog-card p {
  color: var(--muted);
  margin: 0;
}

.blog-card a {
  align-self: end;
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.seo-section {
  background: #fff6f0;
}

.topic-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.topic-list a {
  color: var(--green-dark);
  font-weight: 850;
  text-decoration: none;
}

.faq-section {
  max-width: 980px;
}

details {
  margin-top: 12px;
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  color: var(--muted);
  margin-bottom: 0;
}

footer {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 30px clamp(18px, 5vw, 70px);
}

footer p {
  color: rgba(255, 255, 255, 0.7);
  margin: 6px 0 0;
}

footer a {
  color: var(--white);
  font-weight: 900;
}

.profile-link {
  margin: 18px 0 0;
}

.profile-link a {
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.secondary-button.dark {
  border-color: rgba(15, 107, 79, 0.35);
  color: var(--green-dark);
}

.page-hero {
  background: linear-gradient(135deg, #f4f8f2, #fff7f0);
  padding-top: clamp(54px, 8vw, 90px);
}

.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 4.3rem);
  line-height: 1.04;
  margin: 10px 0 18px;
  max-width: 920px;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 820px;
}

.content-section {
  max-width: 1180px;
}

.content-section h2,
.article-page h2,
.cta-section h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.content-section p,
.article-page p,
.article-page li {
  color: var(--muted);
}

.two-column {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.info-panel,
.service-grid article,
.article-page,
.cta-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(23, 32, 28, 0.08);
}

.info-panel {
  align-self: start;
  padding: 22px;
}

.info-panel p {
  overflow-wrap: anywhere;
}

.service-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.service-grid article {
  padding: 22px;
}

.comparison-table {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.comparison-table div {
  display: grid;
  grid-template-columns: 0.8fr 1.25fr 1.25fr;
}

.comparison-table span,
.comparison-table strong {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  padding: 14px 16px;
}

.comparison-table strong {
  background: #f4f8f2;
  color: var(--green-dark);
}

.article-page {
  margin: clamp(34px, 6vw, 72px) auto;
  max-width: 860px;
  padding: clamp(24px, 5vw, 54px);
}

.article-page h1 {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.05;
  margin: 12px 0 18px;
}

.article-lead {
  font-size: 1.18rem;
}

.article-page a {
  color: var(--green);
  font-weight: 850;
}

.cta-section {
  margin: 0 clamp(18px, 5vw, 70px) clamp(52px, 7vw, 88px);
  max-width: 1180px;
}

.category-section {
  max-width: 1120px;
}

.category-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.category-list article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(23, 32, 28, 0.08);
  display: grid;
  gap: 16px;
  grid-template-columns: 68px minmax(0, 1fr);
  padding: 20px;
}

.category-list article > span {
  align-items: center;
  background: #eff5ed;
  border-radius: 8px;
  color: var(--green-dark);
  display: flex;
  font-weight: 950;
  height: 48px;
  justify-content: center;
  width: 54px;
}

.category-list p {
  color: var(--muted);
  margin: 0;
}

.category-list a {
  color: var(--green);
  display: inline-flex;
  font-weight: 900;
  margin-top: 10px;
  text-decoration: none;
}

@media (max-width: 1040px) {
  .agency-grid,
  .method-grid,
  .blog-grid,
  .category-card-grid,
  .service-grid,
  .topic-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .featured-layout,
  .two-column {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
  }

  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    display: grid;
  }

  nav {
    gap: 12px;
  }

  .hero {
    height: auto;
    min-height: 520px;
  }

  .hero-content {
    padding: 50px 20px 44px;
  }

  .hero h1 {
    font-size: 2.05rem;
    line-height: 1.08;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(8, 25, 18, 0.92), rgba(8, 25, 18, 0.62));
  }

  .trust-strip,
  .agency-grid,
  .method-grid,
  .blog-grid,
  .category-card-grid,
  .service-grid,
  .topic-list,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .category-list article {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    overflow-x: auto;
  }

  .comparison-table div {
    min-width: 680px;
  }

  .rank-badge {
    position: static;
    margin-bottom: 12px;
  }

  footer {
    align-items: flex-start;
    display: grid;
  }
}
