/* ==========================================================================
   Mary D Realtor — marydrealtor.com
   Palette: Navy primary · Cream/off-white light · Blush ACCENT ONLY
   Type: Libre Baskerville (headings) · Public Sans (body)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy:        #22223B;
  --muted-navy:  #4A4E69;
  --mauve:       #9A8C98;
  --blush:       #C9ADA7;   /* ACCENT ONLY — thin lines, underlines, icon fills, hovers */
  --cream:       #F2E9E4;
  --cream-alt:   #F7F5F3;   /* secondary light background for rhythm */
  --off-white:   #FBF9F7;   /* card top of gradient — never pure #fff */

  --font-head:   "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-body:   "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --space-section: 100px;
  --space-section-sm: 60px;
  --container: 1200px;
  --gutter: 24px;

  --radius: 14px;
  --radius-sm: 8px;

  --shadow-card:  0 10px 30px rgba(34, 34, 59, 0.09);
  --shadow-lift:  0 22px 46px rgba(34, 34, 59, 0.17);
  --transition: 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 400; font-style: italic; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--mauve); outline-offset: 3px; border-radius: 3px; }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }

.section { padding-block: var(--space-section); }
.section--tight { padding-block: 66px; }

.section--navy      { background: var(--navy);      color: var(--cream); }
.section--muted     { background: var(--muted-navy); color: var(--cream); }
.section--cream     { background: var(--cream);     color: var(--navy); }
.section--cream-alt { background: var(--cream-alt); color: var(--navy); }

.section--navy h1, .section--navy h2,
.section--muted h1, .section--muted h2 { color: var(--cream); }
.section--navy h3, .section--muted h3 { color: var(--blush); }
.text-center { text-align: center; }

/* ---------- Accents (Libre Baskerville italic) ---------- */
.script-accent { font-family: var(--font-head); font-weight: 400; font-style: italic; color: var(--mauve); }
.section--navy .script-accent, .hero .script-accent { color: var(--blush); }

.script-lead {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.3;
  color: var(--mauve);
  margin-bottom: 10px;
}
.section--navy .script-lead { color: var(--blush); }

/* Eyebrow — uppercase Public Sans label with a hairline lead-in (blueprint signature) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--mauve);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; display: inline-block; }
.section--navy .eyebrow, .section--muted .eyebrow { color: var(--blush); }
.hero .eyebrow { color: var(--cream); }

.section-head { max-width: 720px; margin-bottom: 50px; }
.section-head.text-center { margin-inline: auto; }

/* Blueprint corner frame around hero headline */
.blueprint-frame { position: relative; padding: 28px 32px; }
.blueprint-frame::before, .blueprint-frame::after {
  content: ""; position: absolute; width: 26px; height: 26px; border: 1.5px solid var(--blush);
}
.blueprint-frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.blueprint-frame::after  { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* ---------- Buttons (no blush fills — blush stays an accent) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 30px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--navy); color: var(--cream); }
.btn--primary:hover { background: var(--muted-navy); box-shadow: var(--shadow-card); }

.btn--light { background: var(--cream-alt); color: var(--navy); }
.btn--light:hover { background: var(--off-white); box-shadow: 0 12px 26px rgba(0,0,0,0.22); }

.btn--nav-cta { background: var(--cream-alt); color: var(--navy); min-height: 42px; padding: 10px 22px; }
.btn--nav-cta:hover { background: var(--off-white); box-shadow: 0 8px 18px rgba(0,0,0,0.22); }

.btn--outline-light { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn--outline-light:hover { background: rgba(242,233,228,0.12); }

.btn--outline-dark { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline-dark:hover { background: var(--navy); color: var(--cream); }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* Text link with blush underline accent */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.95rem; color: var(--muted-navy);
  border-bottom: 1.5px solid var(--blush); padding-bottom: 3px;
  transition: gap var(--transition), color var(--transition);
}
.link-arrow:hover { gap: 14px; color: var(--navy); }
.section--navy .link-arrow, .section--muted .link-arrow { color: var(--blush); }
.section--navy .link-arrow:hover { color: var(--cream); }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(34, 34, 59, 0.97);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(154, 140, 152, 0.25);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--cream); white-space: nowrap; }
.brand span { color: var(--blush); }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--cream); padding: 6px 0; position: relative; transition: color var(--transition); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--blush); transition: width var(--transition);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blush); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.mobile-cta { display: none; }
.nav-actions { display: flex; align-items: center; gap: 16px; }

.lang-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; border: 1.5px solid rgba(242,233,228,0.5); border-radius: 999px;
  padding: 8px 16px; min-height: 40px; color: var(--cream);
  font-family: var(--font-body); font-weight: 500; font-size: 0.9rem; letter-spacing: 0.01em; cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.lang-pill:hover { background: rgba(242,233,228,0.12); border-color: var(--blush); }
.lang-pill__globe { width: 20px; height: 20px; flex: none; }
.lang-pill__chev { width: 13px; height: 13px; flex: none; opacity: 0.7; }

.nav-toggle { display: none; align-items: center; justify-content: center; background: transparent; border: 0; width: 44px; height: 44px; padding: 10px; color: var(--cream); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; height: 2px; width: 24px; background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  min-height: min(88vh, 760px); display: flex; align-items: flex-end;
  color: var(--cream); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(34,34,59,0.55) 0%, rgba(34,34,59,0.75) 45%, rgba(34,34,59,0.95) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero__inner { padding-block: 74px; max-width: 880px; margin-inline: auto; text-align: center; }
.hero h1 { color: var(--cream); margin-bottom: 22px; font-size: clamp(2.7rem, 7vw, 4.8rem); }
.hero__sub { font-size: 1.15rem; color: var(--cream); max-width: 620px; margin: 0 auto 30px; }
.hero .btn-row { margin-top: 8px; justify-content: center; }
.hero .eyebrow { justify-content: center; }

/* Interior page header */
.page-header { position: relative; isolation: isolate; color: var(--cream); overflow: hidden; padding-block: clamp(74px, 12vw, 130px); }
.page-header__media { position: absolute; inset: 0; z-index: 0; }
.page-header__media img { width: 100%; height: 100%; object-fit: cover; }
.page-header::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(120deg, rgba(34,34,59,0.88) 0%, rgba(34,34,59,0.62) 100%); }
/* About hero: same overlay direction as other page-headers, ~15% darker */
.page-header--about::after {
  background: linear-gradient(120deg, rgba(34,34,59,0.93) 0%, rgba(34,34,59,0.75) 100%);
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: var(--cream); max-width: 22ch; }
.page-header p { color: var(--cream); max-width: 620px; font-size: 1.1rem; }

/* Hero rotating word */
.rotator { position: relative; display: block; height: 1.25em; overflow: hidden; color: var(--blush); }
.rotator__word {
  position: absolute; left: 0; right: 0; top: 0; text-align: center; opacity: 0; transform: translateY(0.5em);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22,0.61,0.36,1); white-space: nowrap;
}
.rotator__word.is-active { opacity: 1; transform: none; }
.rotator__word.is-exit { opacity: 0; transform: translateY(-0.5em); }
@media (prefers-reduced-motion: reduce) {
  .rotator { height: auto; }
  .rotator__word { position: static; opacity: 1; transform: none; transition: none; }
  .rotator__word:not(:first-child) { display: none; }
}

/* ==========================================================================
   Testimonials carousel
   ========================================================================== */
.testi { position: relative; max-width: 940px; margin-inline: auto; }
.testi__viewport { position: relative; min-height: 260px; }
.testi__slide {
  position: absolute; inset: 0; display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: start;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}
.testi__slide.is-active { opacity: 1; visibility: visible; transform: none; position: relative; }
.testi__num { font-family: var(--font-head); font-weight: 700; font-size: clamp(3.5rem, 9vw, 6rem); line-height: 0.9; color: rgba(201,173,167,0.28); }
.testi__body blockquote { margin: 0 0 26px; font-family: var(--font-head); font-style: italic; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.4; color: var(--cream); }
.testi__author { display: flex; align-items: center; gap: 16px; }
.testi__avatar { width: 54px; height: 54px; flex: none; border-radius: 50%; background: var(--blush); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; overflow: hidden; }
.testi__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi__name { font-weight: 700; color: var(--cream); font-size: 1rem; }
.testi__role { color: var(--blush); font-size: 0.9rem; }
.testi__controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; }
.testi__progress { display: flex; gap: 10px; }
.testi__bar { width: 40px; height: 2px; background: rgba(242,233,228,0.28); border: 0; padding: 0; cursor: pointer; transition: background var(--transition); }
.testi__bar.is-active { background: var(--blush); }
.testi__count { font-size: 0.85rem; letter-spacing: 0.14em; color: var(--mauve); }
.testi__arrows { display: flex; gap: 12px; }
.testi__arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(242,233,228,0.4); background: transparent; color: var(--cream); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--transition), border-color var(--transition); }
.testi__arrow:hover { background: rgba(242,233,228,0.12); border-color: var(--blush); }
.testi__arrow svg { width: 20px; height: 20px; }
@media (max-width: 620px) {
  .testi__slide { grid-template-columns: 1fr; gap: 8px; }
  .testi__num { font-size: 3rem; }
  .testi__controls { flex-wrap: wrap; gap: 16px; }
}

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 16px 24px; text-align: center; border-right: 1px solid rgba(154,140,152,0.35); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-head); font-weight: 700; font-size: 1.55rem; display: block; margin-bottom: 4px; }
.section--cream .stat__num, .section--cream-alt .stat__num { color: var(--navy); }
.section--navy .stat__num { color: var(--blush); }
.stat__label { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mauve); }
.section--navy .stat__label { color: var(--cream); }

/* Credentials list (About) */
.cred-list { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 18px 56px; }
.cred-list li { display: flex; align-items: flex-start; gap: 14px; color: var(--cream); font-weight: 500; font-size: 1rem; }
.cred-list svg { width: 22px; height: 22px; color: var(--blush); flex: none; margin-top: 2px; }
@media (max-width: 640px) { .cred-list { grid-template-columns: minmax(0, 340px); justify-content: center; gap: 14px; } }

/* Bilingual callout block */
.es-callout { background: rgba(154,140,152,0.14); border-left: 4px solid var(--blush); border-radius: var(--radius-sm); padding: 20px 22px; margin-top: 24px; }
.es-callout p { font-style: italic; color: var(--muted-navy); margin: 0; }
.section--navy .es-callout { background: rgba(242,233,228,0.08); }
.section--navy .es-callout p { color: var(--cream); }

/* ==========================================================================
   Split feature
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.6s var(--transition); }
.split__media:hover img { transform: scale(1.04); }
.split__body p { font-size: 1.05rem; }
.split__body .btn-row { margin-top: 28px; }

/* ==========================================================================
   Cards
   ========================================================================== */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Service cards — elevated, bordered accent, hover lift + slide-in arrow */
.card {
  position: relative;
  background: linear-gradient(165deg, var(--off-white) 0%, var(--cream-alt) 100%);
  border: 1px solid rgba(154,140,152,0.28);
  border-top: 3px solid var(--mauve);
  border-radius: var(--radius);
  padding: 34px 28px 30px;
  box-shadow: var(--shadow-card);
  height: 100%;
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); border-top-color: var(--blush); }
.card__icon { width: 52px; height: 52px; margin-bottom: 20px; color: var(--muted-navy); stroke-width: 1.4; }
.card h3 { font-style: normal; font-weight: 700; font-size: 1.22rem; margin-bottom: 10px; }
.card p { font-size: 0.98rem; color: var(--muted-navy); margin: 0; }
.card__more {
  margin-top: 18px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted-navy); display: inline-flex; align-items: center; gap: 8px;
  opacity: 0; transform: translateX(-6px); transition: opacity var(--transition), transform var(--transition);
}
.card:hover .card__more { opacity: 1; transform: none; }

.section--navy .card { background: rgba(242,233,228,0.06); border-color: rgba(201,173,167,0.3); border-top-color: var(--blush); color: var(--cream); }
.section--navy .card h3 { color: var(--cream); }
.section--navy .card p { color: var(--cream); opacity: 0.85; }
.section--navy .card__icon { color: var(--blush); }
.section--navy .card__more { color: var(--blush); }

/* Community cards (image-led, isolated stacking so images always render) */
.place-card {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius); min-height: 320px;
  display: flex; align-items: flex-end; color: var(--cream);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.place-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 0.6s var(--transition); }
.place-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(34,34,59,0) 32%, rgba(34,34,59,0.86) 100%); }
.place-card__body { position: relative; z-index: 2; padding: 24px; }
.place-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.place-card:hover img { transform: scale(1.06); }
.place-card h3 { font-style: normal; font-weight: 700; color: var(--cream); font-size: 1.35rem; margin-bottom: 4px; }
.place-card p { font-size: 0.92rem; color: var(--cream); opacity: 0.92; margin: 0; }

/* Property cards — fixed image height, equal card height */
.property-card {
  display: flex; flex-direction: column; height: 100%;
  background: linear-gradient(165deg, var(--off-white) 0%, var(--cream-alt) 100%);
  border: 1px solid rgba(154,140,152,0.28);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.property-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.property-card__media { position: relative; height: 240px; overflow: hidden; }
.property-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--transition); }
.property-card:hover .property-card__media img { transform: scale(1.05); }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--navy); color: var(--cream);
  font-weight: 700; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(201,173,167,0.5);
}
.property-card__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.property-card__price { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--navy); }
.property-card__addr { color: var(--muted-navy); font-size: 0.95rem; }
.property-card__builder { color: var(--mauve); font-size: 0.85rem; letter-spacing: 0.03em; }
.specs { display: flex; gap: 0; margin: 0; padding: 14px 0 0; list-style: none; border-top: 1px solid rgba(154,140,152,0.35); }
.specs li { list-style: none; flex: 1 1 0; text-align: center; border-right: 1px solid rgba(154,140,152,0.35); font-size: 0.85rem; color: var(--muted-navy); }
.specs li:last-child { border-right: 0; }
.specs strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; }
.property-card .link-arrow { margin-top: 16px; align-self: flex-start; }

/* Listing cards — image-fill with gradient + hover reveal (Home + New Homes) */
/* Listing grid: 2-up LANDSCAPE cards so wide floor-plan images fill the frame with cover.
   Flex + wrap centers a lone last card (e.g. the home page's 3rd listing). */
.listing-grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; }
.listing-grid .listing-card { flex: 1 1 440px; max-width: 560px; }

/* Listing cards (home + Find a Home): seamless image background, text on top, price revealed on hover. */
.listing-card {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9; min-height: 300px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--cream);
  border: 1px solid rgba(154,140,152,0.28);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.listing-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.listing-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 0.6s var(--transition); }
.listing-card:hover .listing-card__img { transform: scale(1.08); }
.listing-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(34,34,59,0.92) 0%, rgba(34,34,59,0.55) 45%, rgba(34,34,59,0.15) 100%); }
.listing-card .badge { z-index: 3; }
.listing-card__content { position: relative; z-index: 2; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.listing-card__head h3 { font-style: normal; font-weight: 700; font-size: 1.5rem; color: var(--cream); margin: 0 0 2px; }
.listing-card__loc { font-size: 0.9rem; color: var(--cream); opacity: 0.82; margin: 0; letter-spacing: 0.02em; }
.listing-card .specs { border-top-color: rgba(242,233,228,0.35); }
.listing-card .specs li { color: var(--cream); border-right-color: rgba(242,233,228,0.35); text-align: center; }
.listing-card .specs strong { color: var(--cream); }
/* revealed on hover — smooth grid-rows expand (no max-height jank) */
.listing-card__reveal {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows 0.4s ease, opacity 0.3s ease;
}
.listing-card__reveal-inner { overflow: hidden; min-height: 0; display: grid; gap: 12px; }
.listing-card:hover .listing-card__reveal,
.listing-card:focus-within .listing-card__reveal { grid-template-rows: 1fr; opacity: 1; }
.listing-card__overview { font-size: 0.92rem; color: var(--cream); opacity: 0.85; margin: 0; }
.listing-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.listing-card__price { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: var(--cream); }
.listing-card__foot .btn { min-height: 42px; padding: 10px 20px; }
/* touch / no-hover devices: always show the reveal so price + CTA are visible */
@media (hover: none) { .listing-card__reveal { grid-template-rows: 1fr; opacity: 1; } }

/* Listing filter bar (New Homes) */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.filter-bar button {
  background: transparent; border: 1px solid rgba(242,233,228,0.4); color: var(--cream);
  border-radius: 999px; padding: 10px 22px; min-height: 44px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.filter-bar button:hover { border-color: var(--blush); }
.filter-bar button[aria-pressed="true"] { background: var(--cream-alt); color: var(--navy); border-color: var(--cream-alt); }
.listing-empty { text-align: center; max-width: 540px; margin: 8px auto 0; color: var(--cream); }
.listing-empty p { opacity: 0.9; margin-bottom: 18px; }

/* Stacked service cards — Home "What I do for you" (per Uiverse reference component) */
.stack-card { position: relative; isolation: isolate; height: 100%; border-radius: 24px; transition: all 0.48s cubic-bezier(0.23,1,0.32,1); }
.stack-card__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 26px 28px; border-radius: 22px;
  background: var(--navy); color: var(--cream);
}
.stack-card::before, .stack-card::after {
  content: ""; position: absolute; left: 50%; translate: -50% 0;
  border-radius: 22px; transform-origin: bottom;
  box-shadow: 0 10px 26px rgba(34,34,59,0.16);
  transition: all 0.48s cubic-bezier(0.23,1,0.32,1);
}
.stack-card::before { top: -4%; width: 90%; height: 90%; background: var(--mauve); z-index: 1; }
.stack-card::after  { top: -8%; width: 80%; height: 80%; background: var(--blush); z-index: 0; }
.stack-card:hover { transform: translateY(-16px); }
.stack-card:hover::before { rotate: -8deg; top: 0; width: 100%; height: 100%; }
.stack-card:hover::after  { rotate: 8deg;  top: 0; width: 100%; height: 100%; }
.stack-card__icon { width: 40px; height: 40px; color: var(--blush); stroke-width: 1.4; }
.stack-card h3 { font-style: normal; font-weight: 700; font-size: 1.18rem; color: var(--cream); margin: 0; }
.stack-card__para { z-index: 1; font-size: 0.98rem; color: var(--cream); opacity: 0.85; margin: 0; }
.stack-card__link { z-index: 1; margin-top: 6px; color: var(--blush); font-weight: 700; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 8px; transition: gap var(--transition); }
.stack-card__link:hover { gap: 14px; text-decoration: underline; }

/* ==========================================================================
   Services list blocks
   ========================================================================== */
.service-block { display: grid; grid-template-columns: 64px 1fr; gap: 26px; padding: 34px 0; border-bottom: 1px solid rgba(154,140,152,0.3); align-items: start; }
.service-block:last-child { border-bottom: 0; }
.service-block__num { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; line-height: 1; color: var(--mauve); }
.service-block h2 { font-size: 1.5rem; margin-bottom: 12px; }
.service-block p { color: var(--muted-navy); max-width: 62ch; }
.section--navy .service-block__num { color: var(--blush); }
.section--navy .service-block p { color: var(--cream); opacity: 0.86; }

/* ==========================================================================
   Community deep-dives
   ========================================================================== */
.community { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: 60px; border-bottom: 1px solid rgba(154,140,152,0.3); scroll-margin-top: 90px; }
.community:last-child { border-bottom: 0; }
.community:nth-child(even) .community__media { order: 2; }
.community__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.community__media img { width: 100%; height: 380px; object-fit: cover; transition: transform 0.6s var(--transition); }
.community__media:hover img { transform: scale(1.04); }
.community__great { font-style: italic; font-family: var(--font-head); color: var(--muted-navy); border-left: 3px solid var(--blush); padding-left: 16px; margin: 18px 0 22px; }

/* ==========================================================================
   Pull quote
   ========================================================================== */
.pullquote { max-width: 900px; margin-inline: auto; text-align: center; }
.pullquote blockquote { font-family: var(--font-head); font-style: italic; font-weight: 400; font-size: clamp(1.5rem, 3.4vw, 2.15rem); line-height: 1.4; color: var(--cream); margin: 0 0 22px; }
.pullquote cite { font-family: var(--font-body); font-style: normal; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.85rem; color: var(--blush); }

/* ==========================================================================
   CTA banner (light — never blush background)
   ========================================================================== */
.cta-banner { text-align: center; }
.cta-banner .script-lead { display: block; }
.cta-banner h2 { margin-bottom: 20px; }
.section--cream .cta-banner h2, .section--cream-alt .cta-banner h2 { color: var(--navy); }
.cta-banner p { max-width: 560px; margin-inline: auto; margin-bottom: 28px; color: var(--muted-navy); }
.section--navy .cta-banner p { color: var(--cream); opacity: 0.9; }

/* ==========================================================================
   Forms / contact
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.form-card {
  background: linear-gradient(165deg, var(--off-white) 0%, var(--cream-alt) 100%);
  border: 1px solid rgba(154,140,152,0.28);
  border-radius: 18px; padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-card);
}
.form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; font-size: 0.9rem; letter-spacing: 0.02em; }
.field .req { color: var(--mauve); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--navy);
  background: var(--off-white); border: 1.5px solid var(--mauve); border-radius: var(--radius-sm);
  padding: 14px 16px; min-height: 50px; width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--muted-navy); box-shadow: 0 0 0 3px rgba(154,140,152,0.35);
}
.field .error-msg { color: #9c3b3b; font-size: 0.82rem; min-height: 1em; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #9c3b3b; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.submit-row { margin-top: 12px; }
.form-note { font-size: 0.85rem; color: var(--mauve); margin-top: 4px; }
.form-success { background: rgba(154,140,152,0.14); border: 1px solid var(--mauve); border-left: 4px solid var(--blush); border-radius: var(--radius-sm); padding: 16px 18px; color: var(--navy); font-weight: 500; }

/* Contact info column */
.contact-info { display: grid; gap: 14px; }
.info-item {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  background: linear-gradient(165deg, var(--off-white) 0%, var(--cream-alt) 100%);
  border: 1px solid rgba(154,140,152,0.28); border-radius: var(--radius);
  padding: 20px; transition: transform var(--transition), box-shadow var(--transition);
}
.info-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.info-item__icon { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--mauve); color: var(--muted-navy); }
.info-item__icon svg { width: 20px; height: 20px; }
.info-item h3 { font-style: normal; font-weight: 700; font-size: 1rem; margin: 2px 0 4px; }
.info-item p, .info-item a { color: var(--muted-navy); font-size: 0.95rem; margin: 0; }
.info-item a { border-bottom: 1px solid var(--blush); padding-bottom: 1px; }
.info-item a:hover { color: var(--navy); }
.socials { display: flex; gap: 12px; margin-top: 6px; }
.socials a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--mauve); border-radius: 50%; color: var(--muted-navy); transition: background var(--transition), color var(--transition), border-color var(--transition); }
.socials a:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.socials svg { width: 20px; height: 20px; }

/* Service-area graphic */
.area-map { background: var(--navy); border-radius: var(--radius); padding: 44px; color: var(--cream); text-align: center; }
.area-map h2 { color: var(--cream); }
.area-map__pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }
.area-map__pills span { border: 1px solid var(--blush); color: var(--cream); border-radius: 999px; padding: 8px 18px; font-size: 0.9rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: var(--cream); padding-block: 64px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 40px; }
.site-footer .brand { display: inline-block; margin-bottom: 14px; }
.footer-tagline { font-family: var(--font-head); font-style: italic; font-size: 1.15rem; line-height: 1.3; color: var(--blush); margin-bottom: 12px; }
.site-footer p { color: rgba(242,233,228,0.8); font-size: 0.92rem; }
.footer-col h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mauve); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(242,233,228,0.85); font-size: 0.94rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--blush); }
.footer-socials { display: flex; gap: 14px; margin-top: 16px; }
.footer-socials a { width: 40px; height: 40px; border: 1px solid rgba(242,233,228,0.4); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: background var(--transition), color var(--transition), border-color var(--transition); }
.footer-socials a:hover { background: var(--cream-alt); color: var(--navy); border-color: var(--cream-alt); }
.footer-socials svg { width: 18px; height: 18px; }
.legal-bar { margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(154,140,152,0.3); display: grid; gap: 8px; }
.legal-bar p, .legal-bar a { font-size: 0.8rem; color: rgba(242,233,228,0.72); line-height: 1.6; }
.legal-bar a { border-bottom: 1px solid rgba(201,173,167,0.4); }
.legal-bar a:hover { color: var(--blush); }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.copyright { margin-top: 14px; font-size: 0.78rem; color: rgba(242,233,228,0.55); }

/* ==========================================================================
   Footer brokerage logo
   ========================================================================== */
.footer-logo { height: 62px; width: auto; margin-bottom: 16px; display: block; }

/* ==========================================================================
   Buyer's Guide lead capture
   ========================================================================== */
.guide-gate {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 52px); align-items: center;
  background: linear-gradient(165deg, var(--off-white) 0%, var(--cream-alt) 100%);
  border: 1px solid rgba(154,140,152,0.28); border-radius: 18px;
  padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-card);
}
.guide-gate__text h2 { margin-bottom: 12px; }
.guide-gate__text p { color: var(--muted-navy); margin: 0; }
.guide-gate__form { display: flex; flex-direction: column; gap: 14px; }
.guide-gate__form input {
  font-family: var(--font-body); font-size: 1rem; color: var(--navy);
  background: var(--off-white); border: 1.5px solid var(--mauve); border-radius: var(--radius-sm);
  padding: 14px 16px; min-height: 50px; width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.guide-gate__form input:focus { outline: none; border-color: var(--muted-navy); box-shadow: 0 0 0 3px rgba(154,140,152,0.35); }
.guide-gate__form .btn { width: 100%; }
.guide-gate__note { font-size: 0.82rem; color: var(--mauve); margin: 0; }
.guide-gate__error { color: #9c3b3b; font-size: 0.85rem; min-height: 1em; margin: 0; }
.guide-gate__success { text-align: left; }
.guide-gate__success p { color: var(--navy); font-weight: 500; margin-bottom: 14px; }
@media (max-width: 780px) { .guide-gate { grid-template-columns: 1fr; } }

/* ==========================================================================
   Certifications (About)
   ========================================================================== */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cert-card {
  background: linear-gradient(165deg, var(--off-white) 0%, var(--cream-alt) 100%);
  border: 1px solid rgba(154,140,152,0.28); border-top: 3px solid var(--blush);
  border-radius: var(--radius); padding: 28px 26px; height: 100%; box-shadow: var(--shadow-card);
}
.cert-card__icon { width: 40px; height: 40px; color: var(--muted-navy); margin-bottom: 14px; }
.cert-card h3 { font-style: normal; font-weight: 700; font-size: 1.08rem; color: var(--navy); margin: 0 0 6px; }
.cert-card p { color: var(--muted-navy); font-size: 0.92rem; margin: 0; }
@media (max-width: 860px) { .cert-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.faq-col__title { font-family: var(--font-head); font-style: italic; font-weight: 400; font-size: 1.5rem; color: var(--muted-navy); margin: 0 0 10px; padding-bottom: 12px; border-bottom: 2px solid var(--blush); }
.faq-item { border-bottom: 1px solid rgba(154,140,152,0.35); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 0; font-weight: 600; font-size: 1.02rem; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--mauve); border-bottom: 2px solid var(--mauve);
  transform: rotate(45deg); transition: transform var(--transition); margin-top: -4px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-item summary:hover { color: var(--muted-navy); }
.faq-answer { padding: 0 0 20px; color: var(--muted-navy); font-size: 0.98rem; line-height: 1.65; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; gap: 8px; } .faq-col + .faq-col { margin-top: 8px; } }

/* ==========================================================================
   Bilingual visibility
   ========================================================================== */
.lang-es { display: none; }
html[data-lang="es"] .lang-es { display: revert; }
html[data-lang="es"] .lang-en { display: none; }
span.lang-es, a.lang-es, strong.lang-es, cite.lang-es { display: none; }
html[data-lang="es"] span.lang-es, html[data-lang="es"] a.lang-es,
html[data-lang="es"] strong.lang-es, html[data-lang="es"] cite.lang-es { display: inline; }

/* ==========================================================================
   Scroll reveal + stagger
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 640ms ease, transform 640ms cubic-bezier(0.22,0.61,0.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.grid > .reveal:nth-child(2) { transition-delay: 90ms; }
.grid > .reveal:nth-child(3) { transition-delay: 180ms; }
.grid > .reveal:nth-child(4) { transition-delay: 270ms; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  :root { --space-section: 74px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--navy);
    border-bottom: 1px solid rgba(154,140,152,0.3); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 16px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(154,140,152,0.15); }
  .nav-links a { display: block; padding: 15px var(--gutter); font-size: 1rem; }
  .nav-links a::after { display: none; }
  .nav-links .mobile-cta { display: block; padding: 16px var(--gutter) 4px; }
  .nav-links .mobile-cta .btn { display: inline-flex; width: 100%; }
  /* keep the in-menu CTA text navy (readable on the light button), not cream/blush like the nav links */
  .nav-links .mobile-cta .btn,
  .nav-links .mobile-cta .btn:hover,
  .nav-links .mobile-cta .btn:focus { color: var(--navy); }

  .split, .community, .contact-layout { grid-template-columns: 1fr; }
  .split--reverse .split__media, .community:nth-child(even) .community__media { order: 0; }
  .split__media img { aspect-ratio: 3 / 2; }
  .community__media img { height: 260px; }

  .stat-strip { grid-template-columns: 1fr 1fr; gap: 1px; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(154,140,152,0.3); padding-block: 20px; }
}
@media (max-width: 640px) {
  .grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; gap: 8px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .legal-links { flex-direction: column; gap: 8px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .place-card:hover, .property-card:hover, .info-item:hover, .split__media:hover img { transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

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

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--cream-alt); color: var(--navy); padding: 12px 20px; font-weight: 700; z-index: 200; border-radius: 0 0 var(--radius-sm) 0; }
.skip-link:focus { left: 0; }
