:root {
  color-scheme: light;
  --ink: #14352a;
  --green: #175441;
  --muted: #52665d;
  --line: #d5e1d9;
  --canvas: #f6f8f4;
  --mint: #daeddc;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; object-fit: contain; }
p { margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.08; margin: 0; }
h1, h2 { font-family: Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(2.85rem, 6.2vw, 5.4rem); letter-spacing: -.055em; max-width: 13ch; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.042em; }
h3 { font-size: 1.29rem; letter-spacing: -.022em; }
:focus-visible { outline: 3px solid #7d9e2d; outline-offset: 4px; }
.wrap { width: min(100% - 3rem, 74rem); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 .7rem; font-size: .875rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.site-header { background: #fcfdfb; }
.navigation, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.navigation { min-height: 5rem; }
.navigation nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.navigation nav a { font-size: .95rem; font-weight: 700; text-decoration: none; }
.navigation nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
.brand { display: inline-block; flex-shrink: 0; }
.brand img { width: 14.5rem; height: auto; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem;
  padding: .58rem 1rem; border: 1px solid transparent; border-radius: .5rem;
  background: var(--green); color: white; font-weight: 700; text-decoration: none;
}
.button:hover { background: #103e30; }
.button-outline { background: transparent; color: var(--ink); border-color: #aabfb2; }
.button-outline:hover { background: #edf3ed; }
.button-light { background: var(--mint); color: #143d2e; }
.button-light:hover { background: #c4e4cc; }
.button-ghost { color: white; border-color: #89ada0; background: transparent; }
.button-ghost:hover { background: #235644; }
.hero {
  color: #fff; background: radial-gradient(ellipse at 90% 15%, #245845 0%, #133c30 48%, #102f26 100%);
  padding-block: clamp(3rem, 7vw, 6rem);
}
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(16rem, .85fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.hero .eyebrow { color: #b9dfc3; }
.hero-copy { color: #e0ece4; max-width: 34rem; margin: 1.35rem 0 1.65rem; font-size: 1.125rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.hero-sectors { align-self: center; border: 1px solid #638475; border-radius: 1rem; padding: 1.4rem; background: #183e32; }
.hero-sectors h2 { font: 700 1.15rem/1.4 system-ui, sans-serif; letter-spacing: 0; }
.hero-sectors ul { list-style: none; margin: .7rem 0 0; padding: 0; }
.hero-sectors li + li { border-top: 1px solid #4d6c60; }
.sector-button { display: flex; width: 100%; justify-content: space-between; align-items: center; background: transparent; border: 0; padding: .68rem 0; text-align: left; color: #f3fbf4; }
.sector-button:hover span:first-child { text-decoration: underline; text-underline-offset: .2em; }
.sector-count { color: #c5dfcc; font-size: .875rem; margin-left: 1rem; }
.directory { padding-block: clamp(2.7rem, 6vw, 5.2rem); scroll-margin-top: 1rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-heading .muted { margin: .7rem 0 0; }
.section-heading .button { flex-shrink: 0; }
.filters {
  display: grid; grid-template-columns: minmax(12rem, 1.35fr) repeat(3, minmax(0, 1fr)) auto; gap: .75rem;
  align-items: end; padding: 1rem; background: white; border: 1px solid var(--line); border-radius: .75rem;
}
label { display: grid; gap: .35rem; min-width: 0; font-size: .875rem; font-weight: 700; }
input, select, textarea {
  display: block; width: 100%; min-height: 2.75rem; border: 1px solid #aebfb4; border-radius: .4rem;
  background: white; color: var(--ink); padding: .55rem .7rem; font-size: 1rem; font-weight: 400;
}
select {
  appearance: none; padding-right: 1.8rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
textarea { resize: vertical; }
.text-button { border: 0; padding: .55rem .25rem; min-height: 2.75rem; background: transparent; color: var(--green); font-size: .9rem; font-weight: 700; }
.text-button:hover { text-decoration: underline; }
.result-count { margin: 1rem 0 .65rem; font-size: .9rem; }
.deal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.deal-card { display: flex; flex-direction: column; align-items: start; padding: 1.25rem; border: 1px solid var(--line); background: white; border-radius: .75rem; }
.deal-card .category { font-weight: 700; font-size: .875rem; color: var(--green); margin-bottom: .7rem; }
.deal-card .location { margin: .5rem 0 .8rem; font-size: .95rem; }
.deal-facts { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: .6rem; margin: auto 0 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.deal-facts dt { font-size: .875rem; color: var(--muted); }
.deal-facts dd { margin: 0; font-weight: 750; }
.deal-card .button { width: 100%; min-height: 2.65rem; }
.empty { grid-column: 1 / -1; margin: 0; padding: 1.4rem; border: 1px solid var(--line); border-radius: .75rem; background: white; }
.seller-section { background: #e9f1e8; border-block: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 4.6rem); }
.seller-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(1.5rem, 7vw, 6rem); align-items: center; }
.seller-layout h2 + p { margin: .85rem 0 1.4rem; max-width: 33rem; }
.pricing { padding: 1.25rem; background: #f9fbf8; border: 1px solid var(--line); border-radius: .75rem; }
.pricing dl { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 0 0 .75rem; }
.pricing dt, .pricing p { color: var(--muted); font-size: .875rem; }
.pricing dd { margin: 0; font-size: 1.5rem; font-weight: 750; }
.pricing span { font-size: .875rem; font-weight: 500; }
.pricing p { margin: 0; padding-top: .7rem; border-top: 1px solid var(--line); }
.footer { min-height: 6rem; font-size: .9rem; }
.footer .brand img { width: 12.6rem; }
dialog { position: relative; width: min(34rem, 100% - 2rem); max-height: calc(100% - 2rem); padding: 1.5rem; color: var(--ink); border: 1px solid var(--line); border-radius: .9rem; }
dialog::backdrop { background: #0e271fbb; }
dialog h2 { font-size: 2.25rem; margin: 0 2rem .65rem 0; }
dialog .close-form { position: absolute; right: .65rem; top: .65rem; }
.icon-button { font-size: 1.6rem; line-height: 1; width: 2.5rem; height: 2.5rem; border-radius: .4rem; border: 0; background: #eef4ed; color: var(--ink); }
#intake label { margin-bottom: .8rem; }
.form-note { font-size: .9rem; }

@media (max-width: 850px) {
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .text-button { justify-self: start; }
  .deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 2rem); }
  .navigation { min-height: 4rem; gap: .75rem; }
  .navigation .brand img { width: clamp(8rem, 36vw, 12rem); }
  .navigation nav { margin-left: auto; gap: .8rem; white-space: nowrap; }
  .navigation nav a { font-size: .875rem; }
  .header-action { display: none; }
  .hero-layout, .seller-layout { grid-template-columns: 1fr; }
  .section-heading { flex-direction: column; align-items: start; }
  .deal-grid { grid-template-columns: 1fr; }
  .footer { gap: .7rem; }
  .footer .brand img { width: 10rem; }
}
