/* Self-hosted to skip the render-blocking Google Fonts round trip. Latin subset covers Spanish accents. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/fonts/archivo-latin.woff2") format("woff2");
}

:root {
  --snow: #F6F8F7;
  --granite: #1E2933;
  --granite-soft: #4A5762;
  --spruce: #23493F;
  --spruce-deep: #17332C;
  --aspen: #E8B33A;
  --sky: #DCE7EE;
  --line: #CCD6DC;
  --white: #FFFFFF;

  --font: "Archivo", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-sm: 4px;
  --radius-lg: 10px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--snow);
  color: var(--granite);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--spruce); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--aspen);
  outline-offset: 2px;
}

h1, h2, h3 {
  margin: 0 0 0.5em;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
/* Wide display cuts echo highway and trail signage; that's the personality of the page */
h1, h2 { font-variation-settings: "wdth" 118; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.7rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.25rem; font-variation-settings: "wdth" 108; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--granite); color: var(--white); padding: 8px 14px;
}
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn-primary { background: var(--spruce); color: var(--white); }
.btn-primary:hover { background: var(--spruce-deep); }
.btn-ghost { border-color: var(--granite); color: var(--granite); background: transparent; }
.btn-ghost:hover { background: var(--granite); color: var(--white); }
.btn-gold { background: var(--aspen); color: var(--granite); }
.btn-gold:hover { background: #F2C55A; }
.btn-block { width: 100%; margin-top: 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 248, 247, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--granite); }
.brand-text { display: flex; flex-direction: column; gap: 5px; line-height: 1.1; }
.brand-logo { width: 132px; height: auto; }
.footer-logo { width: 200px; height: auto; margin-bottom: 12px; }
.brand-name { font-weight: 800; font-size: 1.05rem; font-variation-settings: "wdth" 115; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--granite); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--spruce); text-decoration: underline; text-underline-offset: 4px; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { font-weight: 700; color: var(--granite); text-decoration: none; white-space: nowrap; }

/* Language switch styled as a sign rider: two plates on a post */
.rider { display: flex; border: 2px solid var(--granite); border-radius: var(--radius-sm); overflow: hidden; }
.rider button {
  font: inherit; font-weight: 800; font-size: .85rem;
  padding: 6px 10px; min-width: 44px; min-height: 36px;
  border: 0; background: var(--white); color: var(--granite); cursor: pointer;
}
.rider button[aria-pressed="true"] { background: var(--granite); color: var(--white); }

/* Hero */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.lede { font-size: 1.2rem; color: var(--granite-soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }

/* The yard sign: the page's one bold element */
.sign {
  position: absolute; left: clamp(-28px, -2vw, -12px); bottom: clamp(-40px, -3vw, -20px);
  display: flex; flex-direction: column; align-items: flex-start;
  text-decoration: none; color: var(--white);
  transform-origin: top center; z-index: 2;
  animation: sway 1.6s ease-out .3s both;
}
.sign::before {
  /* the crossbar the sign hangs from */
  content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 6px;
  background: var(--granite); border-radius: 2px;
}
.sign-rider {
  background: var(--aspen); color: var(--granite);
  font-weight: 800; font-size: .95rem; font-variation-settings: "wdth" 120;
  padding: 4px 14px; margin-bottom: 4px; border-radius: 2px;
}
.sign-board {
  display: flex; flex-direction: column;
  background: var(--spruce); padding: 16px 22px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 40px -18px rgba(23, 51, 44, .7);
}
.sign-price { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; font-variation-settings: "wdth" 125; line-height: 1; font-variant-numeric: tabular-nums; }
.sign-addr { font-weight: 700; margin-top: 6px; }
.sign-facts { font-size: .9rem; opacity: .85; }
.sign:hover .sign-board { background: var(--spruce-deep); }

@keyframes sway {
  0% { transform: rotate(-5deg); opacity: 0; }
  35% { opacity: 1; }
  60% { transform: rotate(2deg); }
  100% { transform: rotate(0); }
}
@media (prefers-reduced-motion: reduce) { .sign { animation: none; } }

/* Listing */
.listing { background: var(--white); padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.listing-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.listing-head h2 { margin: 0; }
.city { font-size: .55em; font-weight: 600; color: var(--granite-soft); font-variation-settings: "wdth" 105; }
.status { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 600; color: var(--spruce); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #2E9E6B; }
.price { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin: 0; font-variation-settings: "wdth" 125; font-variant-numeric: tabular-nums; }

.gallery {
  display: grid; gap: 8px;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  aspect-ratio: 2.1 / 1;
}
.gallery button {
  position: relative; padding: 0; border: 0; cursor: zoom-in;
  background: var(--sky); overflow: hidden; border-radius: var(--radius-sm);
}
.gallery button:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .more {
  position: absolute; inset: auto 10px 10px auto;
  background: var(--white); color: var(--granite);
  font-weight: 700; font-size: .9rem; padding: 6px 12px; border-radius: var(--radius-sm);
}

.facts {
  display: grid; grid-template-columns: repeat(6, 1fr);
  margin: 32px 0 0; padding: 22px 0;
  border-top: 2px solid var(--granite); border-bottom: 1px solid var(--line);
}
.facts div { padding: 0 16px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-size: .85rem; color: var(--granite-soft); }
.facts dd { margin: 2px 0 0; font-size: 1.5rem; font-weight: 800; font-variation-settings: "wdth" 115; line-height: 1.2; }

.listing-body { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(32px, 5vw, 72px); margin-top: 48px; }
.listing-main h3 { margin-top: 1.6em; }
.listing-main h3:first-child { margin-top: 0; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.timeline time { font-weight: 800; color: var(--spruce); font-variant-numeric: tabular-nums; }

.listing-side { background: var(--snow); padding: 28px; border-radius: var(--radius-lg); align-self: start; position: sticky; top: 92px; }
.details { margin: 0; }
.details div { padding: 10px 0; border-top: 1px solid var(--line); }
.details div:first-child { border-top: 0; padding-top: 0; }
.details dt { font-size: .85rem; color: var(--granite-soft); }
.details dd { margin: 0; font-weight: 600; }

.listing-tools { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); margin-top: 64px; }
.map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius-lg); background: var(--sky); }

.calc { background: var(--sky); padding: 28px; border-radius: var(--radius-lg); display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; align-content: start; }
.calc h3, .calc .calc-result, .calc .fine { grid-column: 1 / -1; }
.calc-result { display: flex; flex-direction: column; padding: 16px 0 0; border-top: 2px solid var(--granite); margin-top: 4px; }
.calc-total { font-size: 2.4rem; font-weight: 800; font-variation-settings: "wdth" 125; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc-note { color: var(--granite-soft); font-size: .95rem; }

/* Forms */
label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; font-weight: 600; }
input, select, textarea {
  font: inherit; font-weight: 400; font-size: 1rem;
  padding: 11px 12px; min-height: 46px;
  border: 1px solid #A9B6BE; border-radius: var(--radius-sm);
  background: var(--white); color: var(--granite); width: 100%;
}
textarea { resize: vertical; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fields .full, .fields button { grid-column: 1 / -1; }
.fields button { justify-self: start; }
.fine { font-size: .82rem; color: var(--granite-soft); line-height: 1.5; }

.showing {
  display: grid; grid-template-columns: 4fr 7fr; gap: clamp(24px, 4vw, 56px);
  margin-top: 64px; padding-top: 48px; border-top: 2px solid var(--granite);
}

/* Services */
.services { padding: clamp(64px, 9vw, 112px) 0; }
.services h2 { max-width: 22ch; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); margin-top: 40px; }
.services-grid > div { border-top: 6px solid var(--spruce); padding-top: 20px; }
.services ul { padding-left: 1.1em; margin: 0; }
.services li { margin-bottom: .6em; }
.services li::marker { color: var(--spruce); }

/* Value */
.value { background: var(--spruce); color: var(--white); padding: clamp(56px, 8vw, 96px) 0; }
.value-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.value p { color: #D5E2DC; font-size: 1.1rem; }
.value label { color: var(--white); }
.value input { border-color: transparent; }

/* About */
.about { padding: clamp(64px, 9vw, 112px) 0; }
.about-grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
/* Source photo is only 324px wide; capping the size keeps it from going soft */
.portrait {
  width: 100%; max-width: 340px; height: auto;
  aspect-ratio: 324 / 400; object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--sky);
  box-shadow: 14px 14px 0 var(--aspen);
}
.quote { margin: 32px 0 0; padding: 0 0 0 22px; border-left: 6px solid var(--aspen); }
.quote p { font-size: 1.35rem; font-weight: 600; line-height: 1.4; margin-bottom: .4em; }
.quote footer { color: var(--granite-soft); }

/* Contact */
.contact { background: var(--white); border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) 0; }
.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 72px); }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list a { font-size: 1.3rem; font-weight: 700; color: var(--granite); text-decoration: none; }
.contact-list a:hover { color: var(--spruce); text-decoration: underline; }
.contact-list li { padding: 6px 0; }
address { font-style: normal; color: var(--granite-soft); }

/* Footer */
.site-footer { background: var(--granite); color: #C7D1D7; padding: 40px 0; font-size: .9rem; }
.site-footer p { max-width: none; }
.site-footer .fine { color: #9EABB3; display: flex; gap: 10px; align-items: flex-start; }
.footer-grid { display: grid; gap: 8px; }
.site-footer .fine:last-child { display: block; }
.eho { width: 22px; height: 22px; fill: currentColor; flex: none; }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  background: rgba(16, 22, 28, .96); color: var(--white);
}
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox::backdrop { background: rgba(16, 22, 28, .9); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.lightbox img { max-height: 82vh; width: auto; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox figcaption { font-size: .95rem; text-align: center; }
.lb-nav, .lb-close {
  background: transparent; color: var(--white); border: 0; cursor: pointer;
  font-size: 2.6rem; line-height: 1; width: 56px; height: 56px; justify-self: center;
}
.lb-close { position: absolute; top: 12px; right: 12px; font-size: 2.2rem; }
.lb-nav:hover, .lb-close:hover { color: var(--aspen); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  background: var(--granite); color: var(--white); padding: 14px 20px; border-radius: var(--radius-sm);
  max-width: calc(100vw - 32px); z-index: 50; transition: transform .25s, visibility .25s; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* Responsive */
@media (max-width: 1000px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .hero-grid, .listing-body, .listing-tools, .value-grid, .about-grid, .contact-grid, .showing { grid-template-columns: 1fr; }
  .hero-photo { margin-bottom: 40px; }
  .facts { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .facts div:nth-child(4) { border-left: 0; padding-left: 0; }
  .listing-side { position: static; }
  .services-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 320px; }
}
@media (max-width: 600px) {
  .header-phone { display: none; }
  .sign { left: 10px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; aspect-ratio: auto; }
  .gallery button { aspect-ratio: 3 / 2; }
  .gallery button:first-child { grid-column: span 2; grid-row: auto; }
  .gallery button:nth-child(n+4) { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts dd { font-size: 1.25rem; }
  .facts div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts div:nth-child(4) { border-left: 1px solid var(--line); padding-left: 16px; }
  .fields, .calc { grid-template-columns: 1fr; }
  .lightbox[open] { grid-template-columns: 44px 1fr 44px; }
}
