/* ============================================
   Jed Bratt — San Diego Real Estate Broker
   ============================================ */

:root {
  --navy: #0f1f3d;
  --navy-light: #1a3058;
  --teal: #1a7a8a;
  --teal-light: #2a9aad;
  --brand-blue: #2b7fff;
  --youtube-red: #ff0000;
  --sand: #f5f1eb;
  --sand-dark: #e8e2d8;
  --gold: #c4a052;
  --gold-light: #d4b86a;
  --white: #ffffff;
  --text: #2c3440;
  --text-muted: #5c6672;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --shadow: 0 4px 24px rgba(15, 31, 61, 0.08);
  --shadow-lg: 0 12px 48px rgba(15, 31, 61, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 128px;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--teal-light);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
}

.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-dark .section-label {
  color: var(--gold-light);
}

.section-dark .section-title {
  color: var(--white);
}

.section-dark .section-desc {
  color: rgba(255, 255, 255, 0.75);
}

.section-sand {
  background: var(--sand);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-desc {
  margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

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

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

.btn-full {
  width: 100%;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border-color: transparent;
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  transform: translateY(-2px);
}

.youtube-play-icon {
  flex-shrink: 0;
}

.youtube-play-icon path {
  fill: var(--youtube-red);
}

.youtube-play-icon polygon {
  fill: var(--white);
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 31, 61, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 12px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  min-width: 0;
}

.nav-phone {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.nav-phone:hover {
  color: var(--gold-light);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1.2;
}

.logo-img {
  height: 36px;
  width: auto;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.logo-title {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.nav-links li {
  flex-shrink: 0;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  padding: 8px 14px !important;
  background: var(--teal) !important;
  color: var(--white) !important;
  border-radius: 6px;
  font-size: 0.82rem !important;
}

.nav-cta:hover {
  background: var(--teal-light) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: visible;
  isolation: isolate;
  z-index: 1;
}

/* Static fixed backdrop — content (and trust bar) scroll over it while it fades */
.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
  background-position: center 42%;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translateZ(0);
  will-change: opacity;
  animation: none;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.hero-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 1;
  pointer-events: none;
  will-change: opacity;
  background: linear-gradient(
    105deg,
    rgba(15, 31, 61, 0.88) 0%,
    rgba(15, 31, 61, 0.72) 45%,
    rgba(15, 31, 61, 0.4) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 72px 24px 80px;
  will-change: opacity, transform;
}

.hero-text {
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-blue);
  box-shadow: 0 0 12px var(--brand-blue);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-trust-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.hero-stars {
  color: var(--gold);
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.12);
}

.hero-photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
}

.hero-photo {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-float-card {
  position: absolute;
  bottom: -16px;
  left: -24px;
  background: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.hero-float-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.hero-float-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

/* ---- Trust Bar ---- */
/* Sits above the fixed hero image and scrolls with the page */
.trust-bar {
  position: relative;
  z-index: 3;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0;
  box-shadow: 0 -8px 32px rgba(15, 31, 61, 0.18);
}

/* Keep page content above the fixed hero backdrop.
   Exclude fixed chrome (sticky action bar) so it stays viewport-fixed
   and above scrolling sections — main > * used to force position:relative
   + z-index:3 and stack buy/sell content over the bar. */
main > *:not(.hero):not(.sticky-action-bar) {
  position: relative;
  z-index: 3;
}

.footer {
  position: relative;
  z-index: 3;
}

.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  text-align: center;
  padding: 8px;
}

.trust-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.trust-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4/5;
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 60%;
  height: 60%;
  border: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.about-content p strong {
  color: var(--navy);
}

.about-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  list-style: none;
  margin-top: 32px;
}

.about-credentials li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
}

.about-credentials svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
  flex-shrink: 0;
}

/* ---- Personal ---- */
.personal-header {
  text-align: center;
  margin-bottom: 48px;
}

.personal-header .section-desc {
  margin: 0 auto;
}

.personal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.personal-content p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.75;
}

.personal-gallery {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(2, minmax(180px, 1fr));
  gap: 14px;
  min-height: 440px;
}

.personal-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.personal-photo img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.personal-photo:hover img {
  transform: scale(1.04);
}

.personal-photo-feature {
  grid-row: 1 / -1;
}

.personal-photo:nth-child(2) img {
  object-position: center 40%;
}

.personal-photo-travel {
  background: rgba(10, 20, 40, 0.85);
}

.personal-photo-travel img {
  object-fit: contain;
  object-position: center center;
}

.personal-photo-travel:hover img {
  transform: scale(1.02);
}

.personal-photo figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(15, 31, 61, 0.85));
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ---- Services ---- */
.services {
  background: var(--sand);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 122, 138, 0.1);
  border-radius: 10px;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  color: var(--teal);
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--navy);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.page-intro {
  padding-top: 120px;
  padding-bottom: 40px;
  position: relative;
}

.page-intro.section-sand::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 48px));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sand-dark), transparent);
}

/* Above-the-fold action panel (Buy / conversion pages) */
.page-intro-action {
  padding-bottom: 28px;
}

.page-intro-action .section-header {
  margin-bottom: 20px;
}

.page-intro-action .section-desc {
  margin-bottom: 0;
}

.page-action-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 28px;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 55%, #163a52 100%);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: 0 12px 40px rgba(15, 31, 61, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.page-action-panel::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -8%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 154, 173, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.page-action-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.page-action-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.page-action-lead {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--white);
}

.page-action-buttons {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.page-action-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-action-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.btn-action-call {
  background: #22c55e !important;
  color: #062a12 !important;
  border: none !important;
}

.btn-action-call:hover {
  background: #4ade80 !important;
  color: #062a12 !important;
  transform: translateY(-1px);
}

.btn-action-text {
  background: var(--white) !important;
  color: var(--navy) !important;
  border: none !important;
}

.btn-action-text:hover {
  background: var(--sand) !important;
  color: var(--navy) !important;
  transform: translateY(-1px);
}

.btn-action-schedule {
  background: var(--teal) !important;
  color: var(--white) !important;
  border: 2px solid rgba(255, 255, 255, 0.25) !important;
}

.btn-action-schedule:hover {
  background: var(--teal-light) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

.page-action-note {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.page-action-note a {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-action-note a:hover {
  color: var(--white);
}

/* Sticky action bar after scrolling past hero CTA */
.sticky-action-bar,
main > .sticky-action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  /* Above main content stacking (z-index: 3) and header chrome (1000);
     stays under mobile open nav (1001) only at top of viewport — bar is bottom. */
  z-index: 1100;
  background: rgba(15, 31, 61, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.2);
  padding: 10px 0;
  transform: translateY(110%);
  transition: transform 0.28s ease;
}

.sticky-action-bar.is-visible {
  transform: translateY(0);
}

.sticky-action-bar[hidden] {
  display: block !important;
  pointer-events: none;
}

.sticky-action-bar.is-visible {
  pointer-events: auto;
}

.sticky-action-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sticky-action-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
  white-space: nowrap;
}

.sticky-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.sticky-action-buttons .btn {
  min-height: 42px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
}

body.has-sticky-action {
  padding-bottom: 72px;
}

@media (max-width: 900px) {
  .page-action-panel {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px 18px;
  }

  .page-action-buttons {
    justify-content: stretch;
    flex-direction: column;
  }

  .page-action-buttons .btn {
    width: 100%;
  }

  .sticky-action-label {
    display: none;
  }

  .sticky-action-buttons {
    width: 100%;
  }

  .sticky-action-buttons .btn {
    flex: 1;
    min-width: 0;
    padding: 10px 8px;
    font-size: 0.85rem;
  }
}

.market-data.section {
  padding-top: 0;
}

.market-dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}

.market-dashboard-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.market-chart-card,
.market-rates-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius-lg);
  padding: 20px 20px 16px;
  box-shadow: var(--shadow);
}

.market-rates-card {
  text-align: center;
}

.market-rates-card-primary {
  scroll-margin-top: 96px;
}

.market-housing-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.market-housing-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  margin-bottom: 4px;
}

.market-housing-desc {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.market-chart-header h2,
.market-chart-header h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.25;
}

.market-chart-header h2 {
  font-size: 1.5rem;
}

.market-chart-header h3 {
  font-size: 1.35rem;
}

.market-chart-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.market-rates-summary {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.market-chart-embed {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  line-height: 0;
  margin-top: auto;
}

.market-chart-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 220px;
  border: 0;
  overflow: hidden;
}

.mortgage-rates-widget {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  font-size: 0.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--sand-dark);
}

.mortgage-rates-embed {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: var(--white);
}

.mortgage-rates-widget-header,
.mortgage-rates-widget-footer {
  text-align: center;
  padding: 8px 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.mortgage-rates-widget-header a,
.mortgage-rates-widget-footer a {
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition);
}

.mortgage-rates-widget-header a:hover,
.mortgage-rates-widget-footer a:hover {
  color: var(--gold-light);
}

.mortgage-rates-frame {
  display: block;
  width: 100%;
  min-height: 200px;
  border: 0;
  background: var(--white);
}

.market-report-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius-lg);
  padding: 20px 20px 16px;
  box-shadow: var(--shadow);
  scroll-margin-top: 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.market-report-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold-light), var(--teal-light));
}

.market-report-card .market-chart-header h2 strong {
  font-weight: 700;
}

.homebot-widget-embed {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  min-height: 120px;
}

.sell-page.section,
.buy-page.section {
  padding-top: 0;
}

.sell-content,
.buy-content {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sell-benefits,
.buy-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sell-benefit-card,
.buy-benefit-card {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.sell-benefit-card:hover,
.buy-benefit-card:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 122, 138, 0.3);
  box-shadow: var(--shadow-lg);
}

.sell-benefit-card h3,
.buy-benefit-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.sell-benefit-card p,
.buy-benefit-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.buy-story {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
}

.buy-story .section-label {
  color: var(--gold-light);
  margin-bottom: 10px;
}

.buy-story-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 20px;
}

.buy-story-body p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 14px;
}

.buy-story-body p:last-child {
  margin-bottom: 0;
}

.buy-loan-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.buy-loan-heading {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}

.buy-loan-desc {
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.buy-loan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.buy-loan-card {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--teal);
}

.buy-loan-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.buy-loan-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
}

#homevalue {
  scroll-margin-top: 110px;
}

.home-value-card {
  margin-top: 4px;
}

.sell-cta-block,
.buy-cta-block {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.sell-cta-block h2,
.buy-cta-block h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.sell-cta-block p,
.buy-cta-block p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.sell-cta-block p a,
.buy-cta-block p a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}

.sell-cta-block p a:hover,
.buy-cta-block p a:hover {
  color: var(--teal-light);
}

.sell-cta-actions,
.buy-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.sell-cta-actions .btn,
.buy-cta-actions .btn {
  color: inherit;
}

.sell-cta-actions .btn-primary,
.buy-cta-actions .btn-primary {
  color: var(--white);
}

.sell-cta-actions .btn-outline-dark,
.buy-cta-actions .btn-outline-dark {
  color: var(--navy);
}

.sell-cta-actions .btn-outline-dark:hover,
.buy-cta-actions .btn-outline-dark:hover {
  color: var(--white);
}

/* ---- Newsletter / market updates (compact, light) ---- */
.newsletter.section {
  padding: clamp(32px, 4vw, 48px) 0;
  position: relative;
  background: var(--white);
}

.newsletter.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 48px));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sand-dark), transparent);
}

.newsletter-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.5vw, 24px) clamp(18px, 2.8vw, 28px);
  background: linear-gradient(145deg, #faf8f5 0%, var(--sand) 100%);
  border: 1px solid var(--sand-dark);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.newsletter-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--gold-light) 50%, var(--teal-light) 100%);
  z-index: 2;
}

/* Soft market-chart watermark behind the left copy */
.newsletter-chart-bg {
  position: absolute;
  left: -4%;
  right: 28%;
  top: -6%;
  bottom: -14%;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
  color: var(--teal);
  opacity: 0.18;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 62%, transparent 96%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 62%, transparent 96%);
}

.newsletter-chart-svg {
  width: min(720px, 108%);
  height: auto;
  max-height: none;
  min-height: 200px;
}

.newsletter-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: center;
}

.newsletter-copy {
  min-width: 0;
}

.newsletter-copy .section-label {
  margin-bottom: 6px;
}

.newsletter-copy .section-title {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  margin-bottom: 8px;
  line-height: 1.2;
}

.newsletter-copy .section-desc {
  margin: 0;
  max-width: 36ch;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.newsletter-form-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--sand-dark);
  box-shadow: 0 2px 10px rgba(15, 31, 61, 0.05);
}

.newsletter-form-frame {
  display: block;
  width: 100%;
  height: 200px;
  border: 0;
  background: var(--white);
}

.service-card h3 a {
  color: inherit;
  text-decoration: none;
}

.service-card h3 a:hover {
  color: var(--teal);
}

.service-card-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--teal);
  text-decoration: none;
}

.service-card-link:hover {
  color: var(--teal-light);
}

.market-data-seo {
  max-width: 760px;
  margin: 40px auto 0;
  text-align: center;
}

.market-data-seo h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.market-data-seo p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.market-data-seo a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}

.market-data-seo a:hover {
  color: var(--teal-light);
}

.market-data-source {
  max-width: 880px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.nav-links a.is-active {
  color: var(--white);
  box-shadow: inset 0 -2px 0 var(--gold-light);
}

/* ---- Results ---- */
.results.section {
  border-top: 1px solid var(--sand-dark);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.result-card {
  width: 100%;
  text-align: center;
  padding: 32px 20px;
  background: var(--sand);
  border-radius: var(--radius);
  border: 1px solid var(--sand-dark);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.result-card:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 122, 138, 0.3);
  box-shadow: var(--shadow);
}

.result-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.result-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.guarantees-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  text-align: center;
  color: var(--navy);
  margin-bottom: 36px;
}

.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.guarantee-item {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 3px solid var(--teal);
}

.guarantee-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.guarantee-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.guarantee-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---- Reviews ---- */
.reviews-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.stars span {
  color: var(--gold);
  font-size: 1.2rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
}

.review-stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.review-card p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
  flex: 1;
  font-style: italic;
}

.review-card footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--sand-dark);
}

.review-card cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}

.review-card footer span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.reviews-cta {
  text-align: center;
  margin-top: 48px;
}

.google-reviews-summary strong {
  color: var(--navy);
}

.google-reviews-meta {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.google-reviews-status {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.google-reviews-status[hidden] {
  display: none;
}

.google-reviews-error {
  color: #b45309;
}

.google-review-card {
  position: relative;
}

.google-review-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.review-expand {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.review-expand:hover {
  color: var(--teal-light);
  text-decoration: underline;
}

.google-reviews-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.google-reviews-link svg {
  flex-shrink: 0;
}

/* ---- Team ---- */
.team-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.team-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.team-image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.team-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.team-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.team-contact {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}

.team-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-contact svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
  flex-shrink: 0;
}

.team-contact a {
  font-weight: 500;
  color: var(--navy);
  font-size: 1rem;
}

.team-contact a:hover {
  color: var(--teal);
}

/* ---- Video ---- */
.video.section-sand {
  padding-top: 80px;
  padding-bottom: 88px;
}

.video-header {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

.video-header .video-content p {
  color: var(--text-muted);
  margin-bottom: 22px;
  margin-left: auto;
  margin-right: auto;
  max-width: 52ch;
}

.video-header .video-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.video-header .section-title {
  margin-bottom: 12px;
}

/* 3-up carousel: sides + featured center */
.video-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1100px;
  margin: 0 auto;
}

.video-carousel-track {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.35fr) minmax(0, 0.72fr);
  gap: 14px 16px;
  align-items: center;
  min-width: 0;
}

.video-carousel-nav {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--sand-dark);
  background: var(--white);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.video-carousel-nav:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-1px);
}

.video-slide {
  min-width: 0;
}

.video-slide.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.video-slide-side .video-slide-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  border-radius: 14px;
  transition: transform var(--transition);
}

.video-slide-side .video-slide-btn:hover {
  transform: translateY(-3px);
}

.video-slide-side .video-slide-btn:hover .video-slide-thumb-wrap {
  border-color: var(--teal);
  box-shadow: var(--shadow-lg);
}

.video-slide-thumb-wrap {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--navy);
  border: 2px solid var(--sand-dark);
  box-shadow: var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.video-slide-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
  filter: saturate(0.92);
}

.video-slide-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 31, 61, 0.35) 100%);
}

.video-slide-play::after {
  content: '';
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 7.5v9l7-4.5-7-4.5z'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.video-slide-title {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Featured center — latest / active */
.video-slide-feature {
  position: relative;
  z-index: 2;
}

.video-slide-feature-inner {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: 16px;
  padding: 14px 14px 16px;
  box-shadow: 0 16px 40px rgba(15, 31, 61, 0.14);
  border-top: 3px solid var(--youtube-red);
}

.video-slide-feature .video-latest-label {
  margin: 0 0 10px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--youtube-red);
}

.video-slide-feature .video-embed {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.video-slide-feature .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-slide-feature .video-latest-title {
  margin: 12px 4px 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--navy);
}

/* Legacy single-embed (if used elsewhere) */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.video-content p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.video-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.video-latest-label {
  margin-top: 20px;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.video-latest-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 31, 61, 0.06);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 900px) {
  .video-carousel-track {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .video-slide-side {
    display: none;
  }

  .video-carousel-nav {
    position: absolute;
    top: 42%;
    z-index: 3;
  }

  .video-carousel-prev {
    left: 4px;
  }

  .video-carousel-next {
    right: 4px;
  }

  .video-slide-feature-inner {
    padding: 12px;
  }
}

/* ---- Zillow Review Strip ---- */
.zillow-reviews-strip {
  margin-top: 72px;
  position: sticky;
  top: 72px;
  z-index: 900;
  background: linear-gradient(
    180deg,
    rgba(15, 31, 61, 0.98) 0%,
    rgba(15, 31, 61, 0.94) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 24px rgba(15, 31, 61, 0.18);
  padding: 10px 0;
}

.zillow-reviews-strip-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 100%;
}

.zillow-strip-meta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  white-space: nowrap;
}

.zillow-strip-stars {
  color: var(--gold-light);
  font-size: 0.58rem;
  letter-spacing: 0.6px;
  line-height: 1;
}

.zillow-strip-rating {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.02em;
}

.zillow-strip-rating strong {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  color: var(--white);
  font-weight: 600;
}

.zillow-strip-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.zillow-strip-link {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--gold-light);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity var(--transition), color var(--transition);
}

.zillow-strip-link:hover {
  opacity: 1;
  color: var(--white);
}

.zillow-carousel {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.zillow-carousel--strip {
  flex: 1;
  min-width: 0;
  margin-right: -24px;
}

.zillow-carousel-track {
  display: flex;
  gap: 0;
  width: max-content;
  will-change: transform;
}

.zillow-review-card {
  flex: 0 0 320px;
  background: var(--sand);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.zillow-reviews-strip .zillow-review-card {
  flex: 0 0 min(480px, 54vw);
  padding: 0 36px 0 0;
  margin-right: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.zillow-review-stars {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.zillow-reviews-strip .zillow-review-stars {
  display: none;
}

.zillow-review-card p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
  font-style: italic;
  margin-bottom: 14px;
}

.zillow-reviews-strip .zillow-review-card p {
  font-size: 0.78rem;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.68);
  font-style: normal;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zillow-reviews-strip .zillow-review-card p::before {
  content: '“';
  color: var(--gold-light);
  opacity: 0.55;
  margin-right: 1px;
}

.zillow-review-card footer cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--navy);
}

.zillow-reviews-strip .zillow-review-card footer {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.zillow-reviews-strip .zillow-review-card footer cite {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.zillow-review-card footer span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.zillow-reviews-strip .zillow-review-card footer span {
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.38);
}

.zillow-reviews-strip .zillow-review-card footer span::before {
  content: '·';
  margin-right: 6px;
  opacity: 0.65;
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact-details {
  list-style: none;
  margin-bottom: 32px;
}

.contact-details li {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-details svg {
  width: 22px;
  height: 22px;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-details strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-details a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy);
}

.contact-details a:hover {
  color: var(--teal);
}

.contact-details span {
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.5;
}

.contact-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact.section-sand {
  border-top: 1px solid rgba(232, 226, 216, 0.8);
}

.contact-form {
  background: var(--sand);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact.section-sand .contact-form {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: 1px solid var(--sand-dark);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 122, 138, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ---- Footer ---- */
.footer {
  position: relative;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold-light), var(--teal-light));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 0.9fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand .logo-name {
  font-size: 1.5rem;
}

.footer-brand p {
  margin-top: 0;
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-links h4,
.footer-areas h4,
.footer-social h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.footer-links ul,
.footer-areas ul,
.footer-social ul {
  list-style: none;
}

.footer-links li,
.footer-areas li,
.footer-social li {
  margin-bottom: 10px;
}

.footer-areas-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.footer-areas-list li:last-child {
  grid-column: 1 / -1;
  margin-top: 6px;
}

.footer-links a,
.footer-areas a,
.footer-social a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-areas a:hover,
.footer-social a:hover {
  color: var(--white);
}

.footer-areas-all {
  font-weight: 500;
  color: var(--gold-light) !important;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ---- Communities hub & leaf pages ---- */
.breadcrumbs {
  margin-bottom: 20px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: var(--sand-dark);
  font-weight: 400;
}

.breadcrumbs a {
  color: var(--teal);
  font-weight: 500;
}

.breadcrumbs a:hover {
  color: var(--teal-light);
}

.breadcrumbs [aria-current="page"] {
  color: var(--text-muted);
}

.breadcrumbs-on-dark ol {
  color: rgba(255, 255, 255, 0.55);
}

.breadcrumbs-on-dark a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumbs-on-dark a:hover {
  color: var(--gold-light);
}

.breadcrumbs-on-dark [aria-current="page"] {
  color: rgba(255, 255, 255, 0.55);
}

.breadcrumbs-on-dark li:not(:last-child)::after {
  color: rgba(255, 255, 255, 0.3);
}

.section-label-on-dark {
  color: var(--gold-light);
}

/* Communities hub hero */
.communities-hero {
  position: relative;
  padding: 112px 0 48px;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.communities-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 90% 15%, rgba(42, 154, 173, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 45% 45% at 8% 85%, rgba(196, 160, 82, 0.14) 0%, transparent 50%),
    linear-gradient(165deg, #0a1629 0%, var(--navy) 48%, #132a4a 100%);
  pointer-events: none;
}

.communities-hero-bg::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(42, 154, 173, 0.5), rgba(196, 160, 82, 0.4), transparent);
}

.communities-hero-inner {
  position: relative;
  z-index: 1;
}

.communities-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 36px 40px;
  align-items: center;
  margin-top: 8px;
}

.communities-hero-copy {
  max-width: 640px;
}

.communities-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.communities-hero-lead {
  margin: 0;
  font-size: clamp(0.95rem, 1.35vw, 1.06rem);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
}

/* Vibe collage — overlapping shots, varied shapes */
.vibe-collage {
  position: relative;
  width: 100%;
  height: min(460px, 58vw);
  min-height: 340px;
  max-width: 560px;
  margin-left: auto;
  perspective: 900px;
}

.vibe-shot {
  position: absolute;
  margin: 0;
  overflow: hidden;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  background: #1a3058;
}

.vibe-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform 0.6s ease;
}

.vibe-shot:hover img {
  transform: scale(1.08);
}

.vibe-shot--round {
  border-radius: 50%;
}

.vibe-shot--soft {
  border-radius: 28% 72% 64% 36% / 42% 38% 62% 58%;
}

.vibe-shot:not(.vibe-shot--round):not(.vibe-shot--soft) {
  border-radius: 14px;
}

.vibe-shot--wide {
  border-radius: 12px;
}

/* Placement map — intentional overlap + size variety */
.vibe-shot--a {
  width: 42%;
  height: 38%;
  left: 2%;
  top: 6%;
  z-index: 5;
  transform: rotate(-6deg);
}

.vibe-shot--b {
  width: 34%;
  height: 48%;
  right: 4%;
  top: 0;
  z-index: 4;
  transform: rotate(5deg);
}

.vibe-shot--c {
  width: 40%;
  height: 34%;
  left: 28%;
  top: 28%;
  z-index: 6;
  transform: rotate(2deg);
}

.vibe-shot--d {
  width: 28%;
  height: 40%;
  left: 0;
  bottom: 8%;
  z-index: 3;
  transform: rotate(7deg);
}

.vibe-shot--e {
  width: 32%;
  height: 32%;
  right: 18%;
  bottom: 22%;
  z-index: 7;
  transform: rotate(-3deg);
}

.vibe-shot--f {
  width: 36%;
  height: 30%;
  right: 0;
  bottom: 4%;
  z-index: 5;
  transform: rotate(4deg);
}

.vibe-shot--g {
  width: 38%;
  height: 24%;
  left: 22%;
  bottom: 0;
  z-index: 4;
  transform: rotate(-2deg);
}

.vibe-shot--h {
  width: 26%;
  height: 28%;
  right: 32%;
  top: 8%;
  z-index: 2;
  opacity: 0.92;
  transform: rotate(-8deg);
}

.vibe-shot--i {
  width: 24%;
  height: 26%;
  left: 14%;
  top: 42%;
  z-index: 3;
  opacity: 0.95;
  transform: rotate(9deg);
}

.communities-hub.section {
  padding-top: 48px;
  padding-bottom: 72px;
  background: linear-gradient(180deg, #faf8f5 0%, var(--white) 28%);
}

/* How to use */
.communities-howto {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.communities-howto-title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 20px;
}

.communities-howto-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 20px;
}

.communities-howto-list > li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.communities-howto-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  background: var(--teal);
  margin-top: 2px;
}

.communities-howto-list strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.communities-howto-list p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.communities-howto-list a {
  font-weight: 600;
}

.region-jump-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: 999px;
  margin-bottom: 48px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 80px;
  z-index: 50;
}

.region-jump-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  padding-left: 6px;
}

.region-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.region-jump {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--sand);
  border: 1px solid transparent;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 600;
  transition: border-color var(--transition), color var(--transition), background var(--transition), box-shadow var(--transition);
}

.region-jump:hover {
  border-color: rgba(26, 122, 138, 0.35);
  color: var(--teal);
  background: var(--white);
  box-shadow: var(--shadow);
}

/* Communities hub — region columns with compact community lists */
.region-jump-bar-compact {
  margin-bottom: 20px;
}

.regions-directory {
  margin-bottom: 48px;
}

.regions-directory-lead {
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.55;
}

.regions-directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 16px;
  align-items: start;
}

.region-dir-col {
  --region-accent: var(--teal);
  --region-title: var(--navy);
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-top: 3px solid var(--region-accent);
  border-radius: var(--radius-lg);
  padding: 16px 14px 12px;
  box-shadow: var(--shadow);
  scroll-margin-top: 140px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.region-dir-head {
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--sand-dark);
  position: relative;
}

.region-dir-head::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 44px;
  height: 2px;
  background: var(--region-accent);
}

.region-dir-title {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--region-title);
  margin: 0 0 6px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

/* Coastal North — lagoon / ocean teal */
.region-dir-col#coastal-north {
  --region-accent: #1a7a8a;
  --region-title: #0d5c68;
}

/* Inland North — avocado hills / ranch green */
.region-dir-col#inland-north {
  --region-accent: #6b8f3c;
  --region-title: #3d5a1f;
}

/* Coastal Central — bay / peninsula blue */
.region-dir-col#coastal-central {
  --region-accent: #2b6cb0;
  --region-title: #1a365d;
}

/* East County — foothill amber */
.region-dir-col#east-county {
  --region-accent: #c47b2b;
  --region-title: #8a4f12;
}

/* South Bay — seaglass */
.region-dir-col#south-bay {
  --region-accent: #0d9488;
  --region-title: #0f5c56;
}

/* SW Riverside — wine-country dusk */
.region-dir-col#sw-riverside {
  --region-accent: #9b2c5a;
  --region-title: #6b1d3f;
}

/* SD Neighborhoods — city gold on navy */
.region-dir-col#neighborhoods {
  --region-accent: #c4a052;
  --region-title: #0f1f3d;
}

.region-dir-col#neighborhoods .region-dir-title {
  font-style: italic;
}

.region-dir-desc {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.region-dir-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.region-dir-item {
  margin: 0;
}

.region-dir-link {
  display: block;
  padding: 9px 8px;
  border-radius: 8px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.region-dir-link:hover {
  background: var(--sand);
}

.region-dir-link:hover .region-dir-name {
  color: var(--teal);
}

.region-dir-name {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 2px;
  transition: color var(--transition);
}

.region-dir-vibe {
  display: block;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--text-muted);
}

@media (max-width: 1100px) {
  .regions-directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .regions-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .regions-directory-grid {
    grid-template-columns: 1fr;
  }
}

.community-region {
  margin-bottom: 56px;
  scroll-margin-top: 150px;
}

.community-region-header {
  margin-bottom: 22px;
  max-width: 720px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--sand-dark);
  position: relative;
}

.community-region-header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 72px;
  height: 2px;
  background: var(--teal);
}

.community-region-title {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.community-region-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.community-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius-lg);
  padding: 24px 22px 20px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.community-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.community-card:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 122, 138, 0.3);
  box-shadow: var(--shadow-lg);
}

.community-card:hover::before {
  opacity: 1;
}

.community-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.community-card-region {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.community-card-status {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(196, 160, 82, 0.12);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.community-card-status-live {
  color: var(--teal);
  background: rgba(26, 122, 138, 0.1);
}

.community-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 10px;
}

.community-card-title a {
  color: var(--navy);
}

.community-card-title a:hover {
  color: var(--teal);
}

.community-card-vibe {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  flex-grow: 1;
}

.community-card-best {
  font-size: 0.84rem;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.5;
}

.community-card-best strong {
  color: var(--navy);
  font-weight: 600;
}

.community-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.community-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--navy-light);
  background: var(--sand);
  border: 1px solid var(--sand-dark);
  padding: 4px 9px;
  border-radius: 999px;
}

.community-card-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.community-card-link:hover {
  color: var(--teal-light);
}

.communities-cta-band {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  margin-top: 16px;
}

.communities-cta-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.communities-cta-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

.communities-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.communities-cta-actions .btn-outline-dark {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.communities-cta-actions .btn-outline-dark:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

/* Community leaf layout */
.community-leaf .page-intro {
  padding-bottom: 20px;
}

.community-leaf .section-header {
  max-width: 720px;
}

.community-leaf .section-desc {
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Community hero photo — fixed while scrolling, fades as content covers it */
.page-intro.community-hero-photo {
  position: relative;
  isolation: isolate;
  padding-top: 128px;
  padding-bottom: 52px;
  min-height: clamp(420px, 56vh, 620px);
  display: flex;
  align-items: flex-end;
  background: transparent;
  color: var(--white);
  overflow: visible;
}

/* Fixed image layer — framed to the hero band so subjects aren’t stranded mid-viewport */
.community-hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* Match the intro band, not the full page — keeps the crop in the visible hero */
  height: clamp(420px, 62vh, 680px);
  z-index: 0;
  pointer-events: none;
  background-color: var(--navy);
  background-image: var(--community-hero-image);
  /*
    Higher Y% shifts the photo upward so mid/focal subjects sit in the title area.
    Per-page override: --community-hero-focus on .page-intro
  */
  background-size: cover;
  background-position: center var(--community-hero-focus, 58%);
  will-change: opacity, transform;
  transform: translateZ(0);
}

.community-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Lighter veil so photo color reads through; still keeps type legible */
  background:
    linear-gradient(
      105deg,
      rgba(15, 31, 61, 0.58) 0%,
      rgba(15, 31, 61, 0.38) 50%,
      rgba(15, 31, 61, 0.24) 100%
    ),
    linear-gradient(180deg, rgba(15, 31, 61, 0.14) 0%, rgba(15, 31, 61, 0.34) 100%);
}

/* kill sand rule line on photo heroes */
.page-intro.community-hero-photo.section-sand::after {
  display: none;
}

.page-intro.community-hero-photo > .container {
  position: relative;
  z-index: 2;
  width: 100%;
  will-change: opacity, transform;
}

.page-intro.community-hero-photo .section-label {
  color: #7dd3e0;
}

.page-intro.community-hero-photo .section-title {
  color: var(--white);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.35);
}

.page-intro.community-hero-photo .section-desc {
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.page-intro.community-hero-photo .breadcrumbs,
.page-intro.community-hero-photo .breadcrumbs a {
  color: rgba(255, 255, 255, 0.78);
}

.page-intro.community-hero-photo .breadcrumbs a:hover {
  color: var(--white);
}

.page-intro.community-hero-photo .breadcrumbs [aria-current="page"] {
  color: rgba(255, 255, 255, 0.95);
}

.page-intro.community-hero-photo .community-jump a {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
  backdrop-filter: blur(6px);
}

.page-intro.community-hero-photo .community-jump a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

/* Content panel slides over the fixed hero */
body:has(.page-intro.community-hero-photo) .community-page.section,
body:has(.page-intro.community-hero-photo) main > .blog-layout,
body:has(.page-intro.community-hero-photo) main > .container.blog-layout {
  position: relative;
  z-index: 3;
  background: var(--sand);
}

body:has(.page-intro.community-hero-photo) .community-page.section {
  margin-top: 0;
  padding-top: 28px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(15, 31, 61, 0.12);
}

body:has(.page-intro.community-hero-photo) .footer {
  position: relative;
  z-index: 3;
}

/* IB blog uses community-blog body */
.community-blog .page-intro.community-hero-photo {
  padding-bottom: 48px;
}

.community-blog .page-intro.community-hero-photo .blog-meta,
.community-blog .page-intro.community-hero-photo .blog-meta a,
.community-blog .page-intro.community-hero-photo .blog-meta strong {
  color: rgba(255, 255, 255, 0.88);
}

.community-blog .page-intro.community-hero-photo .blog-meta a:hover {
  color: var(--white);
}

/* Mobile: fixed backgrounds are janky — keep absolute within hero */
@media (max-width: 768px) {
  .community-hero-bg {
    position: absolute;
    height: 100%;
  }

  .page-intro.community-hero-photo {
    overflow: hidden;
    min-height: 380px;
  }

  body:has(.page-intro.community-hero-photo) .community-page.section {
    border-radius: 16px 16px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .community-hero-bg,
  .page-intro.community-hero-photo > .container {
    will-change: auto !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .hero-bg,
  .hero-overlay,
  .hero-inner {
    will-change: auto !important;
    transform: none !important;
    opacity: 1 !important;
    position: absolute !important;
    inset: 0;
    height: 100% !important;
  }

  .hero-inner {
    position: relative !important;
    inset: auto !important;
    height: auto !important;
  }
}

.community-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  max-width: 720px;
}

.community-jump a {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--sand-dark);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.community-jump a:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(26, 122, 138, 0.06);
}

.community-page.section {
  padding-top: 8px;
  padding-bottom: 72px;
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
}

.community-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Snapshot side report — eye-catching metrics + context */
.community-snapshot-wrap,
.community-snapshot-report {
  background: var(--white);
  border: 1px solid rgba(15, 31, 61, 0.1);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 10px 28px rgba(15, 31, 61, 0.08);
  overflow: hidden;
}

.community-snapshot-report {
  background:
    linear-gradient(165deg, #0f1f3d 0%, #1a3058 42%, #163a4a 100%);
  border: none;
  color: var(--white);
}

.snapshot-report-head {
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(196, 160, 82, 0.1) 0%, transparent 100%);
}

.community-snapshot-report .community-snapshot-label {
  margin: 0 0 2px;
  padding: 0;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.15;
  color: var(--gold-light);
  background: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  border: none;
}

.snapshot-report-note {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
}

.snapshot-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 4px 0;
}

.snapshot-metric {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.snapshot-metric:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.snapshot-metric-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(125, 211, 224, 0.9);
  margin-bottom: 6px;
}

.snapshot-metric-value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* snapshot metric clamp */
.snapshot-metric-value {
  overflow-wrap: anywhere;
}

.community-snapshot-report .community-snapshot {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--white);
}

.community-snapshot-report .snapshot-chip {
  background: var(--white);
  border: none;
  border-bottom: 1px solid var(--sand);
  border-radius: 0;
  padding: 12px 16px 13px;
}

.community-snapshot-report .snapshot-chip:last-child {
  border-bottom: none;
}

.community-snapshot-report .snapshot-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 4px;
}

.community-snapshot-report .snapshot-value {
  display: block;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--navy);
  font-weight: 500;
}

.community-snapshot-report .snapshot-chip-tags {
  background: var(--sand);
}

.snapshot-chip-tags .community-card-tags {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.snapshot-chip-tags .community-tag {
  font-size: 0.72rem;
  padding: 3px 8px;
}

/* Fallback non-report snapshot (if used elsewhere) */
.community-snapshot-label {
  margin: 0;
  padding: 12px 14px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.community-snapshot {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.snapshot-chip {
  background: var(--white);
  border: none;
  border-bottom: 1px solid var(--sand);
  padding: 11px 14px 12px;
}

.snapshot-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 4px;
}

.snapshot-value {
  display: block;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--navy);
  font-weight: 500;
}

/* Video first on leaf pages — full width of main column */
.community-main > .community-section-video:first-child {
  margin-bottom: 4px;
}

.community-main > .community-section-video:first-child .community-video-grid {
  grid-template-columns: 1fr;
  max-width: 100%;
}

.community-status-banner {
  background: rgba(26, 122, 138, 0.08);
  border: 1px solid rgba(26, 122, 138, 0.2);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.community-status-banner strong {
  color: var(--navy);
}

.community-main > .community-section {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius-lg);
  padding: 22px 24px 20px;
  box-shadow: 0 1px 2px rgba(15, 31, 61, 0.04);
  scroll-margin-top: 110px;
}

.community-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.28rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 12px;
  line-height: 1.25;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sand);
}

.community-section p {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.72;
  margin: 0 0 12px;
}

.community-section p:last-child {
  margin-bottom: 0;
}

.community-placeholder {
  font-style: italic;
  opacity: 0.92;
}

.community-note {
  margin-top: 14px !important;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--sand);
  border: 1px solid var(--sand-dark);
  font-size: 0.9rem !important;
  color: var(--text-muted) !important;
  line-height: 1.55 !important;
}

.community-note a {
  font-weight: 600;
  color: var(--teal);
}

.community-note-cta {
  background: rgba(26, 122, 138, 0.08);
  border-color: rgba(26, 122, 138, 0.22);
  border-left: 3px solid var(--teal);
}

.community-section-video {
  background: linear-gradient(165deg, #0f1f3d 0%, #1a3058 55%, #16324f 100%) !important;
  border-color: transparent !important;
  color: var(--white);
}

.community-section-video h2,
.community-section-video #sec-video {
  color: var(--white) !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

.community-section-video > p {
  color: rgba(255, 255, 255, 0.78) !important;
}

.community-section-video .community-note {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85) !important;
}

.community-section-video .community-note a {
  color: #7dd3e0;
}

.community-section-video .community-video-card figcaption {
  color: rgba(255, 255, 255, 0.72);
}

.community-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.community-faq-item {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.community-faq-item:hover {
  border-color: rgba(26, 122, 138, 0.35);
}

.community-faq-item[open] {
  border-color: rgba(26, 122, 138, 0.4);
  box-shadow: 0 4px 14px rgba(15, 31, 61, 0.06);
}

.community-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--navy);
  padding: 15px 18px;
  font-size: 0.95rem;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.community-faq-item summary::-webkit-details-marker {
  display: none;
}

.community-faq-item summary::after {
  content: '+';
  flex: 0 0 auto;
  color: var(--teal);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  margin-top: 2px;
}

.community-faq-item[open] summary::after {
  content: '–';
}

.community-faq-item p {
  padding: 0 18px 16px;
  margin: 0;
  border-top: 1px solid var(--sand);
  padding-top: 12px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.community-main > .community-faq.community-section {
  background: var(--sand);
  border-color: var(--sand-dark);
}

.community-main > .community-faq.community-section h2 {
  border-bottom-color: var(--sand-dark);
}

.community-video-stub {
  background: var(--sand);
  border: 1px dashed var(--sand-dark);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}

.community-video-stub h2 {
  margin-bottom: 8px;
}

.community-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.community-video-card {
  margin: 0;
}

.community-video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #0a1428;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.community-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.community-video-card figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: space-between;
  align-items: baseline;
}

.community-video-card figcaption a {
  font-weight: 600;
  white-space: nowrap;
}

.nearby-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  padding: 0;
}

.nearby-list li {
  margin: 0;
}

.nearby-list a,
.nearby-pending {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--sand-dark);
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
}

.nearby-list a {
  color: var(--navy);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.nearby-list a:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(26, 122, 138, 0.06);
}

.nearby-pending {
  color: var(--text-muted);
}

.nearby-soon {
  font-size: 0.72rem;
  font-style: normal;
  color: var(--gold);
  font-weight: 600;
  margin-left: 4px;
}

.community-cta-block {
  background: var(--sand);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.community-cta-block-primary {
  background: linear-gradient(145deg, #0f1f3d 0%, #1a3058 100%);
  border-color: transparent;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.community-cta-block-primary h2 {
  color: var(--white);
}

.community-cta-block-primary > p {
  color: rgba(255, 255, 255, 0.78) !important;
}

.community-cta-block-primary .btn-outline-dark {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.community-cta-block-primary .btn-outline-dark:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.community-cta-block h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.community-cta-block > p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.community-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.community-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: static; /* do not pin while scrolling — better reading UX */
}

.community-aside-card {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.community-aside-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.community-aside-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.community-aside-card li {
  margin-bottom: 0;
  border-bottom: 1px solid var(--sand);
}

.community-aside-card li:last-child {
  border-bottom: none;
}

.community-aside-card a {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 0;
  color: var(--navy);
}

.community-aside-card a:hover {
  color: var(--teal);
}

.community-aside-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* CTA card — brand-aligned (sand + teal accent, not inverted navy) */
.community-aside-card-accent {
  background: var(--sand);
  border: 1px solid var(--sand-dark);
  border-top: 3px solid var(--teal);
  box-shadow: var(--shadow);
}

.community-aside-card-accent h3 {
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.community-aside-card-accent p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.community-aside-card-accent .btn-primary {
  background: var(--teal);
  border-color: var(--teal);
  width: 100%;
  justify-content: center;
  text-align: center;
}

.community-aside-card-accent .btn-primary:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
}

.community-snapshot-foot {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--sand-dark);
  background: var(--sand);
}

.community-snapshot-foot .community-note {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  font-size: 0.78rem !important;
  line-height: 1.45 !important;
}

/* Sidebar snapshot on blog pages (e.g. Imperial Beach) */
.blog-sidebar .community-snapshot-report {
  margin-bottom: 0;
}

.blog-sidebar .community-snapshot-report .snapshot-value {
  font-size: 0.8rem;
}

.community-blog .community-section-video {
  background: linear-gradient(165deg, #0f1f3d 0%, #1a3058 55%, #16324f 100%);
  border: none;
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  margin-bottom: 24px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.community-blog .community-section-video h2 {
  color: var(--white) !important;
  border: none !important;
  padding: 0 !important;
  margin-bottom: 8px !important;
}

.community-blog .community-section-video > p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.community-blog .community-section-video .community-video-card figcaption {
  color: rgba(255, 255, 255, 0.7);
}

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
/* Mid desktop: keep full nav on one line without wrapping labels */
@media (max-width: 1180px) {
  .nav-links {
    gap: 10px;
  }

  .nav-links a {
    font-size: 0.78rem;
  }

  .nav-cta {
    padding: 7px 12px !important;
  }

  .nav-phone {
    font-size: 0.82rem;
  }

  .nav-brand {
    gap: 12px;
  }
}

@media (max-width: 1080px) {
  .nav-phone {
    display: none;
  }

  .nav-links {
    gap: 8px;
  }
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust-inline {
    justify-content: center;
  }

  .hero-float-card {
    left: 50%;
    transform: translateX(-50%);
    bottom: -20px;
  }

  .newsletter-layout {
    grid-template-columns: 1fr minmax(220px, 300px);
    gap: 16px;
  }

  .personal-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-bar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .communities-cta-band {
    grid-template-columns: 1fr;
  }

  .communities-howto-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .communities-hero-grid {
    gap: 32px;
  }

  .vibe-collage {
    height: 400px;
  }

  .community-layout {
    grid-template-columns: 1fr;
  }

  .community-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-aside > .community-snapshot-report {
    grid-column: 1 / -1;
  }

  .community-main > .community-section {
    padding: 18px 16px 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--navy);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-inner {
    padding-top: 56px;
    padding-bottom: 60px;
  }

  /* Avoid fixed-hero jank on mobile */
  .hero {
    overflow: hidden;
  }

  .hero-bg,
  .hero-overlay {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
  }

  .zillow-reviews-strip {
    padding: 8px 0;
  }

  .zillow-reviews-strip-inner {
    gap: 14px;
  }

  .zillow-strip-meta {
    gap: 6px;
    padding: 5px 10px 5px 9px;
  }

  .zillow-strip-rating strong {
    font-size: 0.84rem;
  }

  .zillow-strip-label {
    display: none;
  }

  .zillow-strip-link {
    font-size: 0.62rem;
  }

  .zillow-carousel--strip {
    margin-right: -16px;
  }

  .zillow-reviews-strip .zillow-review-card {
    flex: 0 0 min(280px, 72vw);
    padding-right: 24px;
  }

  .zillow-reviews-strip .zillow-review-card p {
    font-size: 0.72rem;
    -webkit-line-clamp: 1;
  }

  .hero-photo {
    max-width: 280px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .personal-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }

  .personal-photo-feature {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 280px;
  }

  .personal-photo:not(.personal-photo-feature) {
    min-height: 200px;
  }

  .about-grid,
  .video-grid,
  .contact-grid,
  .team-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-accent {
    display: none;
  }

  .about-credentials {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .guarantees-grid {
    grid-template-columns: 1fr;
  }

  .trust-bar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .logo-img {
    height: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-areas-list {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .community-grid {
    grid-template-columns: 1fr;
  }

  .community-snapshot {
    grid-template-columns: 1fr;
  }

  .community-aside {
    grid-template-columns: 1fr;
  }

  .communities-hero {
    padding: 100px 0 36px;
  }

  .communities-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .communities-hero-copy {
    max-width: none;
  }

  .vibe-collage {
    max-width: none;
    height: 280px;
    min-height: 260px;
    margin: 0 auto;
  }

  /* Hide lower-priority shots on small screens for performance + clarity */
  .vibe-shot--h,
  .vibe-shot--i,
  .vibe-shot--g {
    display: none;
  }

  .vibe-shot--a {
    width: 44%;
    height: 48%;
    left: 4%;
    top: 8%;
  }

  .vibe-shot--b {
    width: 36%;
    height: 56%;
    right: 6%;
    top: 2%;
  }

  .vibe-shot--c {
    width: 42%;
    height: 40%;
    left: 30%;
    top: 34%;
  }

  .vibe-shot--d {
    width: 30%;
    height: 42%;
    left: 2%;
    bottom: 6%;
  }

  .vibe-shot--e {
    width: 34%;
    height: 36%;
    right: 8%;
    bottom: 10%;
  }

  .vibe-shot--f {
    width: 38%;
    height: 32%;
    right: 28%;
    bottom: 2%;
  }

  .communities-howto {
    padding: 22px 18px 18px;
  }

  .communities-howto-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .region-jump-bar {
    border-radius: var(--radius-lg);
    position: static;
  }

  .communities-cta-band {
    padding: 28px 22px;
  }

  .community-cta-actions {
    flex-direction: column;
  }

  .community-cta-actions .btn {
    width: 100%;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .market-dashboard {
    max-width: 420px;
  }

  .market-dashboard-charts {
    grid-template-columns: 1fr;
  }

  .sell-benefits,
  .buy-benefits {
    grid-template-columns: 1fr;
  }

  .buy-loan-grid {
    grid-template-columns: 1fr;
  }

  .buy-story {
    padding: 24px 20px;
  }

  .nav-brand {
    gap: 12px;
  }

  .nav-phone {
    font-size: 0.82rem;
  }

  .newsletter.section {
    padding: 28px 0;
  }

  .newsletter-panel {
    padding: 16px 14px;
    border-radius: 12px;
  }

  .newsletter-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .newsletter-copy .section-desc {
    max-width: none;
  }

  .newsletter-form-frame {
    height: 200px;
  }

  .newsletter-chart-bg {
    left: -6%;
    right: -4%;
    top: 0;
    bottom: 0;
    opacity: 0.12;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 90%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 90%);
  }

  .newsletter-chart-svg {
    width: 100%;
    min-height: 160px;
  }

  .video.section-sand {
    padding-top: 64px;
  }
}
/* ---- Community blog article layout (Imperial Beach model) ---- */
.community-blog .page-intro {
  padding-bottom: 28px;
}

.community-blog .section-desc {
  max-width: 720px;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-meta strong {
  color: var(--navy);
  font-weight: 600;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
  padding-bottom: 64px;
}

.blog-article {
  min-width: 0;
  max-width: 760px;
}

.blog-article > .community-section + .community-section {
  margin-top: 8px;
}

.blog-article .community-section {
  padding: 8px 0 20px;
  border-bottom: 1px solid var(--sand-dark);
  scroll-margin-top: 120px;
}

.blog-article .community-section:last-of-type {
  border-bottom: none;
}

.blog-article h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.25;
}

.blog-article h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin: 22px 0 10px;
}

.blog-article p,
.blog-article li {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.75;
}

.blog-article p {
  margin-bottom: 14px;
}

.blog-article ul,
.blog-article ol {
  margin: 0 0 16px 1.2rem;
}

.blog-article li {
  margin-bottom: 8px;
}

.blog-lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
}

.blog-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 8px;
}

.blog-snapshot-item {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.blog-snapshot-item dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}

.blog-snapshot-item dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--navy);
}

.community-table-wrap {
  overflow-x: auto;
  margin: 16px 0 20px;
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.community-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.community-table th,
.community-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--sand-dark);
  vertical-align: top;
}

.community-table th {
  background: var(--sand);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.community-table tr:last-child td {
  border-bottom: none;
}

.community-table td {
  color: var(--text);
  line-height: 1.5;
}

.blog-callout {
  background: rgba(26, 122, 138, 0.07);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 18px;
  margin: 18px 0;
}

.blog-callout p {
  margin: 0;
  font-size: 0.98rem;
}

.blog-callout-warn {
  background: rgba(196, 160, 82, 0.12);
  border-left-color: var(--gold);
}

.blog-pro-con {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 8px;
}

.blog-pro-con article {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius-lg);
  padding: 18px 18px 8px;
  box-shadow: var(--shadow);
}

.blog-pro-con h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.blog-pro-con ul {
  margin-left: 1.05rem;
}

.blog-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}

.blog-compare-card {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.blog-compare-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.blog-compare-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.blog-compare-card a {
  font-weight: 600;
}

.blog-mid-cta {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin: 28px 0;
  box-shadow: var(--shadow-lg);
}

.blog-mid-cta h2 {
  color: var(--white) !important;
  margin-bottom: 8px !important;
}

.blog-mid-cta p {
  color: rgba(255, 255, 255, 0.8) !important;
  margin-bottom: 16px;
}

.blog-mid-cta .community-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-mid-cta .btn-outline-dark {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.blog-mid-cta .btn-outline-dark:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.blog-toc {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}

.blog-toc h2 {
  font-family: var(--font-sans) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal) !important;
  margin: 0 0 12px !important;
}

.blog-toc ol {
  margin: 0;
  padding-left: 1.15rem;
  columns: 2;
  column-gap: 24px;
}

.blog-toc li {
  font-size: 0.88rem !important;
  margin-bottom: 6px;
  break-inside: avoid;
}

.blog-toc a {
  color: var(--navy);
  font-weight: 500;
}

.blog-toc a:hover {
  color: var(--teal);
}

.blog-sidebar {
  position: static; /* avoid sticky sidebars trapping attention while reading */
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-sidebar-card {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
}

.blog-sidebar-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 10px;
}

.blog-sidebar-card p,
.blog-sidebar-card li {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.blog-sidebar-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-sidebar-card li {
  margin-bottom: 8px;
}

.blog-sidebar-card a {
  font-weight: 500;
}

.blog-sidebar-accent {
  background: var(--sand);
  border: 1px solid var(--sand-dark);
  border-top: 3px solid var(--teal);
}

.blog-sidebar-accent h3 {
  color: var(--navy);
  font-family: var(--font-serif);
}

.blog-sidebar-accent p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-sidebar-accent .btn-primary {
  background: var(--teal);
  border-color: var(--teal);
}

.blog-sidebar-accent .btn-outline-dark {
  border-color: var(--navy);
  color: var(--navy);
}

.blog-sidebar-accent .btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

.blog-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 8px;
}

.community-blog .market-report-card {
  margin: 24px 0;
}

.community-blog .newsletter-panel {
  margin: 28px 0;
}

.community-blog .community-video-grid {
  margin-top: 8px;
}

/* ---- Neighborhood tour blogs (video companions) ---- */
.tour-blog .tour-hero {
  padding-bottom: 32px;
}

.tour-blog .tour-hero-header {
  max-width: 720px;
}

.tour-blog .tour-hero .section-title {
  letter-spacing: -0.01em;
}

.tour-kicker {
  display: inline-block;
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.tour-kicker-on-dark {
  color: rgba(125, 211, 224, 0.95) !important;
}

.tour-layout {
  padding-top: 8px;
}

.tour-article {
  max-width: 740px;
}

.tour-article > .community-section {
  border-bottom: none;
  padding: 0 0 8px;
  margin-bottom: 22px;
}

.tour-article > .tour-section {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius-lg);
  padding: 24px 26px 20px;
  box-shadow: 0 1px 2px rgba(15, 31, 61, 0.04);
  scroll-margin-top: 110px;
}

.tour-article > .tour-section h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sand);
}

.tour-video-section {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  margin-bottom: 24px !important;
}

.tour-video-panel {
  background: linear-gradient(160deg, #0f1f3d 0%, #1a3058 48%, #153048 100%);
  border-radius: calc(var(--radius-lg) + 2px);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.tour-video-panel-copy h2 {
  color: var(--white) !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 0 10px !important;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem) !important;
}

.tour-video-panel-copy .blog-lead {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 16px;
  max-width: 54ch;
}

.tour-video-panel .tour-kicker {
  color: #7dd3e0;
}

.tour-video-card {
  margin: 0;
}

.tour-video-card .community-video-frame {
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.tour-video-card figcaption {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 12px;
}

.tour-video-card figcaption a {
  color: #7dd3e0;
}

.tour-video-card figcaption a:hover {
  color: var(--white);
}

.tour-takeaways {
  background: rgba(26, 122, 138, 0.07) !important;
  border: 1px solid rgba(26, 122, 138, 0.18) !important;
  border-radius: var(--radius-lg);
  padding: 22px 24px !important;
  margin-bottom: 24px !important;
}

.tour-takeaways h2 {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 12px !important;
}

.tour-takeaway-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.tour-takeaway-list li {
  position: relative;
  padding: 12px 14px 12px 40px;
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
  color: var(--navy) !important;
  margin: 0 !important;
}

.tour-takeaway-list li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 15px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(26, 122, 138, 0.15);
  box-shadow: inset 0 0 0 4px var(--teal);
}

.tour-faq .community-faq {
  margin-top: 4px;
}

.tour-sidebar .btn-full {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.tour-sidebar-secondary {
  margin-top: 8px;
  border-color: var(--navy) !important;
  color: var(--navy) !important;
}

.tour-sidebar-secondary:hover {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
  color: var(--white) !important;
}

.tour-blog .blog-mid-cta {
  margin-top: 8px;
  padding: 32px 28px;
}

.tour-blog .blog-toc,
.blog-toc {
  position: static; /* never stick "On this page" while scrolling */
  top: auto;
  z-index: auto;
  backdrop-filter: none;
}

@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .blog-article {
    max-width: none;
  }

  .tour-blog .blog-toc {
    position: static;
  }
}

@media (max-width: 768px) {
  .blog-snapshot-grid,
  .blog-pro-con,
  .blog-compare-grid,
  .blog-sidebar {
    grid-template-columns: 1fr;
  }

  .blog-toc ol {
    columns: 1;
  }

  .community-jump {
    gap: 6px;
  }

  .community-jump a {
    font-size: 0.76rem;
    padding: 6px 10px;
  }

  .tour-video-panel {
    padding: 16px 14px 14px;
  }

  .tour-article > .tour-section {
    padding: 18px 16px 16px;
  }

  .tour-takeaways {
    padding: 16px !important;
  }

  .tour-blog .blog-mid-cta {
    padding: 24px 18px;
  }

  .community-aside {
    grid-template-columns: 1fr;
  }
}

/* ---- Site FAQ page ---- */
.faq-page.section {
  padding-top: 24px;
  padding-bottom: 72px;
}

.faq-page-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.faq-toc {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.faq-toc-label {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.faq-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.faq-toc-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--sand);
  border: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.faq-toc-link:hover {
  border-color: rgba(26, 122, 138, 0.3);
  background: var(--white);
  color: var(--teal);
}

.faq-toc-cta {
  padding-top: 14px;
  border-top: 1px solid var(--sand-dark);
}

.faq-toc-cta p {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.faq-section {
  margin-bottom: 40px;
  scroll-margin-top: 120px;
}

.faq-section-header {
  margin-bottom: 16px;
  max-width: 720px;
}

.faq-section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 8px;
}

.faq-section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.faq-page-main .community-faq-item summary {
  font-size: 1rem;
}

.faq-page-main .community-faq-item p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text);
}

@media (max-width: 900px) {
  .faq-page-layout {
    grid-template-columns: 1fr;
  }

  .faq-toc {
    position: static;
  }

  .faq-toc-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .faq-toc-nav {
    grid-template-columns: 1fr;
  }
}

/* ---- Nav dropdowns ---- */
.nav-item {
  position: relative;
}

.nav-item.has-dropdown > .nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-item.has-dropdown > .nav-parent::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  padding: 8px;
  margin: 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1200;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-item.has-dropdown:hover > .nav-dropdown,
.nav-item.has-dropdown:focus-within > .nav-dropdown,
.nav-item.has-dropdown.open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown li {
  margin: 0;
  width: 100%;
}

.nav-dropdown a {
  display: block !important;
  padding: 10px 12px !important;
  border-radius: 8px;
  color: var(--navy) !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  white-space: nowrap;
  border-bottom: none !important;
}

.nav-dropdown a:hover {
  background: var(--sand);
  color: var(--teal) !important;
}

/* Featured first item (e.g. All communities) — clear hub link, not just another row */
.nav-dropdown .nav-dropdown-featured {
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--sand-dark);
}

.nav-dropdown .nav-dropdown-featured a {
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.01em;
  color: var(--teal) !important;
  background: var(--sand);
}

.nav-dropdown .nav-dropdown-featured a:hover {
  background: rgba(0, 128, 128, 0.12);
  color: var(--navy) !important;
}

@media (max-width: 768px) {
  .nav-item.has-dropdown > .nav-parent::after {
    border-top-color: rgba(255, 255, 255, 0.65);
  }

  .nav-dropdown {
    position: static;
    transform: none;
    left: auto;
    min-width: 0;
    width: 100%;
    margin: 4px 0 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    padding: 6px;
  }

  .nav-item.has-dropdown.open > .nav-dropdown {
    display: block;
    transform: none;
  }

  .nav-dropdown a {
    color: rgba(255, 255, 255, 0.9) !important;
    white-space: normal;
  }

  .nav-dropdown a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white) !important;
  }

  .nav-dropdown .nav-dropdown-featured {
    border-bottom-color: rgba(255, 255, 255, 0.15);
  }

  .nav-dropdown .nav-dropdown-featured a {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 700 !important;
  }

  .nav-dropdown .nav-dropdown-featured a:hover {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white) !important;
  }
}


/* ---- Community section themes ---- */
.community-main > .community-section-overview {
  background: linear-gradient(165deg, #f3f8f9 0%, #ffffff 48%, #faf8f4 100%);
  border: 1px solid rgba(26, 122, 138, 0.28);
  box-shadow: 0 8px 24px rgba(15, 31, 61, 0.06);
  position: relative;
}

.community-main > .community-section-overview::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--teal) 0%, var(--navy) 100%);
}

.community-main > .community-section-overview h2 {
  color: var(--navy);
}

.community-main > .community-section-lifestyle {
  background: linear-gradient(180deg, #fffdf9 0%, #ffffff 100%);
  border: 1px solid rgba(196, 160, 82, 0.28);
  border-top: 3px solid rgba(196, 160, 82, 0.75);
}

.community-main > .community-section-lifestyle h2 {
  border-bottom-color: rgba(196, 160, 82, 0.25) !important;
}

.community-main > .community-section-housing {
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
  border: 1px solid rgba(15, 31, 61, 0.12);
  border-top: 3px solid var(--navy);
}

.community-main > .community-section-housing h2 {
  border-bottom-color: rgba(15, 31, 61, 0.1) !important;
}

.community-main > .community-section-housing p strong {
  color: var(--navy);
}

.community-main > .community-section-schools {
  background: linear-gradient(180deg, #f4faf6 0%, #ffffff 100%);
  border: 1px solid rgba(26, 122, 138, 0.2);
  border-top: 3px solid var(--teal);
}

.community-main > .community-section-schools h2 {
  border-bottom-color: rgba(26, 122, 138, 0.15) !important;
}

.community-main > .community-section-schools p strong {
  color: var(--teal);
}

/* Soft icon chip on themed section titles */
.community-section-overview h2,
.community-section-lifestyle h2,
.community-section-housing h2,
.community-section-schools h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.community-section-overview h2::before,
.community-section-lifestyle h2::before,
.community-section-housing h2::before,
.community-section-schools h2::before {
  content: '';
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  background-color: rgba(26, 122, 138, 0.1);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.community-section-overview h2::before {
  background-color: rgba(26, 122, 138, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7a8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v4l2.5 1.5'/%3E%3C/svg%3E");
}

.community-section-lifestyle h2::before {
  background-color: rgba(196, 160, 82, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a67c2d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2 6h6l-5 4 2 7-5-3.5L7 20l2-7-5-4h6z'/%3E%3C/svg%3E");
}

.community-section-housing h2::before {
  background-color: rgba(15, 31, 61, 0.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1f3d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E");
}

.community-section-schools h2::before {
  background-color: rgba(26, 122, 138, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7a8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-5 9 5-9 5-9-5z'/%3E%3Cpath d='M21 9v6'/%3E%3Cpath d='M6 11.5V16c0 1.5 2.7 3 6 3s6-1.5 6-3v-4.5'/%3E%3C/svg%3E");
}

/* ---- Community commute panel (routes theme) ---- */
.community-section-commute {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.community-section-commute > .commute-panel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1.5px solid rgba(15, 31, 61, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f7f5f1 100%);
  box-shadow: 0 10px 28px rgba(15, 31, 61, 0.08);
}

.commute-panel::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--teal) 0 18px,
    transparent 18px 28px
  );
  opacity: 0.9;
}

.commute-panel-head {
  padding: 22px 22px 14px;
  background: linear-gradient(135deg, rgba(15, 31, 61, 0.03) 0%, rgba(26, 122, 138, 0.06) 100%);
  border-bottom: 1px solid var(--sand-dark);
}

.commute-kicker {
  margin: 0 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.community-section-commute h2 {
  border: none !important;
  padding: 0 !important;
  margin: 0 0 8px !important;
  display: block !important;
}

.community-section-commute h2::before {
  display: none !important;
}

.commute-lede {
  margin: 0 !important;
  max-width: 58ch;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
  color: var(--text-muted) !important;
}

.commute-table-wrap {
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  overflow: hidden;
}

.commute-table {
  margin: 0;
  border-collapse: collapse;
  width: 100%;
}

.commute-table thead th {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  border-bottom: none;
  padding-top: 12px;
  padding-bottom: 12px;
}

.commute-table thead th:first-child {
  padding-left: 22px;
}

.commute-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--sand-dark);
  background: var(--white) !important;
  vertical-align: middle;
}

.commute-table tbody tr:last-child td {
  border-bottom: none;
}

.commute-table tbody tr:hover td {
  background: rgba(26, 122, 138, 0.04) !important;
}

.commute-dest {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 36px;
  position: relative;
}

/* Icon badge */
.commute-row .commute-dest::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: none;
  box-shadow: none;
  background-color: rgba(26, 122, 138, 0.1);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px 15px;
}

.commute-row[data-route="hub"] .commute-dest::before {
  background-color: rgba(15, 31, 61, 0.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1f3d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3Cpath d='M3 12h18'/%3E%3C/svg%3E");
}

.commute-row[data-route="beach"] .commute-dest::before {
  background-color: rgba(26, 122, 138, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7a8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 13c4.5 0 8-2 8-4.5S16.5 4 12 4 4 6 4 8.5 7.5 13 12 13z'/%3E%3Cpath d='M12 13v8'/%3E%3Cpath d='M9 21h6'/%3E%3Cpath d='M12 4v2'/%3E%3C/svg%3E");
}

.commute-row[data-route="downtown"] .commute-dest::before {
  background-color: rgba(15, 31, 61, 0.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1f3d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V10l4-3 4 3v11'/%3E%3Cpath d='M13 21V7l3-2 3 2v14'/%3E%3Cpath d='M7 14h2M7 17h2M15 12h2M15 15h2M15 18h2'/%3E%3C/svg%3E");
}

.commute-row[data-route="airport"] .commute-dest::before {
  background-color: rgba(26, 122, 138, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7a8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 16l20-5-20-5v4l6 1-6 1v4z'/%3E%3Cpath d='M10 12.5l3 5'/%3E%3C/svg%3E");
  border-radius: 8px;
  transform: translateY(-50%);
}

.commute-dest strong {
  font-size: 0.95rem;
  color: var(--navy);
}

.commute-dest-note {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Stats: plain text only — no accidental boxes */
.commute-stat {
  display: inline;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.commute-stat-time {
  color: var(--teal);
}

.commute-table th:nth-child(2),
.commute-table th:nth-child(3),
.commute-table td:nth-child(2),
.commute-table td:nth-child(3) {
  white-space: nowrap;
  width: 1%;
  text-align: right;
}

.commute-table thead th:nth-child(2),
.commute-table thead th:nth-child(3) {
  text-align: right;
  padding-right: 22px;
}

.commute-table tbody td:nth-child(2),
.commute-table tbody td:nth-child(3) {
  padding-right: 22px;
}

.commute-table tbody td:first-child {
  padding-left: 22px;
}

/* Airport row: uniform with others (no special cell fill) */
.commute-row[data-route="airport"] td {
  background: var(--white) !important;
}

.commute-row[data-route="airport"]:hover td {
  background: rgba(26, 122, 138, 0.04) !important;
}

@media (max-width: 640px) {
  .commute-panel-head {
    padding: 18px 16px 12px;
  }
  .commute-table thead th:first-child,
  .commute-table tbody td:first-child {
    padding-left: 14px;
  }
  .commute-table thead th:nth-child(2),
  .commute-table thead th:nth-child(3),
  .commute-table tbody td:nth-child(2),
  .commute-table tbody td:nth-child(3) {
    padding-right: 12px;
  }
  .commute-dest {
    padding-left: 32px;
  }
  .commute-stat {
    font-size: 0.84rem;
  }
}


/* ---- Community profile enrichment (2026 guides) ---- */
.community-main > .community-section ul {
  margin: 0.65rem 0 1rem 1.15rem;
  padding: 0;
  color: var(--text);
  line-height: 1.65;
}
.community-main > .community-section li {
  margin-bottom: 0.4rem;
}
.community-main > .community-section h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--navy);
}
.community-section-va {
  border-left: 4px solid var(--teal);
  background: linear-gradient(90deg, rgba(26, 122, 138, 0.08), transparent 70%);
  padding: 1.25rem 1.35rem !important;
}
.community-section-va h2 {
  color: var(--navy);
}
.community-commute-notes {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.community-commute-notes p {
  margin-bottom: 0.75rem;
}
.blog-article .community-section-va {
  margin: 1.5rem 0;
  border-radius: 12px;
}
