@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/NunitoSans-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/NunitoSans-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/NunitoSans-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/PlayfairDisplay-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/PlayfairDisplay-900.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --blue: #123954;
  --teal: #165b60;
  --teal-dark: #12474b;
  --red: #a64b45;
  --ink: #26363b;
  --muted: #647278;
  --paper: #fff;
  --soft: #f3f5f2;
  --line: #d7dfdc;
  font-family: "Nunito Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--red); }
button { font: inherit; }
h1, h2, h3, p, figure { margin-top: 0; }
h1, h2, h3, .site-name { font-family: "Playfair Display", Georgia, serif; }
.skip-link { position: absolute; z-index: 20; top: -4rem; left: 1rem; padding: .65rem 1rem; color: white; background: var(--blue); }
.skip-link:focus { top: 1rem; }

.hero {
  position: relative;
  display: flex;
  min-height: clamp(360px, 51vw, 680px);
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, rgb(9 26 30 / 16%) 5%, rgb(9 26 30 / 8%) 40%, rgb(9 26 30 / 72%) 100%), url("assets/images/pekarek.jpg") center 49% / cover no-repeat;
}
.hero-partners { position: absolute; inset: 1.4rem 2rem auto; display: flex; align-items: center; gap: .75rem; }
.hero-partners a, .footer-logos a { display: flex; align-items: center; }
.hero-partners img { width: auto; max-width: 125px; max-height: 25px; object-fit: contain; }
.partner-spacer { flex: 1; }
.hero-caption { width: min(1120px, 100%); margin: 0 auto; padding: 2rem 2rem 3.3rem; text-shadow: 0 2px 10px rgb(0 0 0 / 40%); }
.hero-caption p { margin-bottom: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .22em; }
.hero-caption h1 { margin-bottom: 1.3rem; font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.07; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: .65rem 1.25rem; border: 1px solid transparent; text-decoration: none; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.button-light { color: var(--blue); background: white; text-shadow: none; }
.button-light:hover { color: white; background: var(--teal); }

.site-nav { position: sticky; z-index: 10; top: 0; display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem max(1.25rem, calc((100% - 1200px) / 2)); border-bottom: 1px solid var(--teal); background: rgb(255 255 255 / 97%); }
.site-name { color: var(--blue); font-size: clamp(1.15rem, 2.4vw, 1.55rem); font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; align-items: center; }
.nav-links a { padding: .3rem 1rem; border-left: 1px solid var(--line); color: var(--blue); font-size: .83rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.nav-links a:hover { color: var(--red); text-decoration: underline; text-underline-offset: .25rem; }
.menu-toggle { display: none; width: 44px; height: 42px; flex-direction: column; justify-content: center; gap: 5px; padding: .55rem; border: 1px solid var(--teal); border-radius: 3px; color: var(--teal); background: white; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: currentColor; }

.section-wrap { width: min(1120px, calc(100% - 2.5rem)); margin-right: auto; margin-left: auto; }
.intro { padding-top: 4.5rem; text-align: center; }
.eyebrow, .role { margin-bottom: .45rem; color: var(--teal); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.acreage { margin: 0; color: var(--red); font-size: clamp(2.3rem, 7vw, 4.55rem); font-weight: 900; line-height: 1.1; text-transform: uppercase; }
.acreage span { display: block; font-size: .45em; letter-spacing: .08em; }
.location { margin: .85rem 0 1.7rem; color: var(--blue); font-family: "Nunito Sans", Arial, sans-serif; font-size: clamp(1.25rem, 2.3vw, 1.65rem); font-weight: 700; }
.intro-copy { max-width: 850px; margin: 0 auto; color: #445357; text-align: left; }
.buyer-note { padding-left: 1rem; border-left: 3px solid var(--red); font-style: italic; }
.hint { margin: 1.8rem 0 .75rem; color: var(--muted); font-style: italic; }
.tract-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1rem; max-width: 780px; margin: 0 auto; }
.tract-card { display: flex; min-height: 55px; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem .95rem; border: 1px solid var(--line); color: var(--blue); background: #fff; cursor: pointer; text-align: left; transition: border-color .2s, background .2s, transform .2s; }
.tract-card:hover, .tract-card:focus-visible { transform: translateY(-2px); border-color: var(--teal); background: var(--soft); }
.tract-card strong { white-space: nowrap; }
.tract-card span { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.text-link { color: var(--teal); font-size: .9rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.text-link:hover { text-decoration: underline; text-underline-offset: .25rem; }
.brochure-link { margin: 2.7rem 0 0; }
.tract-map { margin-top: 3rem; }
.tract-map img { width: 100%; border: 1px solid var(--line); }
.tract-map figcaption { margin-top: .75rem; color: var(--muted); font-size: .85rem; text-align: center; }
.divider { width: 100%; max-height: 360px; margin: 4.5rem 0 1rem; object-fit: cover; }

.content-section { margin-top: 4.5rem; margin-bottom: 5rem; scroll-margin-top: 100px; }
.section-heading { display: flex; align-items: center; gap: 1rem; margin: 0 0 2rem; color: var(--red); }
.section-heading::after { height: 1px; flex: 1; background: var(--red); content: ""; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; text-transform: uppercase; }
.section-intro { max-width: 850px; margin: 0 auto 1.5rem; text-align: center; }
.vector-map-wrap { padding: 1rem; border: 1px solid var(--line); background: #f6f7f4; }
.vector-map { min-height: 340px; }
.vector-map svg { display: block; width: 100%; max-height: 540px; }
.map-parcel { fill: #b7c8ac; stroke: #536f5b; stroke-width: 2; cursor: pointer; transition: fill .2s, stroke-width .2s; }
.map-parcel:nth-of-type(even) { fill: #d5cba4; }
.map-parcel:hover, .map-parcel:focus { fill: #bd795e; stroke: #733f32; stroke-width: 4; outline: none; }
.map-label { fill: #23383b; font-family: "Nunito Sans", Arial, sans-serif; font-size: 15px; font-weight: 700; paint-order: stroke; stroke: white; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; text-anchor: middle; }
.map-legend { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: .25rem 0 0; color: var(--muted); font-size: .85rem; text-align: center; }
.legend-swatch { width: 16px; height: 16px; border: 1px solid #536f5b; background: #b7c8ac; }
.embed-card { overflow: hidden; box-shadow: 0 12px 30px rgb(20 45 50 / 12%); background: white; }
.embed-card iframe { display: block; width: 100%; height: clamp(300px, 55vw, 520px); border: 0; background: #e8ece8; }
.embed-card p { margin: 0; padding: .7rem 1rem; color: var(--blue); font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; }
.gallery-section { margin-bottom: 4.5rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gallery-item { position: relative; overflow: hidden; min-height: 145px; padding: 0; border: 0; background: var(--teal); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; min-height: 145px; object-fit: cover; transition: opacity .25s, transform .3s; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.035); opacity: .7; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.contact-card { display: grid; grid-template-columns: 180px 1fr; gap: 1rem; padding: 1rem; border: 1px solid var(--line); }
.contact-photo { width: 180px; height: 205px; object-fit: cover; }
.contact-card h3 { margin: 0; color: var(--blue); font-size: 1.35rem; text-transform: uppercase; }
.contact-card p { margin: .15rem 0 .6rem; }
.contact-card .role { margin-bottom: .25rem; font-size: .7rem; }
.contact-card address { display: flex; flex-direction: column; margin: .65rem 0; font-style: normal; }
.company-logo { width: auto; max-width: 145px; max-height: 28px; object-fit: contain; }
.data-room { max-width: 850px; padding-bottom: 3rem; text-align: center; }
.data-room p { margin: .5rem auto; }
.data-room-note { color: var(--muted); font-size: .9rem; }

.footer-image { width: 100%; max-height: 410px; object-fit: cover; }
.footer-bar { display: flex; min-height: 84px; align-items: center; justify-content: space-between; gap: 2rem; padding: 1rem max(1.25rem, calc((100% - 1200px) / 2)); color: white; background: var(--blue); }
.footer-bar p { margin: 0; font-size: .78rem; }
.footer-logos { display: flex; flex: 0 0 auto; align-items: center; gap: .7rem; }
.footer-logos img { width: auto; max-width: 100px; max-height: 24px; object-fit: contain; }

.site-dialog { width: min(900px, calc(100% - 2rem)); max-height: min(90vh, 850px); padding: 0; border: 0; color: var(--ink); background: white; box-shadow: 0 20px 70px rgb(0 0 0 / 35%); }
.site-dialog::backdrop { background: rgb(14 30 34 / 72%); backdrop-filter: blur(2px); }
.dialog-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); background: white; }
.dialog-header h2 { margin: 0; color: var(--blue); font-size: 1.6rem; }
.icon-button { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgb(255 255 255 / 65%); border-radius: 50%; color: white; background: rgb(18 57 84 / 88%); font-size: 2rem; line-height: 1; cursor: pointer; }
.icon-button:hover { background: var(--red); }
.dialog-close { border-color: var(--line); color: var(--blue); background: white; }
.tract-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem; padding: 1.25rem; }
.tract-detail > img { width: 100%; align-self: start; border: 1px solid var(--line); }
.tract-detail h3 { margin: .2rem 0 .6rem; color: var(--blue); font-size: 1.2rem; }
.tract-detail p { margin-bottom: .8rem; }
.tract-facts { padding-left: 1.2rem; }
.tract-facts li { margin: .35rem 0; }
.tract-download { display: inline-block; margin-top: .4rem; }
.discrepancy { padding: .7rem; border-left: 3px solid var(--red); background: #faf2ef; font-size: .9rem; }

.gallery-dialog { width: min(1120px, calc(100% - 1rem)); overflow: visible; background: transparent; box-shadow: none; }
.gallery-dialog::backdrop { background: rgb(0 0 0 / 90%); }
.gallery-viewer { position: relative; display: grid; min-height: min(80vh, 800px); place-items: center; padding: 2.5rem 4rem 3.5rem; }
.gallery-viewer img { max-width: 100%; max-height: 72vh; object-fit: contain; }
.gallery-viewer .viewer-close { position: absolute; top: 0; right: 0; }
.viewer-prev, .viewer-next { position: absolute; top: 50%; transform: translateY(-50%); }
.viewer-prev { left: 0; }
.viewer-next { right: 0; }
.viewer-caption { position: absolute; right: 4rem; bottom: .1rem; left: 4rem; margin: 0; color: white; text-align: center; }

@media (max-width: 780px) {
  .site-nav { min-height: 64px; flex-wrap: wrap; padding-right: 1rem; padding-left: 1rem; }
  .menu-toggle { display: flex; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: .35rem 0 .5rem; }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .6rem .25rem; border-top: 1px solid var(--line); border-left: 0; text-align: center; }
  .hero-partners { inset: 1rem 1rem auto; gap: .45rem; }
  .hero-partners img { max-width: 85px; max-height: 20px; }
  .hero-caption { padding: 1.5rem 1.25rem 2.4rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-item, .gallery-item img { min-height: 125px; }
  .footer-bar { flex-direction: column-reverse; gap: .7rem; text-align: center; }
  .footer-logos { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 540px) {
  .section-wrap { width: min(100% - 1.5rem, 1120px); }
  .hero { min-height: 390px; background-position: 54% center; }
  .hero-partners { inset: 1rem .75rem auto; gap: .35rem; }
  .hero-partners img { max-width: 62px; max-height: 18px; }
  .hero-caption h1 { max-width: 13ch; }
  .intro { padding-top: 3rem; }
  .tract-grid { grid-template-columns: 1fr; gap: .5rem; }
  .tract-card { min-height: 49px; }
  .tract-map { margin-top: 2rem; }
  .divider { max-height: 220px; margin-top: 3rem; }
  .content-section { margin-top: 3.2rem; margin-bottom: 3.5rem; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-item, .gallery-item img { min-height: 120px; }
  .contact-card { grid-template-columns: 115px 1fr; gap: .8rem; padding: .7rem; }
  .contact-photo { width: 115px; height: 150px; }
  .contact-card h3 { font-size: 1.1rem; }
  .contact-card p, .contact-card address { font-size: .9rem; }
  .vector-map-wrap { padding: .5rem; }
  .vector-map { min-height: 210px; }
  .map-label { font-size: 20px; }
  .map-legend { flex-wrap: wrap; font-size: .75rem; }
  .tract-detail { grid-template-columns: 1fr; }
  .tract-detail > img { max-height: 280px; object-fit: contain; }
  .gallery-viewer { min-height: 65vh; padding: 3.5rem 2.5rem; }
  .viewer-prev { left: -.1rem; }
  .viewer-next { right: -.1rem; }
  .viewer-caption { right: 2.5rem; left: 2.5rem; }
}

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