:root {
  --ink: #17251f;
  --muted: #647069;
  --cream: #f4f0e7;
  --paper: #fffdf8;
  --green: #1f684f;
  --green-dark: #154535;
  --lime: #d7e8a7;
  --line: #d8ddd6;
  --orange: #d86f3c;
  --shadow: 0 22px 60px rgba(23, 37, 31, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Manrope", sans-serif; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.site-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; border-bottom: 1px solid rgba(23,37,31,.12); background: rgba(255,253,248,.92); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: white; font: 700 15px "Source Serif 4", serif; letter-spacing: .04em; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: "Source Serif 4", serif; font-size: 20px; }
.brand small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
nav { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 700; }
nav a:hover { color: var(--green); }
.nav-cta, .primary-button { border: 0; background: var(--green); color: white; padding: 13px 20px; border-radius: 4px; font-weight: 800; }
.nav-cta:hover, .primary-button:hover { background: var(--green-dark); }

.hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .55fr); gap: clamp(40px, 6vw, 90px); padding: clamp(70px, 9vw, 130px) 6vw 95px; background: radial-gradient(circle at 87% 10%, rgba(215,232,167,.52), transparent 26%), linear-gradient(135deg, #fffdf8 30%, #f3f0e6); }
.hero-copy { max-width: 900px; }
.eyebrow { color: var(--green); text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 800; margin: 0 0 16px; }
h1, h2, h3 { font-family: "Source Serif 4", serif; }
h1 { max-width: 850px; margin: 0; font-size: clamp(48px, 6.5vw, 92px); line-height: .96; letter-spacing: -.045em; font-weight: 600; }
h1 em { color: var(--green); font-style: italic; }
.lead { max-width: 700px; color: #4d5b54; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.7; margin: 28px 0 38px; }
.search-panel { background: white; border: 1px solid rgba(23,37,31,.12); border-radius: 8px; padding: 19px; box-shadow: var(--shadow); }
.search-panel > label { display: block; font-size: 12px; font-weight: 800; margin: 0 0 10px 2px; }
.query-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; background: #f7f7f2; border: 1px solid #dfe3dd; border-radius: 5px; padding: 6px; }
.search-icon { font-size: 28px; color: var(--green); transform: rotate(-15deg); text-align: center; }
.query-row input { min-width: 0; border: 0; outline: 0; background: transparent; padding: 13px 8px; font-size: 16px; color: var(--ink); }
.query-row button { border: 0; border-radius: 3px; background: var(--green); color: white; font-weight: 800; padding: 15px 24px; }
.search-meta { display: flex; justify-content: space-between; gap: 15px; margin: 12px 2px 0; color: var(--muted); font-size: 10px; }
.ai-label { color: var(--green); font-weight: 700; }
.ai-label i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--orange); }
.quick-searches { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; align-items: center; font-size: 11px; color: var(--muted); }
.quick-searches button { border: 1px solid #cdd4cd; border-radius: 999px; background: transparent; color: var(--ink); padding: 8px 12px; }
.quick-searches button:hover { border-color: var(--green); color: var(--green); }

.trust-card { align-self: center; background: var(--green-dark); color: white; border-radius: 8px; padding: 30px; box-shadow: 18px 18px 0 var(--lime); transform: rotate(1.2deg); }
.trust-topline { display: flex; justify-content: space-between; color: var(--lime); text-transform: uppercase; font-size: 10px; letter-spacing: .15em; }
.trust-card h2 { font-size: 32px; line-height: 1.1; margin: 26px 0 30px; }
.trust-item { display: grid; grid-template-columns: 34px 1fr; gap: 13px; padding: 19px 0; border-top: 1px solid rgba(255,255,255,.16); }
.trust-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: var(--green-dark); font-weight: 900; }
.trust-item strong { font-size: 13px; }
.trust-item p, .disclaimer { color: #c8d3cd; font-size: 11px; line-height: 1.55; margin: 5px 0 0; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.16); padding-top: 18px; }

.results-section { padding: 100px 6vw 120px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; max-width: 1400px; margin: 0 auto 38px; }
.section-heading h2 { font-size: clamp(36px, 4vw, 58px); line-height: 1.03; margin: 0; }
.section-heading > p { color: var(--muted); font-size: 12px; }
.filters { max-width: 1400px; margin: 0 auto 25px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; background: var(--cream); border-radius: 6px; }
.filters label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.filters select { width: 100%; display: block; margin-top: 7px; border: 0; background: white; color: var(--ink); border-radius: 3px; padding: 12px; font-size: 12px; font-weight: 700; }
.results-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.expert-card { display: flex; flex-direction: column; min-height: 450px; border: 1px solid var(--line); background: white; padding: 25px; border-radius: 7px; transition: transform .2s ease, box-shadow .2s ease; }
.expert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.expert-card[hidden] { display: none; }
.card-kicker { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.verified-badge, .source-badge { padding: 7px 9px; border-radius: 2px; color: var(--green-dark); background: var(--lime); font-weight: 800; letter-spacing: 0; }
.source-badge { color: #8b4b2d; background: #f5d7c8; }
.expert-card h3 { margin: 26px 0 8px; font-size: 28px; line-height: 1.13; }
.location { margin: 0 0 25px; color: var(--muted); font-size: 11px; }
.match-reason { padding: 18px; background: #f6f8f3; border-left: 3px solid var(--green); font-size: 12px; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.tags span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; color: var(--muted); font-size: 10px; }
.expert-card footer { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 9px; color: var(--muted); }
.expert-card footer button { border: 0; background: transparent; color: var(--green); padding: 5px 0; font-weight: 800; font-size: 11px; }
.empty-state { max-width: 1400px; margin: 0 auto; padding: 60px; text-align: center; background: var(--cream); }
.empty-state button { border: 0; color: var(--green); background: transparent; font-weight: 800; }
.load-more-wrap { max-width: 1400px; margin: 30px auto 0; text-align: center; }
.secondary-button { border: 1px solid var(--green); background: transparent; color: var(--green); padding: 13px 22px; border-radius: 4px; font-weight: 800; }
.secondary-button:hover { color: white; background: var(--green); }
.match-reason strong { display: block; margin-bottom: 8px; }
.match-reason p { margin: 0; color: var(--muted); }

.process { padding: 105px 6vw; color: white; background: var(--green-dark); }
.section-heading.light .eyebrow { color: var(--lime); }
.section-heading.light > p { max-width: 400px; color: #c8d3cd; line-height: 1.6; }
.process ol { list-style: none; padding: 0; margin: 60px auto 0; max-width: 1400px; display: grid; grid-template-columns: repeat(3, 1fr); }
.process li { display: grid; grid-template-columns: 45px 1fr; gap: 16px; padding: 25px 35px; border-left: 1px solid rgba(255,255,255,.18); }
.process li > span { color: var(--lime); font-size: 11px; font-weight: 800; }
.process h3 { margin: 0 0 14px; font-size: 25px; }
.process li p { color: #c8d3cd; font-size: 12px; line-height: 1.7; }

.for-experts { padding: 110px 8vw; background: var(--cream); display: grid; grid-template-columns: 1.1fr .9fr; gap: 11vw; align-items: center; }
.for-experts h2 { font-size: clamp(38px, 5vw, 68px); line-height: 1.03; margin: 0 0 25px; }
.for-experts > div:first-child > p:not(.eyebrow) { max-width: 630px; color: var(--muted); line-height: 1.7; }
.for-experts .primary-button { margin-top: 18px; }
.expert-benefits { border-top: 1px solid #c8cec7; }
.expert-benefits p { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 24px 0; margin: 0; border-bottom: 1px solid #c8cec7; color: var(--muted); font-size: 12px; line-height: 1.6; }
.expert-benefits span { color: var(--green); font-weight: 800; }
.expert-benefits strong { color: var(--ink); }

.site-footer { display: grid; grid-template-columns: 1fr auto auto; gap: 40px; align-items: center; padding: 50px 6vw; background: #101b16; color: white; }
.footer-brand small, .site-footer > p { color: #91a098; }
.site-footer > p { font-size: 10px; }
.site-footer > div:last-child { display: flex; gap: 18px; font-size: 10px; color: #c7d0ca; }

dialog { width: min(560px, calc(100vw - 28px)); border: 0; border-radius: 8px; padding: 38px; color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(10, 24, 18, .72); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 12px; right: 15px; border: 0; background: transparent; font-size: 26px; color: var(--muted); }
dialog h2 { margin: 0 0 10px; font-size: 38px; }
dialog > p:not(.eyebrow):not(.form-note) { color: var(--muted); line-height: 1.6; font-size: 13px; }
dialog form { display: grid; gap: 13px; margin-top: 24px; }
dialog label { font-size: 11px; font-weight: 800; }
dialog input, dialog select { display: block; width: 100%; margin-top: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 3px; background: white; }
.form-note { color: var(--green); background: #eef4df; padding: 13px; font-size: 12px; }
.expert-dialog { width: min(720px, calc(100vw - 28px)); }
.expert-details { margin: 25px 0; }
.expert-details > div { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.expert-details dt { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.expert-details dd { margin: 0; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.privacy-notice { padding: 12px 14px; background: var(--cream); }
.source-link { display: inline-block; margin-top: 8px; }
.legal-page { min-height: 100vh; padding: 70px 20px; background: var(--cream); }
.legal-card { max-width: 900px; margin: 0 auto; padding: clamp(28px, 5vw, 65px); border-radius: 8px; background: white; box-shadow: var(--shadow); }
.legal-card h1 { font-size: clamp(40px, 6vw, 66px); }
.legal-card h2 { margin-top: 35px; font-size: 25px; }
.legal-card p, .legal-card li { color: var(--muted); line-height: 1.75; }
.legal-card .back-link { display: inline-block; margin-bottom: 28px; color: var(--green); font-weight: 800; }

@media (max-width: 980px) {
  nav a { display: none; }
  .hero { grid-template-columns: 1fr; }
  .trust-card { max-width: 590px; transform: none; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .process ol { grid-template-columns: 1fr; }
  .process li { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .for-experts { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .site-header { min-height: 70px; padding: 0 18px; }
  .brand small { display: none; }
  .nav-cta { padding: 10px 12px; }
  .hero, .results-section, .process, .for-experts { padding-left: 20px; padding-right: 20px; }
  h1 { font-size: 48px; }
  .query-row { grid-template-columns: 30px 1fr; }
  .query-row button { grid-column: 1 / -1; width: 100%; }
  .search-meta { display: block; }
  .search-meta span { display: block; margin-top: 6px; }
  .trust-card { box-shadow: 8px 8px 0 var(--lime); }
  .section-heading { display: block; }
  .filters, .results-grid { grid-template-columns: 1fr; }
  .expert-card { min-height: 420px; }
  .for-experts { padding-top: 80px; padding-bottom: 80px; }
  .site-footer { padding: 45px 20px; }
  dialog { padding: 30px 22px; }
  .expert-details > div { grid-template-columns: 1fr; gap: 5px; }
}
