.directory-page {
  margin: 0;
  overflow-x: clip;
  background: var(--g-color-mint-soft);
  color: var(--g-color-ink);
  font-family: var(--g-font-sans);
  font-size: 16px;
  line-height: 1.6;
}

.directory-page .container {
  width: min(calc(100% - 2rem), var(--g-content));
  margin-inline: auto;
}

.directory-page :where(a, button, input, select):focus-visible {
  outline: 3px solid rgba(255, 178, 26, .65);
  outline-offset: 3px;
}

.directory-page .directory-hero {
  min-height: auto;
  padding: 0;
  overflow: hidden;
  color: var(--g-color-ink);
  background:
    radial-gradient(circle at 83% 46%, rgba(73, 168, 62, .13), transparent 22rem),
    radial-gradient(circle at 72% 4%, rgba(255, 178, 26, .11), transparent 20rem),
    linear-gradient(145deg, #fff 0%, #f7fcfa 60%, #eaf7f3 100%);
  border-bottom: 1px solid var(--g-color-border);
}

.directory-page .hero__overlay { display: none; }
.directory-page .hero__content { padding: 0 0 clamp(2.75rem, 6vw, 5.25rem); }

.directory-page .topbar {
  min-height: 80px;
  margin-bottom: clamp(2rem, 4vw, 3.75rem);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--g-space-6);
  border-bottom: 1px solid rgba(220, 233, 229, .8);
}

.directory-page .directory-brand {
  display: block;
  width: 184px;
  min-width: 184px;
  padding: .4rem 0;
}

.directory-page .directory-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.directory-page .topbar__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem;
}

.directory-page .topbar__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
}

.directory-page .topbar__link {
  padding: .65rem .8rem;
  border-radius: .7rem;
  color: var(--g-color-ink);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--g-transition), background var(--g-transition);
}

.directory-page .topbar__link:hover,
.directory-page .topbar__link.is-active {
  color: var(--g-color-primary-strong);
  background: var(--g-color-mint);
}

.directory-page .language-switcher {
  flex: 0 0 auto;
  padding: .2rem;
  border: 1px solid var(--g-color-border);
  border-radius: .75rem;
  background: #fff;
  backdrop-filter: none;
}

.directory-page .language-switcher__button {
  min-height: 36px;
  padding: .45rem .65rem;
  color: var(--g-color-muted);
}

.directory-page .language-switcher__button:hover,
.directory-page .language-switcher__button:focus-visible,
.directory-page .language-switcher__button.is-active {
  background: var(--g-color-mint);
  color: var(--g-color-primary-strong);
}

.directory-page .hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .65fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}

.directory-page .hero__text { max-width: 800px; }
.directory-page .eyebrow {
  color: var(--g-color-primary);
  font-weight: 850;
  letter-spacing: .1em;
}

.directory-page .hero__text h1 {
  max-width: 780px;
  margin: .5rem 0 1.25rem;
  color: var(--g-color-heading);
  font-size: clamp(2.2rem, 3.35vw, 3.55rem);
  line-height: 1.04;
  letter-spacing: -.052em;
}

.directory-page .hero__lead {
  max-width: 720px;
  margin: 0;
  color: var(--g-color-muted);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.directory-page .directory-hero__art {
  position: relative;
  display: grid;
  place-items: center;
}

.directory-page .directory-hero__art::before {
  content: "";
  position: absolute;
  width: min(118%, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(234, 247, 243, .4) 62%, transparent 63%);
}

.directory-page .directory-hero__art-frame {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 1;
}

.directory-page .directory-hero__art-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 26px rgba(6, 47, 44, .13));
}

.directory-page .section {
  padding: var(--g-space-16) 0;
  background: #fff;
}

.directory-page .section--compact { padding: var(--g-space-12) 0; }
.directory-page #directory { background: linear-gradient(180deg, #fff 0%, var(--g-color-mint-soft) 100%); }
.directory-page #safety { background: #fff; }

.directory-page .section-heading {
  max-width: 900px;
  margin-bottom: var(--g-space-8);
}

.directory-page .section-heading--row {
  max-width: none;
  align-items: end;
  gap: var(--g-space-6);
}

.directory-page .section-heading h2 {
  color: var(--g-color-heading);
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  line-height: 1.14;
  letter-spacing: -.035em;
}

.directory-page .results {
  flex: 0 0 auto;
  padding: .55rem .85rem;
  border: 1px solid #cbe7df;
  border-radius: 999px;
  background: var(--g-color-mint);
  color: var(--g-color-primary-strong);
  font-size: .85rem;
  font-weight: 800;
}

.directory-page .notice-banner {
  margin-bottom: var(--g-space-6);
  padding: 1rem 1.1rem;
  border: 1px solid #cfe8e1;
  border-radius: var(--g-radius-md);
  background: var(--g-color-mint);
  color: var(--g-color-ink);
  box-shadow: none;
}

.directory-page .notice-banner--soft {
  margin: var(--g-space-4) 0 0;
  background: #fffaf0;
  border-color: #f6dca7;
}

.directory-page .notice-banner a { color: var(--g-color-primary-strong); font-weight: 800; }

.directory-page .directory-quick-start {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--g-space-4);
  margin-bottom: var(--g-space-8);
}

.directory-page .directory-quick-start .step-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 215px;
  padding: var(--g-space-6);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--g-color-border);
  border-radius: var(--g-radius-lg);
  background: #fff;
  box-shadow: var(--g-shadow-sm);
  transition: transform var(--g-transition), border-color var(--g-transition), box-shadow var(--g-transition);
}

.directory-page .directory-quick-start .step-card::before {
  content: "";
  width: 42px;
  height: 5px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--g-color-primary), #4bbd79);
}

.directory-page .directory-quick-start .step-card:nth-child(3n + 2)::before { background: linear-gradient(90deg, var(--g-color-sun), var(--g-color-orange)); }
.directory-page .directory-quick-start .step-card:hover { transform: translateY(-3px); border-color: #b8d8d0; box-shadow: var(--g-shadow-md); }
.directory-page .directory-quick-start h3 { color: var(--g-color-heading); line-height: 1.25; }
.directory-page .directory-quick-start p { color: var(--g-color-muted); font-size: .92rem; }
.directory-page .directory-quick-start .hero__actions { margin-top: auto; padding-top: var(--g-space-3); }

.directory-page .button {
  min-height: 44px;
  padding: .68rem 1rem;
  border: 1px solid transparent;
  border-radius: .75rem;
  box-shadow: none;
  font-weight: 800;
  transition: transform var(--g-transition), box-shadow var(--g-transition), background var(--g-transition), border-color var(--g-transition);
}

.directory-page .button:hover { transform: translateY(-1px); }
.directory-page .button--primary { background: var(--g-color-primary); color: #fff; box-shadow: 0 8px 18px rgba(7, 143, 120, .18); }
.directory-page .button--primary:hover { background: var(--g-color-primary-strong); }
.directory-page .button--ghost,
.directory-page .helper-card .button--ghost {
  border-color: var(--g-color-border-strong);
  background: #fff;
  color: var(--g-color-heading);
}
.directory-page .button--ghost:hover { border-color: var(--g-color-primary); background: var(--g-color-mint); color: var(--g-color-primary-strong); }

.directory-page .directory-filter-panel {
  margin-bottom: var(--g-space-8);
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--g-color-border);
  border-radius: var(--g-radius-xl);
  background: #fff;
  box-shadow: var(--g-shadow-md);
}

.directory-page .filters {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: .75rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.directory-page .field { min-width: 0; }
.directory-page .field span { color: var(--g-color-muted); font-size: .76rem; font-weight: 800; }
.directory-page :where(input, select) {
  width: 100%;
  min-width: 0;
  min-height: 47px;
  padding: .68rem .75rem;
  border: 1px solid var(--g-color-border-strong);
  border-radius: .72rem;
  background: #fff;
  color: var(--g-color-ink);
  font: inherit;
}

.directory-page :where(input, select):focus {
  border-color: var(--g-color-primary);
  box-shadow: 0 0 0 3px rgba(7, 143, 120, .12);
}

.directory-page .filters__actions { margin-top: var(--g-space-3); }
.directory-page .filters__actions .button {
  min-height: 40px;
  border-color: var(--g-color-border-strong);
  border-radius: .7rem;
  color: var(--g-color-primary-strong);
  box-shadow: none;
}

.directory-page .helpers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--g-space-5);
  margin-top: 0;
}

.directory-page .helper-card,
.directory-page .helper-card--compact {
  display: grid;
  grid-template-rows: auto auto auto auto auto 1fr auto;
  min-width: 0;
  height: 100%;
  gap: .72rem;
  padding: 0 1.15rem 1.15rem;
  overflow: hidden;
  border: 1px solid var(--g-color-border);
  border-radius: var(--g-radius-lg);
  background: #fff;
  box-shadow: var(--g-shadow-sm);
  transform: none;
  transition: transform var(--g-transition), box-shadow var(--g-transition), border-color var(--g-transition);
}

.directory-page .helper-card:hover { transform: translateY(-4px); border-color: #b8d8d0; box-shadow: var(--g-shadow-md); }
.directory-page .helper-card--premium { border-color: #83cfc1; }
.directory-page .helper-card--featured {
  border-color: #efb84b;
  background: linear-gradient(180deg, #fffdf8 0%, #fff 36%);
  box-shadow: 0 15px 38px rgba(178, 111, 5, .13);
}
.directory-page .helper-card--featured::before { background: linear-gradient(135deg, var(--g-color-sun), var(--g-color-primary)); }

.directory-page .helper-card--compact .helper-card__media,
.directory-page .helper-card__media {
  height: 205px;
  margin: 0 -1.15rem .2rem;
  border-radius: 0;
  aspect-ratio: auto;
  background: var(--g-color-mint-soft);
}

.directory-page .helper-card__badges {
  position: absolute;
  top: .75rem;
  left: .75rem;
  right: 3.5rem;
  z-index: 2;
  gap: .4rem;
}

.directory-page .helper-card--compact .status-badge,
.directory-page .status-badge {
  min-height: 26px;
  padding: .24rem .55rem;
  border: 1px solid transparent;
  font-size: .63rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(6, 47, 44, .08);
}

.directory-page .status-badge--verified { border-color: #bfe4d8; background: #e8f8f2; color: #08715e; }
.directory-page .status-badge--premium { border-color: #91d5c8; background: #e7f8f4; color: #056f60; }
.directory-page .status-badge--featured { background: linear-gradient(135deg, #ffad16, #f18417); color: #432700; }

.directory-page .favorite-button {
  top: .7rem;
  right: .7rem;
  z-index: 3;
  min-width: 42px;
  min-height: 42px;
  border-color: rgba(7, 143, 120, .18);
  background: rgba(255, 255, 255, .96);
  color: var(--g-color-muted);
  box-shadow: 0 5px 16px rgba(6, 47, 44, .1);
}
.directory-page .favorite-button.is-active { border-color: #f4c26a; background: #fff7e8; color: #d97800; }

.directory-page .helper-card__header { gap: .75rem; }
.directory-page .helper-card--compact .helper-card__type,
.directory-page .helper-card__type { margin-bottom: .25rem; color: var(--g-color-primary); font-size: .67rem; font-weight: 850; }
.directory-page .helper-card--compact .helper-card__name,
.directory-page .helper-card__name { color: var(--g-color-heading); font-size: 1.12rem; line-height: 1.22; letter-spacing: -.015em; }
.directory-page .helper-card--compact .helper-card__location,
.directory-page .helper-card--compact .helper-card__summary,
.directory-page .helper-card--compact .helper-card__languages,
.directory-page .helper-card__location,
.directory-page .helper-card__summary { color: var(--g-color-muted); font-size: .82rem; line-height: 1.5; }
.directory-page .helper-card__location { color: var(--g-color-primary-strong); }
.directory-page .helper-card--compact .helper-card__summary { min-height: 3.8em; -webkit-line-clamp: 2; }
.directory-page .helper-card--compact-free .helper-card__summary { display: none; }

.directory-page .helper-card--compact .helper-card__trust,
.directory-page .helper-card__trust { gap: .5rem; }
.directory-page .helper-card--compact .helper-card__meta-item,
.directory-page .helper-card__meta-item {
  padding: .52rem .58rem;
  border: 1px solid #e2eeea;
  border-radius: .7rem;
  background: var(--g-color-mint-soft);
}
.directory-page .helper-card--compact .helper-card__meta-label,
.directory-page .helper-card__meta-label { color: var(--g-color-muted); font-size: .59rem; }
.directory-page .helper-card--compact :where(.helper-card__response-time, .helper-card__member-since, .helper-card__price-range, .helper-card__main-service, .helper-card__lead-count) {
  color: var(--g-color-ink);
  font-size: .72rem;
  line-height: 1.35;
}

.directory-page .helper-card--compact .helper-card__services { gap: .38rem; }
.directory-page .chip,
.directory-page .helper-card--compact .chip {
  padding: .22rem .48rem;
  background: var(--g-color-mint);
  color: var(--g-color-primary-strong);
  font-size: .63rem;
}
.directory-page .helper-card--compact .helper-card__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.directory-page .helper-card--compact .helper-card__actions .button { min-height: 39px; padding: .48rem .55rem; font-size: .74rem; }
.directory-page .helper-card--compact-free .helper-card__actions .button { grid-column: 1 / -1; }

.directory-page .modal__backdrop { background: rgba(6, 47, 44, .68); backdrop-filter: blur(4px); }
.directory-page .modal__panel {
  width: min(100%, 780px);
  max-height: min(90vh, 900px);
  max-height: min(90dvh, 900px);
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid var(--g-color-border);
  border-radius: var(--g-radius-xl);
  background: #fff;
  box-shadow: 0 30px 80px rgba(6, 47, 44, .25);
}
.directory-page .modal__close { z-index: 2; background: var(--g-color-mint); color: var(--g-color-primary-strong); }

.directory-page .step-card--warning {
  border-color: #f3d599;
  background: linear-gradient(180deg, #fffaf0, #fff);
  box-shadow: var(--g-shadow-sm);
}
.directory-page #safety .steps { gap: var(--g-space-4); }
.directory-page #safety h3 { color: var(--g-color-heading); }
.directory-page #safety p { color: var(--g-color-muted); }

.directory-page .site-footer {
  background: var(--g-color-heading);
  color: rgba(255, 255, 255, .78);
}
.directory-page .site-footer a { color: #fff; }
.directory-page .scroll-top { background: var(--g-color-primary); box-shadow: 0 8px 24px rgba(7, 143, 120, .25); }

@media (min-width: 1600px) {
  .directory-page .helpers-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .directory-page .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-page .field--search { grid-column: 1 / -1; }
  .directory-page .helpers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .directory-page .topbar { align-items: flex-start; flex-direction: column; padding: .75rem 0 1rem; }
  .directory-page .topbar__nav { width: 100%; align-items: flex-start; flex-direction: column; }
  .directory-page .topbar__links { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .directory-page .hero__grid { grid-template-columns: minmax(0, 1fr) 210px; gap: 2rem; }
  .directory-page .directory-quick-start { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 699px) {
  .directory-page .container { width: min(calc(100% - 1.25rem), var(--g-content)); }
  .directory-page .topbar { gap: .75rem; margin-bottom: 2rem; }
  .directory-page .directory-brand { width: 152px; min-width: 152px; }
  .directory-page .topbar__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
  .directory-page .topbar__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: .5rem .55rem;
    border: 1px solid var(--g-color-border);
    border-radius: .65rem;
    background: rgba(255, 255, 255, .75);
    text-align: center;
    white-space: normal;
  }
  .directory-page .topbar__link:last-child { grid-column: 1 / -1; }
  .directory-page .hero__content { padding-bottom: 2.75rem; }
  .directory-page .hero__grid { display: block; }
  .directory-page .directory-hero__art { display: none; }
  .directory-page .hero__text h1 { max-width: none; font-size: clamp(2rem, 8.5vw, 2.8rem); overflow-wrap: anywhere; }
  .directory-page .section { padding: 3rem 0; }
  .directory-page .section-heading--row { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .directory-page .results { width: auto; }
  .directory-page .directory-quick-start { grid-template-columns: 1fr; }
  .directory-page .directory-quick-start .step-card { min-height: auto; }
  .directory-page .directory-filter-panel { padding: 1rem; border-radius: var(--g-radius-lg); }
  .directory-page .filters { grid-template-columns: 1fr; }
  .directory-page .field--search { grid-column: auto; }
  .directory-page .filters__actions .button { width: 100%; }
  .directory-page .helpers-grid { grid-template-columns: 1fr; gap: 1rem; }
  .directory-page .helper-card--compact .helper-card__media,
  .directory-page .helper-card__media { height: clamp(190px, 63vw, 245px); }
  .directory-page .helper-card--compact .helper-card__actions { grid-template-columns: 1fr; }
  .directory-page .helper-card--compact-free .helper-card__actions .button { grid-column: auto; }
  .directory-page .modal { padding: .55rem; }
  .directory-page .modal__panel { max-height: 94vh; max-height: 94dvh; border-radius: var(--g-radius-lg); }
}

@media (max-width: 410px) {
  .directory-page .helper-card--compact .helper-card__trust { grid-template-columns: 1fr; }
}
