/* Self-hosted fonts (latin) — Inter + Playfair Display, OFL license */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/fonts/playfair-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0a2540;
  --navy-mid: #2c3e50;
  --navy-dark: #34495e;
  --blue: #2563eb;
  --blue-bright: #1d4ed8;
  --blue-dark: #1e3a8a;
  --blue-light: #93c5fd;
  --green: #059669;
  --green-bright: #10b981;
  --bg: #f9fafb;
  --bg-alt: #f3f4f6;
  --text: #111827;
  --text-muted: #4b5563;
  --white: #ffffff;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.88);
  --on-dark-subtle: rgba(255, 255, 255, 0.72);
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 2px 12px rgba(10, 37, 64, 0.08);
  --shadow-medium: 0 8px 30px rgba(10, 37, 64, 0.12);
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  padding-bottom: 72px;
}

body.no-sticky-cta {
  padding-bottom: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

a {
  color: inherit;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 0.75rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-soft);
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.logo {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  color: var(--white);
}

a.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.logo img {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: contain;
  background: white;
  padding: 2px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.logo-title {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  white-space: nowrap;
  color: var(--white);
}

.logo-subtitle {
  font-size: clamp(0.7rem, 1.1vw, 0.82rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.nav-call {
  display: none;
  align-items: center;
  gap: 0.35rem;
  background: var(--navy);
  color: var(--white) !important;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}

.nav-call:hover {
  background: var(--blue-dark);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.35rem;
  color: white;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: white;
  border-radius: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(0.45rem, 1vw, 1.1rem);
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: clamp(0.72rem, 0.95vw, 0.88rem);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-links a:hover:not(.nav-schedule),
.nav-links a.active:not(.nav-schedule) {
  color: var(--blue-light);
}

.nav-links a.active:not(.nav-schedule) {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Breadcrumb */
.breadcrumb-nav {
  background: var(--bg);
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
  margin-top: var(--header-height);
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.breadcrumb-item a {
  color: var(--blue);
  text-decoration: none;
}

.breadcrumb-item:not(:last-child)::after {
  content: '›';
  margin: 0 0.5rem;
  color: var(--text-muted);
}

.breadcrumb-item[aria-current='page'] {
  color: var(--text-muted);
}

/* Typography */
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 0.75rem;
}

.hero .section-eyebrow,
.page-header .section-eyebrow {
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.14);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.section-title {
  font-family: var(--font-display);
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
  color: var(--navy-mid);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

section {
  padding: 5rem 0;
}

.text-accent {
  color: var(--blue-light);
}

.hero .text-accent,
.page-header .text-accent {
  color: #ffffff;
}

/* Above-fold / CTA sections must not wait for fade-in JS (LCP + button readability) */
.hero .fade-in,
.contact .fade-in,
.contact .contact-cta-group {
  opacity: 1;
  transform: none;
}

/* Hero */
.hero {
  background:
    linear-gradient(135deg, rgba(10, 37, 64, 0.88), rgba(44, 62, 80, 0.78)),
    url('/images/hero-bg.jpg');
  background:
    linear-gradient(135deg, rgba(10, 37, 64, 0.88), rgba(44, 62, 80, 0.78)),
    image-set(
      url('/images/hero-bg.webp') type('image/webp'),
      url('/images/hero-bg.jpg') type('image/jpeg')
    );
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding-top: var(--header-height);
}

.hero-content h1 {
  font-family: var(--font-display), Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero-content > p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero-trust-item {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 1rem 0.75rem;
}

.hero-trust-item strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
}

.hero-trust-item span {
  font-size: 0.75rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Page header (inner pages) */
.page-header {
  background:
    linear-gradient(135deg, rgba(10, 37, 64, 0.88), rgba(44, 62, 80, 0.78)),
    url('/images/hero-bg.jpg');
  background:
    linear-gradient(135deg, rgba(10, 37, 64, 0.88), rgba(44, 62, 80, 0.78)),
    image-set(
      url('/images/hero-bg.webp') type('image/webp'),
      url('/images/hero-bg.jpg') type('image/jpeg')
    );
  background-size: cover;
  background-position: center;
  min-height: 42vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  margin-top: var(--header-height);
  padding: 3rem 0;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.page-byline {
  font-size: 0.875rem;
  color: var(--on-dark-muted);
  margin: 0.25rem 0 0.75rem;
}

.page-header .page-byline {
  max-width: 600px;
  margin: 0.25rem auto 0.75rem;
}

.hero .page-byline {
  margin: 0.5rem auto 1rem;
  opacity: 0.92;
}

.page-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--on-dark-muted);
}

/* Dark sections need light headings */
.hero .section-title,
.page-header .section-title,
.contact .section-title,
.cta .section-title {
  color: var(--on-dark);
}

.contact .section-subtitle,
.cta .section-subtitle,
.cta p {
  color: var(--on-dark-muted);
}

/* Buttons — V0 WCAG AA pattern (min 44px touch targets, 4.5:1 contrast) */
.cta-button,
.cta-button-outline,
.btn-primary,
.contact-actions a,
.sticky-call-bar a,
.calendly-link-btn,
.calendly-link-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  text-align: center;
}

.cta-button:focus-visible,
.cta-button-outline:focus-visible,
.btn-primary:focus-visible,
.contact-actions a:focus-visible,
.sticky-call-bar a:focus-visible,
.calendly-link-btn:focus-visible,
.calendly-link-btn-dark:focus-visible,
.nav-links .nav-schedule:focus-visible {
  outline: 3px solid #e8c547;
  outline-offset: 3px;
}

.cta-button {
  display: inline-block;
  background: var(--navy);
  color: var(--white) !important;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(10, 37, 64, 0.25);
  border: 2px solid transparent;
  cursor: pointer;
}

.cta-button:hover {
  background: var(--blue-dark);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 37, 64, 0.3);
}

/* Primary CTA on dark backgrounds: white fill, dark text */
.hero .cta-button:not(.cta-button-outline),
.page-header .cta-button:not(.cta-button-outline),
.contact .cta-button:not(.cta-button-outline),
.cta .cta-button:not(.cta-button-outline) {
  background: var(--white);
  color: var(--navy) !important;
  border-color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero .cta-button:not(.cta-button-outline):hover,
.page-header .cta-button:not(.cta-button-outline):hover,
.contact .cta-button:not(.cta-button-outline):hover,
.cta .cta-button:not(.cta-button-outline):hover {
  background: #f3f4f6;
  color: var(--navy) !important;
}

/* Outline CTA on dark backgrounds: white border + white text */
.hero .cta-button-outline,
.page-header .cta-button-outline,
.contact .cta-button-outline,
.cta .cta-button-outline {
  background: transparent !important;
  color: var(--white) !important;
  border: 2px solid var(--white) !important;
  box-shadow: none;
}

.hero .cta-button-outline:hover,
.page-header .cta-button-outline:hover,
.contact .cta-button-outline:hover,
.cta .cta-button-outline:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: var(--white) !important;
  border-color: var(--white) !important;
}

.cta-button-outline {
  background: transparent !important;
  color: var(--navy) !important;
  border: 2px solid var(--navy);
  box-shadow: none;
}

.cta-button-outline:hover {
  background: var(--bg) !important;
  color: var(--navy) !important;
  border-color: var(--navy);
}

/* Primary CTA on light backgrounds */
.testimonials .cta-button,
.calendly-section .cta-button,
.intro .cta-button,
.services + .calendly-section .cta-button {
  background: var(--navy);
  color: var(--white) !important;
}

.testimonials .cta-button:hover,
.calendly-section .cta-button:hover {
  background: var(--blue-dark);
  color: var(--white) !important;
}

.btn-primary {
  background: var(--navy);
  color: var(--white) !important;
  padding: 0.85rem 1.35rem;
  border: 2px solid var(--navy);
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  transition: background 0.2s, border-color 0.2s;
}

.btn-primary:hover {
  background: #1a4a7a;
  border-color: #1a4a7a;
  color: var(--white) !important;
}

.btn-secondary {
  background: var(--white);
  color: var(--navy) !important;
  border: 2px solid #d1d5db;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--bg);
  color: var(--navy) !important;
}

/* Cards & grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card,
.experience-card,
.stat-card,
.neighborhood-card,
.testimonial,
.property-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.experience-card:hover,
.stat-card:hover,
.neighborhood-card:hover,
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.services-grid,
.experience-grid,
.stats-grid,
.neighborhoods-grid,
.testimonials-grid,
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card,
.experience-card {
  padding: 2rem;
  text-align: center;
}

.service-icon,
.experience-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3,
.experience-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--navy-mid);
}

/* RealScout */
realscout-office-listings,
realscout-advanced-search,
realscout-home-value {
  --rs-listing-divider-color: rgb(101, 141, 172);
  width: 100%;
}

realscout-home-value {
  --rs-hvw-background-color: #ffffff;
  --rs-hvw-title-color: var(--navy-mid);
  --rs-hvw-subtitle-color: rgba(28, 30, 38, 0.5);
  --rs-hvw-input-text-color: inherit;
  --rs-hvw-primary-button-text-color: #ffffff;
  --rs-hvw-primary-button-color: rgb(35, 93, 137);
  --rs-hvw-secondary-button-text-color: rgb(35, 93, 137);
  --rs-hvw-secondary-button-color: #ffffff;
  --rs-hvw-widget-width: 100%;
}

.realscout-home-value-section {
  background: var(--bg);
  padding: 4rem 0;
}

.realscout-home-value-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.realscout-portal-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid #e5e7eb;
}

.realscout-portal-banner h3 {
  font-family: var(--font-display);
  color: var(--navy-mid);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.realscout-portal-banner p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.realscout-portal-note {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.realscout-portal-note a {
  color: var(--blue-dark);
  font-weight: 700;
}

.search-section .section-title,
.search-section .section-subtitle {
  text-align: center;
}

.search-section .section-subtitle {
  max-width: 640px;
  margin: 0 auto 2rem;
}

.realscout-listings {
  background: var(--bg);
}

.search-section {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-dark));
  color: var(--white);
}

.search-section .section-title,
.search-section .section-subtitle {
  color: var(--on-dark);
}

.search-section .section-subtitle {
  color: var(--on-dark-muted);
}

.search-container {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-medium);
  max-width: 800px;
  margin: 0 auto;
}

.search-container h3 {
  font-family: var(--font-display);
  color: var(--navy-mid);
  text-align: center;
  margin-bottom: 1.5rem;
}

realscout-advanced-search {
  --rs-as-button-text-color: #ffffff;
  --rs-as-button-color: var(--blue-bright);
  --rs-as-widget-width: 100% !important;
}

.search-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.search-stats .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-bright);
}

.search-stats .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Market stats */
.market-stats {
  background: var(--bg);
}

.stat-card {
  padding: 2rem;
  text-align: center;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--blue-bright);
}

.stat-change.positive { color: var(--green); }
.stat-change.negative { color: #ef4444; }
.stat-change.neutral { color: #f59e0b; }

.market-updated {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1.5rem;
}

/* About */
.about {
  background: var(--bg);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.about-image img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-medium);
}

.about-text h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--navy-mid);
}

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.credential {
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Author credentials */
.author-credentials {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.credentials-container {
  background: white;
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow-medium);
  text-align: center;
}

.expert-badge h3 {
  font-family: var(--font-display);
  color: var(--navy-mid);
  font-size: 1.6rem;
  margin: 0.5rem 0 1.5rem;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.credential-item {
  display: flex;
  gap: 1rem;
  text-align: left;
  padding: 1.25rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.credential-content h4 {
  color: var(--navy-mid);
  margin-bottom: 0.35rem;
}

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

.trust-indicators {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #166534;
  font-weight: 600;
  font-size: 0.9rem;
}

.trust-icon {
  background: #166534;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

/* Neighborhoods */
.neighborhood-card {
  overflow: hidden;
  background: var(--bg);
}

.neighborhood-image {
  height: 180px;
  background: linear-gradient(135deg, var(--navy-mid), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  padding: 1rem;
  text-align: center;
}

.neighborhood-info {
  padding: 1.5rem;
}

.neighborhood-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy-mid);
  margin-bottom: 0.5rem;
}

.neighborhood-price {
  color: var(--blue-bright);
  font-weight: 700;
  margin: 0.75rem 0;
}

.neighborhood-tag {
  background: #dbeafe;
  color: #1e3a8a;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  margin-right: 0.35rem;
  display: inline-block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

/* Testimonials */
.testimonial {
  padding: 2rem;
}

.testimonial-featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-dark));
  color: white;
  text-align: center;
  padding: 3rem 2rem;
}

.testimonial-featured .testimonial-text {
  font-size: 1.35rem;
  font-family: var(--font-display);
  font-style: italic;
}

.testimonial-stars {
  color: #fbbf24;
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--navy-mid);
}

.testimonial-featured .testimonial-author {
  color: rgba(255, 255, 255, 0.9);
}

/* Contact */
.contact {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-dark));
  color: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info h3,
.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--on-dark);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-actions a {
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  background: var(--white);
  color: var(--navy) !important;
  border: 2px solid var(--white);
}

.contact-actions a:hover {
  background: #f3f4f6;
  color: var(--navy) !important;
}

.contact-actions a.outline {
  background: transparent;
  color: var(--white) !important;
  border: 2px solid var(--white);
}

.contact-actions a.outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white) !important;
}

.contact-form {
  background: rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: var(--radius);
}

.calendly-embed .calendly-inline-widget {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 1rem;
}

.calendly-popup {
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

/* High-contrast Calendly trigger — use on dark sections */
.calendly-link-btn {
  display: inline-block;
  background: var(--white);
  color: var(--navy) !important;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, transform 0.2s;
}

.calendly-link-btn:hover {
  background: #f3f4f6;
  color: var(--navy) !important;
  transform: translateY(-1px);
}

/* Calendly trigger on light backgrounds */
.calendly-link-btn-dark {
  display: inline-block;
  background: var(--navy);
  color: var(--white) !important;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s;
}

.calendly-link-btn-dark:hover {
  background: var(--blue-dark);
  color: var(--white) !important;
}

/* Nav Schedule — pill CTA (V0: readable on dark header, 44px target) */
.nav-links .nav-schedule,
.nav-links .calendly-popup.nav-schedule {
  background: #ffffff !important;
  color: #0a2540 !important;
  padding: 0.55rem 1rem !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  min-height: 44px;
}

.nav-links .nav-schedule:hover,
.nav-links .calendly-popup.nav-schedule:hover {
  background: #e8f0fe !important;
  color: #0a2540 !important;
  border-color: #e8f0fe !important;
}

.contact .calendly-popup:not(.calendly-link-btn):not(.calendly-link-btn-dark):not(.cta-button):not(.cta-button-outline),
.cta .calendly-popup:not(.calendly-link-btn):not(.calendly-link-btn-dark):not(.cta-button):not(.cta-button-outline),
.hero .calendly-popup:not(.calendly-link-btn):not(.calendly-link-btn-dark):not(.cta-button):not(.cta-button-outline),
.page-header .calendly-popup:not(.calendly-link-btn):not(.calendly-link-btn-dark):not(.cta-button):not(.cta-button-outline),
.site-footer .calendly-popup:not(.calendly-link-btn):not(.calendly-link-btn-dark),
.sticky-call-bar .calendly-popup:not(.cta-button) {
  color: var(--white) !important;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font-weight: 700;
}

.site-footer .calendly-popup.calendly-link-btn,
.contact .calendly-popup.calendly-link-btn {
  text-decoration: none !important;
}

.calendly-popup-light {
  color: var(--blue-dark) !important;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font-weight: 700;
}

.contact .calendly-popup:hover:not(.calendly-link-btn):not(.calendly-link-btn-dark):not(.cta-button):not(.cta-button-outline),
.cta .calendly-popup:hover:not(.calendly-link-btn):not(.calendly-link-btn-dark):not(.cta-button):not(.cta-button-outline),
.hero .calendly-popup:hover:not(.calendly-link-btn):not(.calendly-link-btn-dark):not(.cta-button):not(.cta-button-outline),
.page-header .calendly-popup:hover:not(.calendly-link-btn):not(.calendly-link-btn-dark):not(.cta-button):not(.cta-button-outline),
.site-footer .calendly-popup:hover:not(.calendly-link-btn):not(.calendly-link-btn-dark) {
  color: var(--blue-light) !important;
}

.contact a:not(.cta-button):not(.cta-button-outline):not(.calendly-link-btn):not(.calendly-link-btn-dark):not(.btn-primary),
.contact-form a:not(.calendly-link-btn):not(.cta-button):not(.cta-button-outline):not(.btn-primary) {
  color: var(--white);
}

/* Contact + footer buttons — prevent white-link rules from hiding label text (V0) */
.contact-form a.cta-button:not(.cta-button-outline),
.contact .contact-cta-group a.cta-button:not(.cta-button-outline) {
  background-color: #ffffff !important;
  color: #0a2540 !important;
  border: 2px solid #ffffff !important;
  text-decoration: none !important;
}

.contact-form a.cta-button:not(.cta-button-outline):hover,
.contact .contact-cta-group a.cta-button:not(.cta-button-outline):hover {
  background-color: #e8eef5 !important;
  color: #0a2540 !important;
}

.contact-form a.cta-button.cta-button-outline,
.contact .contact-cta-group a.cta-button.cta-button-outline {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  text-decoration: none !important;
}

.contact-form a.cta-button.cta-button-outline:hover,
.contact .contact-cta-group a.cta-button.cta-button-outline:hover {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--text);
}

.contact .form-group label,
.contact-form .form-group label {
  color: var(--on-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-family: inherit;
}

/* Footer */
.site-footer {
  background: var(--navy-mid);
  color: white;
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  display: block;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.footer-nav h4,
.footer-contact h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 2;
}

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

.footer-contact p,
.footer-contact a {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom a:not(.calendly-link-btn):not(.calendly-link-btn-dark) {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-bottom a.calendly-link-btn,
.footer-bottom a.calendly-popup.calendly-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff !important;
  color: #0a2540 !important;
  border: 2px solid #ffffff !important;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  min-height: 44px;
  vertical-align: middle;
  margin-left: 0.35rem;
}

.footer-bottom a.calendly-link-btn:hover,
.footer-bottom a.calendly-popup.calendly-link-btn:hover {
  background-color: #e8eef5 !important;
  color: #0a2540 !important;
}

.footer-bottom a:hover:not(.calendly-link-btn):not(.calendly-link-btn-dark) {
  color: var(--blue-light);
}

/* Sticky call bar */
.sticky-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: none;
  grid-template-columns: 1fr 1fr;
  background: var(--navy);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.sticky-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 0.75rem;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  min-height: 48px;
}

.sticky-call-bar a:first-child {
  background: #047857;
}

.sticky-call-bar a:last-child {
  background: #1d4ed8;
}

.sticky-call-bar .calendly-popup {
  background: #1d4ed8 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  width: 100%;
}

/* Property cards (properties page) */
.property-card {
  overflow: hidden;
}

.property-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--green);
  color: white;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.property-details {
  padding: 1.5rem;
}

.property-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-mid);
}

.property-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.feature {
  background: var(--bg-alt);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.property-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.intro {
  padding: 2.5rem 0;
  text-align: center;
  background: var(--bg);
}

.intro p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-muted);
}

.office-hours {
  background: var(--bg);
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.hours-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hours-card h3 {
  font-family: var(--font-display);
  color: var(--navy-mid);
  margin-bottom: 1rem;
}

.hours-list {
  list-style: none;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.95rem;
}

.cta {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-dark));
  color: white;
  text-align: center;
  padding: 4rem 0;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.neighborhoods .contact .section-subtitle {
  color: var(--on-dark-muted);
}

.calendly-section {
  background: var(--bg);
  text-align: center;
}

.calendly-section .section-subtitle,
.calendly-section > .container > p {
  color: var(--text-muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.calendly-section .service-cta {
  display: inline-block;
  background: var(--navy);
  color: var(--white) !important;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  margin: 1rem 0 1.5rem;
}

.calendly-section .service-cta:hover {
  background: var(--blue-dark);
  color: var(--white) !important;
}

.cta-actions {
  text-align: center;
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.page-header .cta-actions {
  margin-top: 1.5rem;
}

.contact-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.service-cta {
  display: inline-block;
  margin-top: 1rem;
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.service-card .service-cta,
.experience-card .service-cta {
  color: var(--blue-dark);
}

.service-cta:hover {
  color: var(--blue-dark);
}

/* Content & SEO pages */
.content-page {
  background: var(--white);
}

.content-body {
  max-width: 760px;
  margin: 0 auto;
}

.content-body h2 {
  font-family: var(--font-display);
  color: var(--navy-mid);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.content-body h3 {
  color: var(--navy-mid);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.75rem;
}

.content-body p,
.content-body li {
  color: var(--text);
  margin-bottom: 1rem;
}

.content-body ul,
.content-body ol {
  margin: 0 0 1.25rem 1.25rem;
}

.content-body a {
  color: var(--blue-dark);
  font-weight: 600;
}

.geo-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.geo-stat {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
}

.geo-stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.geo-stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
}

.faq-item h3 {
  font-family: var(--font-display);
  color: var(--navy-mid);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.faq-item p {
  color: var(--text-muted);
  margin: 0;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.related-links a {
  background: var(--bg);
  color: var(--navy) !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid #e5e7eb;
}

.related-links a:hover {
  background: var(--navy);
  color: var(--white) !important;
}

.section-cta {
  margin-top: 1.5rem;
  text-align: center;
}

.map-embed {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.neighborhood-hero-card {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-dark));
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.neighborhood-hero-card h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.neighborhood-hero-card p {
  color: var(--on-dark-muted);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.valuation-form {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 520px;
  margin: 2rem auto 0;
  box-shadow: var(--shadow-soft);
}

.valuation-form input,
.valuation-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-family: inherit;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

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

.form-status-pending {
  background: #eff6ff;
  color: #1e3a8a;
}

.form-status-success {
  background: #ecfdf5;
  color: #065f46;
}

.form-status-error {
  background: #fef2f2;
  color: #991b1b;
}

.nap-block {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.nap-block strong {
  display: block;
  font-family: var(--font-display);
  color: var(--navy-mid);
  margin-bottom: 0.5rem;
}

.neighborhood-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-bottom .calendly-link-btn {
  padding: 0.55rem 1.25rem;
  font-size: 0.95rem;
}

/* 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 */
@media (min-width: 901px) {
  .nav-call {
    display: inline-flex;
  }
}

@media (max-width: 1100px) {
  .nav-links {
    gap: 0.4rem;
  }
  .nav-links a {
    font-size: 0.78rem;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    flex-direction: column;
    background: linear-gradient(135deg, var(--navy-mid), var(--navy-dark));
    padding: 0.5rem 1rem 1rem;
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-medium);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links a {
    display: block;
    padding: 0.8rem 0;
    font-size: 1rem;
  }

  .nav-links .nav-schedule,
  .nav-links .calendly-popup.nav-schedule {
    display: flex !important;
    width: 100%;
    margin: 0.5rem 0 0.25rem;
    justify-content: center;
    padding: 0.75rem 1rem !important;
  }

  .sticky-call-bar {
    display: grid;
  }

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

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

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

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image img {
    width: 220px;
    height: 220px;
  }

  .credentials {
    justify-content: center;
  }

  .search-stats {
    grid-template-columns: 1fr;
  }

  .credentials-container {
    padding: 2rem 1.25rem;
  }

  .credential-item {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .logo img {
    width: 36px;
    height: 36px;
  }
}

/* CTA readability — max specificity + iOS text-fill (v20260708) */
.contact .contact-form a.cta-button.calendly-popup:not(.cta-button-outline),
.contact .contact-cta-group a.cta-button.calendly-popup:not(.cta-button-outline),
.contact-form .contact-cta-group a.cta-button:not(.cta-button-outline) {
  background-color: #ffffff !important;
  color: #0a2540 !important;
  -webkit-text-fill-color: #0a2540 !important;
  border: 2px solid #ffffff !important;
  text-decoration: none !important;
}

.contact .contact-cta-group a.cta-button.cta-button-outline,
.contact-form .contact-cta-group a.cta-button.cta-button-outline {
  background-color: transparent !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 2px solid #ffffff !important;
  text-decoration: none !important;
}

.site-footer .footer-bottom a.calendly-link-btn.calendly-popup,
.footer-bottom a.calendly-popup.calendly-link-btn {
  background-color: #ffffff !important;
  color: #0a2540 !important;
  -webkit-text-fill-color: #0a2540 !important;
  border: 2px solid #ffffff !important;
  text-decoration: none !important;
}

header .nav-links a.nav-schedule.calendly-popup,
.nav-links a.calendly-popup.nav-schedule {
  background-color: #ffffff !important;
  color: #0a2540 !important;
  -webkit-text-fill-color: #0a2540 !important;
  border: 2px solid #ffffff !important;
  text-decoration: none !important;
}
