/* =========================================================
   NEATLY CLIP — PROVIDERS DIRECTORY
   ========================================================= */

.nc-providers {
  --provider-black: #111111;
  --provider-white: #ffffff;
  --provider-muted: #6b6b6b;
  --provider-border: #e7e7e7;
  --provider-surface: #f7f7f7;

  color: var(--provider-black);
  background: var(--provider-white);
  font-family: "Inter", Arial, sans-serif;
}

.nc-providers *,
.nc-providers *::before,
.nc-providers *::after {
  box-sizing: border-box;
}

.nc-providers [hidden] {
  display: none !important;
}

.providers-container {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
}

.nc-providers h1,
.nc-providers h2,
.nc-providers h3,
.nc-providers p {
  margin-top: 0;
}

.providers-eyebrow {
  display: inline-block;
  color: #c6c6c6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  line-height: 1.6;
}

.providers-eyebrow-dark {
  color: #777;
}

.providers-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;
}

/* =========================================================
   HERO
   ========================================================= */

.providers-hero {
  display: flex;
  align-items: center;
  min-height: 480px;
  padding: 95px 0;
  background: #111;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.providers-hero::after {
  content: "";
  position: absolute;
  top: -160px;
  right: -150px;
  width: 550px;
  height: 550px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.providers-hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.providers-hero h1 {
  margin: 22px 0;
  font-size: clamp(43px, 6vw, 78px);
  font-weight: 650;
  line-height: 1.07;
  letter-spacing: -3px;
}

.providers-hero p {
  max-width: 570px;
  color: #c9c9c9;
  font-size: 16px;
  line-height: 1.9;
}

.providers-hero-cta,
.providers-cta-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 17px 24px;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}

.providers-hero-cta {
  margin-top: 22px;
}

.providers-hero-cta:hover,
.providers-cta-button:hover {
  background: #e4e4e4;
  transform: translateY(-2px);
}

/* =========================================================
   INTRO
   ========================================================= */

.providers-intro {
  padding: 95px 0 65px;
  text-align: center;
}

.providers-intro h2,
.providers-experience h2 {
  margin: 15px 0 20px;
  font-size: clamp(32px, 4vw, 49px);
  line-height: 1.15;
  letter-spacing: -1.7px;
}

.providers-intro p,
.providers-experience-heading p {
  max-width: 650px;
  margin-inline: auto;
  color: var(--provider-muted);
  font-size: 15px;
  line-height: 1.9;
}

/* =========================================================
   DIRECTORY
   ========================================================= */

.providers-directory {
  padding: 40px 0 110px;
}

.providers-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 30px;
}

.providers-section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(29px, 3.5vw, 40px);
  letter-spacing: -1.3px;
}

.providers-count {
  color: #777;
  font-size: 13px;
}

/* FILTERS */

.providers-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 185px 175px 155px;
  gap: 12px;
  margin-bottom: 22px;
}

.providers-search {
  position: relative;
}

.providers-search i {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
}

.providers-search input,
.providers-select select {
  display: block;
  width: 100%;
  height: 54px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.providers-search input {
  padding: 0 16px 0 45px;
}

.providers-select select {
  padding: 0 12px;
  cursor: pointer;
}

.providers-search input:focus,
.providers-select select:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

/* LOCATION FILTER CHIP */

.providers-active-location {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: #f3f3f3;
  border: 1px solid #e7e7e7;
  font-size: 13px;
}

.providers-active-location button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  color: #111;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* =========================================================
   PROVIDER GRID
   ========================================================= */

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

.provider-directory-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--provider-border);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.provider-directory-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.07);
}

.provider-card-media {
  position: relative;
  height: 255px;
  background: #efefef;
  overflow: hidden;
}

.provider-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.provider-directory-card:hover .provider-card-media img {
  transform: scale(1.04);
}

.provider-card-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ededed, #d9d9d9);
  color: #888;
  font-size: 38px;
}

.provider-card-category {
  position: absolute;
  top: 16px;
  left: 16px;
  max-width: calc(100% - 32px);
  padding: 9px 12px;
  background: #fff;
  color: #111;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* CARD CONTENT */

.provider-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.provider-card-location {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 13px;
  color: #777;
  font-size: 12px;
  line-height: 1.6;
}

.provider-card-location i {
  flex-shrink: 0;
}

.provider-card-name {
  margin: 0 0 12px;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.7px;
  overflow-wrap: anywhere;
}

.provider-card-description {
  color: #777;
  font-size: 13px;
  line-height: 1.85;
  margin-bottom: 20px;
}

.provider-card-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 23px;
}

.provider-specialty {
  display: inline-block;
  padding: 7px 10px;
  border: 1px solid #e7e7e7;
  background: #fafafa;
  color: #555;
  font-size: 11px;
  line-height: 1.4;
}

/* SOCIAL MEDIA */

.provider-card-social {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.provider-social-link,
.provider-social-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #ddd;
  border-radius: 50%;
  color: #111;
  background: #fff;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.provider-social-link:hover {
  background: #111;
  border-color: #111;
  color: #fff;
}

.provider-social-link:focus-visible {
  outline: 3px solid #777;
  outline-offset: 3px;
}

.provider-social-placeholder {
  color: #aaa;
  background: #f7f7f7;
  cursor: not-allowed;
}

/* VIEW PROFILE BUTTON */

.provider-card-actions {
  padding-top: 22px;
}

.provider-profile-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 49px;
  padding: 14px 18px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  transition: background 0.2s;
}

.provider-profile-button:hover {
  background: #333;
  border-color: #333;
  color: #fff;
}

.provider-profile-button:focus-visible {
  outline: 3px solid #777;
  outline-offset: 3px;
}

/* =========================================================
   LOADING / EMPTY / ERROR
   ========================================================= */

.providers-status {
  padding: 48px 20px;
  text-align: center;
  color: #777;
  font-size: 14px;
}

.providers-empty {
  padding: 70px 20px;
  border: 1px solid #e7e7e7;
  text-align: center;
}

.providers-empty > i {
  margin-bottom: 20px;
  color: #999;
  font-size: 30px;
}

.providers-empty h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.providers-empty p {
  color: #777;
  font-size: 14px;
  line-height: 1.8;
}

.providers-empty button {
  margin-top: 16px;
  padding: 14px 22px;
  border: 0;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

/* =========================================================
   EXPERIENCE
   ========================================================= */

.providers-experience {
  padding: 100px 0;
  background: var(--provider-surface);
}

.providers-experience-heading {
  margin-bottom: 55px;
  text-align: center;
}

.providers-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.providers-benefits article {
  padding: 38px 30px;
  background: #fff;
  border: 1px solid #eee;
}

.providers-benefits article > i {
  margin-bottom: 27px;
  font-size: 25px;
}

.providers-benefits h3 {
  margin-bottom: 12px;
  font-size: 19px;
}

.providers-benefits p {
  margin-bottom: 0;
  color: #777;
  font-size: 13px;
  line-height: 1.85;
}

/* =========================================================
   FINAL CTA
   ========================================================= */

.providers-cta {
  padding: 105px 0;
  background: #111;
  color: #fff;
  text-align: center;
}

.providers-cta h2 {
  max-width: 700px;
  margin: 18px auto;
  font-size: clamp(33px, 4.5vw, 55px);
  line-height: 1.14;
  letter-spacing: -1.8px;
}

.providers-cta p {
  max-width: 560px;
  margin-inline: auto;
  color: #bbb;
  font-size: 15px;
  line-height: 1.85;
}

.providers-cta-button {
  margin-top: 24px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {
  .providers-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .providers-search {
    grid-column: 1 / -1;
  }
}

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

@media (max-width: 650px) {
  .providers-container {
    width: min(100% - 30px, 1200px);
  }

  .providers-hero {
    min-height: 410px;
    padding: 75px 0;
  }

  .providers-hero h1 {
    letter-spacing: -1.8px;
  }

  .providers-intro {
    padding: 75px 0 45px;
  }

  .providers-directory {
    padding-bottom: 75px;
  }

  .providers-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .providers-toolbar {
    grid-template-columns: 1fr;
  }

  .providers-search {
    grid-column: auto;
  }

  .providers-grid,
  .providers-benefits {
    grid-template-columns: 1fr;
  }

  .provider-card-media {
    height: 240px;
  }

  .providers-experience,
  .providers-cta {
    padding: 75px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nc-providers *,
  .nc-providers *::before,
  .nc-providers *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}