/* ================================================================
   NEXXOS REALTY — Design system
   Brand Blue #1B67B2 · Sky #29ABE2 · Green #2E9E4F · Navy #16283B
   Montserrat (300/400/600) + Playfair Display Italic accents
   ================================================================ */

:root {
  --blue: #1B67B2;
  --blue-dark: #14528F;
  --sky: #29ABE2;
  --green: #2E9E4F;
  --green-dark: #25843F;
  --navy: #16283B;
  --navy-deep: #0F1D2C;
  --red: #B0392E;
  --ink: #1C2B3A;
  --muted: #5C6B7A;
  --line: #E3E9EF;
  --tint: #F5F8FB;
  --white: #FFFFFF;
  --shadow: 0 18px 44px -18px rgba(22, 40, 59, .25);
  --shadow-soft: 0 10px 30px -16px rgba(22, 40, 59, .18);
  --track: .18em;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Montserrat", -apple-system, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: rgba(41, 171, 226, .25); }

a:focus-visible, button:focus-visible, select:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

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

/* ---------- Typography patterns ---------- */

.heading {
  font-weight: 300;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--navy);
  line-height: 1.22;
}
.heading em {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
  margin-right: .35rem;
}
.heading span {
  text-transform: uppercase;
  letter-spacing: var(--track);
}
.heading--light { color: var(--white); }
.heading--light em { color: var(--sky); }
.heading--xl { font-size: clamp(2.3rem, 4.6vw, 3.4rem); }

.eyebrow {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--blue);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--sky); }

.lead {
  font-weight: 300;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track);
  text-decoration: none;
  text-align: center;
  padding: .95rem 2rem;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn--sm { padding: .65rem 1.3rem; font-size: .7rem; }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-dark); }
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-dark); }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.8); }
.btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn:active { transform: translateY(1px); }

.text-link {
  display: inline-block;
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track);
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.text-link:hover { border-color: var(--blue); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  width: min(1280px, 100% - 3rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  height: 78px;
}
.nav__logo { height: 42px; width: auto; }
.nav__links {
  display: flex;
  gap: 2.2rem;
  margin-left: auto;
}
.nav__links a {
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track);
  text-decoration: none;
  color: var(--ink);
  padding: .4rem 0;
  transition: color .2s;
}
.nav__links a:hover { color: var(--blue); }
.nav__links a.is-active { color: var(--blue); }
.nav__actions { display: flex; align-items: center; gap: 1.4rem; }
.nav__phone {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--navy);
  text-decoration: none;
}
.nav__phone:hover { color: var(--blue); }
.nav__toggle { display: none; }

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(160deg, rgba(22,40,59,.55) 0%, rgba(22,40,59,.72) 55%, rgba(15,29,44,.88) 100%),
    url("assets/miami-hero.jpg") center 35% / cover no-repeat;
}
.hero__content {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
  padding: 7rem 0 6rem;
  color: var(--white);
}
.hero__title {
  font-weight: 300;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.15;
  max-width: 18ch;
}
.hero__title em {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--sky);
  margin-right: .4rem;
}
.hero__title span {
  text-transform: uppercase;
  letter-spacing: .12em;
}
.hero__sub {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-weight: 300;
  font-size: 1.02rem;
  color: rgba(255,255,255,.85);
}

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  padding: 7.5rem 0 5.5rem;
  color: var(--white);
}
.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(22,40,59,.78), rgba(15,29,44,.9)),
    url("assets/miami-hero.jpg") center 45% / cover no-repeat;
}
.page-hero .lead { color: rgba(255,255,255,.82); margin-top: 1.2rem; }

/* ---------- Search bar ---------- */

.search {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  background: var(--white);
  border-radius: 3px;
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 900px;
}
.search__field {
  padding: .9rem 1.4rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.search__field label {
  font-size: .62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--muted);
  margin-bottom: .15rem;
}
.search__field select {
  font-family: inherit;
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy);
  border: none;
  background: transparent;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235C6B7A' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 1.2rem;
}
.search__btn { border-radius: 0; padding-inline: 2.4rem; }

/* ---------- Chip filter bar (listings page) ---------- */

.filterbar {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  padding: 1.9rem 2.2rem;
  display: grid;
  gap: 1.35rem;
  margin-bottom: 2.6rem;
}
.filterbar__group {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}
.filterbar__label {
  flex: 0 0 110px;
  font-size: .66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--muted);
}
.filterbar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.fchip {
  font-family: inherit;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .48rem 1.05rem;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease),
              background .2s var(--ease), box-shadow .2s var(--ease);
}
.fchip:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.fchip.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 16px -8px rgba(27, 103, 178, .55);
}
.fchip span {
  margin-left: .5rem;
  font-size: .68rem;
  opacity: .55;
}

/* ---------- Values strip ---------- */

.values { border-bottom: 1px solid var(--line); }
.values__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding: 4.5rem 0;
}
.values__word {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--blue);
  margin-bottom: .5rem;
}
.values__copy {
  font-size: .92rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 34ch;
}

/* ---------- Sections ---------- */

.section { padding: 6.5rem 0; }
.section--tint { background: var(--tint); }
.section--tight { padding: 4.5rem 0; }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.2rem;
}
.section__head .lead { margin-top: .9rem; }
.section__note {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Listing cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background-image: url("assets/miami-hero.jpg");
  background-size: auto 175%;
  overflow: hidden;
}
.card__veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22,40,59,0);
  transition: background .35s var(--ease);
}
.card__veil .btn {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.card:hover .card__veil { background: rgba(22,40,59,.45); }
.card:hover .card__veil .btn { opacity: 1; transform: none; }
.card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: .62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--white);
  padding: .38rem .8rem;
  border-radius: 2px;
}
.card__badge--featured { background: var(--blue); }
.card__badge--active { background: var(--green); }
.card__badge--sold { background: var(--red); }
.card__body { padding: 1.6rem 1.6rem 1.8rem; }
.card__price {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .01em;
}
.card__addr {
  font-size: .88rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: .35rem;
  min-height: 2.9em;
}
.card__note {
  font-size: .64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--sky);
  margin-top: .5rem;
}
.card__specs {
  font-size: .74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink);
  margin-top: .9rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
}
.card__area {
  font-size: .66rem;
  letter-spacing: .18em;
  color: var(--blue);
  border: 1px solid #C9DCEF;
  background: #F2F7FC;
  padding: .28rem .65rem;
  border-radius: 2px;
  white-space: nowrap;
}
.cards__empty {
  text-align: center;
  color: var(--muted);
  font-weight: 300;
  padding: 3rem 0;
}

/* Live MLS search — widget card + guidance. The card width makes
   Matrix serve its compact layout, which embeds reliably; the
   full-bleed desktop map view does not render in all browsers. */
.mls-split {
  display: grid;
  grid-template-columns: minmax(360px, 440px) 1fr;
  gap: 4.5rem;
  align-items: center;
}
.mls-frame {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  height: 700px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.mls-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.mls-side h3 {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 1rem;
  max-width: 22ch;
}
.mls-side p {
  font-weight: 300;
  color: var(--muted);
  max-width: 50ch;
}
.mls-side p strong { font-weight: 600; color: var(--navy); }
.mls-side__list {
  list-style: none;
  margin: 1.6rem 0 2.2rem;
}
.mls-side__list li {
  position: relative;
  padding: .45rem 0 .45rem 1.7rem;
  font-size: .92rem;
  font-weight: 300;
  color: var(--ink);
}
.mls-side__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .95em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}
.mls-side__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* MLS hand-off band (listings page) */
.mls-band {
  margin-top: 4rem;
  border: 1px solid var(--line);
  background: var(--tint);
  border-radius: 4px;
  padding: 2.6rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.mls-band h3 {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: .5rem;
}
.mls-band p {
  font-weight: 300;
  font-size: .92rem;
  color: var(--muted);
  max-width: 52ch;
}
.mls-band__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Neighborhood preview cards (home) ---------- */

.hoods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}
.hood {
  display: block;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.hood:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.hood__img {
  display: block;
  height: 150px;
  background-image: linear-gradient(rgba(22,40,59,.35), rgba(22,40,59,.35)), url("assets/miami-hero.jpg");
  background-size: cover, auto 260%;
}
.hood__img--1 { background-position: center, 18% 20%; }
.hood__img--2 { background-position: center, 42% 60%; filter: saturate(.9) brightness(1.04); }
.hood__img--3 { background-position: center, 68% 35%; filter: saturate(1.1); }
.hood__img--4 { background-position: center, 92% 50%; filter: saturate(.85) brightness(1.06); }
.hood__body { display: block; padding: 1.3rem 1.4rem 1.5rem; }
.hood__name {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track);
  color: var(--navy);
}
.hood__desc {
  display: block;
  font-size: .82rem;
  font-weight: 300;
  color: var(--muted);
  margin-top: .4rem;
}

/* ---------- Neighborhood feature rows (neighborhoods page) ---------- */

.area-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4.5rem;
  align-items: center;
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--line);
}
.area-row:last-child { border-bottom: none; }
.area-row--flip .area-row__media { order: 2; }
.area-row__media {
  height: 380px;
  border-radius: 4px;
  background-image: linear-gradient(rgba(22,40,59,.28), rgba(22,40,59,.28)), url("assets/miami-hero.jpg");
  background-size: cover, auto 220%;
  box-shadow: var(--shadow-soft);
}
.area-row__media--1 { background-position: center, 15% 25%; }
.area-row__media--2 { background-position: center, 40% 65%; filter: saturate(.92) brightness(1.03); }
.area-row__media--3 { background-position: center, 66% 30%; filter: saturate(1.08); }
.area-row__media--4 { background-position: center, 90% 55%; filter: saturate(.88) brightness(1.05); }
.area-row__body .heading { margin-bottom: 1.2rem; }
.area-row__body p {
  font-weight: 300;
  color: var(--muted);
  max-width: 52ch;
}
.area-row__body p + p { margin-top: 1rem; }
.area-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.6rem 0 2rem;
}
.chip {
  font-size: .66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: .38rem .85rem;
  border-radius: 2px;
  background: var(--white);
}

/* ---------- About / story ---------- */

.about {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about__text p:not(.eyebrow) {
  font-weight: 300;
  color: var(--muted);
  margin-top: 1.3rem;
  max-width: 56ch;
}
.about__text .heading { margin-top: .2rem; }
.about__stats {
  display: flex;
  gap: 3.5rem;
  margin: 2.4rem 0 2.6rem;
}
.stat__num {
  font-size: 2.1rem;
  font-weight: 300;
  color: var(--navy);
  line-height: 1;
}
.stat__num span { color: var(--sky); font-weight: 400; }
.stat__label {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  margin-top: .5rem;
}
.about__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4.5rem 3rem;
}
.about__mark { width: min(240px, 60%); }

/* ---------- Agent profile ---------- */

.agent {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4.5rem;
  align-items: center;
}
.agent__portrait {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  background: linear-gradient(165deg, var(--navy) 0%, #1D3A57 70%, #24507A 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  box-shadow: var(--shadow-soft);
}
.agent__monogram {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 2.4rem;
  color: var(--white);
}
.agent__portrait small {
  font-size: .64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--sky);
}
.agent__body .heading { margin-bottom: 1.2rem; }
.agent__body > p {
  font-weight: 300;
  color: var(--muted);
  max-width: 56ch;
}
.agent__body > p + p { margin-top: 1rem; }
.agent__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ---------- Quote / testimonial ---------- */

.quote {
  background: var(--navy);
  color: var(--white);
  padding: 6.5rem 0;
}
.quote__inner { max-width: 820px; text-align: center; }
.quote blockquote p {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.55;
  font-weight: 400;
}
.quote cite {
  display: block;
  margin-top: 2rem;
  font-style: normal;
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--sky);
}

/* ---------- CTA band ---------- */

.cta {
  position: relative;
  isolation: isolate;
  padding: 6rem 0;
  color: var(--white);
}
.cta__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(15,29,44,.82), rgba(15,29,44,.82)),
    url("assets/miami-hero.jpg") center 60% / cover no-repeat;
}
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.cta__inner p {
  font-weight: 300;
  color: rgba(255,255,255,.82);
  max-width: 44ch;
  margin-top: .8rem;
}

/* ---------- Contact page ---------- */

.contact {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5rem;
}
.contact__intro p {
  font-weight: 300;
  color: var(--muted);
  margin-top: 1.3rem;
  max-width: 42ch;
}
.contact__list {
  list-style: none;
  margin-top: 2rem;
}
.contact__list li {
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.contact__list li span:first-child {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--muted);
  align-self: center;
  white-space: nowrap;
}
.contact__list a {
  color: var(--navy);
  text-decoration: none;
  transition: color .2s;
}
.contact__list a:hover { color: var(--blue); }

.contact__form .field { margin-bottom: 1.4rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.field label {
  display: block;
  font-size: .66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--muted);
  margin-bottom: .45rem;
}
.field label span { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: .95rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: .85rem 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27,103,178,.12);
}
.contact__hint {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 300;
  margin-top: .9rem;
}

/* ---------- Socials ---------- */

.socials {
  display: flex;
  gap: .8rem;
}
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.socials a:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}
.socials svg { width: 17px; height: 17px; fill: currentColor; }

.socials--dark a {
  border-color: var(--line);
  color: var(--navy);
}
.socials--dark a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.72);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 4rem;
  padding: 4.5rem 0 3.5rem;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.2rem;
}
.footer__mark { height: 40px; width: auto; }
.footer__name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--white);
  line-height: 1.3;
}
.footer__name span {
  display: block;
  font-weight: 300;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: .66rem;
  color: var(--sky);
}
.footer__blurb {
  font-size: .86rem;
  font-weight: 300;
  max-width: 34ch;
  margin-bottom: 1.8rem;
}
.footer__title {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .26em;
  color: var(--white);
  margin-bottom: 1.4rem;
}
.footer__links { list-style: none; }
.footer__links li { margin-bottom: .7rem; }
.footer__links a {
  font-size: .86rem;
  font-weight: 300;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  transition: color .2s;
}
.footer__links a:hover { color: var(--white); }
.footer__contact { list-style: none; }
.footer__contact li { margin-bottom: .7rem; font-size: .86rem; font-weight: 300; }
.footer__contact a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  transition: color .2s;
}
.footer__contact a:hover { color: var(--white); }
.footer__bar {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.6rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .74rem;
  font-weight: 300;
  color: rgba(255,255,255,.5);
}

/* ---------- Reveal on scroll ----------
   Hidden state applies ONLY when JS is confirmed running (html.js),
   so content is never invisible if a script fails to load. */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hoods { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 3rem; }
  .about__visual { padding: 3rem; }
  .agent { grid-template-columns: 1fr; gap: 2.5rem; }
  .agent__portrait { max-width: 320px; }
  .area-row { grid-template-columns: 1fr; gap: 2.2rem; padding: 3.5rem 0; }
  .area-row--flip .area-row__media { order: 0; }
  .area-row__media { height: 260px; }
  .contact { grid-template-columns: 1fr; gap: 3.5rem; }
  .search { grid-template-columns: 1fr 1fr; max-width: 560px; }
  .search__field { border-bottom: 1px solid var(--line); }
  .filterbar { padding: 1.5rem 1.4rem; }
  .filterbar__group { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .filterbar__label { flex: none; }
  .mls-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .mls-frame { max-width: 440px; width: 100%; margin-inline: auto; height: 640px; }
  .search__btn { grid-column: 1 / -1; padding-block: 1.1rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 760px) {
  .nav__links, .nav__actions { display: none; }
  .nav__inner { height: 66px; }
  .nav__logo { height: 34px; }
  .nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
  }
  .nav__toggle span {
    width: 24px;
    height: 2px;
    background: var(--navy);
  }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: .5rem 0;
  }
  .nav.is-open .nav__links a { padding: 1rem 1.5rem; }
  .values__row { grid-template-columns: 1fr; gap: 2.2rem; padding: 3.5rem 0; }
  .section { padding: 4.5rem 0; }
  .section__head { flex-direction: column; gap: .6rem; margin-bottom: 2.4rem; }
  .cards { grid-template-columns: 1fr; }
  .hoods { grid-template-columns: 1fr; }
  .about__stats { gap: 2rem; flex-wrap: wrap; }
  .field-row { grid-template-columns: 1fr; }
  .hero__content { padding: 5.5rem 0 4.5rem; }
  .page-hero { padding: 5.5rem 0 4rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
}
