:root {
  color-scheme: light dark;
  font-family: "Helvetica Neue", Arial, system-ui, sans-serif;
  --page: #f4f7f6;
  --surface: #fbfdfc;
  --surface-strong: #e8efed;
  --ink: #15201d;
  --muted: #5b6a66;
  --line: #ced9d5;
  --accent: #087d69;
  --accent-strong: #056351;
  --accent-soft: #d6eee8;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100dvh; margin: 0; color: var(--ink); background: var(--page); }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 12px 16px; border-radius: 8px; color: #f7fbfa; background: var(--accent-strong); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header, main, footer { width: min(1600px, calc(100% - 64px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 14px; text-decoration: none; }
.brand strong { display: block; font-size: 12px; color: var(--muted); }
.brand-mark { display: block; width: 120px; height: 44px; flex: 0 0 120px; overflow: hidden; }
.brand-mark img { display: block; width: 120px; height: 120px; transform: translateY(-36px); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-link { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; font-weight: 750; text-underline-offset: 4px; }
.language-picker { display: inline-flex; min-height: 44px; align-items: center; padding-left: 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.language-picker select { min-height: 42px; padding: 0 30px 0 0; border: 0; color: var(--ink); background: transparent; cursor: pointer; }

.hero { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px, .7fr); gap: clamp(40px, 6vw, 96px); align-items: end; min-height: 460px; padding: 56px 0; border-bottom: 1px solid var(--line); }
.hero-copy { padding-bottom: 12px; }
.eyebrow { margin: 0 0 22px; color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .14em; }
h1 { max-width: 980px; margin: 0; font-size: clamp(54px, 6vw, 96px); line-height: .92; letter-spacing: -.06em; }
.hero-description { max-width: 620px; margin: 24px 0 28px; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }
.primary-link { display: inline-flex; min-height: 48px; align-items: center; padding: 0 20px; border-radius: 999px; color: #f7fbfa; background: var(--accent); font-size: 14px; font-weight: 800; text-decoration: none; }
.primary-link:hover { background: var(--accent-strong); }
.primary-link:active { transform: translateY(1px); }

.hero-summary { padding: 28px; border-radius: var(--radius); color: #eaf5f2; background: #193a32; }
.hero-summary > p { margin: 0; color: #b9d0ca; font-size: 13px; }
.hero-summary > strong { display: block; margin: 10px 0 30px; font-size: 72px; line-height: 1; letter-spacing: -.06em; }
.summary-list { display: grid; gap: 0; }
.summary-list span { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #3d5c54; color: #c7d8d3; font-size: 13px; }
.summary-list b { color: #f7fbfa; }

.directory { padding: 68px 0 88px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; }
.section-heading p { max-width: 620px; margin: 12px 0 0; color: var(--muted); line-height: 1.6; }
.section-heading p { max-width: 460px; text-align: right; }
.directory-tools { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 28px; align-items: end; margin-top: 34px; }
.search-field { display: grid; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 750; }
.search-field input { width: 100%; min-height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); }
.search-field input::placeholder { color: #71807c; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 44px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: transparent; font-size: 13px; font-weight: 750; }
.filters button[aria-pressed="true"] { border-color: var(--accent); color: #f7fbfa; background: var(--accent); }
.filters button:active { transform: translateY(1px); }
.result-count { margin: 24px 0 12px; color: var(--muted); font-size: 13px; }

.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.service-card { display: flex; min-height: 238px; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform 180ms ease, border-color 180ms ease; }
.service-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.service-card.featured { background: var(--accent-soft); }
.service-meta { display: flex; justify-content: space-between; gap: 16px; color: var(--accent-strong); font-size: 12px; font-weight: 800; }
.service-meta span:last-child { color: var(--muted); text-align: right; }
.service-card h3 { margin: 26px 0 10px; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.035em; }
.service-card > p { max-width: 52ch; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.service-footer { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-top: auto; padding-top: 22px; }
.service-footer small { color: var(--muted); }
.service-footer a { display: inline-flex; min-height: 24px; flex: 0 0 auto; align-items: center; color: var(--accent-strong); font-size: 13px; font-weight: 850; text-underline-offset: 4px; }
.internal-access { color: var(--muted); font-size: 13px; font-weight: 750; }
.empty-state { padding: 72px 24px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.empty-state p { margin: 8px 0 0; color: var(--muted); }

footer { display: flex; justify-content: space-between; gap: 24px; padding: 30px 0 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent); outline-offset: 3px; }

@media (max-width: 767px) {
  .site-header, main, footer { width: min(100% - 28px, 1600px); }
  .site-header { min-height: 64px; }
  .brand-mark { width: 100px; flex-basis: 100px; }
  .brand-mark img { width: 100px; height: 100px; transform: translateY(-30px); }
  .header-link { display: none; }
  .hero { grid-template-columns: 1fr; gap: 36px; min-height: auto; padding: 58px 0 48px; }
  h1 { font-size: clamp(42px, 14vw, 60px); }
  .hero-summary { padding: 24px; }
  .directory { padding: 72px 0 80px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 0; }
  .section-heading p { text-align: left; }
  .directory-tools, .service-grid { grid-template-columns: 1fr; }
  .directory-tools { gap: 18px; margin-top: 36px; }
  .service-card { min-height: 250px; padding: 22px; }
  .service-meta, .service-footer, footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .brand > span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #111715;
    --surface: #18201e;
    --surface-strong: #202b28;
    --ink: #ecf3f1;
    --muted: #acbbb7;
    --line: #34413d;
    --accent: #4fbea8;
    --accent-strong: #79d5c1;
    --accent-soft: #17342d;
  }
  .hero-summary { color: #eaf5f2; background: #193a32; }
  .primary-link, .filters button[aria-pressed="true"] { color: #10201c; }
  .search-field input::placeholder { color: #91a19c; }
}
