/* ==========================================================================
   Hart Real Estate Partners — RBH-WP-2026-001
   Option 1: Starter Website (static)
   ========================================================================== */

:root {
  --color-primary: #7C9A6F;        /* matcha green */
  --color-primary-light: #A9C08B;  /* lime green accent */
  --color-secondary: #0872BA;      /* Samson Properties brand blue (Hex #0872BA / R8 G114 B186) — required PMS match, used sitewide */
  --color-secondary-dark: #065A94; /* darker shade of Samson blue for hover/active states */
  --color-samson-blue: #0872BA;    /* alias of --color-secondary, kept for compliance-strip/logo-lockup clarity */
  --color-black: #1B1B1B;
  --color-white: #FFFFFF;
  --color-silver: #C0C0C0;
  --color-grey: #6B6B6B;
  --color-bg-light: #F7F9F6;

  --font-heading: "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Segoe UI", Helvetica, Arial, sans-serif;

  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --max-width: 1180px;
  --header-height: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
#buyers, #sellers { scroll-margin-top: 100px; }

/* ---------- Scrollbar: use the browser default (hidden custom styling removed) ---------- */
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar { display: none; }
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body::-webkit-scrollbar { display: none; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-secondary-dark);
  margin: 0 0 0.5em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav (Samson Properties required blue — matches footer exactly) ---------- */
.site-header {
  background: var(--color-samson-blue);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.35s ease, padding 0.35s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
}
.nav-wrap { position: relative; z-index: 1; }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  overflow: visible;
}

.header-client-logo {
  order: 0;
  flex-shrink: 0;
  height: 56px;
  width: auto;
  margin-right: 16px;
  padding: 4px 8px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
@media (max-width: 980px) {
  .header-client-logo { height: 46px; margin-right: 10px; }
}

.logo {
  position: relative;
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.05rem;
  letter-spacing: 0.01em;
  color: var(--color-white);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease;
}
/* The star sits in its own zero-footprint "anchor" between the Real/Estate
   spans, so it always floats directly above that gap — attached to the
   wordmark, but never inline with the letters or affecting text flow. */
.logo-star-anchor {
  position: relative;
  display: inline-block;
  width: 0.42em;
  height: 1em;
  vertical-align: baseline;
}
.logo-star {
  display: block;
  position: absolute;
  left: 50%;
  top: -0.5em;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  line-height: 0;
  color: var(--color-white);
  background: none;
  animation: none;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.25));
}
.logo-star svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.logo > span:not(.logo-star-anchor) {
  color: var(--color-primary-light);
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-white) 50%, var(--color-primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoShimmer 6s ease-in-out infinite;
}
@media (max-width: 700px) {
  .logo { font-size: 1.55rem; }
}
.logo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-primary-light);
  transition: width 0.3s ease;
}
.logo:hover::after,
.logo:focus-visible::after { width: 100%; }
.logo:hover { transform: translateY(-1px); }

@keyframes logoShimmer {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

@media (prefers-reduced-motion: reduce) {
  .logo > span:not(.logo-star-anchor) { animation: none; }
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { display: flex; align-items: center; }

.nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  box-sizing: border-box;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--color-white);
  padding: 0 2px;
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.9;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--color-white);
  transition: width 0.3s ease;
}
.nav-links a::before {
  content: "\2726";
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translate(-50%, 0) scale(0);
  font-size: 9px;
  line-height: 1;
  color: var(--color-white);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--color-white);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  animation: navNorthStarShimmer 1.8s ease-in-out infinite;
}
.nav-links a:hover::before,
.nav-links a.active::before {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  animation: navNorthStarTwinkle 1.8s ease-in-out infinite;
}
.nav-cta::after, .nav-cta::before { display: none; }

@keyframes navNorthStarShimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}
@keyframes navNorthStarTwinkle {
  0%, 100% { color: var(--color-white); opacity: 1; text-shadow: 0 0 4px rgba(255, 255, 255, 0.7); }
  50% { color: var(--color-white); opacity: 0.7; text-shadow: 0 0 7px rgba(255, 255, 255, 0.9); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-links a::after, .nav-links a::before { animation: none !important; }
}

.nav-dropdown { position: relative; display: flex; align-items: center; height: 44px; }
.nav-dropdown-toggle {
  position: relative;
  background: none;
  border: none;
  margin: 0;
  box-sizing: border-box;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--color-white);
  opacity: 0.9;
  height: 44px;
  padding: 0 2px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: width 0.28s ease;
}
.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
  opacity: 1;
}
.nav-dropdown-toggle:hover::after,
.nav-dropdown.open .nav-dropdown-toggle::after { width: 100%; }
.nav-dropdown-toggle .chevron {
  width: 10px;
  height: 10px;
  fill: currentColor;
  transition: transform 0.2s ease;
}
.nav-dropdown.open .chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  padding: 8px;
  min-width: 210px;
  display: none;
  flex-direction: column;
  z-index: 150;
}
.nav-dropdown.open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a {
  color: var(--color-black);
  opacity: 1;
  padding: 10px 14px;
  border-radius: 6px;
  border-bottom: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.nav-dropdown-menu a:hover {
  background: rgba(8, 114, 186, 0.08);
  border-bottom: none;
  color: var(--color-samson-blue);
}

.nav-cta {
  background: var(--color-white);
  color: var(--color-samson-blue) !important;
  height: auto;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  opacity: 1 !important;
  border: 2px solid var(--color-samson-blue);
}
.nav-cta:hover { background: var(--color-primary-light); color: var(--color-white) !important; border-color: var(--color-primary-light); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  padding: 72px 24px;
  text-align: center;
}
.hero h1 {
  color: var(--color-white);
  font-size: 2.4rem;
  margin-bottom: 0.3em;
}
.hero p {
  max-width: 620px;
  margin: 0 auto 1.6em;
  font-size: 1.1rem;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; align-items: stretch; flex-wrap: wrap; }
.hero-actions .hero-btn { justify-content: center; text-align: center; width: 260px; max-width: 100%; box-sizing: border-box; }

.hero-home {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 55%, var(--color-secondary) 130%);
  padding: 76px 24px 56px;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(560px circle at 10% 15%, rgba(255, 255, 255, 0.16), transparent 60%),
              radial-gradient(480px circle at 90% 85%, rgba(8, 114, 186, 0.32), transparent 55%);
  pointer-events: none;
}
/* Floating decorative shapes — subtle motion tying matcha green + Samson blue together */
.hero-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-shape { position: absolute; border-radius: 50%; opacity: 0.35; filter: blur(2px); animation: heroFloat 9s ease-in-out infinite; }
.shape-1 { width: 140px; height: 140px; left: 6%; top: 18%; background: radial-gradient(circle, rgba(255,255,255,0.5), transparent 70%); animation-duration: 10s; }
.shape-2 { width: 100px; height: 100px; right: 10%; top: 12%; background: radial-gradient(circle, var(--color-secondary), transparent 70%); opacity: 0.4; animation-duration: 8s; animation-delay: 1.2s; }
.shape-3 { width: 70px; height: 70px; right: 20%; bottom: 8%; background: radial-gradient(circle, var(--color-white), transparent 70%); opacity: 0.3; animation-duration: 11s; animation-delay: 0.6s; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-18px) translateX(10px); }
}
.hero-inner { position: relative; z-index: 1; }
.hero-home h1 { font-size: 2.6rem; max-width: 800px; margin-left: auto; margin-right: auto; margin-top: 0; }
.hero-home p { margin-bottom: 1.3em; }
.hero-btn { display: inline-flex; align-items: center; gap: 8px; transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease; }
.hero-btn:hover { transform: translateY(-2px); }
.hero-btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn-outline.hero-btn:hover svg { fill: var(--color-primary); }

/* Reveal-on-load entrance animation for hero content */
.reveal { opacity: 0; transform: translateY(16px); animation: heroReveal 0.7s ease forwards; }
.reveal-delay-1 { animation-delay: 0.08s; }
.reveal-delay-2 { animation-delay: 0.16s; }
.reveal-delay-3 { animation-delay: 0.24s; }
.reveal-delay-4 { animation-delay: 0.34s; }
@keyframes heroReveal { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .hero-shape { animation: none; }
}

/* ---------- Merged hero help cards (condensed "How Can We Help" section) ---------- */
.hero-merged { padding-bottom: 64px; }
.hero-help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 920px;
  margin: 36px auto 0;
}
@media (max-width: 900px) {
  .hero-help-grid { grid-template-columns: 1fr; max-width: 420px; }
}
.hero-help-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-help-card:hover,
.hero-help-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}
.hero-help-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}
.hero-help-card:hover .hero-help-icon { transform: scale(1.08) rotate(-4deg); }
.hero-help-icon svg { width: 22px; height: 22px; fill: var(--color-white); }
.hero-help-icon-alt { background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark)); }
.hero-help-card h3 { color: var(--color-secondary-dark); font-size: 1.02rem; margin: 0; }
.hero-help-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 0.88rem;
  transition: gap 0.2s ease, color 0.2s ease;
}
.hero-help-link svg { width: 13px; height: 13px; fill: currentColor; }
.hero-help-card:hover .hero-help-link { color: var(--color-secondary-dark); gap: 9px; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.2;
}
.btn-primary { background: var(--color-white); color: var(--color-secondary-dark); }
.btn-primary:hover { background: var(--color-secondary-dark); color: var(--color-white); }
.btn-outline { border-color: var(--color-white); color: var(--color-white); }
.btn-outline:hover { background: var(--color-white); color: var(--color-primary); }

/* ---------- Property Search Banner ---------- */
.search-banner {
  background: var(--color-primary);
  padding: 22px 24px;
}
.search-form {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.search-form .field { flex: 1 1 180px; }
.search-form label {
  display: block;
  color: var(--color-white);
  font-size: 0.8rem;
  margin-bottom: 4px;
}
.search-form input,
.search-form select {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--color-silver);
}
.search-form button {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
}
.search-form button:hover { background: var(--color-primary-light); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-alt { background: var(--color-bg-light); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title p { color: var(--color-grey); max-width: 600px; margin: 8px auto 0; }

/* Action cards (Find My Dream Home / What's My Home Worth) */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.action-card {
  background: var(--color-white);
  border: 1px solid #eee;
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.action-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.action-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--color-secondary);
}
.action-card h3 { color: var(--color-secondary-dark); }
.action-card .btn-primary { background: var(--color-secondary); color: var(--color-white); margin-top: 12px; }
.action-card .btn-primary:hover { background: var(--color-secondary-dark); }

/* Property / listing cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.property-card {
  background: var(--color-white);
  border: 1px solid #eee;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.property-card img { height: 180px; object-fit: cover; width: 100%; background: var(--color-silver); }
.property-card .body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.property-card .price { color: var(--color-primary); font-weight: 700; font-size: 1.15rem; }
.property-card p { flex: 1; }
.property-card .btn-inquire { margin-top: auto; }
.btn-view-property {
  display: block;
  margin-top: auto;
  padding: 11px 16px;
  border-radius: 8px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  transition: background 0.2s ease;
}
.property-card:hover .btn-view-property,
.property-card:focus-visible .btn-view-property { background: var(--color-secondary-dark); }
.property-card .tag {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.tag-premium { background: var(--color-silver); color: var(--color-black); }

/* ---------- Homepage: fleshed-out featured properties ---------- */
.home-property-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.home-property-grid .property-card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.home-property-grid .property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}
.home-property-grid .body { padding: 20px; }
.home-property-grid .price { font-size: 1.3rem; }
.home-property-grid h4 { font-size: 1rem; }
.home-property-grid p { font-size: 0.88rem; color: var(--color-grey); margin: 0; }
.home-listings-cta { text-align: center; margin-top: 40px; }
.home-listings-cta .btn { display: inline-flex; align-items: center; gap: 8px; }
.home-listings-cta .btn svg { width: 15px; height: 15px; fill: currentColor; }

/* Testimonials */
.testimonial {
  background: var(--color-white);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}
.testimonial .stars { color: #E0B94E; margin-bottom: 8px; }
.testimonial .name { font-weight: 700; margin-top: 10px; color: var(--color-secondary-dark); }

/* Geographic areas — photo slideshow selector */
.area-explore-card {
  background: var(--color-bg-light);
  border: 1px solid var(--color-silver);
  border-radius: var(--radius);
  padding: 20px;
}
.area-slideshow {
  display: flex;
  align-items: center;
  gap: 16px;
}
.area-arrow {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-silver);
  background: var(--color-white);
  color: var(--color-secondary-dark);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.area-arrow:hover { background: var(--color-primary); color: var(--color-white); transform: scale(1.05); }

.area-slide-viewport {
  position: relative;
  flex: 1 1 auto;
  aspect-ratio: 16 / 7;
  min-height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-white);
}
.area-slide-track { position: absolute; inset: 0; }
.area-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.area-photo.active { opacity: 1; }

.area-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 24px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
}
.area-slide-caption h3 { margin: 0 0 4px; font-size: 1.4rem; }
.area-slide-caption p { margin: 0; opacity: 0.9; font-size: 0.95rem; }

/* Thumbnail strip beneath the main photo, used to jump directly to an area */
.area-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.area-thumbs::-webkit-scrollbar { height: 6px; }
.area-thumbs::-webkit-scrollbar-track { background: transparent; }
.area-thumbs::-webkit-scrollbar-thumb {
  background: var(--color-silver);
  border-radius: 999px;
}
.area-thumbs::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }
.area-thumbs { scrollbar-width: thin; scrollbar-color: var(--color-silver) transparent; }

.area-thumb {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 64px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}
.area-thumb-img {
  width: 64px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.area-thumb:hover .area-thumb-img { transform: translateY(-2px); }
.area-thumb.active .area-thumb-img { border-color: var(--color-primary); }
.area-thumb span {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--color-grey);
  text-align: center;
  line-height: 1.15;
}
.area-thumb.active span { color: var(--color-primary); }

@media (max-width: 640px) {
  .area-explore-card { padding: 14px; }
  .area-arrow { width: 38px; height: 38px; font-size: 20px; }
  .area-slide-viewport { aspect-ratio: 4 / 3; min-height: 200px; }
  .area-thumb, .area-thumb-img { width: 52px; }
  .area-thumb-img { height: 38px; }
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid #eee;
  padding: 18px 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-secondary-dark);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  color: var(--color-grey);
  transition: max-height 0.25s ease;
}
.faq-item.open .faq-answer { max-height: 1000px; margin-top: 10px; }
.faq-icon { font-size: 1.3rem; color: var(--color-primary); }

/* Forms (Contact / Home Worth / Dream Home) */
.form-card {
  background: var(--color-white);
  border: 1px solid #eee;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  max-width: 640px;
  margin: 0 auto;
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--color-silver);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-row textarea { resize: vertical; min-height: 100px; }
.form-row input.invalid,
.form-row select.invalid,
.form-row textarea.invalid { border-color: #c0392b; }
.form-submit {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
}
.form-submit:hover { background: var(--color-secondary-dark); }
.form-note { font-size: 0.8rem; color: var(--color-grey); margin-top: 10px; }
.form-success {
  display: none;
  background: #EAF3E5;
  border: 1px solid var(--color-primary);
  color: #33502A;
  padding: 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.form-success.visible { display: block; }

/* Two-column info layout (About, Contact) */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.about-media-col { display: flex; }
.about-media-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-info-col { display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

.contact-info-item { display: flex; gap: 14px; margin-bottom: 18px; }
.contact-info-item .icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-primary-light); color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
}

/* ---------- Footer (flow rebuilt to mirror shepherdhomesgroup.com; Samson Properties required blue) ---------- */
.site-footer {
  background: var(--color-samson-blue);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 48vh;
}

/* 1. Top band: brand block (logo + tagline + social) alongside link columns
   (Explore / For Clients / Contact), mirroring a standard multi-column footer */
.footer-top { padding: 56px 24px 36px; }
.footer-top-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-top-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  text-align: left;
}
.footer-brand-col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-brand-mark {
  height: 72px;
  width: auto;
  padding: 4px 8px;
  background: #fff;
  border-radius: 10px;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.25));
  transition: transform 0.3s ease;
}
.footer-brand:hover .footer-brand-mark { transform: scale(1.04); }
.footer-logo {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  color: var(--color-white);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}
.footer-logo > span:not(.logo-star-anchor) {
  color: var(--color-primary-light);
  background: linear-gradient(90deg, var(--color-primary-light) 0%, #E4EFD9 60%, var(--color-primary-light) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoShimmer 6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .footer-logo > span:not(.logo-star-anchor) { animation: none; }
}
.footer-tagline {
  margin: 0;
  max-width: 320px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}
.footer-link-col h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}
.footer-link-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-link-col p { margin: 0 0 10px; color: rgba(255, 255, 255, 0.85); line-height: 1.5; }
.footer-link-col a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-link-col ul a:hover { color: var(--color-primary-light); padding-left: 3px; }
.footer-contact-col a:hover { color: var(--color-white); }

/* 2. Social icons — sit under the brand block */
.footer-social {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.footer-social a:hover {
  background: var(--color-white);
  color: var(--color-samson-blue);
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

/* 3. Brokerage compliance lockup — required brand mark: NAR REALTOR® on the
   left, Samson Properties centered, Bright MLS on the right, all one line.
   No card/background behind the marks — they sit directly on the footer's
   Samson-blue field. Sized so all three read clearly at a glance. */
.footer-compliance { padding: 28px 24px 28px; }
.footer-compliance-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.footer-compliance-marks {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-compliance .nar-logo,
.footer-compliance .mls-logo,
.footer-compliance .fairhousing-logo {
  /* 25% larger than the original 60px base */
  height: 75px;
  width: auto;
}
/* Bright MLS artwork has more built-in letterspacing than the REALTOR®/Fair
   Housing marks, so match perceived size by height explicitly (source PNG
   is pre-cropped to its visible content — see assets/img/brightmlslogo.png).
   103px is the original 82px base, also scaled up 25%. */
.footer-compliance .mls-logo { height: 103px; }
.footer-compliance .brokerage-logo {
  height: 84px;
  width: auto;
}

/* 4. Legal / disclaimer */
.footer-legal {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  text-align: center;
}
.footer-legal p { margin: 0 0 6px; }
.footer-legal a { color: rgba(255, 255, 255, 0.85); text-decoration: underline; }
.footer-legal a:hover { color: var(--color-white); }

/* 5. Copyright bar + website design credit (very bottom of the footer) */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin: 16px 24px 0;
  padding: 16px 0 28px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.85); text-decoration: underline; }
.footer-bottom a:hover { color: var(--color-white); }
.footer-bottom .divider { margin: 0 6px; }
.footer-credit {
  margin-top: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-credit a { color: rgba(255, 255, 255, 0.75); text-decoration: underline; }
.footer-credit a:hover { color: var(--color-white); }

@media (max-width: 900px) {
  .footer-top-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-top-grid { grid-template-columns: 1fr; text-align: left; }
  .footer-brand-col { align-items: flex-start; }
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-compliance-marks { gap: 20px; }
}

/* ---------- Header at tablet/phone widths: inline links give way to the full-screen menu ---------- */
@media (max-width: 1150px) {
  .nav-links { display: none; }
}

/* ---------- Floating "Contact Us" tab (colganteam.com-style, always on screen) ---------- */
.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
}
.floating-contact-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-samson-blue);
  color: var(--color-white);
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: background 0.2s, transform 0.2s;
}
.floating-contact-toggle:hover { background: var(--color-primary-light); transform: translateY(-1px); }
.floating-contact-toggle svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

.floating-contact-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: 290px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  padding: 18px;
  display: none;
  flex-direction: column;
  gap: 4px;
}
.floating-contact.open .floating-contact-panel { display: flex; }

.floating-contact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.floating-contact-header strong { font-size: 1rem; color: var(--color-black); }
.floating-contact-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #999;
  padding: 0 2px;
}
.floating-contact-close:hover { color: var(--color-black); }

.floating-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-black);
  font-size: 0.9rem;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}
.floating-contact-row:hover { color: var(--color-samson-blue); }
.floating-contact-row svg { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; fill: var(--color-samson-blue); }

.floating-contact-email-btn {
  margin-top: 10px;
  text-align: center;
  background: var(--color-samson-blue);
  color: var(--color-white) !important;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 700;
}
.floating-contact-email-btn:hover { background: var(--color-primary-light); }

@media (max-width: 480px) {
  .floating-contact { right: 14px; bottom: 14px; }
  .floating-contact-panel { width: calc(100vw - 28px); right: -6px; }
  .floating-contact-toggle span { display: none; }
  .floating-contact-toggle { padding: 14px; }
}

/* Page header (interior pages) */
.page-hero {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 48px 24px;
  text-align: center;
}
.page-hero h1 { color: var(--color-white); margin-bottom: 6px; }
.page-hero p { color: var(--color-white); margin: 0; }
/* ---------- Hover / focus polish ---------- */
.property-card, .action-card, .testimonial {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.property-card:hover, .action-card:hover, .testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

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

.img-placeholder { object-fit: cover; }


/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-secondary-dark);
  color: var(--color-white);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
  z-index: 1000;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-secondary-dark);
  color: var(--color-white);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 150;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover { transform: translateY(-3px); }
@media (max-width: 700px) {
  .back-to-top { bottom: 70px; } /* clear the mobile call bar */
}

/* ---------- Gated listing details (item 7: view requires a lead form) ---------- */
.gated-detail {
  position: relative;
  font-size: 0.85rem;
  color: var(--color-grey);
  filter: blur(2.5px);
  user-select: none;
  border-radius: 8px;
  background: var(--color-bg-light);
  padding: 4px 8px;
}
.property-card.is-unlocked .gated-detail { filter: none; user-select: text; background: none; padding: 0; }
.btn-view-details {
  width: 100%;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--color-primary);
  background: none;
  color: var(--color-primary-dark, var(--color-primary));
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-view-details:hover { background: var(--color-primary); color: var(--color-white); }
.property-card.is-unlocked .btn-view-details {
  cursor: default;
  border-style: dashed;
  opacity: 0.75;
}
.property-card.is-unlocked .btn-view-details:hover { background: none; color: var(--color-primary-dark, var(--color-primary)); }

/* ---------- Invalid input state ---------- */
input:invalid:not(:placeholder-shown),
select:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
  border-color: #C0392B;
}


/* ---------- Contact form error banner ---------- */
.form-error-banner {
  color: #C0392B;
  font-size: 0.85rem;
  margin: 0 0 12px;
}


/* ---------- Contact form: hints ---------- */
.field-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--color-grey);
  margin-top: 4px;
}

/* ---------- Contact form: per-field inline errors ----------
   Hidden by default; JS toggles the "visible" class alongside
   marking the input itself .invalid (see index.css rule for
   .form-row input.invalid etc.). */
.field-error {
  display: none;
  font-size: 0.78rem;
  color: #C0392B;
  margin-top: 4px;
}
.field-error.visible {
  display: block;
}
/* Swap the neutral hint out for the error message while a field is invalid. */
.form-row input.invalid ~ .field-hint,
.form-row select.invalid ~ .field-hint,
.form-row textarea.invalid ~ .field-hint {
  display: none;
}


/* ---------- Sell page: CMA quick-estimate tool ---------- */
.cma-tool-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid #eee;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 36px;
  text-align: center;
}
.cma-tool-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.cma-tool-icon svg { width: 26px; height: 26px; fill: var(--color-white); }
.cma-tool-card h2 { margin-bottom: 4px; }
.cma-tool-card .form-row { text-align: left; }
.cma-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 20px;
}
@media (max-width: 600px) {
  .cma-grid { grid-template-columns: 1fr; }
}
.sell-estimate-section { padding-top: 8px; }

/* ---------- Sell page: hero + shared accents ---------- */
.page-hero-sell { padding-bottom: 64px; }
.sell-eyebrow-dark {
  background: rgba(8, 114, 186, 0.08);
  color: var(--color-secondary-dark);
}

/* ---------- Sell page: process steps ---------- */
.sell-steps-grid { align-items: stretch; }
.sell-step-card { position: relative; padding-top: 20px; }
.sell-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-white);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

/* ---------- Sell page: lead form section ---------- */
.sell-lead-section { padding-top: 24px; }
/* Client feedback: the info column was competing with the form for width,
   making the form cramped. Info now takes ~1/4, the form takes ~3/4. */
.sell-lead-section .two-col,
#contact-form-section .two-col {
  grid-template-columns: 1fr 3fr;
  align-items: start;
}
@media (max-width: 900px) {
  .sell-lead-section .two-col,
  #contact-form-section .two-col { grid-template-columns: 1fr; }
}
.sell-lead-info .buy-eyebrow { margin-bottom: 14px; }
.sell-contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  margin-bottom: 0;
}
.sell-contact-icon svg { width: 18px; height: 18px; }

/* ---------- Checkbox rows (shared) ---------- */
.checkbox-row { display: flex; align-items: flex-start; }
.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400 !important;
  font-size: 0.9rem;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  accent-color: var(--color-primary);
}

/* ---------- Marketing/SMS/AI-call consent disclaimer (shared across
   the contact, buy, and sell forms) ----------
   Static notice, not a checkbox: submitting the form is itself the
   consenting act, so this sits directly above the submit button. */
.consent-note {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--color-grey);
  margin: 4px 0 12px;
}

/* ---------- Buy page: redesigned hero ---------- */
.page-hero-buy {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 55%, var(--color-secondary) 130%);
  padding: 76px 24px 96px;
  text-align: center;
}
.buy-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(560px circle at 10% 15%, rgba(255, 255, 255, 0.16), transparent 60%),
              radial-gradient(480px circle at 90% 85%, rgba(8, 114, 186, 0.32), transparent 55%);
  pointer-events: none;
}
.buy-hero-inner { position: relative; z-index: 1; }
.buy-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.18);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.page-hero-buy h1 { font-size: 2.6rem; }

/* ---------- Buy/Sell pages: condensed value prop cards ---------- */
.buy-value-props { position: relative; padding: 40px 0; }
.value-tabs-wrap { max-width: 640px; margin: 0 auto; }
.value-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}
.value-tab {
  background: var(--color-white);
  border: 1px solid #e2e2e2;
  color: var(--color-grey);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 26px;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}
.value-tab:hover { transform: translateY(-1px); }
.value-tab.is-active {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-white);
}
.value-stack {
  display: grid;
  padding: 18px 22px 30px;
}
.value-stack > .buy-value-card {
  grid-area: 1 / 1;
  cursor: default;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease, filter 0.5s ease, box-shadow 0.5s ease;
}
.value-stack > .buy-value-card.is-front {
  transform: translate(0, 0) scale(1) rotate(0deg);
  opacity: 1;
  z-index: 2;
}
.value-stack > .buy-value-card.is-back {
  transform: translate(22px, 26px) scale(0.93) rotate(1.5deg);
  opacity: 0.55;
  filter: saturate(0.75) brightness(0.97);
  z-index: 1;
  cursor: pointer;
  pointer-events: auto;
}
.value-stack > .buy-value-card.is-back:hover {
  opacity: 0.75;
  filter: saturate(0.9) brightness(1);
}
.buy-value-props .two-col { gap: 20px; align-items: stretch; }
.value-single-wrap { max-width: 460px; margin: 0 auto; }
.buy-value-props .buy-value-card {
  text-align: left;
  position: relative;
  border-top: none;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.buy-value-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.buy-value-icon svg { width: 20px; height: 20px; fill: var(--color-white); }
.buy-value-icon-alt { background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark)); }
.buy-value-card h2 { margin-bottom: 6px; font-size: 1.25rem; }
.buy-value-card > p { margin-bottom: 0; font-size: 0.92rem; }
.buy-check-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.is-clickable-card { cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.is-clickable-card:hover, .is-clickable-card:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,0.14); }
.buy-check-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--color-black);
}
.buy-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--color-primary);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.5 16.2 5.3 12l-1.4 1.4L9.5 19 20 8.5 18.6 7z'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}
@media (max-width: 800px) {
  .buy-value-props { padding: 32px 0; }
  .buy-value-props .two-col { gap: 14px; }
  .buy-value-props .buy-value-card { padding: 20px; }
}
.buy-value-card-featured {
  background: linear-gradient(155deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: var(--color-white);
  border: none;
  box-shadow: 0 14px 34px rgba(6, 90, 148, 0.28);
}
.buy-value-card-featured h2,
.buy-value-card-featured p,
.buy-value-card-featured .buy-check-list li { color: var(--color-white); }
.buy-value-card-featured .buy-check-list li::before { background-color: var(--color-primary-light); }
.buy-featured-ribbon {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}

/* ---------- Buy page: floating search card ---------- */
.buy-search-wrap {
  margin-top: 40px;
  position: relative;
  z-index: 2;
  padding: 0 24px;
}
.buy-search-form {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.16);
  padding: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.buy-search-form label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-grey);
  font-weight: 600;
}
.buy-search-form label svg { width: 15px; height: 15px; fill: var(--color-secondary); flex-shrink: 0; }
.buy-search-form input,
.buy-search-form select {
  border: 1px solid #e4e4e4;
  background: var(--color-bg-light);
}
.buy-search-form input:focus,
.buy-search-form select:focus { outline: 2px solid var(--color-secondary); background: var(--color-white); }
.buy-search-form button[type="submit"] {
  background: var(--color-secondary);
  transition: background 0.2s ease, transform 0.15s ease;
}
.buy-search-form button[type="submit"]:hover { background: var(--color-secondary-dark); transform: translateY(-1px); }
.buy-search-reset {
  background: none;
  border: 1px solid #d8d8d8;
  color: var(--color-grey);
  padding: 11px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}
.buy-search-reset:hover { border-color: var(--color-secondary); color: var(--color-secondary); }

/* ---------- Advanced (Colgan-style) search: location + min/max ranges ---------- */
.advanced-search-form { flex-wrap: wrap; }
.advanced-search-form .field-location { flex: 2 1 240px; }
.advanced-search-form .field-range { flex: 1 1 170px; }
.range-pair { display: flex; align-items: center; gap: 6px; }
.range-pair select { flex: 1 1 0; min-width: 0; }
.range-sep { color: var(--color-grey); flex-shrink: 0; }

/* ---------- Streamlined search: location + Search up front, everything
   else collapsed behind a "Filters" toggle ---------- */
.search-bar-subtitle {
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--color-white);
  margin: 0 0 12px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.buy-search-wrap .search-bar-subtitle {
  color: var(--color-primary-dark, var(--color-primary));
  text-shadow: none;
}
.search-bar-subtitle::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-secondary);
  margin-right: 8px;
  vertical-align: middle;
  animation: searchPulse 1.8s ease-in-out infinite;
}
@keyframes searchPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.5; }
}
.simple-search-form { flex-direction: column; align-items: stretch; gap: 0; padding: 0 !important; box-shadow: none !important; background: transparent !important; }
.search-primary {
  display: flex;
  gap: 10px;
  background: var(--color-white);
  border-radius: 999px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.search-primary:focus-within {
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(76, 121, 62, 0.18);
  transform: translateY(-1px);
}
.search-primary .field-location { flex: 1 1 auto; margin: 0; position: relative; }
.search-primary .field-location label { display: none; }
.search-primary .field-location input {
  height: 48px;
  border: 1px solid transparent;
  background: var(--color-bg-light);
  border-radius: 999px;
  padding-left: 18px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.search-primary .field-location input:focus {
  background: var(--color-white);
  border-color: var(--color-secondary);
  outline: none;
}
.search-primary button[type="submit"] {
  height: 48px;
  padding: 0 26px;
  white-space: nowrap;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(76, 121, 62, 0.3);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.search-primary button[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(76, 121, 62, 0.38); }
.search-primary button[type="submit"]:active { transform: translateY(0); }
.filters-toggle {
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #d8d8d8;
  background: var(--color-white);
  color: var(--color-primary-dark, var(--color-primary));
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.filters-toggle:hover { border-color: var(--color-secondary); color: var(--color-secondary); transform: translateY(-1px); }
.filters-toggle svg { width: 14px; height: 14px; fill: currentColor; transition: transform 0.25s ease; }
.filters-toggle[aria-expanded="true"] {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-white);
}
.filters-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.search-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  padding: 0 18px;
  margin-top: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.3s ease, padding 0.35s ease, margin 0.35s ease;
}
.search-filters.is-open {
  max-height: 480px;
  opacity: 1;
  transform: translateY(0);
  padding: 18px;
  margin-top: 12px;
}
.search-filters[hidden] { display: grid; }
.search-filters .field { margin: 0; }
.search-filters .field-single select,
.search-filters .field-range select { width: 100%; border-radius: 10px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.search-filters .field-single select:focus,
.search-filters .field-range select:focus { border-color: var(--color-secondary); box-shadow: 0 0 0 3px rgba(76, 121, 62, 0.14); outline: none; }
.search-filters .field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
  color: var(--color-grey);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 640px) {
  .search-primary { flex-wrap: wrap; border-radius: 20px; }
  .search-primary .field-location { flex-basis: 100%; }
  .search-primary .field-location input { border-radius: 12px; }
  .search-primary button[type="submit"] { flex: 1 1 auto; border-radius: 12px; }
  .filters-toggle { flex: 1 1 auto; justify-content: center; border-radius: 12px; }
  .search-filters .field label { white-space: normal; }
}

/* Home page: same advanced search bar, styled to sit under the hero buttons */
.home-search-wrap {
  margin: 28px auto 0;
  max-width: 720px;
  width: 100%;
}
.home-search-wrap .buy-search-form {
  padding: 18px 20px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-actions, .home-search-wrap, .hero-help-grid { width: 100%; }

/* ---------- Buy page: listing cards ---------- */
.buy-listings-section { padding-top: 72px; }
.buy-listing-grid .property-card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.buy-card-media { position: relative; overflow: hidden; }
.buy-card-media img { transition: transform 0.4s ease; }
.property-card:hover .buy-card-media img { transform: scale(1.06); }
.buy-card-media .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  margin: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}
.buy-listing-grid .property-card .body { padding: 20px; }
.buy-listing-grid .price { font-size: 1.3rem; }
.buy-card-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
}
.buy-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--color-grey);
}
.buy-card-meta svg { width: 14px; height: 14px; fill: var(--color-secondary); flex-shrink: 0; }

/* ---------- Property detail page (pages/property/property.html) ---------- */
.property-page-section { padding: 40px 0 72px; }
.property-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--color-secondary-dark);
  margin-bottom: 24px;
}
.property-back-link:hover { text-decoration: underline; }
.property-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 40px;
}
@media (max-width: 860px) {
  .property-detail-grid { grid-template-columns: 1fr; }
}
.property-detail-media { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,0.14); }
.property-detail-media img { width: 100%; height: 100%; max-height: 480px; object-fit: cover; display: block; }
.property-detail-media .tag { position: absolute; top: 16px; left: 16px; margin: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.18); }
.property-detail-summary .price { font-size: 1.8rem; }
.property-detail-summary h1 { font-size: 1.7rem; margin: 4px 0 14px; }
.property-detail-meta { gap: 18px; margin-bottom: 20px; font-size: 0.95rem; }
.property-teaser {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 18px;
  max-width: 900px;
  margin: 0 auto 20px;
}
.property-teaser img { width: 140px; height: 100px; object-fit: cover; border-radius: 10px; flex-shrink: 0; background: var(--color-silver); }
.property-teaser-info { min-width: 0; }
.property-teaser-info .price { font-size: 1.3rem; }
.property-teaser-info h1 { font-size: 1.25rem; margin: 2px 0 8px; }
.property-teaser-info .tag { margin-bottom: 6px; }
@media (max-width: 560px) {
  .property-teaser { flex-direction: column; align-items: flex-start; }
  .property-teaser img { width: 100%; height: 160px; }
}

.property-locked-note {
  background: var(--color-bg-light);
  border: 1px dashed #cfd8c8;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.92rem;
  color: var(--color-grey);
  max-width: 900px;
  margin: 0 auto 24px;
}
.property-returning-client { margin: 10px 0 0; }
.link-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 700;
  color: var(--color-secondary-dark);
  text-decoration: underline;
  cursor: pointer;
}
.link-button:hover { color: var(--color-secondary); }
.property-unlocked-detail h3 { margin-top: 0; }
.property-form-card {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  padding: 32px;
  max-width: 900px;
  margin: 0 auto 40px;
}
.property-form-card .cma-grid { gap: 16px 20px; }
@media (max-width: 640px) {
  .property-form-card { padding: 22px 18px; }
}

@media (max-width: 640px) {
  .page-hero-buy h1 { font-size: 2.1rem; }
  .buy-search-wrap { margin-top: 28px; }
  .buy-search-form { padding: 18px; }
}

/* ---------- Buy page: property inquiry modal ---------- */
.property-card { position: relative; }
.property-card .btn-inquire {
  display: inline-block;
  margin-top: 10px;
  background: var(--color-secondary);
  color: var(--color-white);
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  width: 100%;
  text-align: center;
}
.property-card .btn-inquire:hover { background: var(--color-secondary-dark); }

.inquiry-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.inquiry-modal.active { display: flex; }
.inquiry-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 27, 27, 0.55);
}
.inquiry-modal-dialog {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  padding: 36px 40px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
}
@media (max-width: 640px) {
  .inquiry-modal-dialog { padding: 24px 20px; }
}
/* Form was cramped at the old 460px width — this gives each field (and its
   feedforward hint) room to breathe the way the contact page form does. */
.inquiry-modal-dialog .cma-grid { gap: 16px 20px; }
.inquiry-modal-dialog .form-row { margin-bottom: 18px; }
.inquiry-modal-dialog h3 { margin-bottom: 14px; }
.inquiry-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-grey);
}
.inquiry-modal-close:hover { color: var(--color-black); }
.inquiry-modal-listing {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--color-bg-light);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 18px;
}
.inquiry-modal-listing img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.inquiry-modal-listing div strong { display: block; font-size: 0.92rem; }
.inquiry-modal-listing div span { font-size: 0.82rem; color: var(--color-grey); }
.inquiry-modal-dialog h3 { margin-top: 0; }
.inquiry-modal-dialog .form-success { margin-bottom: 14px; }
.property-form-dialog { max-width: 820px; }
.property-form-dialog .property-locked-note { margin: 24px 0 0; max-width: none; }
/* =====================================================================
   Full-screen menu — toggle button + overlay
   ===================================================================== */
.nav-wrap { z-index: 2; }
.logo { order: 1; }
.nav-links { order: 2; margin-left: auto; }

.nav-toggle {
  order: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 46px;
  height: 46px;
  margin-left: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-white);
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:focus-visible { outline: 3px solid var(--color-primary-light); outline-offset: 2px; border-radius: 8px; }
.nav-toggle-star svg { display: block; width: 30px; height: 30px; fill: currentColor; }
.nav-toggle-star {
  display: block; line-height: 0;
  font-size: 30px;
  line-height: 1;
  color: var(--color-white);
  animation: navNorthStarTwinkle 1.8s ease-in-out infinite;
  transition: transform 0.32s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-star {
  transform: rotate(90deg) scale(1.1);
}
@media (prefers-reduced-motion: reduce) {
  .nav-toggle-star { animation: none; }
}

/* Overlay: expands from the toggle button as a circular reveal.
   Uses position: fixed (viewport-relative) rather than absolute so the
   reveal origin and full-screen coverage stay correct no matter how far
   the page is scrolled when the menu is opened.
   Scroll locking itself is done in JS (index.js) by pinning <body> with
   position:fixed at its current scroll offset, then restoring that offset
   on close — setting overflow:hidden on html/body directly broke the
   sticky header (it would stop being interactable/visible after the menu
   was opened and closed while scrolled down), so that's avoided here. */
body.menu-locked { position: fixed; left: 0; right: 0; overflow: hidden; }
.menu-overlay {
  --ox: 100%; --oy: 0px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  color: var(--color-white);
  background: linear-gradient(160deg, #6b8a5f 0%, #54704b 45%, #3d5738 100%);
  background-size: 220% 220%;
  --menu-accent: #f4f9ea;
  visibility: hidden;
  pointer-events: none;
  clip-path: circle(0px at var(--ox) var(--oy));
  transition: clip-path 0.6s cubic-bezier(0.7, 0, 0.3, 1), visibility 0s linear 0.6s;
}
.menu-overlay::-webkit-scrollbar { display: none; }
/* Blue "water ripple" ring that leads the edge of the green reveal, both
   opening and closing. A radial-gradient ring, clipped to the same
   circle as the overlay but drawn one size step ahead, so a thin band of
   blue is always visible right at the growing/shrinking edge. */
.menu-overlay::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at var(--ox) var(--oy),
    transparent calc(var(--ripple-r, 0px) - 34px),
    rgba(120, 190, 255, 0.85) calc(var(--ripple-r, 0px) - 14px),
    rgba(60, 140, 220, 0.55) var(--ripple-r, 0px),
    transparent calc(var(--ripple-r, 0px) + 34px));
  clip-path: circle(0px at var(--ox) var(--oy));
  transition: clip-path 0.6s cubic-bezier(0.7, 0, 0.3, 1);
}
.menu-open .menu-overlay {
  visibility: visible;
  pointer-events: auto;
  clip-path: circle(150vmax at var(--ox) var(--oy));
  transition: clip-path 0.95s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s;
}
.menu-open .menu-overlay::before {
  --ripple-r: 150vmax;
  clip-path: circle(150vmax at var(--ox) var(--oy));
  transition: clip-path 0.95s cubic-bezier(0.7, 0, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .menu-overlay::before { display: none; }
}
.menu-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(34vmax 26vmax at 94% 6%, rgba(8, 114, 186, 0.42), transparent 70%),
    radial-gradient(28vmax 24vmax at 2% 58%, rgba(8, 114, 186, 0.26), transparent 70%);
}
/* Static blurred accent shapes — previously animated on an infinite loop
   the whole time the menu was open, which was heavy on lower-end/mobile
   GPUs. They're decorative, so keep them fixed in place instead. */
.menu-glow::before, .menu-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.5;
}
.menu-glow::before { width: 46vmax; height: 46vmax; left: -12vmax; bottom: -18vmax; background: #a9c08b; }
.menu-glow::after { width: 26vmax; height: 26vmax; right: -6vmax; top: 34vh; background: var(--color-samson-blue); opacity: 0.32; }

.menu-inner {
  position: relative;
  min-height: 100%;
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
  /* Clears the sticky header (height tracked in --header-h by index.js) so
     the header stays visibly separate from the first menu row instead of
     the row sliding in underneath it. */
  padding: calc(var(--header-h, 72px) + clamp(20px, 4vh, 40px)) clamp(20px, 6vw, 88px) calc(36px + env(safe-area-inset-bottom));
}

.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.menu-list li:first-child { border-top: 1px solid rgba(255, 255, 255, 0.18); }

.menu-link {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
  padding: clamp(12px, 2.4vh, 22px) 6px;
  color: var(--color-white);
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.3s ease, background 0.3s ease;
}
.menu-open .menu-link { animation: menuIn 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i) * 60ms + 280ms) backwards; }
@keyframes menuIn { from { transform: translateY(105%); opacity: 0; } }

/* row highlight sweeps in from the left */
.menu-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.menu-num { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.6); transition: color 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.menu-text { position: relative; display: flex; flex-direction: column; gap: 4px; transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.menu-title { font-size: clamp(2rem, 5.4vw, 3.7rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; }
.menu-desc { font-size: 0.95rem; line-height: 1.4; color: rgba(255, 255, 255, 0.82); max-width: 46ch; }
.menu-arrow { width: clamp(22px, 3vw, 30px); height: clamp(22px, 3vw, 30px); fill: currentColor; opacity: 0; transform: translateX(-14px); transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }

.menu-link[aria-current="page"] .menu-num { color: var(--menu-accent); }
.menu-link[aria-current="page"] .menu-title::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 14px; border-radius: 50%; background: var(--menu-accent); vertical-align: middle; }

.menu-link:focus-visible { outline: 3px solid var(--menu-accent); outline-offset: -3px; }
.menu-link:hover::before, .menu-link:focus-visible::before { transform: scaleX(1); }
.menu-link:hover .menu-text, .menu-link:focus-visible .menu-text { transform: translateX(14px); }
.menu-link:hover .menu-num, .menu-link:focus-visible .menu-num { color: var(--menu-accent); transform: translateX(-2px); }
.menu-link:hover .menu-arrow, .menu-link:focus-visible .menu-arrow { opacity: 1; transform: none; }
@media (hover: hover) { .menu-list:hover .menu-link:not(:hover) { opacity: 0.5; } }
.menu-link:active { background: rgba(255, 255, 255, 0.1); }

/* Right column (desktop): live description of the hovered page + contact card */
.menu-aside {
  display: flex; flex-direction: column; gap: 28px;
  /* Stays pinned under the header while the menu list scrolls, so the
     "What's inside" card is always visible (even down at FAQ/About/Contact).
     The scroll container is .menu-overlay (overflow-y: auto). */
  position: sticky;
  top: calc(var(--header-h, var(--header-height, 72px)) + clamp(20px, 4vh, 40px));
  align-self: start;
}
.menu-open .menu-aside { animation: menuIn 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i) * 60ms + 280ms) backwards; }
.menu-preview { min-height: 190px; padding: 28px; border-radius: 18px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.24); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.menu-preview.swap > * { animation: previewSwap 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.menu-preview.swap > *:nth-child(2) { animation-delay: 0.04s; }
.menu-preview.swap > *:nth-child(3) { animation-delay: 0.08s; }
@keyframes previewSwap { from { opacity: 0; transform: translateY(10px); } }
.menu-preview-kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--menu-accent); }
.menu-preview-title { margin: 10px 0 8px; font-size: 1.9rem; font-weight: 800; }
.menu-preview-desc { margin: 0; font-size: 1.05rem; line-height: 1.5; color: rgba(255, 255, 255, 0.9); }


/* Desktop with a mouse: descriptions live in the preview card; keep them readable by screen readers only */
@media (min-width: 981px) and (hover: hover) {
  .menu-desc { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Phones / tablets / touch: single column, descriptions always visible (no hover to reveal them) */
@media (max-width: 980px), (hover: none) {
  .menu-inner { grid-template-columns: 1fr; align-items: start; gap: 28px; }
  .menu-aside { display: none; }
  .menu-arrow { opacity: 0.7; transform: none; }
  .menu-link:hover .menu-text { transform: none; }
}
@media (max-width: 560px) {
  .menu-inner { padding-top: calc(var(--header-h, 64px) + 20px); }
  .menu-link { gap: 12px; }
  .menu-desc { font-size: 0.9rem; }
}
@media (max-height: 640px) and (min-width: 981px) { .menu-inner { align-items: start; } }

@media (prefers-reduced-motion: reduce) {
  .menu-overlay, .menu-open .menu-overlay { clip-path: none; opacity: 0; transition: opacity 0.2s ease, visibility 0s linear 0.2s; }
  .menu-open .menu-overlay { opacity: 1; transition: opacity 0.2s ease, visibility 0s; }
  .menu-open .menu-link, .menu-open .menu-aside, .menu-preview.swap > *, .menu-glow::before, .menu-glow::after, .menu-open .menu-overlay { animation: none; }
  .menu-link::before, .menu-text, .menu-arrow, .menu-num { transition: none; }
}

/* Nothing floats over the menu */
html.menu-open .floating-contact,
html.menu-open .back-to-top { opacity: 0; visibility: hidden; pointer-events: none; }

/* =====================================================================
   Scheduling card + form polish (RBH cleanup)
   ===================================================================== */
[hidden] { display: none !important; }

/* Untouched <select> was showing a red "invalid" border on page load
   (:placeholder-shown never matches selects). Inputs/textareas only. */
select:invalid:not(:placeholder-shown) { border-color: var(--color-silver); }

/* Message-style labels: counter sits at the right edge, not jammed on the label */
.form-row label .char-counter { float: right; font-weight: 500; }
.form-row label::after { content: ""; display: table; clear: both; }

.contact-info-item a,
.schedule-or a { color: var(--color-secondary-dark); font-weight: 600; text-decoration: none; }
.contact-info-item a:hover,
.schedule-or a:hover { text-decoration: underline; }
.contact-email-link { overflow-wrap: anywhere; }

/* Schedule card (left column on Contact / Buy / Sell) */
.schedule-card {
  background: var(--color-bg-light);
  border: 1px solid #e3e9df;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 22px;
  margin: 24px 0;
}
.schedule-card h3 { margin: 0 0 6px; color: var(--color-secondary-dark); }
.schedule-card p { margin: 0 0 14px; color: var(--color-grey); font-size: 0.95rem; }
.schedule-card .schedule-or { display: block; margin-top: 12px; font-size: 0.88rem; color: var(--color-grey); }

#seller-lead-form, #buyer-lead-form { scroll-margin-top: 90px; }

/* CTA band (About / FAQ) */
.cta-band { background: var(--color-secondary); color: var(--color-white); text-align: center; padding: 52px 0; }
.cta-band h2 { color: var(--color-white); margin: 0 0 8px; }
.cta-band p { max-width: 560px; margin: 0 auto 22px; color: rgba(255,255,255,0.9); }
.cta-band-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn { min-width: 200px; text-align: center; text-decoration: none; }

/* Form sub-headings on the longer Buy form */
#buy-form h3 { margin: 26px 0 12px; color: var(--color-secondary-dark); font-size: 1.05rem; }
#buy-form h3:first-child { margin-top: 0; }

@media (max-width: 600px) {
  .form-card { padding: 20px 16px; }
  .cta-band { padding: 40px 0; }
  .cta-band .btn { width: 100%; }
}

/* Eyebrow on light sections: .buy-eyebrow (white text) was declared later than
   .sell-eyebrow-dark and won, so the label was white-on-white (Buy + Sell). */
.buy-eyebrow.sell-eyebrow-dark {
  background: rgba(8, 114, 186, 0.1);
  color: var(--color-secondary-dark);
}

/* Info column was too narrow for the email address; form was capped at 640px
   and floated in the middle. Give the info column a real minimum width and
   let the form sit flush against it. */
.sell-lead-section .two-col,
#contact-form-section .two-col {
  grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr);
  gap: 48px;
}
.sell-lead-section .form-card,
#contact-form-section .form-card { max-width: 760px; margin: 0; width: 100%; }
@media (max-width: 900px) {
  .sell-lead-section .two-col,
  #contact-form-section .two-col { grid-template-columns: 1fr; gap: 32px; }
  .sell-lead-section .form-card,
  #contact-form-section .form-card { max-width: none; }
}

/* Mobile header: logo wrapped to two lines on phones; scale it to fit on one */
@media (max-width: 480px) {
  .logo { font-size: 1.45rem; white-space: nowrap; }
}
@media (max-width: 360px) {
  .logo { font-size: 1.25rem; }
}


/* ---------- Hero background images (photo + dark overlay for text contrast; gradient is the fallback) ---------- */
.hero-bg-home, .hero-bg-communities, .hero-bg-buy, .hero-bg-sell, .hero-bg-faq, .hero-bg-about {
  background-size: cover, cover, cover;
  background-repeat: no-repeat;
  background-position: center, var(--hero-pos, 50% 45%), center;
}
.hero-bg-home { --hero-pos: 50% 45%; background-image: linear-gradient(135deg, rgba(20,45,30,0.55), rgba(8,60,100,0.45)), url('../img/hero-home.jpg'), linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 55%, var(--color-secondary) 130%); }
.hero-bg-communities { --hero-pos: 50% 55%; background-image: linear-gradient(135deg, rgba(20,45,30,0.55), rgba(8,60,100,0.45)), url('../img/hero-communities.jpg'), linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 55%, var(--color-secondary) 130%); }
.hero-bg-buy { --hero-pos: 50% 38%; background-image: linear-gradient(135deg, rgba(20,45,30,0.55), rgba(8,60,100,0.45)), url('../img/hero-buy.jpg'), linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 55%, var(--color-secondary) 130%); }
.hero-bg-sell { --hero-pos: 50% 50%; background-image: linear-gradient(135deg, rgba(20,45,30,0.55), rgba(8,60,100,0.45)), url('../img/hero-sell.jpg'), linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 55%, var(--color-secondary) 130%); }
.hero-bg-faq { --hero-pos: 70% 50%; background-image: linear-gradient(135deg, rgba(20,45,30,0.55), rgba(8,60,100,0.45)), url('../img/hero-faq.jpg'), linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 55%, var(--color-secondary) 130%); }
.hero-bg-about { --hero-pos: 50% 40%; background-image: linear-gradient(135deg, rgba(20,45,30,0.55), rgba(8,60,100,0.45)), url('../img/hero-about.jpg'), linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 55%, var(--color-secondary) 130%); }
@media (max-width: 700px) {
  .hero-bg-home { --hero-pos: 50% 45%; }
  .hero-bg-communities { --hero-pos: 50% 55%; }
  .hero-bg-buy { --hero-pos: 45% 38%; }
  .hero-bg-sell { --hero-pos: 8% 50%; }
  .hero-bg-faq { --hero-pos: 78% 50%; }
  .hero-bg-about { --hero-pos: 40% 40%; }
}
.hero-bg-home h1, .hero-bg-communities h1, .hero-bg-buy h1, .hero-bg-sell h1, .hero-bg-faq h1, .hero-bg-about h1,
.hero-bg-home p, .hero-bg-communities p, .hero-bg-buy p, .hero-bg-sell p, .hero-bg-faq p, .hero-bg-about p { text-shadow: 0 2px 14px rgba(0,0,0,0.4); }

/* ---------- Header fit: longer nav labels (Search For Your Next Home / Estimation of Home Value) ---------- */
.logo { white-space: nowrap; flex-shrink: 0; }
.nav-links { gap: 18px; }
.nav-links a { font-size: 0.88rem; white-space: nowrap; }
.nav-wrap { max-width: 1320px; }
@media (max-width: 1240px) { .nav-links { gap: 12px; } .nav-links a { font-size: 0.82rem; } .logo { font-size: 1.7rem; } }

/* Desktop header: logo + title pinned far left, tabs + menu toggle pinned far right (mobile unchanged) */
@media (min-width: 901px) {
  .site-header .nav-wrap {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    padding-left: 28px;
    padding-right: 28px;
    justify-content: space-between;
  }
  .site-header .nav-links { margin-left: auto; }
  .site-header .nav-toggle { margin-left: 16px; margin-right: -8px; }
}
@media (min-width: 1500px) {
  .site-header .nav-wrap { padding-left: 40px; padding-right: 40px; }
  .site-header .nav-links { gap: 28px; }
}


/* ---------- RealScout home search (Properties + Communities pages) ---------- */
.realscout-section { padding: 40px 0 8px; background: var(--color-white); }
.realscout-section[hidden] { display: none; }
.realscout-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px clamp(16px, 3vw, 32px) 32px;
  background: var(--color-white);
  border: 1px solid rgba(124, 154, 111, 0.35);
  border-top: 4px solid var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.realscout-head { text-align: center; margin-bottom: 18px; }
.realscout-head h2 { margin: 0 0 6px; }
.realscout-head p { margin: 0; color: var(--color-grey); }
.realscout-mount { min-height: 64px; }
.realscout-devnote {
  display: none;
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px dashed var(--color-secondary);
  border-radius: var(--radius);
  background: var(--color-bg-light);
  font-size: 0.9rem;
  color: var(--color-black);
}
html.rs-dev .realscout-section:not(.has-widget) .realscout-devnote { display: block; }
.realscout-note { margin: 14px 0 0; text-align: center; font-size: 0.8rem; color: var(--color-grey); }


/* RealScout blocks inside the card */
.realscout-block + .realscout-block { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(124, 154, 111, 0.35); }
.realscout-block-title { margin: 0 0 14px; text-align: center; }
.realscout-mount realscout-simple-search,
.realscout-mount realscout-advanced-search,
.realscout-mount realscout-home-value { display: block; width: 100%; max-width: 640px; margin: 0 auto; }
.realscout-mount realscout-your-listings,
.realscout-mount realscout-office-listings { display: block; width: 100%; }

/* Search widget sits directly under a compact hero so hero + widget fit on one desktop screen */
.page-hero-buy.hero-compact { padding: 40px 24px 48px; }
.page-hero-buy.hero-compact h1 { font-size: 2.2rem; margin-bottom: 4px; }
.page-hero-buy.hero-compact .buy-eyebrow { margin-bottom: 10px; }
.realscout-section--top { padding: 24px 0 8px; }
.realscout-section--top .realscout-card { padding-top: 20px; padding-bottom: 22px; }
.realscout-section--top .realscout-head { margin-bottom: 12px; }
.realscout-section--top .realscout-head h2 { font-size: 1.4rem; }
.realscout-section--top .realscout-head p { font-size: 0.95rem; }
.realscout-section--top .realscout-note { margin-top: 10px; }
@media (max-width: 640px) { .page-hero-buy.hero-compact { padding: 32px 20px 40px; } .page-hero-buy.hero-compact h1 { font-size: 1.8rem; } }

/* ---------- Button text: centered on both axes ----------
   .btn (display:inline-block) is declared after .hero-btn and was overriding its flex centering. */
.hero-actions .hero-btn, .btn.hero-btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; }

/* ---------- Desktop "first screen" layout ----------
   Header (height tracked in --header-h by index.js) + page top fill exactly one screen;
   the footer only appears after scrolling. */
.communities-split { padding: 16px 0 28px; }
.communities-split-inner { display: grid; grid-template-columns: 1fr; gap: 20px; }
.communities-split .realscout-section { padding: 0; background: none; }
.communities-split .realscout-card { max-width: none; margin: 0; }
.communities-listings .realscout-mount { max-height: 520px; overflow-y: auto; }
.communities-map iframe { display: block; width: 100%; height: 360px; border: 0; border-radius: var(--radius); }

@media (min-width: 981px) {
  .hero-home.hero-merged {
    min-height: calc(100vh - var(--header-h, 92px));
    min-height: calc(100dvh - var(--header-h, 92px));
    display: flex; flex-direction: column; justify-content: center;
  }
  .hero-home.hero-merged > .hero-inner { width: 100%; }

  .fold { display: flex; flex-direction: column; min-height: calc(100vh - var(--header-h, 92px)); min-height: calc(100dvh - var(--header-h, 92px)); }
  .fold > .page-hero { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
  .fold > .page-hero > .container { width: 100%; }
  .fold > .realscout-section { flex: 0 0 auto; }

  /* Communities: hero + search stay compact; listings (left) + map (right) fill the rest */
  .fold-communities > .page-hero { flex: 0 0 auto; }
  .fold-communities > .communities-split { flex: 1 1 auto; display: flex; }
  .communities-split-inner { flex: 1 1 auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); min-height: 340px; }
  .communities-listings { display: flex; min-height: 0; }
  .communities-listings[hidden] { display: none; }
  .communities-listings .realscout-card { display: flex; flex-direction: column; width: 100%; min-height: 0; padding: 16px 20px; }
  .communities-listings .realscout-head { margin-bottom: 8px; }
  .communities-listings .realscout-head h2 { font-size: 1.2rem; }
  .communities-listings .realscout-head p { font-size: 0.9rem; }
  .communities-listings .realscout-block { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .communities-listings .realscout-mount { flex: 1 1 auto; min-height: 0; max-height: none; }
  .communities-map { min-height: 0; }
  .communities-map iframe { height: 100%; min-height: 320px; }

  /* FAQ: hero + questions fill the first screen */
  .fold-faq > section { flex: 1 1 auto; }
}

/* "Contact Roxanne about a home" row under the search widget */
.realscout-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin: 16px 0 0; text-align: center; }
.realscout-cta span { font-size: 0.9rem; color: var(--color-grey); }
.realscout-cta .btn.btn-primary { background: var(--color-secondary); color: var(--color-white); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.realscout-cta .btn.btn-primary:hover { background: var(--color-secondary-dark); }
.realscout-section--top .realscout-cta { margin-top: 12px; }
