:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #5d6b67;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --surface-alt: #f0f6f3;
  --line: #d9e1dd;
  --control-border: #74837e;
  --coral: #d85f4c;
  --coral-dark: #a73e30;
  --teal: #0e7a75;
  --teal-dark: #075653;
  --gold: #c7962c;
  --mint: #dff1ec;
  --warning: #754c00;
  --danger: #9a2f28;
  --shadow: 0 18px 50px rgba(23, 33, 31, 0.12);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: #fff;
  background: var(--teal-dark);
  border-radius: var(--radius);
  font-weight: 900;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

button,
input,
select {
  font: inherit;
}

button,
a,
select,
input {
  min-height: 44px;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible,
.focus-target:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--teal-dark);
}

.focus-target,
#directory,
#vendors,
#trust,
#claim,
#compareReport {
  scroll-margin-top: 96px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 48px);
  color: #fff;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a {
  opacity: 0.88;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-cta,
.hero-search button,
.reset-button,
.claim-form button,
.card-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
}

.nav-cta {
  min-height: 40px;
  padding: 0 16px;
  color: #fff;
  background: var(--coral-dark);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 112px clamp(18px, 6vw, 72px) 72px;
  color: #fff;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 16, 15, 0.82) 0%, rgba(8, 16, 15, 0.62) 44%, rgba(8, 16, 15, 0.1) 100%),
    linear-gradient(0deg, rgba(8, 16, 15, 0.45), rgba(8, 16, 15, 0.05));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #a8e5dc;
}

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

h1 {
  margin-bottom: 18px;
  max-width: 720px;
  font-size: 4rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 2.7rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 600px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
}

.hero-search {
  width: min(560px, 100%);
  display: grid;
  gap: 9px;
}

.hero-search label,
.filter-block label,
.sort-control,
.claim-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-search label {
  color: rgba(255, 255, 255, 0.82);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.hero-query-row {
  margin-bottom: 5px;
}

.hero-location-row button {
  min-width: 148px;
  white-space: nowrap;
}

.hero-location-row button:disabled {
  cursor: progress;
  opacity: 0.75;
}

.hero-search-help,
.hero-search-status {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.82rem;
  line-height: 1.45;
}

.hero-search-status {
  min-height: 1.2em;
  font-weight: 800;
}

select,
input {
  width: 100%;
  border: 1px solid var(--control-border);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  padding: 0 12px;
}

.hero-search button,
.claim-form button,
.card-actions button {
  padding: 0 18px;
  color: #fff;
  background: var(--teal);
}

.hero-search button:hover,
.claim-form button:hover,
.card-actions button:hover {
  background: var(--teal-dark);
}

.summary-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-band div {
  min-height: 126px;
  padding: 28px clamp(18px, 4vw, 42px);
  background: var(--surface);
}

.summary-band strong,
.summary-band span {
  display: block;
}

.summary-band strong {
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 1rem;
}

.summary-band span {
  color: var(--muted);
}

.directory-shell,
.profile-section,
.geo-section,
.intake-section,
.trust-section,
.claim-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 76px clamp(18px, 4vw, 36px);
}

.geo-link-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.geo-link-grid a {
  display: grid;
  min-height: 82px;
  place-items: center;
  padding: 14px;
  color: var(--teal-dark);
  background: var(--surface);
  font-weight: 900;
  text-align: center;
}

.geo-link-grid a:hover {
  background: var(--surface-alt);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
}

.directory-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.filter-block {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}

.filter-block legend {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.checkbox-stack {
  display: grid;
  gap: 8px;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-height: 34px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: none;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--teal);
}

.filter-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.reset-button {
  margin-top: 2px;
  color: var(--teal-dark);
  background: var(--mint);
}

.results-panel {
  min-width: 0;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.result-count {
  display: block;
  font-weight: 900;
  font-size: 1.35rem;
}

.results-toolbar p {
  margin-bottom: 0;
  color: var(--muted);
}

.sort-control {
  min-width: 210px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.stats-grid div {
  padding: 18px;
  background: var(--surface-alt);
}

.stats-grid span {
  display: block;
  margin-bottom: 2px;
  color: var(--coral-dark);
  font-size: 1.65rem;
  font-weight: 950;
}

.stats-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.vendor-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(23, 33, 31, 0.04);
}

.vendor-card.is-active {
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 3px var(--mint);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vendor-name {
  margin-bottom: 4px;
  font-size: 1.2rem;
}

.vendor-location {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.price-block {
  min-width: 92px;
  text-align: right;
}

.price-block strong {
  display: block;
  color: var(--teal-dark);
  font-size: 1.28rem;
}

.price-block span {
  color: var(--muted);
  font-size: 0.78rem;
}

.badge-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 900;
}

.badge {
  color: var(--teal-dark);
  background: var(--mint);
}

.badge.claimed {
  color: #533f03;
  background: #f3e1a7;
}

.badge.estimated {
  color: var(--warning);
  background: #f8ead0;
}

.badge.unclaimed {
  color: var(--muted);
  background: #eef0ee;
}

.chip {
  color: var(--ink);
  background: #f4f0ea;
}

.objective-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.objective-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #edf1ee;
  padding-top: 8px;
}

.objective-list strong {
  color: var(--ink);
}

.card-actions {
  display: flex;
  gap: 10px;
}

.secondary-button {
  color: var(--teal-dark) !important;
  background: var(--mint) !important;
}

.empty-state {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface);
}

.compare-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
}

.compare-header h3 {
  margin-bottom: 0;
}

.compare-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.compare-header button {
  min-height: 36px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--teal-dark);
  background: var(--mint);
  cursor: pointer;
  font-weight: 800;
}

.compare-preview,
.compare-report {
  padding: 18px;
}

.compare-preview > p {
  margin-top: 0;
  color: var(--muted);
}

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

.compare-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface-alt);
}

.compare-card > span,
.compare-card dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.compare-card h4 {
  margin: 5px 0 10px;
  font-size: 1.05rem;
}

.compare-card dl {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.compare-card dl div {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.compare-card dd {
  margin: 3px 0 0;
}

.compare-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.compare-actions button {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 16px;
  color: #fff;
  background: var(--teal);
  cursor: pointer;
  font-weight: 850;
}

.compare-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.compare-actions span {
  color: var(--muted);
  font-size: 0.88rem;
}

.compare-report {
  border-top: 1px solid var(--line);
}

.compare-report h4 {
  margin-top: 0;
}

.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.compare-table caption {
  padding: 0 0 12px;
  color: var(--ink);
  font-weight: 900;
  text-align: left;
}

.compare-table th,
.compare-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  width: 190px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.compare-table thead th:not(:first-child) {
  color: var(--ink);
  font-size: 0.9rem;
  text-transform: none;
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: 0;
}

.profile-section {
  padding-top: 26px;
}

.profile-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.profile-hero,
.profile-body {
  background: var(--surface);
}

.profile-hero {
  min-height: 440px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(14, 122, 117, 0.92), rgba(216, 95, 76, 0.84)),
    url("assets/fovenza-hero.png") center/cover;
  color: #fff;
}

.profile-hero h3 {
  margin: 18px 0 8px;
  font-size: 2rem;
}

.profile-hero p {
  color: rgba(255, 255, 255, 0.9);
}

.profile-body {
  padding: 28px;
}

.detail-heading {
  margin-top: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.detail-tile {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.detail-tile span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-tile strong {
  font-size: 1.05rem;
}

.trust-section {
  max-width: none;
  background: #10201e;
  color: #fff;
}

.intake-section {
  padding-top: 26px;
}

.intake-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.intake-summary div {
  padding: 18px;
  background: var(--surface-alt);
}

.intake-summary strong {
  display: block;
  color: var(--teal-dark);
  font-size: 1.7rem;
  line-height: 1;
}

.intake-summary span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

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

.intake-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.intake-card h3 {
  margin-bottom: 3px;
}

.intake-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--muted);
  background: #eef0ee;
}

.status-badge.publishable {
  color: var(--teal-dark);
  background: var(--mint);
}

.status-badge.needs-review {
  color: var(--warning);
  background: #f8ead0;
}

.status-badge.shell {
  color: var(--danger);
  background: #f5d7d2;
}

.status-badge.taxonomy-reference {
  color: #3d4a91;
  background: #dde4ff;
}

.missing-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.missing-list li {
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  background: #f4f0ea;
  font-size: 0.78rem;
  font-weight: 800;
}

.trust-section .section-heading {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.trust-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: var(--container);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.16);
}

.trust-grid article {
  min-height: 260px;
  padding: 28px;
  background: #132b28;
}

.trust-number {
  display: block;
  margin-bottom: 42px;
  color: #f0c86b;
  font-weight: 950;
}

.trust-grid p {
  color: rgba(255, 255, 255, 0.76);
}

.claim-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 36px;
  align-items: start;
}

.claim-section p {
  color: var(--muted);
  font-size: 1.04rem;
}

.claim-form {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.claim-form input {
  margin-top: 6px;
}

.form-note {
  min-height: 24px;
  margin-bottom: 0;
  color: var(--teal-dark) !important;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 960px) {
  html {
    scroll-padding-top: 128px;
  }

  .site-header {
    position: sticky;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 10px 16px;
    color: var(--ink);
    background: rgba(251, 250, 247, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav-links {
    order: 3;
    display: flex;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 16px;
  }

  .focus-target,
  #directory,
  #vendors,
  #trust,
  #claim,
  #compareReport {
    scroll-margin-top: 128px;
  }

  .summary-band,
  .directory-layout,
  .profile-detail,
  .intake-summary,
  .intake-grid,
  .trust-grid,
  .geo-link-grid,
  .claim-section {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .vendor-grid {
    grid-template-columns: 1fr;
  }

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

  .profile-hero {
    min-height: 320px;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 12px 16px;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: 84vh;
    padding: 96px 18px 42px;
  }

  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2rem;
  }

  .search-row,
  .stats-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .results-toolbar,
  .card-actions,
  .site-footer,
  .compare-header,
  .compare-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sort-control {
    min-width: 0;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
