:root {
  --slate: #385b84;
  --slate-dark: #213952;
  --slate-deeper: #16283b;
  --soft: #eef4f8;
  --ink: #172233;
  --muted: #637083;
  --line: #d9e4ed;
  --white: #ffffff;
  --gold: #c99b4a;
  --green: #4e6f5d;
  --shadow: 0 18px 48px rgba(23, 34, 51, 0.12);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  font-family: "Noto Sans", Arial, sans-serif;
  margin: 0;
  min-width: 320px;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(2.7rem, 5vw, 4.65rem);
  line-height: 1.04;
}

h2 {
  color: var(--ink);
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.16;
}

h3 {
  color: var(--slate-dark);
  font-size: 1.35rem;
  line-height: 1.22;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
  margin: 0;
}

.site-header {
  align-items: center;
  background: rgba(33, 57, 82, 0.98);
  box-shadow: 0 8px 24px rgba(23, 34, 51, 0.12);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  left: 0;
  min-height: 86px;
  padding: 12px max(22px, calc((100vw - var(--max)) / 2));
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

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

.brand img {
  height: 64px;
  object-fit: contain;
  width: 116px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #dce9f5;
}

.nav-toggle {
  background: var(--white);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  display: none;
  height: 42px;
  padding: 10px;
  width: 46px;
}

.nav-toggle span {
  background: var(--slate-dark);
  display: block;
  height: 2px;
  margin: 5px 0;
  width: 100%;
}

.section-inner {
  margin: 0 auto;
  max-width: var(--max);
  width: min(calc(100% - 40px), var(--max));
}

.narrow {
  max-width: 780px;
}

.centered {
  text-align: center;
}

.section,
.subpage-hero {
  padding: 76px 0;
}

.soft {
  background: var(--soft);
}

.dark,
.cta,
.subpage-hero {
  background: linear-gradient(135deg, var(--slate-dark), var(--slate));
  color: var(--white);
}

.dark h2,
.dark p,
.cta h2,
.cta p,
.subpage-hero h1,
.subpage-hero p {
  color: var(--white);
}

.subpage-hero {
  padding: 92px 0;
}

.hero {
  background: var(--slate-dark);
  color: var(--white);
  min-height: 680px;
  overflow: hidden;
  padding: 118px 0 96px;
  position: relative;
}

.hero-media {
  background-image:
    linear-gradient(90deg, rgba(18, 32, 47, 0.9) 0%, rgba(18, 32, 47, 0.74) 38%, rgba(18, 32, 47, 0.2) 72%),
    url("assets/barrett-realty-hero.png");
  background-position: center;
  background-size: cover;
  inset: 0;
  position: absolute;
}

.area-hero .hero-media {
  background-image:
    linear-gradient(135deg, rgba(33, 57, 82, 0.96), rgba(56, 91, 132, 0.92)),
    url("assets/barrett-realty-hero.png");
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  min-height: 466px;
  position: relative;
  z-index: 1;
}

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

.hero-copy h1,
.hero-copy p {
  color: var(--white);
}

.hero-copy > p:not(.eyebrow) {
  color: #f4f8fb;
  font-size: 1.15rem;
  margin-top: 22px;
  max-width: 650px;
}

.eyebrow,
.card-eyebrow,
.panel-label {
  color: var(--slate);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.eyebrow-light,
.panel-label {
  color: #dce9f5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border: 2px solid transparent;
  border-radius: 4px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-light {
  background: var(--white);
  border-color: var(--white);
  color: var(--slate-dark);
}

.button-outline-light {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.button-primary {
  background: var(--slate-dark);
  border-color: var(--slate-dark);
  color: var(--white);
  cursor: pointer;
  font: inherit;
}

.glass-panel,
.community-panel {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.check-list {
  color: var(--white);
  line-height: 1.7;
  margin: 0;
  padding-left: 20px;
}

.check-list li {
  margin-bottom: 10px;
}

.dark-list {
  color: var(--ink);
}

.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 22px 20px;
  text-align: center;
}

.trust-strip p {
  color: var(--slate-dark);
  font-weight: 800;
}

.section-heading {
  margin: 0 auto 36px;
  max-width: 780px;
}

.section-actions {
  margin-top: 34px;
}

.card-grid {
  display: grid;
  gap: 28px;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(23, 34, 51, 0.08);
  padding: 30px;
}

.agent-card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.agent-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(23, 34, 51, 0.08);
  display: grid;
  overflow: hidden;
}

.agent-card img {
  aspect-ratio: 4 / 4.45;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.agent-card div {
  padding: 22px;
}

.agent-card h3 {
  margin-bottom: 10px;
}

.agent-card p:not(.card-eyebrow) {
  font-size: 0.96rem;
}

.agent-directory {
  background: linear-gradient(180deg, var(--soft) 0, var(--white) 22%);
}

.agent-profile {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  overflow: hidden;
}

.agent-profile + .agent-profile {
  margin-top: 38px;
}

.agent-profile.reverse .agent-photo-wrap {
  order: 2;
}

.agent-profile.reverse .agent-bio {
  order: 1;
}

.agent-photo-wrap {
  align-self: stretch;
  background: var(--slate-dark);
  min-height: 460px;
}

.agent-photo-wrap img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.agent-bio {
  padding: 42px 44px 42px 0;
}

.agent-profile.reverse .agent-bio {
  padding: 42px 0 42px 44px;
}

.agent-bio h2 {
  margin-bottom: 18px;
}

.agent-bio p + p {
  margin-top: 16px;
}

.featured-agent {
  border-top: 4px solid var(--gold);
}

.service-card {
  border-top: 4px solid var(--gold);
}

.area-card {
  border-top: 4px solid var(--green);
}

.process-card {
  border-top: 4px solid var(--slate);
}

.region-section {
  padding-top: 82px;
}

.region-guide {
  align-items: center;
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  margin-top: 54px;
}

.region-guide + .region-guide {
  border-top: 1px solid var(--line);
  padding-top: 64px;
}

.region-guide.reverse .region-copy {
  order: 2;
}

.region-guide.reverse .map-card {
  order: 1;
}

.region-copy h3 {
  color: var(--ink);
  font-size: clamp(2.25rem, 4vw, 3.35rem);
  line-height: 1.08;
  margin-bottom: 18px;
}

.region-copy > p:not(.card-eyebrow) {
  color: var(--ink);
  font-size: 1.16rem;
  max-width: 560px;
}

.region-highlights {
  color: var(--ink);
  display: grid;
  gap: 8px;
  font-size: 1.03rem;
  font-weight: 800;
  line-height: 1.45;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.region-highlights li {
  align-items: center;
  display: flex;
  gap: 10px;
}

.region-highlights li::before {
  background: var(--gold);
  border-radius: 999px;
  content: "";
  flex: 0 0 auto;
  height: 8px;
  width: 8px;
}

.city-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.city-row span {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--slate-dark);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 8px 12px;
}

.map-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
}

.map-card img {
  aspect-ratio: 16 / 10;
  background: var(--soft);
  object-fit: cover;
  width: 100%;
}

.map-card figcaption {
  border-top: 1px solid var(--line);
  color: var(--slate-dark);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 13px 18px;
  text-transform: uppercase;
}

.card h3 {
  margin-bottom: 14px;
}

.card ul {
  color: var(--ink);
  line-height: 1.7;
  margin: 18px 0 0;
  padding-left: 20px;
}

.card li::marker,
.check-list li::marker,
.community-list li::marker {
  color: var(--gold);
}

.split {
  align-items: center;
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.split h2 {
  margin-bottom: 20px;
}

.split .button {
  margin-top: 26px;
}

.community-list {
  columns: 2;
  color: var(--white);
  font-weight: 800;
  line-height: 1.7;
  margin: 0;
  padding-left: 20px;
}

.community-list li {
  break-inside: avoid;
  margin-bottom: 10px;
}

.step {
  color: #97abc0;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 18px;
}

.quote-section {
  background:
    linear-gradient(180deg, rgba(238, 244, 248, 0.76), rgba(255, 255, 255, 1));
}

.quote-section blockquote {
  margin: 0;
}

.quote-section blockquote p {
  color: var(--slate-dark);
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.22;
}

.quote-section cite {
  color: var(--muted);
  display: inline-block;
  font-style: normal;
  font-weight: 800;
  margin-top: 22px;
}

.contact-grid {
  align-items: start;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

label {
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  background: #fbfdff;
  border: 1px solid #cbd9e5;
  border-radius: 4px;
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.info-card {
  background: var(--slate-dark);
}

.info-card h2,
.info-card p,
.info-card .eyebrow,
.info-card .check-list,
.info-card a {
  color: var(--white);
}

.contact-note {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 26px;
  padding-top: 22px;
}

.site-footer {
  background: var(--slate-deeper);
  color: var(--white);
  padding: 34px 0;
}

.footer-grid {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.site-footer img {
  height: 60px;
  object-fit: contain;
  width: 110px;
}

.site-footer p {
  color: #dce9f5;
  margin-top: 10px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 900px) {
  .site-header {
    min-height: 74px;
  }

  .brand img {
    height: 56px;
    width: 102px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    background: var(--slate-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    padding: 12px 22px 22px;
    position: absolute;
    right: 0;
    top: 74px;
  }

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

  .site-nav a {
    padding: 12px 0;
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 82px 0 72px;
  }

  .hero-media {
    background-image:
      linear-gradient(90deg, rgba(18, 32, 47, 0.92) 0%, rgba(18, 32, 47, 0.78) 100%),
      url("assets/barrett-realty-hero.png");
  }

  .hero-grid,
  .split,
  .contact-grid,
  .region-guide {
    grid-template-columns: 1fr;
  }

  .region-guide.reverse .region-copy,
  .region-guide.reverse .map-card {
    order: initial;
  }

  .card-grid.three {
    grid-template-columns: 1fr;
  }

  .agent-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-profile,
  .agent-profile.reverse {
    gap: 0;
    grid-template-columns: 1fr;
  }

  .agent-profile.reverse .agent-photo-wrap,
  .agent-profile.reverse .agent-bio {
    order: initial;
  }

  .agent-photo-wrap {
    min-height: 0;
  }

  .agent-photo-wrap img {
    aspect-ratio: 4 / 3.8;
    height: auto;
  }

  .agent-bio,
  .agent-profile.reverse .agent-bio {
    padding: 30px;
  }
}

@media (max-width: 560px) {
  .section-inner {
    width: min(calc(100% - 34px), var(--max));
  }

  .section,
  .subpage-hero {
    padding: 58px 0;
  }

  .hero {
    padding: 66px 0 58px;
  }

  h1 {
    font-size: 2.45rem;
  }

  .actions,
  .button {
    width: 100%;
  }

  .glass-panel,
  .community-panel,
  .card,
  .agent-card div,
  .agent-bio,
  .agent-profile.reverse .agent-bio,
  .contact-card,
  .map-card {
    padding: 24px;
  }

  .agent-card-grid {
    grid-template-columns: 1fr;
  }

  .map-card {
    padding: 0;
  }

  .region-guide {
    gap: 30px;
    margin-top: 42px;
  }

  .region-guide + .region-guide {
    padding-top: 46px;
  }

  .community-list {
    columns: 1;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}
