:root,
html[data-theme="light"] {
  color-scheme: light;
  --ink: #1a202c;
  --muted: #718096;
  --bg: #f7fafc;
  --surface: #ffffff;
  --accent: #2d7a50;
  --accent-hover: #246644;
  --accent-ink: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 12px 40px rgba(26, 32, 44, 0.08);
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --header-h: 4.25rem;
  --focus: 0 0 0 3px rgba(45, 122, 80, 0.35);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e8eef2;
  --muted: #a0aec0;
  --bg: #12181f;
  --surface: #1a222c;
  --accent: #3d9a6e;
  --accent-hover: #4aab7c;
  --accent-ink: #06140d;
  --border: #2d3748;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --focus: 0 0 0 3px rgba(61, 154, 110, 0.45);
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--header-h);
  padding: 0.85rem 1.75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.theme-toggle,
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.theme-toggle:hover,
.lang-toggle:hover {
  border-color: var(--accent);
}

.lang-toggle[hidden] {
  display: none !important;
}

.lang-toggle-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.theme-icon {
  width: 1.15rem;
  height: 1.15rem;
}

/* Show moon in light mode (action: go dark); sun in dark mode */
html[data-theme="light"] .theme-icon-sun,
html:not([data-theme]) .theme-icon-sun,
html[data-theme="dark"] .theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-icon-sun {
  display: block;
}

html[data-theme="light"] .theme-icon-moon,
html:not([data-theme]) .theme-icon-moon {
  display: block;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

.brand-text {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.nav-link {
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: var(--accent);
}

.nav-link:hover {
  text-decoration: underline;
}

/* —— Home hero —— */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 68rem;
  margin: 0 auto;
  padding: 3.5rem 1.75rem 4rem;
  min-height: calc(100vh - var(--header-h));
}

.hero-copy h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: 28rem;
}

.cta-row {
  margin: 1.75rem 0 0;
}

.cta,
.find-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  padding: 0.8rem 1.35rem;
  border: 0;
  border-radius: 0.55rem;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.cta:hover,
.find-form button:hover:not(:disabled) {
  background: var(--accent-hover);
}

.cta:active,
.find-form button:active:not(:disabled) {
  transform: translateY(1px);
}

.cta-icon {
  width: 1.15rem;
  height: 1.15rem;
  filter: brightness(0) invert(1);
}

html[data-theme="dark"] .cta-icon {
  /* accent-ink is dark in dark mode */
  filter: brightness(0) saturate(100%);
  opacity: 0.9;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-illustration {
  width: min(100%, 32rem);
  animation: hero-in 0.7s ease-out both;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-illustration {
    animation: none;
  }

  .cta,
  .find-form button {
    transition: none;
  }
}

/* —— Find page —— */
.find {
  display: flex;
  justify-content: center;
  padding: 3rem 1.25rem 4rem;
}

.find-card {
  width: 100%;
  max-width: 28rem;
  text-align: center;
  animation: card-in 0.45s ease-out both;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .find-card {
    animation: none;
  }
}

.find-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.15rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
}

.find-icon img {
  width: 1.5rem;
  height: 1.5rem;
  /* tint to accent green */
  filter: invert(35%) sepia(24%) saturate(1200%) hue-rotate(95deg) brightness(95%);
}

html[data-theme="dark"] .find-icon img {
  filter: invert(58%) sepia(18%) saturate(900%) hue-rotate(95deg) brightness(105%);
}

.find-card h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.find-card .lead {
  margin: 0 auto 1.5rem;
  max-width: 24rem;
  font-size: 0.98rem;
}

.find-form {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1rem;
  text-align: left;
}

.find-form label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.find-form input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
}

.find-form input::placeholder {
  color: var(--muted);
  opacity: 0.85;
}

.find-form button {
  justify-self: center;
  margin-top: 0.65rem;
  min-width: 8.5rem;
}

.find-form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.find-status {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
}

.find-results {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.75rem;
  text-align: left;
}

.find-result {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.find-result-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.find-result-avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2, var(--border));
}

.find-result-text {
  min-width: 0;
  flex: 1;
}

.find-result-name {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.05rem;
}

.find-result-address {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.find-result-link {
  font-weight: 600;
  text-decoration: none;
}

.find-result-link:hover,
.find-result-link:focus-visible {
  text-decoration: underline;
}

.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.75rem 4rem;
}

.legal h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.legal .lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-draft {
  margin: 0 0 1.25rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0 0 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.legal-toc a {
  font-weight: 600;
  text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  text-decoration: underline;
}

.legal-section {
  margin-bottom: 2.75rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.legal-section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.legal-section h3 {
  margin: 1.35rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.legal-section p,
.legal-section li {
  color: var(--ink);
  font-size: 1rem;
}

.legal-section ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.legal-section li + li {
  margin-top: 0.35rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.25rem 1.75rem 1.75rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.35rem;
  max-width: 72rem;
  margin: 0 auto;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2.5rem;
    text-align: center;
    min-height: auto;
  }

  .hero-copy .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    order: -1;
  }

  .hero-illustration {
    width: min(100%, 22rem);
  }

  .site-header,
  .site-footer,
  .legal {
    padding-inline: 1.25rem;
  }
}
