@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/fonts/outfit-latin-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("assets/fonts/source-serif-4-latin-variable.woff2") format("woff2");
}

:root {
  --navy: #203674;
  --navy-deep: #132248;
  --navy-soft: #6175cb;
  --amber: #b8770e;
  --paper: #fbfbfe;
  --mist: #eef2ff;
  --ink: #111722;
  --muted: #5d667d;
  --line: rgba(17, 23, 34, 0.1);
  --line-strong: rgba(32, 54, 116, 0.18);
  --focus-ring: #9f5b00;
  --focus-shadow: 0 0 0 2px #ffffff, 0 0 0 5px var(--focus-ring);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(97, 117, 203, 0.12), transparent 32%),
    radial-gradient(circle at 88% 10%, rgba(244, 166, 45, 0.1), transparent 24%),
    linear-gradient(180deg, #f7f9ff 0%, #ffffff 100%);
  color: var(--ink);
  font-family: "Outfit", system-ui, sans-serif;
  font-feature-settings: "kern", "liga";
  font-optical-sizing: auto;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 23, 34, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 23, 34, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 82%);
  pointer-events: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--focus-shadow);
}

.container {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-150%);
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  background: #ffffff;
  color: var(--navy);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(32, 54, 116, 0.1);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.header-row {
  display: grid;
  grid-template-columns: minmax(13rem, 1fr) auto auto;
  align-items: center;
  gap: clamp(0.55rem, 2vw, 1.3rem);
  min-height: 5.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.brand-lockup {
  width: min(100%, 25.6rem);
  height: auto;
}

.site-nav,
.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-nav {
  padding: 0.32rem;
  border: 1px solid rgba(32, 54, 116, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
}

.site-nav a {
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  color: var(--navy-deep);
  font-weight: 800;
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a[aria-current="location"] {
  background: rgba(32, 54, 116, 0.12);
  color: var(--navy);
}

.breadcrumb-nav {
  padding: 1rem 0 0;
  background: rgba(255, 255, 255, 0.72);
}

.breadcrumb-nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.85rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--navy-soft), var(--navy));
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(32, 54, 116, 0.24);
}

.button-secondary,
.button-outline {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy-deep);
}

.button-compact {
  min-height: 2.8rem;
  padding-inline: 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
}

h1,
h2 {
  font-family: "Source Serif 4", serif;
  letter-spacing: 0;
  text-wrap: balance;
}

:where(section, article, aside, nav) h1 {
  margin-block: 0;
  font-size: clamp(3.05rem, 6vw, 4.85rem);
}

.hero-section,
.legal-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #07111f;
}

.home-page .hero-section {
  min-height: clamp(560px, 76svh, 730px);
  padding: clamp(5.4rem, 8vw, 7rem) 0 clamp(3.4rem, 6vw, 4.6rem);
}

.hero-section::before,
.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 13, 27, 0.94), rgba(7, 13, 27, 0.82) 42%, rgba(7, 13, 27, 0.28));
}

.hero-image-layer,
.service-hero-image-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

.hero-image-layer img,
.service-hero-image-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.hero-shell,
.service-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  align-items: center;
  gap: clamp(2rem, 6vw, 4.5rem);
}

.hero-copy {
  max-width: 720px;
}

.hero-copy h1,
.legal-hero h1 {
  max-width: 14ch;
  font-size: clamp(3.1rem, 5.8vw, 5.35rem);
  line-height: 0.96;
}

.hero-lede-title,
.hero-text,
.section-text {
  max-width: 40rem;
}

.hero-lede-title {
  margin: 1rem 0 0;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.18;
}

.hero-text {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.hero-proof-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 44rem;
  margin: clamp(1.2rem, 2.4vw, 1.7rem) 0 0;
  padding: 0;
  list-style: none;
}

.hero-proof-line li {
  min-height: 6.25rem;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.84);
}

.hero-proof-line strong,
.hero-proof-line span {
  display: block;
}

.hero-proof-line strong {
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.2;
}

.hero-proof-line span {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  line-height: 1.38;
}

.paths-section,
.quote-section,
.homes-section {
  position: relative;
  padding: clamp(3.2rem, 5.5vw, 4.8rem) 0;
}

.paths-section {
  background: #ffffff;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.45fr);
  align-items: end;
  gap: clamp(1rem, 4vw, 3rem);
}

.path-card-grid,
.homes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.path-card-grid {
  margin-top: clamp(1.25rem, 2.8vw, 2rem);
}

.path-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  align-items: start;
  column-gap: 0.82rem;
  row-gap: 0.28rem;
  min-height: 10rem;
  padding: 1rem;
  border: 1px solid rgba(16, 22, 36, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(231, 242, 239, 0.68), rgba(255, 255, 255, 0.94)), #ffffff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(9, 18, 37, 0.06);
}

.path-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, #2f6f68, var(--amber));
}

.path-card-icon {
  grid-row: 1 / span 3;
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border: 1px solid rgba(47, 111, 104, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #2f6f68;
}

.path-card small,
.path-card strong,
.path-card-index {
  grid-column: 2;
}

.quote-band {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(32, 54, 116, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 251, 0.92)),
    #ffffff;
  color: var(--ink);
  box-shadow: 0 16px 38px rgba(9, 18, 37, 0.08);
}

.quote-band .eyebrow,
.quote-band h2,
.quote-band .section-text {
  color: var(--ink);
}

.quote-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1rem;
}

.homes-grid {
  margin-top: clamp(1.25rem, 2.8vw, 2rem);
}

.photo-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(16, 22, 36, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(9, 18, 37, 0.07);
}

.photo-card img {
  width: 100%;
  height: clamp(13.75rem, 22vw, 18.5rem);
  object-fit: cover;
}

.photo-card-copy {
  display: grid;
  align-content: start;
  padding: clamp(1rem, 2vw, 1.25rem);
}

.legal-hero {
  min-height: 31rem;
  padding: clamp(5rem, 9vw, 7rem) 0 clamp(3.5rem, 7vw, 5rem);
}

.legal-hero .container,
.service-hero-grid {
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .header-row {
    grid-template-columns: minmax(10rem, 1fr) auto;
  }

  .hero-shell,
  .service-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 1.25rem, 1200px);
  }

  .header-row {
    min-height: 4.4rem;
    grid-template-columns: minmax(9.9rem, 0.94fr) minmax(0, 1fr);
    gap: 0.42rem;
  }

  .brand-lockup {
    width: clamp(10.6rem, 45vw, 13.6rem);
  }

  .header-actions {
    justify-content: flex-end;
    gap: 0.28rem;
  }

  .header-actions .button {
    min-height: 2.55rem;
    padding-inline: 0.36rem;
    font-size: 0.82rem;
  }

  .home-page .hero-section {
    min-height: auto;
    padding: 5.35rem 0 4rem;
  }

  .hero-copy h1,
  .legal-hero h1 {
    font-size: clamp(2.5rem, 13vw, 3.5rem);
  }

  .hero-proof-line {
    gap: 0.55rem;
    margin-top: 1rem;
  }

  .hero-proof-line li {
    min-height: 0;
    padding: 0.62rem;
  }

  .hero-proof-line strong {
    font-size: 0.78rem;
  }

  .hero-proof-line span {
    display: none;
  }

  .section-heading,
  .path-card-grid,
  .homes-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a1019;
    --mist: #111a2a;
    --ink: #fbfbfe;
    --muted: #c2cadc;
    --line: rgba(255, 255, 255, 0.14);
    --line-strong: rgba(255, 255, 255, 0.22);
    --focus-ring: #ffd585;
    --focus-shadow: 0 0 0 2px #0a1019, 0 0 0 5px var(--focus-ring);
  }

  body {
    background:
      radial-gradient(circle at top left, rgba(97, 117, 203, 0.18), transparent 34%),
      linear-gradient(180deg, #0a1019 0%, #111a2a 100%);
  }

  .site-header,
  .site-nav,
  .quote-band,
  .photo-card {
    background-color: rgba(17, 26, 42, 0.94);
    color: var(--ink);
  }

  .site-nav a,
  .section-heading h2,
  .photo-card h3 {
    color: var(--ink);
  }
}
