/* ===================================================================
   The Anchor Point Group — Coastal-luxury design system
   Josefin Sans (display) + Mulish (body) · navy / coastal blue / gold

   Brand palette (from the client brand sheet):
     #001b40 navy · #80b3cb blue · #f4d8b5 sand · #9194ad slate
     #ffffff white · #000000 black
   Gold is not on that sheet but runs through every piece of their promo
   material (banner, thumbnails), so it stays as the accent colour.
   --sand is the raw brand value and is too saturated to sit behind a whole
   section — use --sand-wash for large fills and keep --sand for accents.
   =================================================================== */

:root {
  --navy:      #001b40;
  --navy-2:    #000d20;
  --navy-3:    #0a2a55;
  --slate:     #9194ad;
  --slate-2:   #5c6280;
  --slate-tint:#b3b6c7;
  --blue:      #80b3cb;
  --blue-2:    #5d97b4;
  --blue-tint: #dceaf1;
  --logo:      #4c6084;
  --gold:      #b6924f;
  --gold-2:    #c9a763;
  /* Small gold TEXT on light backgrounds. #b6924f is only 2.9:1 on white, which
     fails WCAG AA for anything under 18px — use this for labels and links. */
  --gold-ink:  #846631;
  --sand:      #f4d8b5;
  --sand-wash: #fbf1e4;
  --cream:     #fdf8f1;
  --ink:       #101d2e;
  --body:      #45505f;
  --muted:     #79828f;
  --line:      #e8ded0;
  --line-2:    #d9cdb9;
  --white:     #ffffff;

  --font-display: 'Josefin Sans', 'Century Gothic', 'Trebuchet MS', sans-serif;
  --font-body: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-script: 'Sacramento', 'Snell Roundhand', cursive;

  --wrap: 1200px;
  --wrap-narrow: 880px;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(0,27,64,.08);
  --shadow: 0 14px 40px -18px rgba(0,27,64,.32);
  --shadow-lg: 0 30px 70px -28px rgba(0,27,64,.45);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
  font-weight: 400;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--slate-2); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-ink); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Type ---------- */
/* Josefin Sans has a small x-height, so it needs a heavier weight and slightly
   open tracking to hold the same presence the old serif had at these sizes. */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); font-weight: 600; line-height: 1.16; letter-spacing: .005em; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 3.7vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }
h4 { font-size: 1.18rem; }

/* Script accent — the "The" flourish in the mark, and the brand-band tagline. */
.script { font-family: var(--font-script); font-weight: 400; letter-spacing: .01em; }
p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 700; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .76rem; font-weight: 800;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-ink); display: inline-flex; align-items: center; gap: .7rem;
  margin-bottom: 1rem;
}
/* Rules on BOTH sides so the label sits balanced between them. */
.eyebrow::before,
.eyebrow::after { content:""; width: 30px; height: 1px; background: var(--gold); display: inline-block; flex: 0 0 auto; }
.eyebrow.center { justify-content: center; }
.eyebrow.light { color: var(--gold-2); }
.eyebrow.no-line { gap: 0; }
.eyebrow.no-line::before,
.eyebrow.no-line::after { display: none; }

/* Embedded IDX / RealScout map */
.idx-map { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--cream); }
.idx-map iframe { display: block; width: 100%; height: 2000px; border: 0; }
@media (max-width: 640px){ .idx-map iframe { height: 1600px; } }

.lead { font-size: 1.18rem; color: var(--ink); line-height: 1.65; }
.muted { color: var(--muted); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section.sand { background: var(--sand-wash); }
.section.cream { background: var(--cream); }
.section.navy { background: var(--navy); color: #d6deec; }
.section.tight { padding-top: clamp(40px,5vw,64px); padding-bottom: clamp(40px,5vw,64px); }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section.navy h2, .section.navy h3 { color: #fff; }

.grid { display: grid; gap: 28px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body); font-weight: 700; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 16px 34px; border-radius: var(--radius);
  transition: all .25s var(--ease); cursor: pointer; border: 1.5px solid transparent;
  line-height: 1;
}
.btn .ar { transition: transform .25s var(--ease); }
.btn:hover .ar { transform: translateX(4px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); color: var(--navy); box-shadow: 0 12px 26px -12px rgba(182,146,79,.7); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }
.btn-sm { padding: 12px 22px; font-size: .74rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-2); color: #c2cde0; font-size: .82rem; }
/* Links and social both sit hard right, with breathing room between the
   phone number and the icons. */
.topbar .wrap { display: flex; align-items: center; justify-content: flex-end; min-height: 42px; gap: 30px; }
.topbar a { color: #c2cde0; display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; align-items: center; gap: 26px; }
.topbar-links li { white-space: nowrap; }
.topbar-links .sep { opacity: .3; }
.topbar-phone { font-weight: 800; letter-spacing: .03em; color: #fff; }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a { width: 26px; height: 26px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; justify-content: center; font-size: .72rem; }
.topbar-social svg { width: 12px; height: 12px; display: block; }
.topbar-social a:hover { background: var(--gold); border-color: var(--gold); }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 200; transition: box-shadow .3s var(--ease); }
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(18,40,68,.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 108px; }
.brand { display: flex; align-items: center; gap: 13px; color: var(--navy); }
.brand:hover { color: var(--navy); }

/* Real brand mark. It's a stacked lockup, so it needs height to keep the
   "POINT GROUP" line legible — 68px in the header, 60px once scrolled. */
.lockup { width: auto; height: 84px; }
.footer-brand .lockup { height: 96px; }

/* nav */
.primary-nav > ul { display: flex; align-items: center; gap: 4px; }
.primary-nav > ul > li { position: relative; }
.primary-nav > ul > li > a {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); padding: 32px 16px;
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li.open > a,
.primary-nav > ul > li > a.is-active { color: var(--gold-ink); }
.primary-nav > ul > li > a.is-active { position: relative; }
.primary-nav > ul > li > a.is-active::after { content:""; position:absolute; left:16px; right:16px; bottom:24px; height:2px; background: var(--gold); }
.primary-nav .caret { width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--ease); }
.primary-nav li.open .caret { transform: rotate(225deg) translateY(-2px); }
.nav-cta { color: var(--navy) !important; background: var(--gold); border-radius: var(--radius); padding: 13px 22px !important; margin-left: 10px; }
.nav-cta:hover { background: var(--gold-2); }

/* mega menu */
.mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold);
  box-shadow: var(--shadow); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 30px; opacity: 0; visibility: hidden; transition: all .26s var(--ease); z-index: 210;
}
.primary-nav li.has-mega:hover .mega,
.primary-nav li.open .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-single { min-width: 280px; }
.mega-wide { width: min(880px, 90vw); display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.mega-col h5 { font-family: var(--font-body); font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mega-col ul li { margin-bottom: 2px; }
/* nowrap: menu labels must never break across lines — "Jarrett Sylvester —
   Co-Founder" is the longest and the dropdown should widen to fit it instead. */
.mega-col a {
  display: block; padding: 7px 10px; margin: 0 -10px;
  border-radius: var(--radius); font-size: .92rem; font-weight: 600; color: var(--ink);
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
/* Nudge with transform, not padding — changing padding on hover shrank the
   content box and pushed the longest label onto a second line. */
.mega-col a:hover { background: var(--sand-wash); color: var(--gold-ink); transform: translateX(6px); }

/* ---------- Hero ----------
   Height is tokenised so the taller original can be restored by editing these
   four values and nothing else.

   ORIGINAL (full-screen) values — revert to these to undo the trim:
     --hero-min-h:    88vh;
     --hero-pad-top:  60px;
     --hero-pad-bot:  60px;
     --hero-logo-h:   clamp(120px, 15vw, 168px);

   NOTE: hero-home.jpg is untouched at full resolution. It's a `cover`
   background, so a shorter frame simply reveals less of it — nothing is
   cropped or re-encoded, and reverting restores the original view exactly. */
.hero {
  --hero-min-h:   62vh;
  --hero-pad-top: 44px;
  --hero-pad-bot: 24px;
  --hero-logo-h:  clamp(96px, 11vw, 132px);
  position: relative; min-height: var(--hero-min-h); display: flex; align-items: center; color: #fff; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content:""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13,31,54,.55) 0%, rgba(13,31,54,.35) 40%, rgba(13,31,54,.75) 100%); }
.hero-inner { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: var(--hero-pad-top) 28px var(--hero-pad-bot); text-align: center; }
.hero .eyebrow { color: var(--gold-2); justify-content: center; }
.hero h1 { color: #fff; max-width: 22ch; margin: 0 auto .5rem; text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.hero-sub { font-size: 1.2rem; color: #e7ecf4; max-width: 60ch; margin: 0 auto 1.7rem; font-weight: 300; }
/* Uses the real white-wordmark mark — no brightness/invert filter, which used to
   flatten the navy logo into a silhouette and lose the anchor's tonal split. */
.hero-logo { margin: 0 auto 1rem; }
.hero-logo img { height: var(--hero-logo-h); width: auto; margin: 0 auto;
  filter: drop-shadow(0 6px 26px rgba(0,13,32,.45)); }

/* ---------- MLS search placeholder ---------- */
.searchbar {
  background: rgba(255,255,255,.97); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 12px; max-width: 940px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px;
}
.searchbar .field { display: flex; flex-direction: column; text-align: left; padding: 6px 14px; border-right: 1px solid var(--line); }
.searchbar .field:last-of-type { border-right: none; }
.searchbar label { font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.searchbar select, .searchbar input { border: none; background: none; font-family: var(--font-body); font-size: .95rem; color: var(--ink); font-weight: 600; outline: none; width: 100%; }
.searchbar .btn { white-space: nowrap; }
.search-note { text-align: center; font-size: .8rem; color: #e7ecf4; margin-top: 14px; opacity: .85; }
.hero-search { display: flex; justify-content: center; margin-top: 6px; }

/* ---------- RealScout simple-search ----------
   Only styleable because the component carries `disable-shadow-dom` (see
   RealScoutSearch.astro). Target the STABLE react-select prefix classes
   (.omnisearch__*) — the emotion hashes next to them change between builds. */
/* Default variant (used on /search). Capped so it doesn't stretch the full
   container — it replaces RealScout's own --rs-ss-widget-width cap. */
.rs-search { display: block; width: 100%; max-width: 560px; }
.rs-search .omnisearch__control {
  border: none; box-shadow: var(--shadow); border-radius: var(--radius-lg);
  background: #fff; min-height: 52px;
}
.rs-search .omnisearch__indicator-separator { display: none; }

/* Oversized hero treatment: big target, big type, leading magnifier. */
.rs-search--lg { max-width: 680px; }
.rs-search--lg .omnisearch__control {
  min-height: 78px; border-radius: 100px; padding-left: 66px; position: relative;
  box-shadow: 0 18px 44px -18px rgba(0,13,32,.55);
}
/* Magnifier drawn as a background SVG so it needs no extra DOM inside the widget. */
.rs-search--lg .omnisearch__control::before {
  content: ""; position: absolute; left: 26px; top: 50%; transform: translateY(-50%);
  width: 27px; height: 27px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001b40' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4.2-4.2'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* The hero centres its text; the search field must not inherit that. */
.rs-search--lg .omnisearch__control,
.rs-search--lg .omnisearch__value-container { padding-block: 0; text-align: left; }
.rs-search--lg .omnisearch__value-container { padding-inline: 0; }
.rs-search--lg .omnisearch__placeholder,
.rs-search--lg .omnisearch__input,
.rs-search--lg .omnisearch__single-value {
  font-family: var(--font-body); font-size: 1.2rem; font-weight: 500;
}
.rs-search--lg .omnisearch__placeholder { color: var(--muted); }
.rs-search--lg .omnisearch__input { color: var(--ink) !important; }
/* Results dropdown: match the site rather than the widget default. */
.rs-search--lg .omnisearch__menu {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; text-align: left;
}
.rs-search--lg .omnisearch__option { font-size: 1rem; padding: 13px 22px; }

@media (max-width: 640px) {
  .rs-search--lg .omnisearch__control { min-height: 62px; padding-left: 54px; }
  .rs-search--lg .omnisearch__control::before { left: 20px; width: 22px; height: 22px; }
  .rs-search--lg .omnisearch__placeholder,
  .rs-search--lg .omnisearch__input { font-size: 1.02rem; }
}

/* generic embed placeholder block */
.embed-slot {
  border: 2px dashed var(--line-2); border-radius: var(--radius-lg); background: var(--cream);
  padding: 56px 30px; text-align: center; color: var(--muted);
}
.embed-slot .ico { width: 54px; height: 54px; margin: 0 auto 16px; color: var(--slate); }
.embed-slot h3 { color: var(--ink); margin-bottom: .5rem; }
.embed-slot code { background: #fff; border: 1px solid var(--line); padding: 2px 8px; border-radius: 4px; font-size: .82rem; color: var(--slate-2); }

/* ---------- Page banner (inner pages) ---------- */
.page-banner { position: relative; background: var(--navy); color: #fff; padding: 64px 0 56px; isolation: isolate; overflow: hidden; }
.page-banner.has-img::after { content:""; position: absolute; inset:0; z-index:-1; background: linear-gradient(90deg, rgba(13,31,54,.92), rgba(13,31,54,.62)); }
.page-banner-bg { position: absolute; inset: 0; z-index: -2; }
.page-banner-bg img { width:100%; height:100%; object-fit: cover; }
.page-banner h1 { color: #fff; }
.page-banner .eyebrow { color: var(--gold-2); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: #aab8d0; margin-top: 14px; }
.breadcrumb a { color: #aab8d0; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

/* property card */
.prop-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.prop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.prop-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.prop-media img { width:100%; height:100%; object-fit: cover; transition: transform .6s var(--ease); }
.prop-card:hover .prop-media img { transform: scale(1.06); }
.prop-tag { position: absolute; top: 14px; left: 14px; background: var(--navy); color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 3px; }
.prop-tag.gold { background: var(--gold); }
.prop-price { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(0deg, rgba(13,31,54,.92), transparent); color: #fff; padding: 30px 18px 14px; }
.prop-price .loc { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #cdd7e8; }
.prop-price .amt { font-family: var(--font-display); font-size: 1.5rem; }
.prop-body { padding: 16px 18px; display: flex; justify-content: space-between; font-size: .86rem; color: var(--body); border-top: 1px solid var(--line); }
.prop-body span b { color: var(--ink); display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* area card */
.area-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.area-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.area-card::after { content:""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(13,31,54,.85) 0%, rgba(13,31,54,.15) 55%, rgba(13,31,54,.35) 100%); transition: background .3s; }
.area-card:hover img { transform: scale(1.07); }
.area-card-body { padding: 26px 24px; width: 100%; }
.area-card .ex { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2); font-weight: 800; }
.area-card h3 { color: #fff; font-size: 1.7rem; margin: 4px 0 0; }
.area-card .go { font-size: .8rem; letter-spacing: .08em; color: #dfe6f1; margin-top: 10px; opacity: 0; transform: translateY(8px); transition: all .3s var(--ease); display: inline-flex; gap: 6px; }
.area-card:hover .go { opacity: 1; transform: translateY(0); }

/* feature / icon cards */
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); height: 100%; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-2); }
.feature .ficon { width: 52px; height: 52px; border-radius: 50%; background: var(--sand); color: var(--gold); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feature .ficon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.feature p { font-size: .96rem; margin: 0; }

/* lifestyle / link card */
.tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.tile img { position: absolute; inset: 0; width:100%; height:100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.tile::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(0deg, rgba(13,31,54,.9), rgba(13,31,54,.12) 70%); }
.tile:hover img { transform: scale(1.06); }
.tile-body { padding: 30px 28px; }
.tile h3 { color: #fff; font-size: 1.55rem; }
.tile p { color: #d7deea; font-size: .92rem; margin: .4rem 0 0; }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2.2rem,4vw,3rem); color: var(--gold); line-height: 1; }
.stat span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.section.navy .stat span { color: #9fb0cc; }

/* ---------- Split / media-text ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px,5vw,72px); align-items: center; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.split-media.framed { position: relative; }
.split-media.framed::before { content:""; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--gold); border-radius: var(--radius-lg); z-index: -1; }

/* Paired team photos (Joe & Jarrett together) */
/* Two matched cutouts on the gradient panel, mirroring the /agents cards.
   Caption sits below rather than over the image — the figures are bottom-flush,
   so an overlaid label would land on their legs. */
.team-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.team-duo figure { margin: 0; }
.team-duo .agent-card-media { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.team-duo figcaption { margin-top: 14px; text-align: center; font-size: .95rem; font-weight: 700; color: var(--ink); }
.team-duo figcaption span { display: block; margin-top: 3px; font-size: .64rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
/* Two columns on a phone leaves each portrait ~150px wide — the faces end up
   about 40px. Stack them so they're actually worth showing. */
@media (max-width: 560px) {
  .team-duo { grid-template-columns: 1fr; gap: 26px; max-width: 320px; margin: 0 auto; }
  /* The offset gold frame is drawn for one image block; against a tall
     stacked pair it reads as a stray line down the side. */
  .team-duo--frame::before { display: none; }
  /* Top bar can't fit links + social at 375px — the text was wrapping to two
     lines. Social lives in the footer too, so drop it here and keep the
     tap-to-call number, which is what actually matters on a phone. */
  .topbar .wrap { gap: 16px; }
  .topbar-social { display: none; }
}
.team-duo--frame { position: relative; }
.team-duo--frame::before { content:""; position: absolute; inset: 16px -16px -16px 16px; border: 1.5px solid var(--gold); border-radius: var(--radius-lg); z-index: -1; }

/* checklist */
.checklist { display: grid; gap: 14px; margin: 1.5rem 0; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-size: 1rem; }
.checklist .ck { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold-ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .7rem; margin-top: 3px; }
.checklist b { color: var(--ink); }

/* prose */
.prose h2 { margin: 2.2rem 0 1rem; }
.prose h3 { margin: 1.8rem 0 .7rem; color: var(--navy); }
.prose p { margin-bottom: 1.2rem; }
.prose ul.bullets { margin: 0 0 1.4rem; display: grid; gap: 8px; }
.prose ul.bullets li { position: relative; padding-left: 26px; }
.prose ul.bullets li::before { content:""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }
.prose blockquote { border-left: 3px solid var(--gold); padding: 6px 0 6px 24px; margin: 1.6rem 0; font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); font-style: italic; line-height: 1.4; }

/* ---------- Agent bio ---------- */
.agent-hero { display: grid; grid-template-columns: 360px 1fr; gap: 48px; align-items: start; }
/* Portraits are transparent cutouts, matched on head size and cut at the same
   point on the body, so they stand on the gradient rather than being cropped
   into it. object-fit: contain + bottom keeps both figures on one baseline. */
.agent-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; background: linear-gradient(160deg, var(--navy-3) 0%, var(--navy) 55%, var(--navy-2) 100%); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.agent-photo img { position: absolute; inset: 0; width:100%; height:100%; object-fit: contain; object-position: bottom center; }
.agent-card-media { position: relative; aspect-ratio: 4/5; background: linear-gradient(160deg, var(--navy-3) 0%, var(--navy) 55%, var(--navy-2) 100%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.agent-card-media img { position: absolute; inset: 0; width:100%; height:100%; object-fit: contain; object-position: bottom center; }
/* Soft glow behind the figure so the cutout doesn't float on flat navy. */
.agent-photo::before, .agent-card-media::before {
  content:""; position: absolute; left: 50%; bottom: -12%; transform: translateX(-50%);
  width: 92%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(128,179,203,.30), transparent 72%);
}
.agent-meta { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.agent-meta .row { display: flex; justify-content: space-between; padding: 13px 18px; font-size: .92rem; border-bottom: 1px solid var(--line); }
.agent-meta .row:last-child { border-bottom: none; }
.agent-meta .row b { color: var(--ink); }
.agent-role { color: var(--gold-ink); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }

/* ---------- Testimonials ---------- */
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; height: 100%; position: relative; }
.quote-card .mark { font-family: var(--font-display); font-size: 4rem; line-height: .6; color: var(--gold); opacity: .35; }
.quote-card p { font-size: 1rem; color: var(--body); }
.quote-card .who { margin-top: 18px; font-weight: 800; color: var(--ink); font-size: .9rem; letter-spacing: .04em; }
.quote-card .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 12px; }
.testimonial-feature { text-align: center; max-width: 820px; margin: 0 auto; }
.testimonial-feature p { font-family: var(--font-display); font-size: clamp(1.3rem,2.4vw,1.9rem); font-style: italic; color: #fff; line-height: 1.45; }
.testimonial-feature .who { color: var(--gold-2); margin-top: 22px; font-style: normal; font-family: var(--font-body); letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; font-weight: 800; }

/* ---------- Lead form (no modal, ever) ---------- */
.lead-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px,4vw,40px); box-shadow: var(--shadow); }
.lead-form.on-navy { box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-group { margin-bottom: 16px; }
.field-group label { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field-group input, .field-group select, .field-group textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
}
.field-group input:focus, .field-group select:focus, .field-group textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(182,146,79,.15); background: #fff;
}
.field-group textarea { resize: vertical; min-height: 110px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: var(--muted); margin: 6px 0 18px; line-height: 1.5; }
.consent input { margin-top: 3px; flex: 0 0 auto; }
.form-note { font-size: .76rem; color: var(--muted); margin-top: 14px; text-align: center; }
.form-success { display:none; background: #eef6ee; border: 1px solid #cfe6cf; color: #2c6b34; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: .92rem; }

/* ---------- CTA band ---------- */
/* CTA sits on a light band with a navy box, to break up stacked navy sections */
.cta-band { background: #fff; text-align: center; padding: clamp(48px,7vw,92px) 0; }
.cta-band > .wrap { position: relative; isolation: isolate; overflow: hidden; background: var(--navy);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: clamp(44px,6vw,78px) clamp(26px,5vw,60px); }
.cta-band > .wrap::before { content:""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(circle at 20% 20%, rgba(91,111,150,.4), transparent 45%),
  radial-gradient(circle at 85% 80%, rgba(182,146,79,.22), transparent 45%); }
.cta-band h2 { color: #fff; max-width: 20ch; margin: 0 auto 1rem; }
.cta-band p { color: #cdd7e8; max-width: 56ch; margin: 0 auto 2rem; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-2); color: #9cadc6; font-size: .92rem; padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-brand .brand-text b { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: .9rem; line-height: 1.7; max-width: 32ch; }
.footer-col h5 { color: #fff; font-family: var(--font-body); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #9cadc6; font-size: .92rem; }
.footer-col a:hover { color: var(--gold-2); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-start; font-size: .92rem; }
.footer-contact svg { width: 16px; height: 16px; color: var(--gold); flex: 0 0 16px; margin-top: 3px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #9cadc6; }
.footer-social svg { width: 16px; height: 16px; display: block; }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: #76859e; }
.footer-bottom a { color: #76859e; }
.footer-bottom a:hover { color: #fff; }
.footer-disclaimer { font-size: .74rem; color: #5f6f88; line-height: 1.6; padding-bottom: 26px; max-width: 100%; }

/* ---------- Mobile nav toggle ---------- */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; z-index: 260; }
.nav-toggle span { width: 26px; height: 2px; background: var(--navy); transition: all .3s var(--ease); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(13,31,54,.5); z-index: 190; opacity: 0; transition: opacity .3s; }
.nav-overlay.show { opacity: 1; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Hero community links ---------- */
/* Bigger than the old eyebrow strip, and every name links to its guide. */
.hero-areas {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 6px 0; margin-bottom: 1.2rem;
}
.hero-areas a {
  position: relative; color: var(--gold-2);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(.9rem, 1.35vw, 1.06rem);
  letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 16px; border-radius: var(--radius);
  transition: color .2s var(--ease), background .2s var(--ease);
}
/* Separator dots between names, but not after the last one. */
.hero-areas a:not(:last-child)::after {
  content: "·"; position: absolute; right: -3px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.4); font-size: .9em;
}
.hero-areas a:hover { color: #fff; background: rgba(255,255,255,.12); }
.hero-areas a:hover::after { color: rgba(255,255,255,.4); }
/* At desktop sizes these sit on 1–2 lines. Left unchecked on a phone the same
   type wraps to seven lines and buries the search box, so tighten it down. */
@media (max-width: 700px) {
  .hero-areas { gap: 2px 0; margin-bottom: .9rem; }
  .hero-areas a { font-size: .74rem; letter-spacing: .1em; padding: 3px 9px; }
}

/* ---------- Lifestyle shortlist ---------- */
.toplist-note {
  max-width: 70ch; margin: 0 auto clamp(30px, 4vw, 46px); text-align: center;
  font-size: .88rem; line-height: 1.7; color: var(--muted);
  padding: 14px 20px; background: rgba(255,255,255,.6);
  border-radius: var(--radius-lg);
}
.toplist { display: grid; gap: 18px; counter-reset: none; }
.toplist-item {
  display: grid; grid-template-columns: 74px 1fr; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.toplist-rank {
  font-family: var(--font-display); font-size: 2rem; font-weight: 600;
  color: var(--gold); line-height: 1; letter-spacing: -.02em;
}
.toplist-body h3 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.toplist-where {
  font-family: var(--font-body); font-size: .68rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.toplist-body > p { font-size: .97rem; line-height: 1.7; margin-bottom: 0; }

/* name/value pairs under each entry */
.toplist-facts { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 18px; }
.toplist-facts > div {
  display: flex; align-items: baseline; gap: 8px;
  background: var(--sand-wash); border-radius: 100px; padding: 7px 15px;
}
.toplist-facts dt {
  font-size: .64rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.toplist-facts dd { font-size: .84rem; font-weight: 700; color: var(--ink); }
.toplist-key {
  margin-top: 28px; text-align: center; font-size: .8rem; color: var(--muted);
}
.toplist-key b { color: var(--ink); }

@media (max-width: 620px) {
  .toplist-item { grid-template-columns: 1fr; gap: 4px; padding: 22px 20px; }
  .toplist-rank { font-size: 1.5rem; }
  .toplist-facts > div { width: 100%; border-radius: var(--radius); }
}

/* ---------- "Why here" themes (55+ page) ---------- */
.life-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.life-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 30px 26px; box-shadow: var(--shadow-sm);
}
.life-card h3 { margin-bottom: 10px; }
.life-card p { font-size: .97rem; line-height: 1.72; margin-bottom: 0; }
.life-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.life-chips li {
  font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  color: var(--slate-2); background: var(--sand-wash);
  border-radius: 100px; padding: 6px 14px;
}
@media (max-width: 820px) { .life-grid { grid-template-columns: 1fr; } }

/* ---------- Thank-you page ---------- */
.ty-hero {
  background: linear-gradient(168deg, var(--navy-2) 0%, var(--navy) 55%, #0d3a6b 100%);
  color: #fff; text-align: center; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 76px);
}
.ty-hero h1 { color: #fff; margin-bottom: .8rem; }
.ty-hero .lead { color: #dbe6f2; }
.ty-check {
  width: 74px; height: 74px; margin: 0 auto 26px; border-radius: 50%;
  display: grid; place-items: center; color: var(--navy);
  background: linear-gradient(150deg, var(--gold-2), var(--gold));
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.6);
}
.ty-check svg { width: 36px; height: 36px; }

/* The global reset only clears `ul`, so an `ol` keeps its native markers and
   would render them alongside the circled counters below. */
.ty-list { counter-reset: ty; display: grid; gap: 20px; margin-top: 1.6rem; list-style: none; }
.ty-list li { position: relative; padding-left: 52px; line-height: 1.7; }
.ty-list li::before {
  counter-increment: ty; content: counter(ty);
  position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
}

.ty-urgent {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(38px, 5vw, 56px); padding: 26px 30px;
  background: var(--sand-wash); border-radius: var(--radius-lg);
}
.ty-urgent h3 { margin-bottom: .3rem; }

.ty-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ty-quotes blockquote { font-size: 1.05rem; color: var(--ink); line-height: 1.6; margin: 6px 0 14px; }
.ty-quotes figcaption { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.ty-tile { display: block; border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.ty-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.ty-tile span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px;
  background: linear-gradient(0deg, rgba(0,13,32,.88), transparent);
  color: #fff; font-family: var(--font-display); font-weight: 600; text-align: center;
}
.ty-tile:hover img { transform: scale(1.05); }

@media (max-width: 760px) {
  .ty-quotes { grid-template-columns: 1fr; }
  .ty-urgent { flex-direction: column; align-items: flex-start; }
}

/* ---------- Community guide ---------- */
/* Compact intro pairing: one paragraph, a smaller image, and the jump link. */
.split--intro { align-items: center; }
.split-media--sm { max-width: 400px; margin-left: auto; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.guide-block { margin-top: clamp(38px, 5vw, 60px); }
.guide-block > h3 { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.guide-count {
  font-family: var(--font-body); font-size: .7rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-ink); background: var(--sand-wash);
  border-radius: 100px; padding: 5px 13px;
}
.guide-note { margin-top: 16px; font-size: .82rem; line-height: 1.65; color: var(--muted); }
.guide-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; }

/* name + one-line note, repeated — beaches, dining */
.guide-list { display: grid; gap: 16px; }
.guide-list li { display: grid; gap: 3px; padding-left: 18px; position: relative; }
.guide-list li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
}
.guide-list b { color: var(--ink); font-weight: 700; }
.guide-list span { font-size: .93rem; color: var(--body); line-height: 1.6; }

/* .bullets markers are scoped to .prose; guide blocks live outside it. */
.guide-block ul.bullets { margin: 0; display: grid; gap: 8px; }
.guide-block ul.bullets li { position: relative; padding-left: 26px; }
.guide-block ul.bullets li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 7px; height: 7px; background: var(--gold); border-radius: 50%;
}

.distance-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.distance {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 18px; text-align: center; background: var(--cream);
}
.distance b { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--navy); line-height: 1; }
.distance span { display: block; margin-top: 7px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 860px) {
  .guide-cols { grid-template-columns: 1fr; gap: 0; }
  .distance-row { grid-template-columns: repeat(2, 1fr); }
  .split-media--sm { max-width: 100%; margin-left: 0; }
}

/* ---------- Preferred lender (finance page) ---------- */
.lender-card { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; background: #fff; box-shadow: var(--shadow); }
.lender-photo { border-radius: var(--radius-lg); overflow: hidden; background: var(--blue-tint); }
.lender-photo img { width: 100%; height: auto; display: block; }
.lender-logo { height: 42px; width: auto; margin-bottom: 18px; }
.lender-meta { display: grid; gap: 10px; margin-top: 20px; }
.lender-meta li { display: flex; gap: 14px; font-size: .93rem; }
.lender-meta span { flex: 0 0 74px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding-top: 3px; }
.lender-meta b { color: var(--ink); }
.lender-disclaimer { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .78rem; line-height: 1.65; color: var(--muted); }

/* Rating is attributed plain text — deliberately NOT AggregateRating schema,
   since these reviews belong to a third party this site didn't collect. */
.lender-rating { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 14px; }
.lender-rating .stars { color: var(--gold); letter-spacing: 2px; font-size: .95rem; }
.lender-rating b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.lender-rating span:last-child { font-size: .85rem; color: var(--muted); }
.lender-rating-src { margin-top: 6px; font-size: .76rem; color: var(--muted); }

/* Full profile page: photo column beside the bio. */
.lender-hero { display: grid; grid-template-columns: 340px 1fr; gap: 52px; align-items: start; }
.lender-photo--lg { max-width: 100%; box-shadow: var(--shadow); }
.lender-hero .lender-meta { margin-top: 22px; }
@media (max-width: 900px) {
  .lender-hero { grid-template-columns: 1fr; gap: 34px; }
  .lender-photo--lg { max-width: 300px; }
}
@media (max-width: 760px) {
  .lender-card { grid-template-columns: 1fr; gap: 26px; padding: 24px; }
  .lender-photo { max-width: 240px; }
}

/* ---------- Broker lockup (Premiere Plus Realty) ---------- */
.broker { display: inline-flex; flex-direction: column; gap: 9px; }
.broker span { font-size: .62rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.broker img { height: 34px; width: auto; }
.broker--light span { color: rgba(255,255,255,.55); }
.broker--light img { opacity: .92; }
.footer-brand .broker { margin-top: 26px; }

/* ---------- Brand band ---------- */
/* The sunset treatment from their promo material, rebuilt as a gradient so it
   costs nothing to load. Tagline + the four service pillars + broker credit. */
.brand-band { position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(120% 80% at 72% 108%, rgba(244,216,181,.42) 0%, rgba(244,216,181,0) 55%),
    radial-gradient(80% 60% at 78% 96%, rgba(255,214,140,.55) 0%, rgba(255,214,140,0) 60%),
    linear-gradient(168deg, var(--navy-2) 0%, var(--navy) 42%, #0d3a6b 74%, #2a5c84 100%);
  padding: clamp(56px, 7vw, 96px) 0; }
/* Ghosted anchor watermark. */
.brand-band::before { content:""; position: absolute; z-index: -1; top: 50%; left: 50%;
  transform: translate(-50%,-50%); width: min(560px, 74%); aspect-ratio: 447/488;
  background: url('/assets/brand/apg-logo-light.png') center/contain no-repeat; opacity: .07; }
.brand-band-inner { text-align: center; }
.brand-tagline { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 1.1rem; }
.brand-tagline .script { font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; color: var(--sand); }
.brand-tagline .drive { font-family: var(--font-display); font-size: clamp(1.05rem, 2.2vw, 1.6rem); font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase; color: #fff; }
.brand-band p.lead { color: #dbe6f2; max-width: 62ch; margin: 0 auto; }

/* Four service pillars, mirroring the icon row on their banner. */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: clamp(36px, 5vw, 56px) auto 0; max-width: 900px; }
.pillar { display: flex; flex-direction: column; align-items: center; gap: 12px; color: #fff; text-align: center; }
.pillar .disc { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--gold-2), var(--gold)); box-shadow: 0 10px 24px -10px rgba(0,0,0,.6);
  transition: transform .25s var(--ease); }
.pillar .disc svg { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* Reserve two lines on every label so a wrapping one ("Waterfront Properties")
   doesn't drop below the others. */
.pillar b { font-family: var(--font-display); font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 1.4; min-height: 2.8em; }
.pillar:hover { color: #fff; }
.pillar:hover .disc { transform: translateY(-4px); }
.brand-band .broker { margin-top: clamp(36px, 5vw, 54px); align-items: center; }

@media (max-width: 760px) {
  .pillars { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.divider { height: 1px; background: var(--line); border: none; margin: 0; }
.pill { display:inline-block; background: var(--sand); color: var(--slate-2); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 100px; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .agent-hero { grid-template-columns: 300px 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; top: 0; right: -100%; width: min(380px, 88vw); height: 100vh;
    background: #fff; flex-direction: column; padding: 90px 24px 40px; overflow-y: auto;
    transition: right .35s var(--ease); z-index: 200; box-shadow: -10px 0 40px -10px rgba(0,0,0,.3);
  }
  .primary-nav.open { right: 0; }
  .nav-overlay { display: block; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .primary-nav > ul > li > a { padding: 14px 4px; border-bottom: 1px solid var(--line); justify-content: space-between; }
  .nav-cta { margin: 16px 0 0; justify-content: center; }
  .mega { position: static; transform: none; box-shadow: none; border: none; border-top: none; padding: 0 0 8px 14px; opacity: 1; visibility: visible; width: auto !important; display: none; }
  .mega-wide { grid-template-columns: 1fr; gap: 14px; }
  .primary-nav li.open .mega { display: block; }
  .primary-nav li.has-mega .caret { pointer-events: none; }
  .searchbar { grid-template-columns: 1fr; }
  .searchbar .field { border-right: none; border-bottom: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; }
  .agent-hero { grid-template-columns: 1fr; }
  .agent-photo { max-width: 320px; }
  .cols-4 { grid-template-columns: repeat(2,1fr); }
  .cols-3 { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); gap: 30px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .topbar-links { gap: 14px; }
  /* Narrow screens: drop 'Search Listings' and its divider, keep contact + phone. */
  .topbar .topbar-search,
  .topbar .topbar-search-sep { display: none; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .lockup-anchor { width: 40px; }
  .lk-the { font-size: 1.3rem; }
  .lk-anchor { font-size: 1.32rem; }
  .lk-sub { font-size: .58rem; }
  .hero { min-height: 80vh; }
}

/* Inline form error (sibling of .form-success inside .lead-form) */
.form-error { display:none; background:#fdeeee; border:1px solid #f0cccc; color:#8c2f2f; padding:14px 16px; border-radius:var(--radius); margin-bottom:16px; font-size:.92rem; }
.form-error a { color:#8c2f2f; text-decoration:underline; }
.btn[disabled] { opacity:.65; cursor:not-allowed; }
