/* ==========================================================================
   Padilla & Perry — design system
   Rebuilt to match padilla-perry.com. Tokens lifted from the original theme:
     --ibc-heading-font-family: Raleway, 300
     --ibc-body-font-family:    Raleway, 400
     buttons: white bg / black border+text, inverting to black on hover
     idx primary: #000, secondary: #fff
   The palette is deliberately monochrome; the photography supplies the colour.
   ========================================================================== */

:root {
  --font: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --w-heading: 300;
  --w-body: 400;

  --ink: #000;
  --ink-soft: #4a4a4a;
  --ink-mute: #8a8a8a;
  --paper: #fff;
  --paper-alt: #f0efed;      /* agent bio panel */
  --dark: #2b2b2b;           /* agent profile panel */
  --darker: #141414;         /* testimonials band */
  --deep: #14405c;           /* new-developments band */
  --rule: rgba(0, 0, 0, .16);
  --rule-light: rgba(255, 255, 255, .55);

  --header-h: 118px;
  --shell: 1760px;
  --gutter: clamp(20px, 4vw, 60px);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: var(--w-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-weight: var(--w-heading);
  line-height: 1.14;
  letter-spacing: .012em;
  margin: 0;
}

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Section eyebrow + title, the repeating "Featured / NEW DEVELOPMENTS" pair */
.eyebrow {
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: var(--w-body);
  color: var(--ink-mute);
  text-align: center;
  margin: 0 0 .35em;
}
.section-title {
  font-size: clamp(28px, 3.4vw, 46px);
  text-transform: uppercase;
  letter-spacing: .045em;
  text-align: center;
  margin: 0;
}
.section-head { margin-bottom: clamp(38px, 5vw, 66px); }
.on-dark .eyebrow { color: rgba(255, 255, 255, .82); }
.on-dark .section-title { color: #fff; }

/* Buttons — the original's outline style, inverting on hover */
.btn {
  display: inline-block;
  font: inherit;
  font-size: 17px;
  line-height: 1;
  padding: 19px 44px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: var(--ink); color: #fff; }

.btn-light { border-color: #fff; color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }

.btn-solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-solid:hover { background: #fff; color: var(--ink); }

.center { text-align: center; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Header
   Transparent over the hero, solid white once scrolled or on inner pages.
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  background: #fff;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-transparent {
  background: transparent;
}
.site-header.is-stuck {
  background: #fff;
  box-shadow: 0 1px 16px rgba(0, 0, 0, .09);
}

.header-inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 30px;
  min-height: var(--header-h);
}

.brand { display: block; padding: 14px 0; }
.brand img { width: 168px; height: auto; }
.brand .logo-white { display: none; }
.is-transparent .brand .logo-black { display: none; }
.is-transparent .brand .logo-white { display: block; }

.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

/* Utility row: instagram, email, phone, login */
.util-row {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  color: var(--ink);
}
.is-transparent .util-row { color: #fff; }
.util-row a { display: inline-flex; align-items: center; gap: 8px; }
.util-row a:hover { opacity: .72; }
.util-row svg { width: 17px; height: 17px; flex: none; }
.util-sep { opacity: .5; }

.ig-badge {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.is-transparent .ig-badge { background: #fff; color: var(--ink); }
.ig-badge svg { width: 15px; height: 15px; }

/* Primary nav */
.nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); }
.nav a {
  font-size: 17px;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
}
.is-transparent .nav a { color: #fff; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

/* About → agent submenu, as on the original */
.nav-group { position: relative; }
.nav-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  margin: 0;
  padding: 10px 0;
  list-style: none;
  min-width: 190px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 5;
}
.nav-group:hover .nav-submenu,
.nav-group:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-submenu a,
.is-transparent .nav-submenu a {
  display: block;
  padding: 9px 22px;
  font-size: 16px;
  color: var(--ink);
  white-space: nowrap;
}
.nav-submenu a::after { display: none; }
.nav-submenu a:hover { background: #f4f3f1; }

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 17px 26px !important;
  font-size: 16px;
  line-height: 1;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: #fff; color: var(--ink) !important; }
.is-transparent .nav-cta { background: var(--ink); color: #fff !important; }
.is-transparent .nav-cta:hover { background: #fff; color: var(--ink) !important; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer;
  padding: 0;
  color: var(--ink);
}
.is-transparent .nav-toggle { color: #fff; }
.nav-toggle span {
  display: block; height: 1.5px; width: 26px; margin: 6px auto;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ==========================================================================
   Hero — cross-fading photo slideshow with rotating headline
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s var(--ease), transform 7s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
/* Overlay strength copied from the original theme (rgba(0,0,0,.31)) */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .31);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + 40px) var(--gutter) 90px;
  width: 100%;
  max-width: 1080px;
}

.hero-rotator { min-height: clamp(150px, 17vw, 210px); position: relative; }
.hero-text {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  pointer-events: none;
}
.hero-text.is-active { opacity: 1; transform: none; }
.hero-kicker {
  font-size: clamp(20px, 2vw, 27px);
  font-weight: var(--w-body);
  margin: 0 0 .2em;
  text-shadow: 0 1px 22px rgba(0, 0, 0, .3);
}
.hero-title {
  font-size: clamp(40px, 5.4vw, 68px);
  letter-spacing: .01em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .32);
}

.hero-sub {
  font-style: italic;
  font-size: clamp(17px, 1.7vw, 22px);
  margin: 30px 0 34px;
  text-shadow: 0 1px 18px rgba(0, 0, 0, .35);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.hero-actions .btn { min-width: 300px; }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%; bottom: 34px;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 1.5px solid rgba(255, 255, 255, .85);
  border-radius: 14px;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%; top: 9px;
  width: 2px; height: 7px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: cue 1.9s var(--ease) infinite;
}
@keyframes cue {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 13px); }
}

/* ==========================================================================
   IDX search bar
   ========================================================================== */

.idx-search {
  display: flex;
  background: #fff;
  max-width: 880px;
  margin-inline: auto;
  box-shadow: 0 6px 34px rgba(0, 0, 0, .17);
}
.idx-search select,
.idx-search input {
  font: inherit;
  font-size: 17px;
  border: 0;
  padding: 21px 22px;
  color: var(--ink);
  background: #fff;
  min-width: 0;
}
.idx-search select {
  flex: none;
  width: 170px;
  border-right: 1px solid var(--rule);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 12px;
  padding-right: 44px;
}
.idx-search input { flex: 1; }
.idx-search input::placeholder { color: #9a9a9a; }
.idx-search button {
  flex: none;
  border: 0;
  background: #fff;
  padding: 0 24px;
  cursor: pointer;
  color: var(--ink);
  display: grid;
  place-items: center;
}
.idx-search button:hover { background: #f4f4f4; }
.idx-search button svg { width: 23px; height: 23px; }

.adv-link {
  display: block;
  text-align: right;
  max-width: 880px;
  margin: 13px auto 0;
  font-size: 16px;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .4);
}
.adv-link:hover { text-decoration: underline; }

/* ==========================================================================
   Inner-page hero — compact banner under the fixed header
   ========================================================================== */

.page-hero {
  margin-top: var(--header-h);
  min-height: clamp(280px, 32vw, 440px);
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: var(--dark) center/cover no-repeat;
  position: relative;
  padding: 60px var(--gutter);
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .34);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(32px, 4.2vw, 56px);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .4);
}
.page-hero p {
  font-size: clamp(16px, 1.6vw, 21px);
  margin: .8em auto 0;
  max-width: 62ch;
  text-shadow: 0 1px 16px rgba(0, 0, 0, .4);
}

/* Plain heading block for pages with no banner image */
.page-head {
  margin-top: var(--header-h);
  padding: clamp(52px, 6vw, 86px) 0 0;
  text-align: center;
}
.page-head h1 {
  font-size: clamp(30px, 3.6vw, 48px);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Long-form legal / prose pages */
.prose {
  max-width: 78ch;
  margin-inline: auto;
  font-size: 16.5px;
  color: var(--ink-soft);
}
.prose h2 {
  font-size: clamp(22px, 2vw, 28px);
  color: var(--ink);
  margin: 2em 0 .7em;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { line-height: 1.85; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose a { text-decoration: underline; }

/* Two-column content + form, used on Contact / Buy / Sell */
.split {
  display: grid;
  grid-template-columns: 1fr minmax(340px, .8fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.card-panel {
  background: #fafafa;
  padding: clamp(30px, 3.4vw, 50px);
}
.card-panel h2 { font-size: clamp(23px, 2vw, 30px); margin-bottom: 1.2em; text-align: center; }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: clamp(66px, 8vw, 118px) 0; }
.section-deep { background: var(--deep) center/cover no-repeat; position: relative; }
.section-deep::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(11, 46, 68, .82);
}
.section-deep > * { position: relative; z-index: 1; }

/* Card rails — new developments, listings, neighborhoods */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

.dev-card { display: block; }
.dev-card figure { margin: 0; overflow: hidden; }
.dev-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.dev-card:hover img { transform: scale(1.06); }
.dev-card figcaption {
  color: #fff;
  text-align: center;
  font-size: clamp(17px, 1.4vw, 21px);
  padding-top: 20px;
}

/* Carousel arrows */
.rail-wrap { position: relative; }
.rail-nav {
  position: absolute;
  top: calc(50% - 26px);
  transform: translateY(-50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 3px 16px rgba(0, 0, 0, .2);
  transition: transform .25s var(--ease);
  z-index: 3;
}
.rail-nav:hover { transform: translateY(-50%) scale(1.07); }
.rail-nav[data-dir="prev"] { left: calc(var(--gutter) * -1 + 6px); }
.rail-nav[data-dir="next"] { right: calc(var(--gutter) * -1 + 6px); }
.rail-nav svg { width: 20px; height: 20px; }

/* Informational notice block (search page, empty states) */
.notice {
  max-width: 68ch;
  margin: clamp(40px, 5vw, 72px) auto 0;
  text-align: center;
  padding: clamp(30px, 4vw, 52px);
  background: #fafafa;
  border: 1px solid var(--rule);
}
.notice h2 { font-size: clamp(22px, 2vw, 29px); margin-bottom: .7em; }
.notice p { color: var(--ink-soft); margin: 0 0 1.5em; }

/* Neighborhood feature rows — alternating photo / copy */
.hood-feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 4vw, 66px);
  align-items: center;
  margin-bottom: clamp(48px, 6vw, 96px);
}
.hood-feature:last-child { margin-bottom: 0; }
.hood-feature.is-reversed img { order: 2; }
.hood-feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hood-feature h2 { font-size: clamp(26px, 2.6vw, 38px); margin-bottom: .6em; }
.hood-feature p { color: var(--ink-soft); margin: 0 0 2em; }

@media (max-width: 860px) {
  .hood-feature { grid-template-columns: 1fr; }
  .hood-feature.is-reversed img { order: 0; }
}

/* Development tiles — the New Developments index grid */
.dev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(20px, 2.4vw, 34px);
}
.dev-tile { display: block; }
.dev-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.dev-tile-media { overflow: hidden; }
.dev-tile:hover img { transform: scale(1.05); }
.dev-tile-body { padding: 20px 2px 0; }
.dev-tile-body h2 { font-size: clamp(20px, 1.7vw, 25px); }
.dev-tile-body p { margin: .35em 0 0; color: var(--ink-mute); font-size: 15.5px; }

/* Exclusive listings added through /admin. Card treatment follows the
   original site: photo with the price and specs overlaid at the bottom. */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.listing-card { position: relative; overflow: hidden; }
.listing-media { position: relative; }
.listing-media img,
.listing-noimg {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease);
}
.listing-noimg { background: repeating-linear-gradient(-45deg, #f4f3f1, #f4f3f1 12px, #efeeec 12px, #efeeec 24px); }
.listing-card:hover .listing-media img { transform: scale(1.05); }

.listing-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 62%;
  background: linear-gradient(to top, rgba(0, 0, 0, .74), transparent);
  pointer-events: none;
}

.listing-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 3px;
  z-index: 2;
}

.listing-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 0 18px 18px;
  color: #fff;
}
.listing-price { font-size: clamp(23px, 2vw, 30px); font-weight: 300; margin: 0 0 4px; }
.listing-specs { font-size: 15px; margin: 0 0 6px; }
.listing-specs strong { font-weight: 600; }
.listing-specs i { font-style: normal; opacity: .7; margin: 0 3px; }
.listing-addr {
  font-size: 15px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1100px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .listing-grid { grid-template-columns: 1fr; } }

/* Listing skeletons — placeholders holding the grid until IDX is connected */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.listing-skeleton {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(
    -45deg, #f4f3f1, #f4f3f1 12px, #efeeec 12px, #efeeec 24px
  );
  display: grid;
  place-items: center;
  color: var(--ink-mute);
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (max-width: 1100px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .listing-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Agent bio blocks — alternating text / portrait halves
   ========================================================================== */

.agent-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--paper-alt);
}
.agent-row.is-reversed .agent-copy { order: 2; }

.agent-copy {
  padding: clamp(44px, 5.6vw, 96px) clamp(28px, 4.6vw, 92px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.agent-role {
  font-size: clamp(19px, 1.7vw, 24px);
  color: var(--ink-mute);
  margin: 0 0 .35em;
}
.agent-name {
  font-size: clamp(30px, 3vw, 42px);
  margin: 0 0 .7em;
}
.agent-bio {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 2.2em;
  max-width: 62ch;
}
.agent-copy .btn { align-self: flex-start; min-width: 230px; text-align: center; }

.agent-photo {
  background-size: cover;
  background-position: center top;
  min-height: 560px;
}

/* ==========================================================================
   Agent profile page — dark bio panel beside a light enquiry form
   ========================================================================== */

.agent-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(340px, .95fr);
  margin-top: var(--header-h);
  align-items: stretch;
}

.agent-hero-main {
  background: var(--dark);
  color: #fff;
  padding: clamp(40px, 5vw, 74px) clamp(24px, 3.6vw, 66px);
}
.agent-hero-inner {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: clamp(26px, 3.4vw, 56px);
  align-items: start;
}

.agent-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.agent-detail h1 {
  font-size: clamp(32px, 3.4vw, 46px);
  margin-bottom: .6em;
}
.agent-contact { margin: 0 0 12px; font-size: 18px; }
.agent-contact a { display: inline-flex; align-items: center; gap: 12px; }
.agent-contact a:hover { opacity: .78; }
.agent-contact svg { width: 19px; height: 19px; flex: none; }

.agent-socials { display: flex; gap: 12px; margin: 26px 0 34px; }
.agent-socials a {
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.agent-socials a:hover { background: #fff; color: var(--dark); }
.agent-socials svg { width: 20px; height: 20px; }

.agent-longbio p {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .88);
  margin: 0 0 1.3em;
}
.agent-longbio p:last-child { margin-bottom: 0; }

.agent-form-panel {
  background: #fafafa;
  padding: clamp(40px, 4.4vw, 72px) clamp(26px, 3vw, 52px);
}
.agent-form-panel h2 {
  font-size: clamp(25px, 2.2vw, 33px);
  text-align: center;
  margin-bottom: 1.5em;
}

/* Underlined form fields, matching the original's styling */
.stack-form { display: flex; flex-direction: column; gap: 26px; }
.field { display: block; }
.field input, .field textarea {
  font: inherit;
  font-size: 17px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  padding: 8px 2px 12px;
  color: var(--ink);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #9b9b9b; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.consent {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.consent input { margin-top: 3px; flex: none; width: 17px; height: 17px; accent-color: #000; }
.consent a { text-decoration: underline; }

.btn-pill { border-radius: 999px; align-self: center; min-width: 240px; letter-spacing: .09em; text-transform: uppercase; font-size: 15px; }

.form-status { margin: 0; font-size: 15px; text-align: center; min-height: 1.4em; }
.form-status.is-error { color: #b3261e; }
.form-status.is-ok { color: #1a7f37; }

@media (max-width: 1080px) {
  .agent-hero { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .agent-hero-inner { grid-template-columns: 1fr; }
  .agent-portrait { max-width: 340px; }
}

/* ==========================================================================
   Full-bleed CTA bands — SELLING / BUYING A HOME
   ========================================================================== */

.band {
  position: relative;
  min-height: clamp(400px, 46vw, 620px);
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  padding: 70px var(--gutter);
}
.band::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .2);
}
.band > * { position: relative; z-index: 1; }
.band h2 {
  font-size: clamp(34px, 4.6vw, 62px);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-shadow: 0 2px 26px rgba(0, 0, 0, .38);
}
.band p {
  font-size: clamp(17px, 1.7vw, 22px);
  margin: .8em 0 1.7em;
  text-shadow: 0 1px 18px rgba(0, 0, 0, .38);
}

/* ==========================================================================
   Neighborhoods
   ========================================================================== */

.hood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.hood {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(230px, 22vw, 340px);
  overflow: hidden;
  color: #fff;
}
.hood img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.hood::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .22);
  transition: background .4s var(--ease);
}
.hood:hover img { transform: scale(1.07); }
.hood:hover::after { background: rgba(0, 0, 0, .38); }
.hood span {
  position: relative;
  z-index: 2;
  font-size: clamp(20px, 2vw, 27px);
  text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}

/* ==========================================================================
   Recently sold — split photo / detail
   ========================================================================== */

.sold-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper-alt);
}
.sold-row.is-reversed .sold-photo { order: 2; }
.sold-photo { min-height: 480px; background-size: cover; background-position: center; }
.sold-copy {
  padding: clamp(44px, 5vw, 84px) clamp(28px, 4.4vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.sold-tag { font-size: 19px; color: var(--ink-mute); margin: 0 0 .4em; }
.sold-price { font-size: clamp(38px, 4.4vw, 64px); margin: 0 0 .3em; }
.sold-addr { font-size: clamp(18px, 1.7vw, 23px); margin: 0 0 1.3em; }
.sold-desc { font-size: 16px; color: var(--ink-soft); margin: 0 0 1.6em; }
.sold-specs {
  font-size: 17px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 2em;
}
.sold-specs strong { font-weight: 600; }
.sold-copy .btn { align-self: center; min-width: 210px; }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials { background: var(--darker); color: #fff; }
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
}
.quote {
  text-align: center;
  font-style: italic;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .9);
}
.quote cite {
  display: block;
  font-style: normal;
  margin-top: 1.6em;
  color: #fff;
}
.quote cite::before { content: "— "; }
.quote cite::after  { content: " —"; }

.dots { display: flex; justify-content: center; gap: 11px; margin-top: 48px; }
.dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .32);
  cursor: pointer;
  padding: 0;
  transition: background .3s var(--ease);
}
.dot.is-active { background: #fff; }
.section-deep .dot { background: rgba(255, 255, 255, .35); }
.section-deep .dot.is-active { background: #fff; }
.section .dot { background: rgba(0, 0, 0, .22); }
.section .dot.is-active { background: var(--ink); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { padding: clamp(54px, 6vw, 92px) 0 40px; font-size: 15px; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}
.footer-brand img { width: 172px; margin-bottom: 30px; }
.footer-contact p { margin: 0 0 14px; }
.footer-contact a:hover { text-decoration: underline; }

.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 26px; }
.footer-badges { display: flex; align-items: center; gap: 14px; }
.footer-badges img { height: 54px; width: auto; }

.disclaimer {
  margin: clamp(38px, 4vw, 62px) 0 24px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-soft);
}
.footer-legal a:hover { text-decoration: underline; }

/* ==========================================================================
   Modal — the "Request Information" popup
   Matches the original site, where the Luxury Off-Market Properties button and
   the Buy/Sell calls to action open a lead form in place rather than
   navigating away.
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .62);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.modal-panel {
  position: relative;
  background: #fff;
  width: min(560px, 100%);
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  padding: clamp(30px, 4vw, 52px) clamp(24px, 3.4vw, 50px) clamp(28px, 3.4vw, 44px);
  transform: translateY(16px) scale(.985);
  transition: transform .35s var(--ease);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}
.modal.is-open .modal-panel { transform: none; }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink);
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background .25s var(--ease);
}
.modal-close:hover { background: #f0efed; }
.modal-close svg { width: 19px; height: 19px; }

.modal-title {
  font-size: clamp(25px, 2.4vw, 33px);
  text-align: center;
  margin-bottom: .4em;
}
.modal-sub {
  text-align: center;
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0 0 2em;
}

.modal-legend {
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 26px;
}

.required-note { font-size: 13px; color: var(--ink-mute); margin: 0; }

/* Phone field with a fixed +1 country prefix, as on the original */
.field-phone {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 12px;
}
.phone-prefix {
  font-size: 17px;
  color: var(--ink-soft);
  padding: 8px 2px 12px;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

/* Success state — replaces the form body once the lead is captured */
.modal-success { display: none; text-align: center; }
.modal.is-done .modal-success { display: block; }
.modal.is-done .modal-form { display: none; }

.modal-success h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: .7em; }
.modal-success p { color: var(--ink-soft); margin: 0 0 1.4em; }
.modal-success .fineprint {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-mute);
  margin-bottom: 0;
}

body.modal-open { overflow: hidden; }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  :root { --header-h: 96px; }
  .nav-toggle { display: block; }
  .header-inner { grid-template-columns: auto auto; justify-content: space-between; }
  .header-right { flex-direction: row; align-items: center; gap: 16px; }
  .util-row { display: none; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px var(--gutter) 30px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .13);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
  }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav a, .is-transparent .nav a { color: var(--ink); padding: 15px 0; border-bottom: 1px solid var(--rule); }
  .nav a::after { display: none; }

  /* On mobile the submenu is always expanded — hover has no meaning here. */
  .nav-submenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    background: none;
  }
  .nav-submenu a, .is-transparent .nav-submenu a { padding: 15px 0 15px 22px; }
  .nav-submenu a:hover { background: none; }

  .nav-cta, .is-transparent .nav-cta {
    background: var(--ink);
    color: #fff !important;
    text-align: center;
    margin-top: 18px;
    border-bottom: 0;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .agent-row, .sold-row { grid-template-columns: 1fr; }
  .agent-row.is-reversed .agent-copy,
  .sold-row.is-reversed .sold-photo { order: 0; }
  .agent-photo { min-height: 66vw; }
  .sold-photo { min-height: 62vw; order: -1; }
  .quote-grid { grid-template-columns: 1fr; }
  .hood-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-right { align-items: flex-start; }
  .rail-nav { display: none; }
}

@media (max-width: 640px) {
  .idx-search { flex-wrap: wrap; }
  .idx-search select { width: 100%; border-right: 0; border-bottom: 1px solid var(--rule); }
  .hero-actions .btn { min-width: 100%; }
  .adv-link { text-align: center; }
}
