/*
Theme Name: Piard Home Experts
Theme URI: https://piardhomeexperts.com/
Author: Piard Home Experts
Description: Custom cinematic WordPress theme for Piard Home Experts.
Version: 1.6.4
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: piard-home-experts
*/

:root {
  color-scheme: light;
  --navy: #101232;
  --gold: #e0bc7b;
  --burnished: #a56b3d;
  --white: #ffffff;
  --cream: #f5f1ea;
  --ink: #252840;
  --muted: #686b80;
  --line: #e7e1d6;
  --warm-white: #f7f4ee;
  --head: "Fraunces", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
  --maxw: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #1e1e1e;
  color: var(--ink);
  font-family: var(--body);
}

button,
input,
textarea {
  font: inherit;
}

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

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

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

.phe {
  background: var(--white);
  line-height: 1.6;
  overflow: visible;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--head);
  font-weight: 400;
  line-height: 1.04;
}

p {
  margin: 0;
}

.eyebrow {
  color: var(--gold);
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  letter-spacing: 0.16em;
  padding: 14px 28px;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: #d3ab63;
}

.btn-ghost {
  border-color: rgba(247, 244, 238, 0.76);
  color: var(--warm-white);
}

.btn-ghost:hover {
  background: var(--warm-white);
  color: var(--navy);
}

.nav {
  background: linear-gradient(180deg, rgba(16, 18, 50, 0.62), rgba(16, 18, 50, 0));
  backdrop-filter: blur(16px);
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 50;
  transition: background 220ms ease, box-shadow 220ms ease;
}

.nav.scrolled {
  background: rgba(245, 241, 234, 0.95);
  box-shadow: 0 12px 34px rgba(16, 18, 50, 0.26);
}

.nav-inner {
  align-items: center;
  display: flex;
  gap: 28px;
  height: 76px;
  justify-content: space-between;
}

.nav-logo {
  align-items: center;
  display: flex;
  gap: 12px;
}

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

.nav-logo span {
  color: var(--warm-white);
  font-family: var(--head);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
}

.nav.scrolled .nav-logo span,
.nav.scrolled .nav-links a,
.nav.scrolled .nav-quick a {
  color: var(--navy);
}

.nav.scrolled .nav-toggle span {
  background: var(--navy);
}

.nav.scrolled .nav-logo small,
.nav.scrolled .nav-links a:hover {
  color: var(--burnished);
}

.nav-logo small {
  color: var(--gold);
  display: block;
  font-family: var(--body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-top: 4px;
  text-transform: uppercase;
}

.nav-quick {
  align-items: center;
  display: flex;
  gap: clamp(18px, 2.3vw, 34px);
  margin-left: auto;
}

.nav-quick a {
  color: var(--warm-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  position: relative;
  text-transform: uppercase;
}

.nav-quick a::after {
  background: var(--gold);
  bottom: -7px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  width: 100%;
}

.nav-quick a:hover::after,
.nav-quick a:focus-visible::after,
.nav-quick a.is-active::after {
  transform: scaleX(1);
}

.nav-links {
  background: var(--navy);
  border: 1px solid rgba(247, 244, 238, 0.12);
  box-shadow: 0 20px 45px rgba(16, 18, 50, 0.3);
  display: none;
  gap: 0;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding: 12px 24px 20px;
  position: fixed;
  right: max(20px, calc((100vw - var(--maxw)) / 2));
  top: 76px;
  width: min(370px, calc(100vw - 40px));
}

.nav-links.open {
  display: grid;
}

.nav-links a {
  border-bottom: 1px solid rgba(247, 244, 238, 0.09);
  color: #e6e4eb;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 13px 0;
  text-transform: uppercase;
  transition: color 180ms ease;
}

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

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

.nav.scrolled .nav-links a.is-active {
  color: var(--burnished);
}

.nav.scrolled .nav-links {
  background: var(--cream);
  border-color: var(--line);
}

.nav-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: block;
  height: 48px;
  padding: 0;
  width: 48px;
}

.nav-toggle span {
  background: var(--warm-white);
  display: block;
  height: 2px;
  margin: 6px auto;
  width: 24px;
}

.video-hero {
  align-items: center;
  background: var(--navy);
  color: var(--warm-white);
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.hero-youtube,
.video-fallback,
.video-shade {
  inset: 0;
  position: absolute;
}

.video-fallback {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-youtube {
  background: #05060b;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-youtube iframe {
  border: 0;
  height: max(100svh, 56.25vw);
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max(100vw, 177.78svh);
}

.hero-youtube video {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.video-fallback {
  background: url("assets/hero-herndon.jpg") center / cover no-repeat;
  filter: saturate(0.8);
  transform: scale(1.04);
  z-index: 0;
}

.video-shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.36), rgba(16, 18, 50, 0.28) 44%, rgba(0, 0, 0, 0.42)),
    radial-gradient(circle at 50% 52%, rgba(224, 188, 123, 0.13), transparent 28%);
  pointer-events: none;
  z-index: 2;
}

.video-hero-content {
  display: grid;
  justify-items: center;
  max-width: 760px;
  padding: clamp(80px, 12vw, 150px) 0;
  position: relative;
  z-index: 3;
}

.hero-logo {
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.34));
  margin-bottom: 26px;
  width: min(260px, 52vw);
}

.video-hero h1 {
  color: var(--warm-white);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 400;
  letter-spacing: 0.16em;
  margin: 14px 0 26px;
  text-transform: uppercase;
}

.hero-scroll {
  bottom: 46px;
  height: 92px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 18px;
  z-index: 4;
}

.hero-scroll::before,
.hero-scroll::after {
  content: "";
  display: block;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 2px;
}

.hero-scroll::before {
  animation: arrowline 1.8s linear infinite;
  background: var(--warm-white);
  bottom: 0;
  height: 62px;
}

.hero-scroll::after {
  background: rgba(247, 244, 238, 0.42);
  bottom: 0;
  height: 92px;
}

@keyframes arrowline {
  0% {
    height: 72px;
    opacity: 0.1;
  }
  55% {
    height: 36px;
    opacity: 1;
  }
  100% {
    height: 0;
    opacity: 0.8;
  }
}

.selling-cinema {
  --sell-scale: 0.46;
  --sell-gray: 1;
  --sell-radius: 22px;
  --sell-people-opacity: 0;
  --slogan-x: 58vw;
  --slogan-opacity: 0;
  background: var(--white);
  height: 285vh;
  overflow: visible;
  position: relative;
}

.selling-sticky {
  align-items: center;
  display: grid;
  height: 100svh;
  overflow: hidden;
  place-items: center;
  position: sticky;
  top: 0;
}

.selling-photo-wrap {
  background: #16131c;
  border-radius: var(--sell-radius);
  box-shadow: 0 38px 90px rgba(16, 18, 50, 0.24);
  height: 78vh;
  max-height: 780px;
  overflow: hidden;
  position: relative;
  transform: scale(var(--sell-scale));
  transform-origin: center;
  width: min(1280px, 88vw);
  will-change: transform, border-radius;
}

.selling-photo {
  filter: grayscale(var(--sell-gray)) contrast(1.02);
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transform: scale(1.08);
  transition: opacity 120ms linear;
  width: 100%;
  will-change: filter, opacity;
}

.selling-photo-people {
  opacity: var(--sell-people-opacity);
}

.selling-photo-wrap::after {
  background: linear-gradient(90deg, rgba(5, 6, 11, 0.02) 28%, rgba(5, 6, 11, 0.16) 55%, rgba(5, 6, 11, 0.76) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.selling-slogan {
  color: var(--warm-white);
  max-width: min(600px, calc(100% - 40px));
  position: absolute;
  right: max(6vw, 24px);
  text-align: left;
  top: 50%;
  transform: translate3d(var(--slogan-x), -50%, 0);
  width: 600px;
  will-change: transform, opacity;
  z-index: 3;
  opacity: var(--slogan-opacity);
}

.selling-slogan .eyebrow {
  color: var(--gold);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
}

.selling-slogan h2 {
  color: var(--warm-white);
  font-size: clamp(42px, 5vw, 78px);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.02;
  margin-top: 10px;
  text-transform: uppercase;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.82);
}

.selling-slogan p {
  color: var(--warm-white);
  font-size: 18px;
  margin-top: 18px;
  max-width: 500px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.9);
}

.section {
  padding: clamp(78px, 10vw, 124px) 0;
}

.boxed-statement {
  background: var(--white);
  padding-bottom: clamp(84px, 12vw, 152px);
  padding-top: clamp(84px, 12vw, 152px);
}

.boxed-statement-inner {
  text-align: center;
}

.boxed-statement p {
  border-bottom: 1px solid var(--burnished);
  color: var(--navy);
  display: inline-block;
  font-family: var(--head);
  font-size: clamp(28px, 5vw, 58px);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.25;
  max-width: 980px;
  padding-bottom: 18px;
  text-transform: uppercase;
}

.split-head {
  align-items: end;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  margin-bottom: 46px;
}

.split-head h2,
.section-head h2,
.marketing-copy h2,
.lead-copy h2 {
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-top: 10px;
  text-transform: uppercase;
}

.split-head p,
.section-head p,
.marketing-copy p,
.lead-copy p {
  color: var(--muted);
  font-size: 17px;
}

.numbers-section {
  background: var(--white);
  color: var(--warm-white);
}

.numbers-section h2,
.numbers-section .split-head p {
  color: var(--navy);
}

.number-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
}

.number-card {
  --scroll-lift: 0px;
  align-items: center;
  border-top: 1px solid rgba(16, 18, 50, 0.14);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 300px;
  min-height: 190px;
  padding: clamp(32px, 5vw, 58px) 0;
  transform: translate3d(0, var(--scroll-lift), 0);
}

.number-card:last-child {
  border-bottom: 1px solid rgba(16, 18, 50, 0.14);
}

.number-card strong {
  color: var(--burnished);
  display: block;
  font-family: var(--head);
  font-size: clamp(44px, 10vw, 132px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.02;
  text-transform: uppercase;
}

.number-card span {
  color: var(--navy);
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-top: 18px;
  text-align: right;
  text-transform: uppercase;
}

.source-note {
  background: #fffdf7;
  border: 1px dashed var(--gold);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 30px;
  padding: 16px 18px;
}

.numbers-section .source-note {
  background: var(--cream);
  color: var(--muted);
}

.difference-head {
  margin: 0 auto clamp(34px, 6vw, 66px);
  max-width: 980px;
  text-align: center;
}

.difference-head h2 {
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-top: 12px;
  text-transform: uppercase;
}

.difference-list {
  display: flex;
  flex-direction: column;
}

.difference-card {
  align-items: center;
  border-top: 1px solid rgba(16, 18, 50, 0.14);
  display: flex;
  flex-direction: column;
  padding: clamp(38px, 6vw, 58px) 0;
  text-align: center;
}

.difference-card:last-child {
  border-bottom: 1px solid rgba(16, 18, 50, 0.14);
}

.difference-card strong {
  color: var(--navy);
  font-family: var(--head);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1.12;
  text-transform: uppercase;
}

.split-flap-text {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.06em 0.32em;
  justify-content: center;
  width: 100%;
}

.split-flap-word {
  display: inline-flex;
  gap: 0.01em;
  white-space: nowrap;
}

.split-flap-char {
  backface-visibility: hidden;
  color: inherit;
  display: inline-block;
  font-family: inherit;
  font-size: inherit;
  font-variant-numeric: tabular-nums;
  font-weight: inherit;
  line-height: inherit;
  min-width: 0.64em;
  text-align: center;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
}

.difference-card strong .split-flap-char {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  margin-top: 0;
  text-transform: inherit;
}

.split-flap-char.is-flipping {
  animation: original-letter-flip 130ms linear both;
}

@keyframes original-letter-flip {
  0% { opacity: 1; transform: perspective(180px) rotateX(0deg); }
  46% { opacity: 0.35; transform: perspective(180px) rotateX(-90deg); }
  54% { opacity: 0.35; transform: perspective(180px) rotateX(90deg); }
  100% { opacity: 1; transform: perspective(180px) rotateX(0deg); }
}

.difference-card > span {
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-top: 20px;
  text-transform: uppercase;
}

.listing-section .source-note {
  background: rgba(255, 255, 255, 0.07);
  color: #d8d5e0;
}

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

.listing-section h2,
.listing-section .split-head p {
  color: var(--warm-white);
}

.idx-quick-search {
  background: var(--cream);
  border-top: 4px solid var(--gold);
  color: var(--navy);
  margin: 38px 0 28px;
  min-height: 82px;
  padding: 16px;
}

.idx-live-listings {
  background: var(--white);
  border-top: 4px solid var(--gold);
  color: var(--navy);
  min-height: 420px;
  padding: clamp(16px, 2.5vw, 30px);
}

.idx-quick-search :where(input, select),
.idx-live-listings :where(input, select) {
  font-family: var(--body);
  min-height: 46px;
}

.idx-quick-search :where(button, input[type="submit"]),
.idx-live-listings :where(button, input[type="submit"]) {
  border-radius: 4px;
  font-family: var(--body);
  min-height: 46px;
}

.idx-live-listings :where(h1, h2, h3, h4, h5, h6) {
  color: var(--navy);
}

/* IDX Broker embedded widgets */
.idx-showcase {
  background: var(--white);
  border-top: 4px solid var(--gold);
  color: var(--navy);
  min-height: 420px;
  padding: clamp(16px, 2.5vw, 30px);
}

.idx-showcase :where(h1, h2, h3, h4, h5, h6) {
  color: var(--navy);
}

.idx-search-cta {
  margin: 30px 0 0;
  text-align: center;
}

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

.property-card,
.quote-card,
.lead-form,
.marketing-card {
  border-radius: 8px;
}

.property-card {
  --scroll-lift: 0px;
  background: #05060b;
  border: 0;
  overflow: hidden;
  position: relative;
  transform: translate3d(0, var(--scroll-lift), 0);
  transition: transform 220ms ease;
}

.property-photo {
  aspect-ratio: 0.82 / 1;
  background-position: center;
  background-size: cover;
  position: relative;
  transition: transform 500ms ease, filter 500ms ease;
}

.property-photo::after {
  background: linear-gradient(180deg, rgba(16, 18, 50, 0.04), rgba(0, 0, 0, 0.74));
  content: "";
  inset: 0;
  position: absolute;
}

.property-card:hover .property-photo {
  filter: grayscale(0.25);
  transform: scale(1.045);
}

.property-photo span {
  background: rgba(247, 244, 238, 0.9);
  border-radius: 30px;
  color: var(--burnished);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  left: 14px;
  padding: 7px 12px;
  position: absolute;
  top: 14px;
  text-transform: uppercase;
  z-index: 2;
}

.property-body {
  bottom: 0;
  color: var(--warm-white);
  left: 0;
  padding: 26px;
  position: absolute;
  right: 0;
  z-index: 2;
}

.property-body p {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.property-body h3 {
  color: var(--warm-white);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-top: 8px;
  text-transform: uppercase;
}

.property-body dl {
  border-top: 1px solid rgba(247, 244, 238, 0.28);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0 16px;
  padding-top: 15px;
}

.property-body dt {
  color: #d7d2bf;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.property-body dd {
  color: var(--warm-white);
  font-weight: 800;
  margin: 2px 0 0;
}

.property-body strong {
  color: var(--warm-white);
  font-family: var(--head);
  font-size: 28px;
  font-weight: 400;
}

.property-body a {
  border-bottom: 1px solid currentColor;
  color: var(--gold);
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-top: 12px;
  text-transform: uppercase;
}

.about-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    var(--navy);
  color: var(--warm-white);
}

.about-grid,
.lead-grid {
  align-items: center;
  display: grid;
  gap: clamp(36px, 6vw, 68px);
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
}

.about-grid {
  align-items: stretch;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.08fr);
}

.about-photo {
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.about-photo img {
  --media-drift: 0px;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: translate3d(0, var(--media-drift), 0) scale(1.04);
  width: 100%;
  will-change: transform;
}

.about-photo figcaption {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(16, 18, 50, 0.12);
  border-radius: 8px;
  bottom: 22px;
  box-shadow: 0 16px 32px rgba(16, 18, 50, 0.16);
  left: 22px;
  padding: 16px 18px;
  position: absolute;
}

.about-photo strong,
.quote-card strong {
  color: var(--navy);
  display: block;
  font-family: var(--head);
  font-size: 18px;
  line-height: 1.2;
}

.about-photo span,
.quote-card span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 3px;
}

.about-section .about-copy h2 {
  color: var(--warm-white);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-top: 10px;
  max-width: 760px;
  text-transform: uppercase;
}

.about-section .about-copy > p {
  color: #d9d6e1;
  font-size: 18px;
  max-width: 720px;
}

.gold-rule {
  background: var(--gold);
  height: 3px;
  margin: 22px 0;
  width: 54px;
}

.trust-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}

.trust-list li {
  --scroll-lift: 0px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(247, 244, 238, 0.14);
  border-radius: 8px;
  display: grid;
  font-size: 16px;
  gap: 8px;
  min-height: 178px;
  padding: 22px;
  transform: translate3d(0, var(--scroll-lift), 0);
}

.trust-list span,
.marketing-card span {
  color: var(--gold);
  display: block;
  font-family: var(--head);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.trust-list strong {
  color: var(--warm-white);
  display: block;
  font-family: var(--head);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.12;
}

.trust-list p {
  color: #cbc8d5;
  font-size: 14px;
  line-height: 1.55;
}

.media-cinema {
  --camera-scale: 1.18;
  --camera-x: 44vw;
  --camera-y: -9vh;
  --camera-clip: 100%;
  --camera-opacity: 0;
  --media-text-opacity: 0;
  --media-text-y: 24px;
  --screen-y: 0px;
  background: #111;
  height: 310vh;
  overflow: visible;
  position: relative;
}

.media-sticky {
  align-items: center;
  color: var(--warm-white);
  display: grid;
  height: 100svh;
  overflow: hidden;
  position: sticky;
  top: 0;
}

.media-bg {
  background:
    linear-gradient(90deg, rgba(16, 18, 50, 0.8), rgba(16, 18, 50, 0.22) 46%, rgba(16, 18, 50, 0.08)),
    url("assets/herndon-metro-hero.jpg") center / contain no-repeat;
  background-color: #080a1a;
  filter: saturate(0.86);
  inset: 0;
  position: absolute;
  transform: scale(1.01);
}

.camera-wrap {
  left: 50%;
  opacity: var(--camera-opacity);
  position: absolute;
  top: 50%;
  transform: translate3d(var(--camera-x), var(--camera-y), 0) translate(-50%, -50%) scale(var(--camera-scale));
  width: min(1040px, 92vw);
  z-index: 2;
  clip-path: inset(0 0 0 var(--camera-clip));
  will-change: opacity, transform, clip-path;
}

.camera-stage {
  aspect-ratio: 3 / 2;
  filter: drop-shadow(0 52px 110px rgba(0, 0, 0, 0.68));
  position: relative;
}

.camera-shell {
  height: 100%;
  object-fit: contain;
  position: relative;
  width: 100%;
  z-index: 3;
}

.camera-screen {
  background: #05060b;
  border-radius: 10px;
  height: 45.5%;
  left: 20.1%;
  overflow: hidden;
  position: absolute;
  top: 40.4%;
  width: 49.2%;
  z-index: 4;
}

.camera-screen img {
  height: 118%;
  object-fit: cover;
  transform: translate3d(0, var(--screen-y), 0);
  width: 100%;
}

.media-copy {
  margin-top: auto;
  padding-bottom: clamp(52px, 8vw, 96px);
  position: relative;
  z-index: 3;
  opacity: var(--media-text-opacity);
  transform: translate3d(0, var(--media-text-y), 0);
  width: min(var(--maxw), calc(100% - 40px));
}

.media-copy h2 {
  color: var(--warm-white);
  border-bottom: 1px solid var(--burnished);
  display: block;
  font-size: clamp(34px, 4.9vw, 60px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.18;
  max-width: min(490px, 38vw);
  padding-bottom: 16px;
  text-transform: uppercase;
}

.media-copy p {
  color: #e0dde8;
  font-size: 18px;
  max-width: min(470px, 36vw);
}

.marketing-section {
  background: var(--white);
}

.marketing-grid {
  align-items: start;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
}

.marketing-cards {
  display: grid;
  gap: 14px;
}

.marketing-card {
  --scroll-lift: 0px;
  background: transparent;
  border: 1px solid rgba(16, 18, 50, 0.14);
  display: grid;
  gap: 8px;
  padding: 30px;
  transform: translate3d(0, var(--scroll-lift), 0);
}

.marketing-card h3 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketing-card p {
  color: var(--muted);
}

.hire-video {
  background: var(--navy);
  color: var(--warm-white);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(380px, 2fr);
  min-height: min(820px, 100svh);
  overflow: hidden;
  position: relative;
  text-align: left;
}

.hire-video-bg {
  background:
    linear-gradient(90deg, rgba(16, 18, 50, 0.02) 70%, rgba(16, 18, 50, 0.5) 100%),
    url("assets/marc-coco-couch.jpg") center 58% / cover no-repeat;
  filter: grayscale(0.15) saturate(0.9);
  grid-column: 1;
  min-height: inherit;
}

.hire-video-copy {
  align-self: center;
  grid-column: 2;
  margin: 0;
  max-width: none;
  padding: clamp(70px, 9vw, 130px) clamp(32px, 5vw, 76px);
  position: relative;
  width: 100%;
  z-index: 2;
}

.hire-video h2 {
  color: var(--warm-white);
  font-size: clamp(44px, 7vw, 82px);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 10px 0 18px;
  text-transform: uppercase;
}

.hire-video h2 span {
  display: block;
}

.hire-video p {
  color: #e0dde8;
  font-size: 20px;
  margin-bottom: 28px;
  max-width: 620px;
}

.testimonials {
  background: #1e1e1e;
  color: var(--warm-white);
  overflow: hidden;
}

.testimonials h2 {
  color: var(--warm-white);
}

.testimonials .section-head p {
  color: #d5d2df;
}

.section-head {
  margin-bottom: 44px;
  max-width: 700px;
}

.google-review-summary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 28px;
}

.google-review-summary span {
  color: #d5d2df;
}

.google-review-summary span strong,
.google-review-summary a {
  color: var(--gold);
}

.google-review-summary a {
  border-bottom: 1px solid var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.marquee {
  overflow: hidden;
}

.marquee-track {
  animation: scrollx 38s linear infinite;
  display: flex;
  gap: 20px;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes scrollx {
  to {
    transform: translateX(-50%);
  }
}

.quote-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(247, 244, 238, 0.14);
  flex: 0 0 360px;
  padding: 28px;
}

.stars {
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.quote-card p {
  color: #ece9f0;
  font-size: 17px;
  margin-bottom: 18px;
}

.quote-card strong {
  color: var(--warm-white);
}

.quote-card span {
  color: #c5c2d4;
}

.lead {
  background: var(--cream);
}

.lead-grid {
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.7fr);
}

.lead-copy address {
  display: grid;
  font-style: normal;
  gap: 4px;
  margin-top: 2px;
}

.lead-copy address strong {
  color: var(--navy);
  font-family: var(--head);
  font-size: 20px;
  font-weight: 600;
}

.lead-copy address strong:not(:first-child) {
  margin-top: 12px;
}

.lead-copy address a {
  color: var(--ink);
}

.lead-form {
  --scroll-lift: 0px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(16, 18, 50, 0.08);
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 34px);
  transform: translate3d(0, var(--scroll-lift), 0);
}

.lead-form label {
  color: var(--navy);
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
}

.lead-form input,
.lead-form textarea {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  min-height: 48px;
  outline: 0;
  padding: 12px 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  width: 100%;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(224, 188, 123, 0.2);
}

.lead-form textarea {
  min-height: 118px;
  resize: vertical;
}

.lead-form .btn {
  width: 100%;
}

.lead-form p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.foot {
  background: var(--navy);
  color: #d8d5e0;
}

.foot-grid {
  border-bottom: 1px solid rgba(247, 244, 238, 0.12);
  display: grid;
  gap: 44px;
  grid-template-columns: 1.3fr 1fr 1fr;
  padding: 58px 0 40px;
}

.foot-logo {
  height: 104px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  width: 330px;
}

.inner-hero {
  align-items: end;
  background: linear-gradient(135deg, rgba(16, 18, 50, 0.9), rgba(16, 18, 50, 0.68)), url("assets/hero-herndon.jpg") center/cover;
  color: var(--warm-white);
  display: flex;
  min-height: 540px;
  padding: 150px 0 78px;
}

.inner-hero-copy {
  max-width: 820px;
}

.inner-hero h1 {
  color: var(--warm-white);
  font-size: clamp(52px, 8vw, 100px);
  line-height: 0.95;
  margin: 15px 0 22px;
}

.inner-hero p {
  color: #e2dfE8;
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.65;
  max-width: 760px;
}

.inner-content {
  background: var(--cream);
  padding: 88px 0 110px;
}

.shell-main {
  min-height: 70vh;
  padding-top: 76px;
}

.shell-article {
  background: var(--white);
  margin-bottom: 32px;
  padding: clamp(34px, 6vw, 72px);
}

.shell-article h1 {
  color: var(--navy);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  margin-bottom: 24px;
}

.shell-article h1 a {
  color: inherit;
}

.shell-article p {
  color: var(--muted);
  line-height: 1.75;
}

.inner-split {
  align-items: center;
  display: grid;
  gap: clamp(40px, 7vw, 90px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.inner-split img {
  border-radius: 4px;
  box-shadow: 22px 22px 0 var(--gold);
  height: 620px;
  object-fit: cover;
  width: 100%;
}

.inner-split h2,
.inner-card h2,
.contact-panel h2 {
  color: var(--navy);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
  margin: 14px 0 20px;
}

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

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

.inner-card {
  background: var(--white);
  border-top: 3px solid var(--gold);
  min-height: 260px;
  padding: 38px;
}

.inner-card span {
  color: var(--burnished);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.inner-card h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.idx-page-search {
  background: var(--white);
  margin-bottom: 36px;
  padding: 28px;
}

.idx-page-results {
  min-height: 420px;
}

/* Full map-search widget wants the whole column and its own height */
.idx-map-search {
  min-height: 640px;
  padding: 0;
}

/* IDX Broker dynamic-wrapper page: clears the fixed nav, holds injected content */
.idx-wrapper-main {
  background: var(--cream);
  min-height: 70vh;
  padding: clamp(96px, 14vw, 130px) 0 90px;
}

.contact-panel {
  background: var(--white);
  border-left: 5px solid var(--gold);
  max-width: 760px;
  padding: clamp(34px, 6vw, 72px);
}

.contact-panel > a:not(.btn) {
  color: var(--navy);
  display: block;
  font-size: 18px;
  margin: 10px 0;
}

.contact-panel .btn {
  display: inline-block;
  margin-top: 24px;
}

.bio-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 96px;
}

.bio-card {
  background: var(--white);
  border-top: 4px solid var(--gold);
  padding: clamp(34px, 5vw, 62px);
}

.bio-card h2 {
  color: var(--navy);
  font-size: clamp(38px, 5vw, 62px);
  margin: 14px 0 24px;
}

.bio-card p {
  color: var(--muted);
  line-height: 1.8;
}

.bio-card > a {
  color: var(--navy);
  display: block;
  font-weight: 700;
  margin-top: 10px;
}

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

.listing-video-card {
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  overflow: hidden;
}

.listing-video-card video {
  aspect-ratio: 16 / 9;
  background: var(--navy);
  display: block;
  object-fit: cover;
  width: 100%;
}

.listing-video-card > div {
  padding: 28px;
}

.listing-video-card span,
.flip-instruction {
  color: var(--burnished);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.listing-video-card h2 {
  color: var(--navy);
  font-size: 30px;
  line-height: 1.1;
  margin: 10px 0 14px;
}

.listing-video-card p {
  color: var(--muted);
  line-height: 1.7;
}

.listings-idx {
  border-top: 1px solid var(--line);
  margin-top: 90px;
  padding-top: 70px;
}

.listings-idx > h2 {
  color: var(--navy);
  font-size: clamp(36px, 5vw, 64px);
  margin: 12px 0 36px;
}

.flip-instruction {
  margin: 0 0 24px;
}

.service-flip-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  perspective: 1200px;
}

.service-flip {
  cursor: pointer;
  height: 330px;
  outline: none;
  perspective: 1000px;
}

.service-flip-inner {
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
  width: 100%;
}

.service-flip:hover .service-flip-inner,
.service-flip:focus-visible .service-flip-inner,
.service-flip.is-flipped .service-flip-inner {
  transform: rotateY(180deg);
}

.service-face {
  backface-visibility: hidden;
  border-top: 3px solid var(--gold);
  display: flex;
  flex-direction: column;
  height: 100%;
  inset: 0;
  justify-content: center;
  padding: 38px;
  position: absolute;
}

.service-front {
  background: var(--white);
}

.service-back {
  background: var(--navy);
  color: var(--warm-white);
  transform: rotateY(180deg);
}

.service-face span {
  color: var(--burnished);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.service-face h2 {
  color: var(--navy);
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.08;
  margin: 12px 0 18px;
}

.service-back h2 {
  color: var(--warm-white);
}

.service-face p {
  color: var(--muted);
  line-height: 1.7;
}

.service-back p {
  color: #d8d5e0;
}

.journey-intro {
  margin: 0 auto 58px;
  max-width: 850px;
  text-align: center;
}

.journey-intro h2 {
  color: var(--navy);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  margin: 14px 0 20px;
}

.journey-intro p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.journey-grid {
  counter-reset: journey;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
}

.journey-grid article {
  background: var(--white);
  min-height: 280px;
  padding: clamp(34px, 5vw, 58px);
}

.journey-grid span {
  color: var(--gold);
  font-family: var(--head);
  font-size: 44px;
}

.journey-grid h2 {
  color: var(--navy);
  font-size: clamp(28px, 3.4vw, 42px);
  margin: 12px 0 16px;
}

.journey-grid p {
  color: var(--muted);
  line-height: 1.75;
}

.journey-cta {
  background: var(--navy);
  color: var(--warm-white);
  margin-top: 54px;
  padding: clamp(38px, 6vw, 72px);
  text-align: center;
}

.journey-cta h2 {
  font-size: clamp(36px, 5vw, 62px);
}

.journey-cta p {
  color: #d8d5e0;
  margin: 16px auto 28px;
  max-width: 680px;
}

.homebot-section {
  align-items: start;
  background: var(--white);
  border-top: 4px solid var(--gold);
  display: grid;
  gap: 48px;
  grid-template-columns: 0.8fr 1.2fr;
  margin-top: 72px;
  padding: clamp(34px, 6vw, 72px);
}

.homebot-copy h2 {
  color: var(--navy);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.04;
  margin: 14px 0 20px;
}

.homebot-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.homebot-widget {
  min-height: 420px;
}

.foot-grid p {
  color: #c5c2d4;
  font-size: 14px;
  margin-top: 16px;
  max-width: 330px;
}

.compliance p {
  margin: 0 auto;
  max-width: 860px;
}

.foot h2 {
  color: var(--warm-white);
  font-size: 18px;
  margin-bottom: 14px;
}

.foot-grid a,
.foot-grid span {
  color: #c5c2d4;
  display: block;
  font-size: 14px;
  padding: 4px 0;
}

.compliance {
  background: var(--white);
  color: #5e6076;
  font-size: 12.5px;
  line-height: 1.75;
  padding: 28px 20px;
  text-align: center;
}

.logos {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 16px;
}

.logos img {
  height: 48px;
  object-fit: contain;
  width: auto;
}

.logos .phe-mark {
  height: 42px;
}

.compliance .name {
  color: var(--navy);
  font-weight: 700;
}

.copyr {
  color: #8b89a0;
  font-size: 12px;
  padding: 16px;
  text-align: center;
}

/* Dedicated IDX search page */
.idx-page {
  background: var(--cream);
}

.idx-page .nav {
  background: rgba(245, 241, 234, 0.97);
}

.idx-main {
  background: var(--cream);
  min-height: 100vh;
  padding-top: 76px;
}

.idx-intro {
  background: var(--navy);
  color: var(--warm-white);
  padding: 76px 0 124px;
}

.idx-intro-inner {
  max-width: 760px;
}

.idx-intro h1 {
  color: var(--warm-white);
  font-size: clamp(54px, 7vw, 94px);
  margin: 12px 0 18px;
}

.idx-intro p {
  color: #d8d5e0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
  max-width: 650px;
}

.idx-search {
  position: relative;
}

.idx-shell {
  background: var(--white);
  border-top: 4px solid var(--gold);
  box-shadow: 0 22px 54px rgba(16, 18, 50, 0.13);
  margin-top: -64px;
  min-height: 680px;
  padding: 28px;
  position: relative;
  z-index: 2;
}

.idx-shell:empty::before {
  color: var(--muted);
  content: "Loading current listings...";
  display: block;
  font-size: 15px;
  padding: 28px;
  text-align: center;
}

.idx-help {
  padding: 92px 0;
}

.idx-help-inner {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: 1.1fr 1fr auto;
}

.idx-help h2 {
  font-size: clamp(36px, 4vw, 56px);
  margin-top: 10px;
}

.idx-help p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.reveal {
  --scroll-lift: 0px;
  opacity: 0;
  transform: translate3d(0, calc(24px + var(--scroll-lift)), 0);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: translate3d(0, var(--scroll-lift), 0);
}

.reveal.d1 {
  transition-delay: 80ms;
}

.reveal.d2 {
  transition-delay: 160ms;
}

.reveal.d3 {
  transition-delay: 240ms;
}

.reveal-flip {
  opacity: 0;
  transform: perspective(900px) rotateX(-8deg) translateY(26px);
  transform-origin: 50% 100%;
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-flip.in {
  opacity: 1;
  transform: perspective(900px) rotateX(0) translateY(0);
}

.reveal-flip.d1 { transition-delay: 80ms; }
.reveal-flip.d2 { transition-delay: 160ms; }
.reveal-flip.d3 { transition-delay: 240ms; }

@media (max-width: 980px) {
  .nav-links {
    background: var(--navy);
    border-top: 1px solid rgba(247, 244, 238, 0.12);
    box-shadow: 0 18px 30px rgba(16, 18, 50, 0.26);
    display: none;
    gap: 0;
    left: 0;
    padding: 10px 20px 24px;
    position: fixed;
    right: 0;
    top: 76px;
    width: auto;
  }

  .nav.scrolled .nav-links {
    background: var(--cream);
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a {
    border-bottom: 1px solid rgba(247, 244, 238, 0.09);
    padding: 14px 0;
  }

  .split-head,
  .about-grid,
  .marketing-grid,
  .lead-grid,
  .foot-grid,
  .inner-split {
    grid-template-columns: 1fr;
  }

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

  .video-listing-grid {
    grid-template-columns: 1fr;
  }

  .listing-video-card {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
  }

  .bio-grid,
  .homebot-section {
    grid-template-columns: 1fr;
  }

  .inner-split img {
    height: min(620px, 78vw);
  }

  .number-grid,
  .portfolio-grid,
  .trust-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .number-card {
    grid-template-columns: 1fr;
  }

  .number-card span {
    text-align: left;
  }

  .about-photo img {
    aspect-ratio: 3 / 4;
    max-height: 760px;
  }

  .camera-wrap {
    width: min(680px, 92vw);
  }

  .media-copy h2,
  .media-copy p {
    max-width: min(620px, 100%);
  }

  .idx-help-inner {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .idx-quick-search,
  .idx-live-listings {
    overflow-x: auto;
  }
}

@media (max-width: 820px) {
  .hire-video {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hire-video-bg {
    background:
      linear-gradient(180deg, rgba(16, 18, 50, 0) 78%, rgba(16, 18, 50, 0.72) 100%),
      url("assets/marc-coco-couch.jpg") center 58% / cover no-repeat;
    grid-column: 1;
    min-height: 72svh;
  }

  .hire-video-copy {
    grid-column: 1;
    padding: 52px 24px 64px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 32px, var(--maxw));
  }

  .nav-logo img {
    height: 42px;
  }

  .nav-logo span {
    display: none;
  }

  .nav-inner {
    gap: 10px;
  }

  .nav-quick {
    gap: 12px;
  }

  .nav-quick a {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .nav-logo small {
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .video-hero h1,
  .media-copy h2,
  .hire-video h2 {
    font-size: clamp(34px, 11vw, 56px);
    letter-spacing: 0.06em;
  }

  .selling-slogan h2 {
    font-size: clamp(34px, 10vw, 50px);
    letter-spacing: 0.04em;
  }

  .hero-logo {
    width: min(210px, 58vw);
  }

  .selling-photo-wrap {
    height: 70vh;
    width: 88vw;
  }

  .selling-slogan {
    right: 16px;
    text-align: left;
    width: calc(100% - 32px);
  }

  .number-grid,
  .portfolio-grid,
  .trust-list,
  .marketing-cards,
  .inner-card-grid,
  .community-grid,
  .service-flip-grid,
  .journey-grid {
    grid-template-columns: 1fr;
  }

  .listing-video-card {
    display: block;
  }

  .bio-grid {
    margin-top: 64px;
  }

  .service-flip {
    height: 310px;
  }

  .inner-hero {
    min-height: 470px;
    padding-bottom: 60px;
  }

  .inner-content {
    padding: 64px 0 78px;
  }

  .inner-card {
    min-height: 0;
    padding: 30px;
  }

  .number-card {
    border-top: 1px solid rgba(16, 18, 50, 0.14);
    min-height: auto;
    padding: 24px 0;
  }

  .number-card:last-child {
    border-right: 0;
  }

  .camera-wrap {
    width: 138vw;
  }

  .media-copy {
    padding-bottom: 48px;
  }

  .idx-intro {
    padding: 54px 0 94px;
  }

  .idx-intro h1 {
    font-size: 48px;
  }

  .idx-shell {
    margin-top: -46px;
    min-height: 540px;
    padding: 12px;
    width: calc(100% - 20px);
  }

  .idx-help {
    padding: 68px 0;
  }

  .idx-quick-search {
    margin-top: 28px;
    padding: 14px;
  }

  .idx-live-listings {
    padding: 10px;
  }

  .about-photo figcaption {
    bottom: 14px;
    left: 14px;
    max-width: calc(100% - 28px);
  }

  .trust-list li {
    min-height: auto;
  }

  .quote-card {
    flex-basis: 82vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track {
    animation: none;
  }

  .selling-cinema,
  .media-cinema {
    height: auto;
  }

  .selling-sticky,
  .media-sticky {
    min-height: 100svh;
    position: relative;
  }

  .selling-photo-wrap,
  .selling-photo,
  .selling-slogan,
  .camera-wrap,
  .camera-screen img,
  .about-photo img,
  .reveal,
  .reveal-flip,
  .split-flap-char {
    opacity: 1;
    animation: none;
    transform: none;
    transition: none;
  }
}

/* ============ Heider-style expanding listing panels ============ */
.expand-row {
  display: flex;
  gap: 0;
  width: 100%;
  --panel-h: 72vh;
}
.expand-row .property-card {
  flex: 1 1 0;
  min-width: 0;
  transform: none;
  transition: flex-grow 600ms cubic-bezier(.22,.61,.36,1);
}
.expand-row .property-photo {
  aspect-ratio: auto;
  height: var(--panel-h);
  filter: grayscale(1);
  transition: filter 600ms ease, transform 600ms ease;
}
.expand-row .property-body {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
  transition-delay: 120ms;
}
.expand-row .property-photo span {
  opacity: 0;
  transition: opacity 400ms ease;
}
/* active panel grows, colorizes, reveals detail */
.expand-row .property-card.active {
  flex-grow: 4.2;
}
.expand-row .property-card.active .property-photo {
  filter: grayscale(0);
}
.expand-row .property-card.active .property-body,
.expand-row .property-card.active .property-photo span {
  opacity: 1;
  transform: none;
}
@media (hover: hover) {
  .expand-row:hover .property-card:not(:hover) { flex-grow: 1; }
  .expand-row:hover .property-card:hover { flex-grow: 4.2; }
  .expand-row:hover .property-card:hover .property-photo { filter: grayscale(0); }
  .expand-row:hover .property-card:hover .property-body,
  .expand-row:hover .property-card:hover .property-photo span { opacity: 1; transform: none; }
}
@media (max-width: 760px) {
  .expand-row { flex-direction: column; --panel-h: 360px; }
  .expand-row .property-card,
  .expand-row .property-card.active { flex: none; }
  .expand-row .property-photo,
  .expand-row .property-card.active .property-photo { filter: grayscale(0); }
  .expand-row .property-body,
  .expand-row .property-photo span { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .expand-row .property-card { transition: none; }
  .expand-row .property-photo { filter: grayscale(0); }
  .expand-row .property-body, .expand-row .property-photo span { opacity: 1; transform: none; }
}

/* WordPress contact-form states */
.phe .phe-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.phe .form-status {
  min-height: 1.5em;
  margin: 0;
  font-weight: 700;
}

.phe .form-status.success { color: #1f6b45; }
.phe .form-status.error { color: #9f2f2f; }


/* IDX (wrapped) pages give the nav a light background, so flip its text, logo,
   and hamburger to dark for contrast — mirrors the .nav.scrolled treatment. */
.idx-page .nav .nav-logo span,
.idx-page .nav .nav-links a,
.idx-page .nav .nav-quick a {
  color: var(--navy);
}

.idx-page .nav .nav-toggle span {
  background: var(--navy);
}

.idx-page .nav .nav-logo small,
.idx-page .nav .nav-links a:hover {
  color: var(--burnished);
}
