@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap");

:root {
  --bg: #f5f9ff;
  --fg: #0f172a;
  --surface: #ffffff;
  --surface-2: #e8f3fb;
  --muted: #5b6475;
  --border: rgba(15, 23, 42, 0.12);
  --brand: #2a5b4a;
  --brand-2: #1f3f38;
  --accent: #b8743a;
  --accent-2: #8f5628;
  --yellow: #d4a017;
  --yellow-2: #b8860b;
  --yellow-soft: rgba(212, 160, 23, 0.14);
  --ring: rgba(212, 160, 23, 0.5);
  --sky: #38bdf8;
  --sky-2: #0284c7;
  --sky-3: #0369a1;
  --sky-soft: rgba(56, 189, 248, 0.12);
  --sky-soft-2: rgba(56, 189, 248, 0.22);
  --sky-ring: rgba(56, 189, 248, 0.45);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --max: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070a0f;
    --fg: #e8eef7;
    --surface: #0b101b;
    --surface-2: #0f172a;
    --muted: #a8b3c7;
    --border: rgba(232, 238, 247, 0.12);
    --brand: #4aa58a;
    --brand-2: #2d7d66;
    --accent: #d69a67;
    --accent-2: #b97a45;
    --yellow: #e8c547;
    --yellow-2: #c9a91e;
    --yellow-soft: rgba(232, 197, 71, 0.12);
    --ring: rgba(232, 197, 71, 0.45);
    --sky: #7dd3fc;
    --sky-2: #38bdf8;
    --sky-3: #0ea5e9;
    --sky-soft: rgba(125, 211, 252, 0.10);
    --sky-soft-2: rgba(125, 211, 252, 0.18);
    --sky-ring: rgba(125, 211, 252, 0.40);
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
  }
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: color-mix(in oklab, var(--yellow) 35%, transparent);
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  box-shadow: inset 0 -3px 0 var(--sky);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.logo:hover {
  background: var(--surface-2);
}

.logo__name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo__accent {
  color: var(--yellow);
}

.logo__tag {
  display: none;
  font-size: 0.75rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .logo__tag {
    display: inline;
  }
}

.nav {
  display: none;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav a {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.nav a:hover {
  background: var(--surface-2);
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid var(--border);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.mobile-nav a:hover {
  background: var(--surface-2);
}

main {
  flex: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.btn--primary:hover {
  background: var(--brand-2);
  box-shadow: 0 4px 14px color-mix(in oklab, var(--yellow) 40%, transparent);
}

.btn--secondary {
  background: var(--surface);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--border);
}

.btn--secondary:hover {
  background: var(--surface-2);
}

.btn--lg {
  height: 3rem;
  padding: 0 1.25rem;
  font-size: 1rem;
}

.text-brand {
  color: var(--brand);
}

.text-muted {
  color: var(--muted);
}

.text-accent {
  color: var(--yellow);
}

.text-accent:hover {
  color: var(--yellow-2);
}

.text-yellow {
  color: var(--yellow);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.page-title {
  margin: 0.5rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), var(--shadow);
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}

.card--flat {
  box-shadow: none;
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}

.card--muted {
  background: var(--surface-2);
}

.card--highlight {
  border-top: 3px solid var(--yellow);
  background: linear-gradient(
    180deg,
    var(--yellow-soft) 0%,
    var(--surface) 28%
  );
}

.grid-2 {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bg-quiet-grid {
  background-image: radial-gradient(
      ellipse 80% 50% at 20% 0%,
      var(--yellow-soft),
      transparent 70%
    ),
    radial-gradient(
      color-mix(in oklab, var(--border) 55%, transparent) 1px,
      transparent 1px
    ),
    radial-gradient(
      color-mix(in oklab, var(--border) 35%, transparent) 1px,
      transparent 1px
    );
  background-size: 100% 100%, 28px 28px, 84px 84px;
  background-position: 0 0, 0 0, 8px 12px;
}

.hero {
  padding: 3.5rem 0 4rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 5rem 0 6rem;
  }
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 7fr 5fr;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--yellow-soft);
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--yellow) 35%, transparent);
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--yellow) 25%, transparent);
}

.hero h1 {
  margin: 1.5rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (min-width: 520px) {
  .hero__actions {
    flex-direction: row;
  }
}

.search-bar {
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}

@media (min-width: 900px) {
  .search-bar {
    grid-template-columns: 1fr 170px 170px auto;
    align-items: end;
    padding: 1.25rem;
  }
}

.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  height: 2.75rem;
  padding: 0 0.75rem;
  font: inherit;
  font-size: 0.875rem;
  background: var(--bg);
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  border-radius: var(--radius-md);
  color: var(--fg);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: color-mix(in oklab, var(--yellow) 55%, transparent);
  box-shadow: 0 0 0 3px var(--yellow-soft);
  outline: none;
}

.field textarea {
  height: auto;
  min-height: 8rem;
  padding: 0.75rem;
  resize: vertical;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.stat {
  padding: 1rem;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in oklab, var(--border) 50%, transparent);
}

.stat__label {
  font-size: 0.75rem;
  color: var(--muted);
}

.stat__value {
  margin-top: 0.25rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--yellow-2);
}

.section {
  padding: 4rem 0;
}

.listing-card {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  transition: background 0.15s;
}

.listing-card:hover {
  background: var(--surface-2);
}

@media (min-width: 640px) {
  .listing-card {
    grid-template-columns: 180px 1fr;
  }
}

.listing-card__media {
  aspect-ratio: 4/3;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--muted);
  overflow: hidden;
}

.listing-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-card__body {
  padding: 1.25rem;
}

.listing-card__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.listing-card__title {
  font-weight: 600;
}

.listing-card__price {
  font-weight: 600;
  white-space: nowrap;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pill {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.25rem 0.75rem;
  background: var(--bg);
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}

.county-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  transition: background 0.15s;
}

.county-link:hover {
  background: var(--surface-2);
}

.site-footer {
  margin-top: 5rem;
  border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  font-size: 0.75rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.site-footer ul {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.site-footer li {
  margin-top: 0.5rem;
}

.site-footer a:hover {
  color: var(--fg);
}

.page-content {
  padding: 3rem 0 4rem;
}

.page-intro {
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
}

.gallery {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery img {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── Light-blue utilities ─────────────────────────────── */

.text-sky {
  color: var(--sky-2);
}

.card--sky {
  border-top: 3px solid var(--sky);
  background: linear-gradient(180deg, var(--sky-soft) 0%, var(--surface) 32%);
}

.bg-sky-section {
  background: linear-gradient(
    160deg,
    var(--sky-soft-2) 0%,
    color-mix(in oklab, var(--bg) 85%, var(--sky-soft)) 60%,
    var(--bg) 100%
  );
}

.stat__value--sky {
  color: var(--sky-2);
}

/* ── Property card ────────────────────────────────────── */

.property-card {
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.property-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.13), 0 0 0 1px var(--sky-soft-2);
}

.property-card__img {
  margin: -1.5rem -1.5rem 1.25rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.property-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.property-card:hover .property-card__img img {
  transform: scale(1.04);
}

.property-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sky-3);
  background: var(--sky-soft-2);
  border: 1px solid color-mix(in oklab, var(--sky) 35%, transparent);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.6rem;
}

.property-card__price {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.property-card__address {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Image banner ─────────────────────────────────────── */

.img-banner {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 2rem;
  position: relative;
}

.img-banner img {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  display: block;
}

.img-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 20, 40, 0.55) 0%,
    transparent 60%
  );
  display: flex;
  align-items: center;
  padding: 2rem 2.5rem;
}

.img-banner__text {
  color: #fff;
  max-width: 28rem;
}

.img-banner__text h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
}

.img-banner__text p {
  margin: 0.6rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  opacity: 0.88;
}
