:root {
  --paper: #f8f7f4;
  --ink: #10203b;
  --bronze: #b97949;
  --line: #d8d2ca;
  --footer: #0b1b38;
  --max: 1460px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 10px 14px; background: #fff; transform: translateY(-160%); border-radius: 6px; }
.skip-link:focus { transform: none; }

.site-header {
  width: min(var(--max), calc(100% - 64px));
  min-height: 122px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 160px;
  gap: 26px;
  align-items: center;
  position: relative;
  z-index: 30;
}
.brand { display: block; width: 250px; height: 96px; overflow: hidden; }
.brand img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: darken; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: 48px; font-size: 16px; font-weight: 700; }
.primary-nav > a,
.homes-trigger { display: inline-flex; align-items: center; min-height: 52px; text-decoration: none; white-space: nowrap; }
.primary-nav a:focus-visible,
.talk-button:focus-visible,
.menu-toggle:focus-visible { outline: 3px solid #d19a70; outline-offset: 4px; }
.nav-homes { position: relative; }
.nav-homes::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 12px; }
.homes-trigger { gap: 6px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 999px; background: #efe9e1; }
.homes-trigger span { font-size: 18px; transform: translateY(-1px); transition: transform .18s ease; }
.homes-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: 230px;
  padding: 12px 0;
  display: grid;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(16, 32, 59, .13);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.homes-menu a { padding: 13px 20px; text-decoration: none; font-weight: 700; }
.homes-menu a:hover,
.homes-menu a:focus-visible { background: #f5f1eb; }
.nav-homes:hover .homes-menu,
.nav-homes:focus-within .homes-menu,
.nav-homes.menu-open .homes-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-homes:hover .homes-trigger span,
.nav-homes:focus-within .homes-trigger span,
.nav-homes.menu-open .homes-trigger span { transform: rotate(180deg); }
.talk-button { justify-self: end; min-width: 160px; padding: 18px 24px; text-align: center; text-decoration: none; color: #fff; background: var(--bronze); border-radius: 6px; font-weight: 700; }
.talk-button:hover { background: #a6653b; }
.menu-toggle { display: none; }

.homes-hero {
  width: min(var(--max), calc(100% - 64px));
  height: calc(100vh - 168px);
  min-height: 620px;
  max-height: 730px;
  margin: 0 auto 30px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #ece8e1;
}
.homes-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.homes-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(248, 247, 244, .99) 0%, rgba(248, 247, 244, .92) 22%, rgba(248, 247, 244, .52) 43%, rgba(248, 247, 244, .04) 69%); }
.homes-hero-copy { position: absolute; z-index: 2; top: calc(50% - 15px); left: 60px; width: 700px; padding: 0; transform: translateY(-50%); text-align: left; }
.eyebrow { margin: 0 0 20px; color: var(--bronze); font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.homes-hero h1 { max-width: 700px; margin: 0 0 30px; font-family: var(--serif); font-size: clamp(4.1rem, 5.7vw, 6.25rem); line-height: .94; letter-spacing: -.045em; font-weight: 400; text-align: left; }
.homes-hero-copy > p:not(.eyebrow) { max-width: 600px; margin: 0 0 7px; font-size: 17px; line-height: 1.75; }
.arrow-link { display: inline-flex; gap: 16px; align-items: center; margin-top: 0; text-decoration: none; font-size: 15px; font-weight: 800; }
.arrow-link:hover span { transform: translateX(4px); }
.arrow-link span { transition: transform .18s ease; }
.rating { position: absolute; z-index: 2; right: 28px; bottom: 24px; width: 470px; margin: 0; padding: 10px 16px; color: #fff; background: rgba(5, 18, 45, .83); font-size: 12px; line-height: 1.45; text-align: right; }

.site-footer { min-height: 72px; padding: 0 max(32px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; color: #fff; background: var(--footer); font-size: 13px; }
.site-footer a { justify-self: center; }
.site-footer a:last-child { justify-self: end; }

@media (max-width: 1120px) {
  .site-header { grid-template-columns: 210px 1fr 140px; }
  .brand { width: 210px; }
  .primary-nav { gap: 22px; }
  .talk-button { min-width: 140px; }
  .homes-hero-copy { left: 44px; width: 610px; }
}

@media (max-width: 820px) {
  .site-header { min-height: 96px; grid-template-columns: 180px 1fr auto; gap: 12px; }
  .brand { width: 180px; height: 75px; }
  .menu-toggle { display: grid; justify-self: end; width: 46px; height: 46px; padding: 10px; place-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
  .menu-toggle span { display: block; width: 21px; height: 2px; background: var(--ink); }
  .primary-nav { position: absolute; top: 82px; left: 0; right: 0; padding: 16px; display: none; align-items: stretch; gap: 2px; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(16, 32, 59, .14); }
  .site-header.menu-open .primary-nav { display: flex; }
  .primary-nav > a,
  .homes-trigger { min-height: 48px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; }
  .homes-trigger { justify-content: space-between; }
  .nav-homes::after { display: none; }
  .homes-menu { position: static; width: auto; padding: 0 0 5px 16px; box-shadow: none; border: 0; opacity: 1; visibility: visible; transform: none; display: none; }
  .nav-homes.menu-open .homes-menu { display: grid; transform: none; }
  .homes-menu a { padding: 10px 12px; }
  .talk-button { min-width: auto; padding: 13px 16px; }
  .homes-hero { width: min(calc(100% - 32px), var(--max)); height: calc(100vh - 132px); min-height: 650px; }
  .homes-hero-image { object-position: 62% center; }
  .homes-hero-shade { background: linear-gradient(90deg, rgba(248, 247, 244, .94), rgba(248, 247, 244, .55) 72%, rgba(248, 247, 244, .15)), linear-gradient(0deg, rgba(248, 247, 244, .9), transparent 55%); }
  .homes-hero-copy { position: relative; top: auto; left: auto; width: auto; padding: 84px 28px 140px; transform: none; }
  .homes-hero h1 { font-size: clamp(3.4rem, 13vw, 5rem); }
  .homes-hero-copy > p:not(.eyebrow) { max-width: 510px; }
  .rating { left: 22px; right: 22px; bottom: 22px; width: auto; text-align: left; }
  .site-footer { padding: 24px; grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .site-footer span,
  .site-footer a,
  .site-footer a:last-child { justify-self: center; }
}

@media (max-width: 520px) {
  .site-header { width: calc(100% - 28px); grid-template-columns: 150px 1fr auto; }
  .brand { width: 150px; height: 68px; }
  .talk-button { display: none; }
  .homes-hero { min-height: 680px; }
  .homes-hero-copy { padding: 68px 22px 150px; }
  .homes-hero h1 { font-size: clamp(3.15rem, 15vw, 4.4rem); }
}

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

/* Responsive safeguards for the Homes overview */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: clip; }
img, video, iframe { max-width: 100%; }
.homes-hero-copy, .homes-intro > *, .homes-path-grid > *, .homes-process > * { min-width: 0; }

@media (max-width: 1050px) {
  .site-header { width: calc(100% - 48px); min-height: 96px; grid-template-columns: 180px 1fr auto; gap: 12px; }
  .brand { width: 180px; height: 75px; }
  .talk-button { display: none; }
  .menu-toggle { display: grid; justify-self: end; width: 46px; height: 46px; padding: 10px; place-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
  .menu-toggle span { display: block; width: 21px; height: 2px; background: var(--ink); }
  .primary-nav { position: absolute; top: 82px; left: 0; right: 0; padding: 16px; display: none; align-items: stretch; gap: 2px; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(16, 32, 59, .14); }
  .site-header.menu-open .primary-nav { display: flex; }
  .primary-nav > a, .homes-trigger { min-height: 48px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; }
  .homes-trigger { justify-content: space-between; }
  .nav-homes::after { display: none; }
  .homes-menu { position: static; width: auto; padding: 0 0 5px 16px; box-shadow: none; border: 0; opacity: 1; visibility: visible; transform: none; display: none; }
  .nav-homes.menu-open .homes-menu { display: grid; transform: none; }
  .homes-menu a { padding: 10px 12px; }
}

@media (max-width: 600px) {
  .site-header { width: calc(100% - 28px); min-height: 86px; grid-template-columns: 150px 1fr auto; }
  .brand { width: 150px; height: 68px; }
  .primary-nav { top: 72px; }
  .homes-hero { width: calc(100% - 24px); min-height: 620px; }
  .homes-hero-copy { padding: 70px 22px 135px; }
  .homes-hero h1 { font-size: clamp(3rem, 14vw, 4.2rem); }
  .rating { left: 18px; right: 18px; bottom: 18px; }
}
