:root {
  color-scheme: light;
  --navy: #08274a;
  --ink: #142235;
  --muted: #647286;
  --blue: #1f6b9b;
  --green: #65a65b;
  --orange: #f08c5a;
  --paper: #fbfaf7;
  --soft: #eef5f2;
  --panel: #ffffff;
  --line: rgba(8, 39, 74, 0.13);
  --shadow: 0 24px 70px rgba(8, 39, 74, 0.13);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 8%, rgba(101, 166, 91, 0.16), transparent 22rem),
    radial-gradient(circle at 12% 18%, rgba(31, 107, 155, 0.1), transparent 24rem),
    linear-gradient(180deg, #fbfdff 0, #ffffff 42rem, var(--paper) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy); line-height: 1.04; letter-spacing: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; }

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 5.4vw, 5.8rem);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.05rem, 3.55vw, 3.7rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 14px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: #ffffff;
  background: #111827;
  border-radius: 10px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.site-header,
main,
.site-footer {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 74px;
  padding: 12px 0;
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  isolation: isolate;
}

.site-header::before {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: inherit;
  border-bottom: 1px solid var(--line);
  content: "";
}

.brand,
.site-nav,
.hero-actions,
.footer-links,
.mini-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(8, 39, 74, 0.22);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-nav {
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 820;
}

.site-nav a,
.footer-links a,
.footer-brand,
.text-link { text-decoration: none; }

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue);
  background: #ffffff;
  border-color: var(--line);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 870;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta {
  padding: 11px 18px;
  color: #ffffff;
  background: var(--navy);
  box-shadow: 0 14px 30px rgba(8, 39, 74, 0.2);
}

.button { padding: 13px 22px; }
.button.primary { color: #ffffff; background: var(--navy); box-shadow: 0 14px 30px rgba(8, 39, 74, 0.22); }
.button.secondary { color: var(--navy); background: #ffffff; border: 1px solid var(--line); }
.button.soft { color: var(--navy); background: var(--soft); border: 1px solid rgba(101, 166, 91, 0.22); }

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--navy);
  font-weight: 900;
}

.text-link::after { margin-left: 8px; content: "->"; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.98fr);
  gap: clamp(34px, 4.5vw, 62px);
  align-items: center;
  min-height: clamp(590px, calc(100vh - 74px), 720px);
  padding: clamp(48px, 6vw, 78px) 0 clamp(50px, 6vw, 74px);
}

.hero-copy { max-width: 760px; }
.hero h1 { font-size: clamp(3.05rem, 4.9vw, 5.35rem); }
.hero-text { max-width: 680px; color: var(--muted); font-size: clamp(1.08rem, 1.35vw, 1.22rem); }
.hero-actions { flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 700px;
  margin-top: 28px;
}

.hero-points div,
.mini-card,
.feature-grid article,
.listing-card,
.panel-card,
.resource-card,
.metric-card,
.map-panel,
.profile-card,
.resource-band {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 44px rgba(8, 39, 74, 0.08);
}

.hero-points div {
  padding: 14px 15px;
  border-radius: 16px;
}

.hero-points strong { display: block; color: var(--navy); font-size: 0.9rem; }
.hero-points span { color: var(--muted); font-size: 0.84rem; }

.hero-art {
  position: relative;
  min-width: 0;
}

.hero-art::before {
  position: absolute;
  inset: 8% -4% -7% 12%;
  z-index: -1;
  border-radius: 44% 56% 50% 50%;
  background: rgba(101, 166, 91, 0.16);
  content: "";
}

.hero-art img {
  width: 100%;
  max-height: min(58vh, 540px);
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.intro-panel,
.story-band,
.trust-band,
.final-cta {
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 22px 58px rgba(8, 39, 74, 0.1);
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: clamp(28px, 4vw, 46px);
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 18%, rgba(101, 166, 91, 0.28), transparent 18rem),
    var(--navy);
}

.intro-panel .eyebrow,
.intro-panel h2,
.intro-panel p { color: #ffffff; }
.intro-panel p { margin-bottom: 0; color: rgba(255, 255, 255, 0.84); }

.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-heading { max-width: 880px; margin-bottom: 34px; }

.section-heading p,
.feature-grid p,
.listing-card p,
.panel-card p,
.resource-card p,
.resource-card li,
.metric-card p,
.map-panel p,
.profile-card p,
.trust-band p,
.final-cta p,
.site-footer p { color: var(--muted); }

.feature-grid,
.listing-grid,
.two-column,
.resource-section,
.neighborhood-grid {
  display: grid;
  gap: 18px;
}

.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.resource-section { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 0 clamp(64px, 8vw, 96px); }
.resource-section-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.neighborhood-grid { grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); align-items: stretch; }

.feature-grid article,
.listing-card,
.panel-card,
.resource-card,
.metric-card,
.map-panel,
.profile-card {
  border-radius: 22px;
}

.feature-grid article { min-height: 240px; padding: 26px; }
.feature-grid span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 12px;
  color: #ffffff;
  background: var(--navy);
  font-weight: 900;
}

.story-band {
  padding: clamp(34px, 7vw, 76px);
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 18%, rgba(240, 140, 90, 0.22), transparent 20rem),
    var(--navy);
}

.story-band h2,
.story-band p,
.story-band .eyebrow { color: #ffffff; }
.story-band h2, .story-band p { max-width: 900px; }
.story-band p { color: rgba(255, 255, 255, 0.84); }

.listing-card {
  overflow: hidden;
  background: #ffffff;
}

.listing-visual {
  min-height: 138px;
  background:
    linear-gradient(135deg, rgba(8, 39, 74, 0.82), rgba(31, 107, 155, 0.38)),
    linear-gradient(145deg, #dcebf7, #eef5f2);
}

.listing-card:nth-child(2) .listing-visual { background: linear-gradient(135deg, rgba(101, 166, 91, 0.75), rgba(240, 140, 90, 0.24)), #eaf3e7; }
.listing-card:nth-child(3) .listing-visual { background: linear-gradient(135deg, rgba(31, 107, 155, 0.7), rgba(8, 39, 74, 0.28)), #e8f4fb; }
.listing-card:nth-child(4) .listing-visual { background: linear-gradient(135deg, rgba(240, 140, 90, 0.65), rgba(101, 166, 91, 0.25)), #fff3e8; }

.listing-body { padding: 20px; }
.listing-meta { margin: 0 0 8px; color: var(--muted); font-size: 0.86rem; }
.price { color: var(--navy); font-size: 1.35rem; font-weight: 900; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--soft);
  font-size: 0.76rem;
  font-weight: 830;
}

.panel-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 42px);
}

.panel-card.accent { background: linear-gradient(135deg, #ffffff, #f1f8ee); }

.map-panel {
  min-height: 430px;
  padding: 28px;
  background:
    linear-gradient(rgba(31, 107, 155, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 107, 155, 0.11) 1px, transparent 1px),
    #f4f9fb;
  background-size: 54px 54px;
  position: relative;
  overflow: hidden;
}

.map-panel::before,
.map-panel::after {
  position: absolute;
  border-radius: 999px;
  content: "";
}

.map-panel::before {
  width: 70%;
  height: 24px;
  left: -6%;
  top: 48%;
  transform: rotate(-13deg);
  background: rgba(101, 166, 91, 0.24);
}

.map-panel::after {
  width: 60%;
  height: 20px;
  right: -8%;
  top: 34%;
  transform: rotate(18deg);
  background: rgba(31, 107, 155, 0.18);
}

.pin {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: var(--blue);
  border: 4px solid #ffffff;
  border-radius: 50% 50% 50% 8px;
  box-shadow: 0 10px 24px rgba(8, 39, 74, 0.16);
  transform: rotate(-45deg);
  font-weight: 900;
}

.pin span { transform: rotate(45deg); }
.pin.one { left: 26%; top: 26%; }
.pin.two { left: 58%; top: 38%; background: var(--green); }
.pin.three { left: 42%; top: 64%; background: var(--orange); }

.metric-stack { display: grid; gap: 18px; }
.metric-card { padding: 26px; }

.profile-card {
  padding: 28px;
  background: linear-gradient(135deg, #ffffff, #fff8ef);
}

.mini-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.mini-card {
  flex: 1 1 150px;
  padding: 14px;
  border-radius: 16px;
}

.resource-card {
  padding: 28px;
}

.resource-card ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.trust-band,
.resource-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 4vw, 42px);
  background: #ffffff;
}

.trust-band > div,
.resource-band > div { max-width: 860px; }

.final-cta {
  margin: 24px 0 84px;
  padding: clamp(38px, 7vw, 76px) clamp(22px, 5vw, 54px);
  text-align: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 18%, rgba(101, 166, 91, 0.28), transparent 20rem),
    var(--navy);
}

.final-cta h2,
.final-cta p,
.final-cta .eyebrow { color: #ffffff; }
.final-cta h2, .final-cta p { max-width: 820px; margin-right: auto; margin-left: auto; }
.center-actions { justify-content: center; }

.page-hero {
  max-width: 980px;
  padding: clamp(66px, 8vw, 104px) 0 clamp(42px, 6vw, 66px);
}

.page-hero > p:not(.eyebrow) {
  max-width: 800px;
  color: var(--muted);
  font-size: 1.16rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.resource-band { margin: 0 0 84px; border-radius: 22px; }

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 900;
}

.site-footer p { max-width: 560px; margin-bottom: 0; }
.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 16px;
  color: var(--navy);
  font-weight: 760;
  text-align: right;
}

.footer-links a:hover,
.footer-brand:hover,
.text-link:hover { color: var(--blue); }

@media (max-width: 1120px) {
  .site-header { grid-template-columns: auto auto; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .nav-cta { justify-self: end; }
  .hero, .intro-panel, .trust-band, .resource-band, .neighborhood-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .site-header, main, .site-footer { width: min(100% - 24px, 1220px); }
  h1 { font-size: clamp(2.65rem, 12vw, 4.05rem); }
  .feature-grid, .two-column, .resource-section, .resource-section-wide { grid-template-columns: 1fr; }
  .panel-card, .feature-grid article, .resource-card { min-height: auto; }
  .site-footer { flex-direction: column; }
  .footer-links { justify-content: flex-start; text-align: left; }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr; gap: 12px; }
  .site-header::before { inset: 0; }
  .nav-cta, .hero-actions .button, .trust-band .button, .resource-band .button { width: 100%; }
  .nav-cta { justify-self: stretch; }
  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    gap: 8px;
    overflow-x: visible;
    white-space: normal;
  }
  .site-nav a {
    justify-content: center;
    min-height: 36px;
    width: 100%;
    padding: 6px 8px;
    text-align: center;
    white-space: normal;
  }
  h1, .hero h1 { font-size: clamp(2.15rem, 8.2vw, 2.82rem); line-height: 1.08; }
  .hero-text, .page-hero > p:not(.eyebrow) { font-size: 1rem; }
  .hero { display: block; padding: 44px 0; }
  .hero-art img { margin-top: 34px; border-radius: 20px; }
  .hero-points, .listing-grid { grid-template-columns: 1fr; }
  .map-panel { min-height: 330px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
