:root {
  --ink: #241204;
  --muted: #766559;
  --line: #eadccf;
  --paper: #fff8f1;
  --white: #ffffff;
  --green: #f97316;
  --green-2: #3b1d05;
  --gold: #fb923c;
  --gold-soft: #fff1e6;
  --sage: #fff3e8;
  --coral: #c2410c;
  --shadow: 0 24px 70px rgba(59, 29, 5, 0.16);
  --radius: 8px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(234, 220, 207, 0.95);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--green-2);
  background: linear-gradient(135deg, var(--gold-soft), #ffffff);
  border: 1px solid rgba(249, 115, 22, 0.28);
  font-size: 22px;
}

.brand strong,
.brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: #2a3b3d;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--sage);
  color: var(--green-2);
}

.nav-links a.active {
  background: var(--green);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 11px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(36, 18, 4, 0.96) 0%, rgba(124, 45, 18, 0.84) 46%, rgba(251, 146, 60, 0.3) 100%),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--paper));
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.65fr);
  gap: 46px;
  align-items: center;
  padding: 72px 0 118px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 5.4rem;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.22rem;
}

.search-panel {
  display: flex;
  width: min(720px, 100%);
  margin-top: 32px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.search-panel input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  padding: 14px 16px;
}

.search-panel button {
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: var(--gold);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  padding: 12px 22px;
}

.search-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--gold-soft);
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.24);
}

.hero .button.primary {
  background: var(--white);
  color: var(--green-2);
}

.button.light {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.button.accent {
  background: var(--gold);
  color: var(--ink);
}

.button.whatsapp {
  background: #1d8f59;
  color: var(--white);
}

.hero-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-card-content {
  padding: 24px;
}

.hero-card-content h2 {
  margin: 8px 0;
  font-size: 1.55rem;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 36px auto 0;
  padding: 62px 48px;
  border-radius: var(--radius);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(36, 18, 4, 0.96), rgba(249, 115, 22, 0.78)),
    url("https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1600&q=80") center / cover;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: 4rem;
  line-height: 1;
  letter-spacing: 0;
}

.page-hero p:not(.eyebrow):not(.search-status) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
}

.page-search {
  box-shadow: none;
  max-width: 720px;
}

.rating,
.stars,
.score {
  color: var(--gold);
  font-weight: 900;
}

.stats-bar {
  width: min(1180px, calc(100% - 32px));
  margin: -78px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stats-bar div {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
}

.stats-bar div:last-child {
  border-right: 0;
}

.stats-bar strong,
.stats-bar span {
  display: block;
}

.stats-bar strong {
  font-size: 2rem;
  line-height: 1.1;
  color: var(--green-2);
}

.stats-bar span {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-size: 3.05rem;
  line-height: 1.04;
}

.section-heading p:not(.eyebrow),
.contact-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-grid,
.practice-grid,
.article-grid,
.standards-grid,
.directory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card,
.practice-card,
.article-card,
.firm-card,
.standards-grid article,
.contact-form,
.contact-card,
.ranking-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 40px rgba(18, 34, 37, 0.06);
}

.feature-card {
  padding: 26px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--sage);
  color: var(--green-2);
  font-size: 25px;
}

.feature-card h3,
.article-card h3,
.standards-grid h3,
.contact-card h3 {
  margin: 0 0 10px;
  line-height: 1.2;
}

.feature-card p,
.article-card p,
.standards-grid p,
.ranking-card p,
.contact-card li {
  color: var(--muted);
}

.featured-firm {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 32px;
  align-items: stretch;
  padding: 44px;
  background: linear-gradient(135deg, var(--green-2), var(--green));
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.featured-firm p {
  color: rgba(255, 255, 255, 0.78);
}

.rank-badge {
  position: absolute;
  top: -28px;
  left: 36px;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  border: 7px solid var(--paper);
  font-size: 1.35rem;
  font-weight: 950;
}

.featured-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.featured-title-row h2 {
  margin: 0;
  font-size: 3.15rem;
}

.firm-type {
  margin: 8px 0 20px;
  color: var(--gold-soft) !important;
  font-weight: 900;
}

.pill-list,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-list span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 11px;
  color: var(--white);
  font-weight: 800;
  font-size: 0.92rem;
}

.contact-card {
  padding: 26px;
  color: var(--ink);
}

.contact-card ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.contact-card li {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-card li strong {
  color: var(--ink);
}

.contact-card a {
  color: var(--green);
  font-weight: 900;
}

.rankings-section {
  padding-top: 104px;
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-card:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.48);
  box-shadow: 0 22px 50px rgba(59, 29, 5, 0.12);
}

.ranking-number {
  display: grid;
  place-items: start center;
  padding-top: 28px;
  color: var(--green-2);
  background: linear-gradient(180deg, var(--gold-soft), #ffffff);
  font-size: 1.2rem;
  font-weight: 950;
}

.ranking-main {
  padding: 26px;
}

.ranking-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.ranking-topline h3 {
  margin: 0;
  font-size: 1.45rem;
}

.ranking-topline p,
.score {
  margin: 4px 0 0;
}

.rank-label {
  align-self: flex-start;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  padding: 7px 10px;
  font-size: 0.8rem;
  font-weight: 900;
}

.tag-row {
  margin: 18px 0 12px;
}

.tag-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sage);
  color: var(--green-2);
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 900;
}

.ideal {
  margin-bottom: 10px;
}

.text-link {
  color: var(--coral);
  font-weight: 950;
}

.practice-section {
  padding-top: 34px;
}

.practice-card {
  min-height: 132px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink);
}

.practice-card strong {
  line-height: 1.2;
  font-size: 1.08rem;
}

.practice-card span {
  color: var(--muted);
  font-weight: 800;
}

.article-grid {
  grid-template-columns: repeat(3, 1fr);
}

.article-card {
  min-height: 210px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-card span,
.article-card time {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.article-card h3 {
  margin-top: 14px;
  font-size: 1.22rem;
}

.article-card a {
  margin-top: auto;
  color: var(--green);
  font-weight: 950;
}

.directory-grid {
  grid-template-columns: repeat(4, 1fr);
}

.firm-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.firm-card span {
  width: fit-content;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--green-2);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 950;
}

.firm-card h3 {
  margin: 8px 0 0;
  font-size: 1.25rem;
}

.firm-card p {
  color: var(--muted);
}

.firm-card a {
  margin-top: auto;
  color: var(--coral);
  font-weight: 950;
}

.standards-section {
  padding-top: 36px;
}

.standards-grid {
  grid-template-columns: repeat(3, 1fr);
}

.standards-grid article {
  padding: 24px;
}

.contact-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 92px;
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 36px;
  align-items: start;
  padding: 48px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(36, 18, 4, 0.94), rgba(249, 115, 22, 0.82)),
    url("https://images.unsplash.com/photo-1560520653-9e0e4c89eb11?auto=format&fit=crop&w=1600&q=80") center / cover;
  color: var(--white);
  box-shadow: var(--shadow);
}

.standalone-contact {
  margin-top: 48px;
}

.seo-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0;
}

.seo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.seo-copy,
.seo-panel,
.faq-item,
.keyword-card,
.method-card,
.article-feature,
.service-area-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 40px rgba(18, 34, 37, 0.06);
}

.seo-copy {
  padding: 34px;
}

.seo-copy h2,
.seo-panel h2,
.article-feature h2 {
  margin: 0 0 18px;
  font-size: 2.1rem;
  line-height: 1.15;
}

.seo-copy h3 {
  margin: 28px 0 10px;
  font-size: 1.35rem;
}

.seo-copy p,
.seo-copy li,
.seo-panel p,
.faq-item p,
.keyword-card p,
.method-card p,
.service-area-card p,
.article-feature p {
  color: var(--muted);
}

.seo-copy ul,
.seo-panel ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.seo-panel {
  padding: 28px;
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.seo-panel a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-weight: 900;
}

.seo-panel a:last-child {
  border-bottom: 0;
}

.keyword-grid,
.methodology-grid,
.service-area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.keyword-card,
.method-card,
.service-area-card {
  padding: 24px;
}

.keyword-card h3,
.method-card h3,
.service-area-card h3 {
  margin: 0 0 10px;
  line-height: 1.2;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 24px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.13rem;
}

.article-feature {
  padding: 30px;
  display: grid;
  gap: 16px;
}

.article-topic-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.article-topic-list a {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sage);
  padding: 14px 16px;
  color: var(--green-2);
  font-weight: 900;
}

.contact-seo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-methods a,
.contact-methods p {
  margin: 0;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  padding: 14px 16px;
  color: var(--white);
}

.contact-methods span {
  color: var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form {
  padding: 28px;
}

.field-pair {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field-pair label {
  color: var(--ink);
  font-weight: 900;
}

.field-pair input,
.field-pair select,
.field-pair textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  padding: 12px 14px;
  background: #ffffff;
  color: var(--ink);
}

.field-pair input:focus,
.field-pair select:focus,
.field-pair textarea:focus,
.search-panel input:focus {
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.22);
}

.field-pair textarea {
  resize: vertical;
}

.form-button {
  width: 100%;
}

.form-note {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  background: #1f1208;
  color: rgba(255, 255, 255, 0.82);
  padding: 60px 0 28px;
}

.footer-grid,
.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.footer-brand {
  color: var(--white);
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.footer-grid a {
  display: block;
  margin: 7px 0;
  color: rgba(255, 255, 255, 0.82);
}

.footer-grid a:hover {
  color: var(--gold-soft);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
}

.footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.is-hidden {
  display: none !important;
}

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

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    inset: var(--header-height) 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    color: var(--ink);
  }

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

  .hero-inner,
  .featured-firm,
  .contact-section,
  .seo-layout {
    grid-template-columns: 1fr;
  }

  .seo-panel {
    position: static;
  }

  .hero-inner {
    padding-top: 54px;
  }

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

  .page-hero h1 {
    font-size: 3.15rem;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 2.55rem;
  }

  .featured-title-row h2 {
    font-size: 2.6rem;
  }

  .hero-card {
    max-width: 520px;
  }

  .featured-firm {
    padding-top: 56px;
  }

  .stats-bar,
  .feature-grid,
  .practice-grid,
  .directory-grid,
  .keyword-grid,
  .methodology-grid,
  .service-area-grid,
  .contact-seo-grid,
  .standards-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 70px;
  }

  .nav-shell {
    width: min(100% - 24px, 1180px);
  }

  .brand strong {
    font-size: 0.94rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .nav-links {
    inset: var(--header-height) 12px auto;
  }

  .hero-inner,
  .section,
  .seo-section,
  .contact-section,
  .page-hero,
  .stats-bar,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .hero-inner {
    min-height: auto;
    padding: 42px 0 92px;
  }

  .hero h1 {
    font-size: 2.82rem;
    line-height: 1.02;
  }

  .page-hero {
    margin-top: 18px;
    padding: 38px 20px;
  }

  .page-hero h1 {
    font-size: 2.28rem;
    line-height: 1.04;
  }

  .hero-lede {
    font-size: 1.08rem;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 2.15rem;
  }

  .stats-bar strong {
    font-size: 1.6rem;
  }

  .search-panel {
    display: grid;
    padding: 6px;
  }

  .search-panel button {
    min-height: 48px;
  }

  .hero-actions,
  .card-actions,
  .featured-title-row,
  .ranking-topline,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .stats-bar,
  .feature-grid,
  .practice-grid,
  .directory-grid,
  .keyword-grid,
  .methodology-grid,
  .service-area-grid,
  .contact-seo-grid,
  .article-grid,
  .standards-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-bar div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 66px 0;
  }

  .seo-section {
    padding: 56px 0;
  }

  .seo-copy,
  .seo-panel,
  .article-feature {
    padding: 22px;
  }

  .seo-copy h2,
  .seo-panel h2,
  .article-feature h2 {
    font-size: 1.85rem;
  }

  .featured-firm,
  .contact-section {
    padding: 32px 20px;
  }

  .contact-section {
    margin-bottom: 60px;
  }

  .contact-form {
    padding: 20px;
  }

  .rank-badge {
    left: 20px;
  }

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

  .ranking-number {
    place-items: center start;
    padding: 14px 24px;
  }

  .ranking-main {
    padding: 22px 20px;
  }

  .ranking-topline h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 430px) {
  .nav-shell,
  .hero-inner,
  .section,
  .seo-section,
  .contact-section,
  .page-hero,
  .stats-bar,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 18px, 1180px);
  }

  .brand {
    gap: 9px;
  }

  .brand strong {
    max-width: 185px;
    font-size: 0.88rem;
  }

  .brand small {
    max-width: 185px;
  }

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

  .page-hero h1 {
    font-size: 2.05rem;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 1.9rem;
  }

  .featured-title-row h2 {
    font-size: 2.05rem;
  }

  .hero-card-content,
  .feature-card,
  .practice-card,
  .article-card,
  .firm-card,
  .keyword-card,
  .method-card,
  .service-area-card,
  .faq-item,
  .standards-grid article,
  .ranking-main {
    padding: 18px;
  }

  .rank-label {
    white-space: normal;
  }

  .tag-row span,
  .pill-list span {
    font-size: 0.78rem;
  }

  .footer-bottom div {
    display: grid;
    gap: 8px;
  }
}
