.home-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.home-service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.home-service-card:hover,
.home-service-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--brand-red-border);
  box-shadow: 0 16px 34px rgba(20, 20, 20, 0.10);
}

.home-service-card:focus-visible,
.home-provider-card:focus-visible,
.home-immigration-card:focus-visible {
  outline: 3px solid var(--brand-red-soft);
  outline-offset: 4px;
}

.home-service-card .home-card-link-label {
  margin-top: auto;
  padding-top: 18px;
  color: var(--brand-red);
  font-weight: 900;
}

.home-immigration-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 15%, rgba(235, 27, 36, 0.12), transparent 32%),
    linear-gradient(135deg, #fff7f7 0%, #ffffff 55%, #f7f7f7 100%);
  border-top: 1px solid var(--brand-red-border);
  border-bottom: 1px solid var(--brand-red-border);
}

.home-immigration-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 34px;
  align-items: center;
}

.home-immigration-copy h2 {
  margin: 8px 0 14px;
  color: var(--black);
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -1.3px;
}

.home-immigration-copy > p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

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

.home-immigration-points div {
  padding: 14px;
  border: 1px solid var(--brand-red-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 800;
}

.home-immigration-card {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--border);
  border-top: 6px solid var(--brand-red);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.home-immigration-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(20, 20, 20, 0.14);
}

.home-immigration-card img {
  width: 145px;
  height: 176px;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  background: var(--light-gray);
}

.home-immigration-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--black);
  font-size: 23px;
}

.home-immigration-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--brand-red);
  font-size: 14px;
  font-weight: 900;
}

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

.home-direct-care-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 36px;
  align-items: center;
}

.home-direct-care-list {
  display: grid;
  gap: 12px;
}

.home-direct-care-list div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--brand-red-border);
  border-radius: 14px;
  background: var(--brand-red-soft);
  font-weight: 800;
}

.home-direct-care-list span {
  color: var(--brand-red);
  font-weight: 900;
}

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

.home-provider-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(20, 20, 20, 0.06);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.home-provider-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-red-border);
  box-shadow: 0 16px 34px rgba(20, 20, 20, 0.10);
}

.home-provider-card img {
  width: 150px;
  height: 182px;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  background: var(--light-gray);
}

.home-provider-card h3 {
  margin: 0 0 5px;
  color: var(--black);
  font-size: 24px;
}

.home-provider-role {
  display: block;
  margin-bottom: 12px;
  color: var(--brand-red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

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

.home-provider-card .home-card-link-label {
  display: inline-block;
  margin-top: 14px;
  color: var(--brand-red);
  font-weight: 900;
}

.home-labs-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(20, 20, 20, 0.07);
}

.home-labs-panel h2 {
  margin: 0 0 8px;
  color: var(--black);
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.12;
}

.home-labs-panel p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.page-not-found {
  min-height: 65vh;
  display: grid;
  align-items: center;
}

.not-found-card {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(30px, 6vw, 64px);
  border: 1px solid var(--border);
  border-top: 7px solid var(--brand-red);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.not-found-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  min-height: 48px;
  margin-bottom: 18px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--brand-red-soft);
  color: var(--brand-red-dark);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.not-found-card h1 {
  margin: 0 0 14px;
  color: var(--black);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.not-found-card > p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}

.not-found-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.not-found-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--light-gray);
  color: var(--charcoal);
  font-weight: 900;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.not-found-links a:hover,
.not-found-links a:focus-visible {
  border-color: var(--brand-red-border);
  background: var(--brand-red-soft);
  color: var(--brand-red-dark);
}

.not-found-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.provider-profile-card[id] {
  scroll-margin-top: 110px;
}

@media (max-width: 980px) {
  .home-immigration-grid,
  .home-direct-care-grid {
    grid-template-columns: 1fr;
  }

  .home-immigration-points {
    grid-template-columns: 1fr;
  }

  .home-provider-grid {
    grid-template-columns: 1fr;
  }

  .home-labs-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-immigration-card,
  .home-provider-card {
    grid-template-columns: 1fr;
  }

  .home-immigration-card img,
  .home-provider-card img {
    width: 100%;
    height: min(360px, 95vw);
  }

  .home-labs-panel {
    padding: 22px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .home-service-card,
  .home-immigration-card,
  .home-provider-card {
    transition: none;
  }
}
