:root {
  --bg: #F7F5F2;
  --surface: #FFFFFF;
  --surface-2: #F1EEE9;
  --text: #1F2937;
  --muted: rgba(31, 41, 55, 0.68);
  --line: rgba(31, 41, 55, 0.12);

  --accent: #2F6EA6;
  --accent-2: #245A86;

  --hero-blue: #204F80;
  --hero-blue-dark: #183B61;
  --hero-gold: #C5AE67;
  --hero-gold-deep: #A8924F;

  --shadow: 0 14px 40px rgba(31, 41, 55, 0.10);
  --radius: 16px;
  --radius-lg: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-top: 84px;
}

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

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

.container {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
}

.center {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 12px;
}

/* =========================
   Header
========================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  background: rgba(247, 245, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1320px, calc(100% - 24px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 470px;
  flex: 0 0 470px;
}

.brand-logo {
  height: 72px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  flex: 0 0 auto;
}

.header-phone {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  flex: 0 0 auto;
}

.header-phone a {
  color: var(--accent-2);
  text-decoration: none;
  white-space: nowrap;
}

.header-phone a:hover {
  text-decoration: underline;
}

.site-nav {
  margin-left: auto;
  padding-left: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-link {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 6px;
  border-radius: 10px;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(31, 41, 55, 0.06);
  color: var(--text);
}

.nav-link.is-active {
  color: var(--text);
  background: rgba(31, 41, 55, 0.06);
}

.nav-pill {
  border: 1px solid var(--line);
  padding: 10px 12px;
  background: rgba(31, 41, 55, 0.02);
}

.nav-pill:hover {
  border-color: rgba(31, 41, 55, 0.18);
}

/* Portals dropdown */
.nav-dropdown {
  position: relative;
  display: block;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-caret {
  font-size: 11px;
  line-height: 1;
  transform: translateY(1px);
  transition: transform 0.18s ease;
}

.nav-dropdown[open] .nav-caret {
  transform: translateY(1px) rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(31, 41, 55, 0.14);
  display: grid;
  gap: 6px;
  z-index: 2500;
}

.nav-dropdown-item {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--text);
  background: rgba(31, 41, 55, 0.02);
  border: 1px solid transparent;
  transition: background 140ms ease, border-color 140ms ease;
}

.nav-dropdown-item:hover {
  background: rgba(31, 41, 55, 0.05);
  border-color: rgba(31, 41, 55, 0.10);
}

.mobile-only-link {
  display: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: rgba(31, 41, 55, 0.06);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  transition: background 0.15s ease;
  flex: 0 0 auto;
}

.nav-toggle:hover {
  background: rgba(31, 41, 55, 0.10);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  display: block;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

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

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

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

/* =========================
   Hero - Home
========================= */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(247, 245, 242, 0.72) 0%,
      rgba(247, 245, 242, 0.42) 40%,
      rgba(247, 245, 242, 0.18) 75%,
      rgba(247, 245, 242, 0.08) 100%
    ),
    url("../images/misc/hero-home.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: saturate(1) contrast(1.06);
}

.hero-content {
  position: relative;
  width: min(1100px, 100%);
  padding: 72px 0;
  overflow: hidden;
}

.hero-content::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 36px;
  bottom: 36px;
  width: min(1085px, 95vw);
  border-radius: 28px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.58) 0%,
    rgba(255, 255, 255, 0.46) 48%,
    rgba(255, 255, 255, 0.28) 100%
  );
  box-shadow: 0 22px 54px rgba(31, 41, 55, 0.16);
  backdrop-filter: blur(14px);
  z-index: 0;
}

.hero-content > * {
  position: relative;
  z-index: 1;
  padding-left: 42px;
  padding-right: 26px;
}

.hero-location {
  margin: 0 0 10px;
  max-width: 900px;
  font-size: clamp(18px, 1.9vw, 28px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hero-blue);
  -webkit-text-stroke: 0.45px rgba(197, 174, 103, 0.82);
  text-shadow:
    0 0 0 var(--hero-gold),
    0.7px 0 var(--hero-gold),
    -0.7px 0 var(--hero-gold),
    0 0.7px var(--hero-gold),
    0 -0.7px var(--hero-gold),
    0 1px 0 rgba(255, 255, 255, 0.30);
}

.hero-services {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 22px;
  max-width: 920px;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--hero-blue-dark);
  -webkit-text-stroke: 0.55px rgba(197, 174, 103, 0.88);
  text-shadow:
    0 0 0 var(--hero-gold-deep),
    1px 0 var(--hero-gold-deep),
    -1px 0 var(--hero-gold-deep),
    0 1px var(--hero-gold-deep),
    0 -1px var(--hero-gold-deep),
    0 2px 0 rgba(255, 255, 255, 0.22);
}

.hero-services span {
  display: block;
  white-space: nowrap;
}

.hero-title {
  margin: 0 0 14px;
  max-width: 900px;
  letter-spacing: -0.8px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.08;
  color: rgba(31, 41, 55, 0.96);
}

.hero-subtitle {
  margin: 0 0 24px;
  color: rgba(31, 41, 55, 0.82);
  font-size: 18px;
  max-width: 62ch;
}

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

.hero-highlights {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
  padding-left: 28px;
  padding-right: 18px;
}

.highlight {
  padding: 8px 0;
  border-left: 1px solid rgba(31, 41, 55, 0.14);
  padding-left: 12px;
}

.hero-highlights .highlight:first-child {
  border-left: none;
  padding-left: 0;
}

.highlight-kicker {
  font-size: 11px;
  color: rgba(31, 41, 55, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.highlight-text {
  font-weight: 800;
  color: rgba(31, 41, 55, 0.92);
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
}

/* =========================
   Sections
========================= */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head,
.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
}

.section-head h2,
.section-heading h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.3px;
}

.section-head p,
.section-heading p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* =========================
   Buttons
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 650;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 14px 40px rgba(47, 110, 166, 0.20);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 41, 55, 0.18);
  color: rgba(31, 41, 55, 0.92);
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.10);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(31, 41, 55, 0.22);
}

.btn-small {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(31, 41, 55, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-small:hover {
  background: rgba(31, 41, 55, 0.06);
}

.btn-icon img {
  width: 18px;
  height: 18px;
}

/* =========================
   Common Surfaces
========================= */
.card,
.tile,
.contact-card,
.page-hero-card,
.info-card,
.split-card,
.faq-card,
.cta-card,
.contact-panel,
.team-card-large,
.team-row,
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.card,
.contact-card {
  padding: 18px;
}

.tile {
  overflow: hidden;
}

/* =========================
   Standard Cards
========================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.card {
  position: relative;
  overflow: hidden;
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(47, 110, 166, 0.12);
  border: 1px solid rgba(47, 110, 166, 0.20);
  margin-bottom: 10px;
  font-size: 20px;
}

.card h3 {
  margin: 0 0 8px;
}

.card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.card-link {
  color: var(--accent);
  font-weight: 700;
}

.card-photo {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
  border: none !important;
  box-shadow: var(--shadow);
}

.card-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(247, 245, 242, 0.92) 0%,
      rgba(247, 245, 242, 0.86) 34%,
      rgba(247, 245, 242, 0.62) 62%,
      rgba(247, 245, 242, 0.32) 100%
    );
  z-index: 0;
}

.card-photo > * {
  position: relative;
  z-index: 1;
}

.card-photo-buy {
  background-image: url("../images/misc/buyer_Pic.jpg");
}

.card-photo-sell {
  background-image: url("../images/misc/seller_Pic.jpg");
}

.card-photo-team {
  background-image: url("../images/misc/team_Pic.jpg");
}

.card-clickable {
  display: block;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.card-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(31, 41, 55, 0.14);
}

.card-clickable .card-link {
  display: inline-block;
}

.card-photo p {
  color: rgba(31, 41, 55, 0.82);
}

.card-photo h3,
.card-photo .card-link {
  color: var(--text);
}

.card-photo .card-link {
  color: var(--accent-2);
}

/* =========================
   Testimonials
========================= */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.testimonial {
  padding: 16px;
}

.testimonial-stars {
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 8px;
}

.testimonial-quote {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.55;
}

.testimonial-meta {
  display: grid;
  gap: 2px;
}

.testimonial-name {
  font-weight: 750;
}

.testimonial-muted {
  color: var(--muted);
  font-size: 13px;
}

.zillow-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* =========================
   Listings Section
========================= */
.our-listings {
  background: var(--surface-2);
}

.listings-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2rem;
}

.listings-heading .section-intro {
  color: var(--muted);
}

.idx-listings-shell {
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.our-listings .center {
  margin-top: 22px;
}

/* =========================
   Inner Page Hero
========================= */
.page-hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at top left, rgba(47, 110, 166, 0.10), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f7f5f2 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  max-width: 760px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: center;
}

.page-hero-copy h1,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
  color: var(--text);
  letter-spacing: -0.5px;
}

.page-intro,
.page-hero p {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.page-hero-card {
  padding: 28px;
}

.page-hero-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

/* =========================
   Shared Content Blocks
========================= */
.check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--text);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.info-grid.four-up {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.info-card {
  padding: 26px 22px;
}

.info-number {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: rgba(47, 110, 166, 0.10);
  color: var(--accent);
  font-weight: 700;
}

.info-card h3 {
  margin: 0 0 10px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.split-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.split-card {
  padding: 30px;
}

.split-card h2,
.split-card h3 {
  margin-top: 0;
}

.split-card p {
  color: var(--muted);
  line-height: 1.75;
}

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

.faq-card {
  padding: 24px;
}

.faq-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.faq-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.cta-section {
  padding: 64px 0;
}

.cta-card {
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.cta-card h2 {
  margin: 0 0 10px;
}

.cta-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* =========================
   Team
========================= */
.team-list {
  display: grid;
  gap: 14px;
}

.team-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  overflow: hidden;
}

.team-photo {
  height: 140px;
  background-size: cover;
  background-position: center;
}

.team-info {
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 6px;
}

.team-name {
  margin: 0;
  font-size: 18px;
}

.team-role {
  color: var(--muted);
  font-size: 14px;
}

.team-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Team Page */
.team-page-grid {
  display: grid;
  gap: 18px;
}

.team-card-large {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  overflow: hidden;
}

.team-card-photo {
  min-height: 320px;
  background-size: cover;
  background-position: center;
}

.team-card-content {
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 10px;
}

.team-card-name {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.3px;
}

.team-card-role {
  color: var(--accent);
  font-weight: 700;
}

.team-card-bio {
  color: var(--muted);
  max-width: 65ch;
}

.team-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.team-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

/* =========================
   Contact
========================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(31, 41, 55, 0.03);
  color: var(--text);
  padding: 12px;
  outline: none;
  font: inherit;
}

input:focus,
textarea:focus {
  border-color: rgba(47, 110, 166, 0.55);
}

.office {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.office-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

.office-mini {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(31, 41, 55, 0.02);
}

.contact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}

.contact-card {
  text-align: center;
}

/* Contact Page */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.contact-panel {
  padding: 20px;
}

.contact-panel h3 {
  margin-top: 0;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.contact-method {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(31, 41, 55, 0.02);
}

.contact-method strong {
  display: block;
  margin-bottom: 4px;
}

.hours-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.contact-form-note {
  margin-top: 10px;
}

/* Office cards with map */
.office-mini.office-with-map {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 18px;
  align-items: start;
}

.office-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.office-map {
  width: 100%;
  height: 160px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(31, 41, 55, 0.03);
}

.office-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* =========================
   Footer
========================= */
.site-footer {
  padding: 40px 0;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 0.9fr 0.95fr;
  gap: 24px;
  align-items: start;
}

.footer-brand {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.footer-links {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-legal {
  display: grid;
  gap: 10px;
}

.footer-legal a {
  font-size: 13px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
}

.footer-social:hover {
  color: var(--text);
}

.fb-icon {
  width: 18px;
  height: 18px;
}

.footer-logos {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.footer-logos img {
  width: 165px;
  height: auto;
  display: block;
}

/* =========================
   Mobile Swipe Rows
========================= */
.mobile-scroll-row {
  min-width: 0;
}

@media (max-width: 720px) {
  .mobile-scroll-row {
    display: flex !important;
    gap: 14px !important;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-scroll-row > * {
    flex: 0 0 86%;
    min-width: 86%;
    scroll-snap-align: start;
  }

  .mobile-scroll-row::-webkit-scrollbar {
    height: 8px;
  }

  .mobile-scroll-row::-webkit-scrollbar-thumb {
    background: rgba(31, 41, 55, 0.18);
    border-radius: 999px;
  }

  .mobile-scroll-row .team-row {
    grid-template-columns: 1fr;
  }

  .mobile-scroll-row .team-photo {
    height: 220px;
  }
}

/* =========================
   Responsive
========================= */
@media (max-width: 1160px) {
  body {
    padding-top: 96px;
  }

  .header-inner {
    width: min(1320px, calc(100% - 24px));
    padding: 10px 0;
    gap: 10px;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
    max-width: calc(100% - 60px);
    gap: 12px;
  }

  .brand-logo {
    height: 54px;
    max-width: 240px;
  }

  .header-phone {
    font-size: 13px;
    max-width: 100%;
  }

  .header-phone a {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 96px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(247, 245, 242, 0.98);
    box-shadow: 0 22px 60px rgba(31, 41, 55, 0.18);
    max-height: calc(100vh - 120px);
    overflow: auto;
    z-index: 4000;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-link,
  .nav-pill,
  .nav-dropdown summary {
    width: 100%;
    white-space: normal;
  }

  .nav-link,
  .nav-dropdown summary {
    padding: 12px;
  }

  .nav-dropdown {
    display: none;
  }

  .mobile-only-link {
    display: block;
  }
}

@media (max-width: 1000px) {
  .page-hero-grid,
  .split-section,
  .info-grid.four-up,
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 980px) {
  .card-grid,
  .card-grid-3,
  .testimonial-grid,
  .office-grid,
  .team-extra-grid,
  .team-card-large,
  .contact-page-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero-content {
    padding: 36px 0 48px;
  }

  .hero-content::before {
    left: -6px;
    right: -6px;
    width: auto;
    top: 18px;
    bottom: 18px;
    border-radius: 20px;
  }

  .hero-content > * {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-location {
    margin-bottom: 10px;
    font-size: clamp(15px, 3.6vw, 20px);
    letter-spacing: 0.14em;
    line-height: 1.15;
  }

  .hero-services {
    gap: 3px;
    margin-bottom: 16px;
    max-width: 100%;
    font-size: clamp(24px, 6.8vw, 34px);
    line-height: 1.04;
    letter-spacing: 0.03em;
  }

  .hero-services span {
    white-space: nowrap;
  }

  .hero-title {
    font-size: clamp(28px, 8.6vw, 42px);
    line-height: 1.08;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
    padding-left: 28px;
    padding-right: 18px;
  }

  .highlight {
    border-left: none;
    padding-left: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(31, 41, 55, 0.14);
  }

  .hero-highlights .highlight:first-child {
    border-top: none;
    padding-top: 0;
  }

  .team-card-photo {
    min-height: 260px;
  }

  .team-card-content {
    padding: 18px;
  }

  .office-mini.office-with-map {
    grid-template-columns: 1fr;
  }

  .office-map {
    height: 220px;
  }

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

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
  }

  .footer-legal {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 4px;
  }

  .footer-logos {
    justify-content: center;
    margin-top: 6px;
  }

  .footer-logos img {
    width: 130px;
  }
}

@media (max-width: 700px) {
  .page-hero,
  .section {
    padding-top: 56px;
    padding-bottom: 40px;
  }

  .page-hero-grid,
  .split-section,
  .info-grid.four-up,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-card,
  .info-card,
  .split-card,
  .faq-card,
  .cta-card {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .listings-heading {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    max-width: 205px;
  }

  .hero-services {
    font-size: clamp(21px, 6.9vw, 30px);
    letter-spacing: 0.02em;
  }

  .hero-location {
    letter-spacing: 0.11em;
  }
}

.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1px solid transparent;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: rgba(22, 101, 52, 0.08);
  border-color: rgba(22, 101, 52, 0.18);
  color: #166534;
}

.form-status.is-error {
  background: rgba(185, 28, 28, 0.08);
  border-color: rgba(185, 28, 28, 0.18);
  color: #b91c1c;
}

button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.cf-turnstile {
  margin: 12px 0 6px;
}

#contactSubmit[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.page-hero-buy-search {
  position: relative;
  overflow: hidden;
}

.buy-search-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 420px);
  gap: 32px;
  align-items: start;
}

.home-search-card {
  margin-top: 28px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(31, 41, 55, 0.10);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(31, 41, 55, 0.14);
  padding: 16px 18px;
  max-width: 820px;
}

.home-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  border-radius: 18px;
  background: #F7F7F8;
  border: 1px solid rgba(31, 41, 55, 0.10);
  padding: 0 12px 0 16px;
}

.home-search-icon {
  width: 26px;
  height: 26px;
  color: rgba(31, 41, 55, 0.72);
  flex: 0 0 auto;
}

.home-search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.3;
  padding: 18px 0;
}

.home-search-input::placeholder {
  color: #9AA3B2;
}

.home-search-submit {
  flex: 0 0 auto;
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.home-search-submit:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}

@media (max-width: 1080px) {
  .buy-search-hero {
    grid-template-columns: 1fr;
  }

  .page-hero-buy-search .page-hero-card {
    max-width: 640px;
  }
}

@media (max-width: 720px) {
  .home-search-card {
    padding: 14px;
    border-radius: 20px;
  }

  .home-search-input-wrap {
    min-height: 60px;
    gap: 10px;
    padding: 0 10px 0 14px;
  }

  .home-search-input {
    font-size: 0.98rem;
    padding: 16px 0;
  }

  .home-search-submit {
    padding: 11px 14px;
    font-size: 0.92rem;
  }
}

@media (max-width: 560px) {
  .home-search-input-wrap {
    flex-wrap: wrap;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .home-search-input {
    width: calc(100% - 40px);
    flex: 1 1 calc(100% - 40px);
    padding: 8px 0;
  }

  .home-search-submit {
    width: 100%;
  } 
}
