/* Bob Heyen Realty — homepage
   Visual system ported from the Replit mockup */

@font-face {
  font-family: "Playbill";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Playbill.woff") format("woff");
}

:root {
  --cream: hsl(36 22% 94%);
  --cream-deep: hsl(34 14% 89%);
  --ink: hsl(215 28% 14%);
  --ink-soft: hsl(215 10% 46%);
  --navy: hsl(215 42% 24%);
  --navy-deep: hsl(215 30% 10%);
  --accent: hsl(32 38% 58%);
  --accent-hover: hsl(32 36% 48%);
  --white: #fff;
  --line: hsl(32 18% 83%);
  --line-on-navy: rgba(243, 235, 227, 0.18);

  --font-sans: "Inter", system-ui, sans-serif;
  --font-serif: "Merriweather", Georgia, serif;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-brand: "Playbill", "Oswald", "Arial Narrow", serif;

  --header-h: 8.5rem;
  --max: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

/* ——— Typography helpers ——— */

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.serif {
  font-family: var(--font-serif);
}

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head .display {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-top: 0.65rem;
  color: var(--ink);
}

.section-head .display:first-child {
  margin-top: 0;
}

.section-head p {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

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

.section--navy .section-head .display {
  color: var(--cream);
}

.section--navy .section-head p,
.section--navy .eyebrow {
  color: rgba(243, 235, 227, 0.72);
}

.section--navy .eyebrow {
  color: var(--accent);
}

.section--cream-deep {
  background: var(--cream-deep);
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn--accent:hover,
.btn--accent:focus-visible {
  background: var(--accent-hover);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(243, 235, 227, 0.45);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--cream);
  background: rgba(243, 235, 227, 0.08);
}

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

.btn--navy:hover,
.btn--navy:focus-visible {
  background: var(--navy-deep);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ——— Header ——— */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(36, 48, 64, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-on-navy);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cream);
  min-width: 0;
}

.brand__logo {
  width: 7rem;
  height: 7rem;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}

.brand__text {
  font-family: var(--font-brand);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

.brand__text span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  opacity: 0.7;
  text-transform: uppercase;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 235, 227, 0.82);
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
}

.nav__cta {
  padding: 0.65rem 1rem;
  background: var(--accent);
  color: var(--navy-deep) !important;
}

.nav__cta:hover,
.nav__cta:focus-visible {
  background: var(--accent-hover);
  color: var(--white) !important;
}

.nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  color: var(--cream);
}

.nav-toggle__bars {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background 0.2s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, top 0.25s ease;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.site-header.is-open .nav-toggle__bars {
  background: transparent;
}

.site-header.is-open .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.is-open .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  background: var(--navy-deep);
  padding: 1.5rem var(--gutter) 2rem;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}

.site-header.is-open + .nav-mobile,
.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  padding: 1rem 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  border-bottom: 1px solid var(--line-on-navy);
}

.nav-mobile a:hover {
  color: var(--accent);
}

.nav-mobile .nav__cta {
  margin-top: 1.25rem;
  text-align: center;
  border: none;
}

@media (min-width: 960px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }
}

/* ——— Hero ——— */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: var(--cream);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: 60% 40%;
  will-change: transform;
  animation: kenburns 28s ease-in-out infinite alternate;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 16, 24, 0.45) 0%, rgba(10, 16, 24, 0.25) 35%, rgba(10, 16, 24, 0.78) 100%),
    linear-gradient(90deg, rgba(10, 16, 24, 0.55) 0%, transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--gutter), 42rem);
  margin-left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  margin-right: var(--gutter);
  padding: calc(var(--header-h) + 3rem) 0 clamp(5.5rem, 12vw, 6rem);
}

.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 235, 227, 0.85);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.hero .display {
  font-size: clamp(2.35rem, 8vw, 4.75rem);
  margin: 1rem 0 1.25rem;
  opacity: 0;
  transform: translateY(22px);
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}

.hero__lead {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  color: rgba(243, 235, 227, 0.88);
  margin-bottom: 1.75rem;
  max-width: 34rem;
  opacity: 0;
  transform: translateY(22px);
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards;
}

.hero .btn-row {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(243, 235, 227, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fade 1s ease 1.1s forwards;
  pointer-events: none;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 2rem;
  background: rgba(243, 235, 227, 0.45);
  animation: pulse 1.8s ease-in-out infinite;
}

@media (max-width: 640px) {
  .hero__content {
    padding-bottom: 6.5rem;
  }

  .hero__scroll {
    bottom: 0.85rem;
  }

  .hero__scroll::after {
    height: 1.35rem;
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade {
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.85);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes kenburns {
  from {
    transform: scale(1.05) translate(0, 0);
  }
  to {
    transform: scale(1.14) translate(-2.5%, -1.5%);
  }
}

/* ——— Services ——— */

.section-head--wide {
  max-width: 44rem;
}

.services-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-block {
  display: grid;
  gap: 1.25rem;
  padding-block: clamp(2rem, 4.5vw, 3rem);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 800px) {
  .service-block {
    grid-template-columns: minmax(12rem, 0.85fr) 1.4fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
  }
}

.service-block__meta {
  display: grid;
  gap: 0.65rem;
}

.service-block__num {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.service-block__title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--ink);
}

.service-block__body {
  max-width: 40rem;
}

.service-block__body p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

.service-block__body p + p {
  margin-top: 1rem;
}

.services-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  padding: 1.75rem 1.5rem;
  border-top: 3px solid var(--accent);
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card--feature {
  grid-column: 1 / -1;
  padding: 2rem 1.75rem;
}

.service-card--feature p {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 48rem;
}

.service-card--feature p + p {
  margin-top: 1rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ——— Listings ——— */

.listings-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.listings-head .section-head {
  margin-bottom: 0;
}

.listings-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .listings-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.listing-card {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--line-on-navy);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.listing-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.listing-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.listing-card:hover .listing-card__media img {
  transform: scale(1.04);
}

.listing-card__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--navy-deep);
}

.listing-card__badge--active {
  background: hsl(43 96% 56%);
  color: var(--navy-deep);
}

.listing-card__badge--pending {
  background: hsl(25 95% 53%);
  color: var(--white);
}

.listing-status {
  position: absolute;
  right: -2.75rem;
  bottom: 2rem;
  z-index: 1;
  width: 11rem;
  padding: 0.42rem 0;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.listing-status--available {
  background: hsla(145, 38%, 28%, 0.72);
}

.listing-status--new {
  background: hsla(168, 48%, 28%, 0.78);
}

.listing-status--reduced {
  background: hsla(4, 58%, 38%, 0.78);
}

.listing-status--pending {
  background: hsla(25, 72%, 38%, 0.78);
}

.listing-status--contingent {
  right: -3.15rem;
  bottom: 2.2rem;
  width: 12.25rem;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  background: hsla(48, 62%, 34%, 0.78);
}

.listing-status--under_contract {
  right: -3.35rem;
  bottom: 2.35rem;
  width: 13rem;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  background: hsla(32, 65%, 38%, 0.72);
}

.listing-status--sold {
  background: hsla(215, 22%, 24%, 0.72);
}

.listing-gallery__media {
  position: relative;
  overflow: hidden;
}

.listing-gallery__item--main .listing-gallery__preview img,
.listing-gallery__item--main .listing-gallery__thumb-fallback {
  aspect-ratio: 16 / 10;
}

@media (min-width: 768px) {
  .listing-gallery__item--main {
    grid-column: 1 / -1;
  }
}

.listing-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.listing-card__price {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.listing-card__acres {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 235, 227, 0.65);
}

.listing-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--cream);
}

.listing-card__loc {
  font-size: 0.9rem;
  color: rgba(243, 235, 227, 0.72);
}

.listing-card__meta {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line-on-navy);
  font-size: 0.85rem;
  color: rgba(243, 235, 227, 0.78);
  display: grid;
  gap: 0.25rem;
}

.listing-card__link {
  display: block;
  color: inherit;
  height: 100%;
}

.listing-card__cta {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

.listings-empty {
  grid-column: 1 / -1;
  color: rgba(243, 235, 227, 0.85);
  max-width: 36rem;
}

/* ——— Story ——— */

.story-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .story-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.story-intro .display {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0.65rem 0 1.25rem;
}

.story-intro p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.story-intro em {
  font-style: italic;
  color: var(--ink);
}

.story-blocks {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}

.story-block h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.story-block .sub {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.story-block p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  background: var(--navy);
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.stat span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 235, 227, 0.72);
  line-height: 1.35;
}

.bring h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.bring ul {
  display: grid;
  gap: 0.65rem;
}

.bring li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.bring li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  flex-shrink: 0;
  background: var(--accent);
}

/* ——— Area ——— */

.area-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .area-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
}

.area-copy p {
  color: rgba(243, 235, 227, 0.78);
  margin-bottom: 1rem;
}

.county-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin-top: 1.5rem;
}

.county-list li {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-on-navy);
  color: rgba(243, 235, 227, 0.88);
}

.county-list li.is-home {
  color: var(--accent);
}

.area-cta {
  position: relative;
  overflow: hidden;
  min-height: 22rem;
}

.area-cta img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.area-cta__overlay {
  position: relative;
  z-index: 1;
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 1.75rem;
  background: linear-gradient(180deg, transparent 20%, rgba(10, 16, 24, 0.85) 100%);
  color: var(--cream);
}

.area-cta__overlay .eyebrow {
  color: rgba(243, 235, 227, 0.7);
  margin-bottom: 0.5rem;
}

.area-cta__overlay h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.area-cta__overlay blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  color: rgba(243, 235, 227, 0.9);
}

.area-cta__overlay .meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

/* ——— Testimonials ——— */

.testimonials-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial {
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section--navy .testimonial {
  background: rgba(0, 0, 0, 0.18);
  border-color: var(--line-on-navy);
  border-top-color: var(--accent);
  color: var(--cream);
}

.testimonial blockquote {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink);
  flex: 1;
  white-space: pre-wrap;
}

.section--navy .testimonial blockquote {
  color: rgba(243, 235, 227, 0.92);
}

.testimonial cite {
  font-style: normal;
  display: grid;
  gap: 0.15rem;
}

.testimonial cite strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.testimonial cite span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.section--navy .testimonial cite span {
  color: rgba(243, 235, 227, 0.68);
}

/* ——— Contact ——— */

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
  }
}

.contact-details {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-detail h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.contact-detail a,
.contact-detail p {
  font-size: 1.15rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-detail a:hover {
  color: var(--accent);
}

.agent-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.agent-lines li {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

.agent-lines a {
  font-size: inherit;
  font-weight: 600;
  white-space: nowrap;
}

.contact-details .social-link {
  margin-top: 0;
  font-size: 1rem;
  font-weight: 600;
  color: inherit;
}

.contact-form {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 2rem);
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 560px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%),
    linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
  cursor: pointer;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--navy);
  background-color: var(--white);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.contact-form .btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-note {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.form-status {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
  border: 1px solid var(--line);
}

.form-status--ok {
  background: hsl(145 30% 92%);
  border-color: hsl(145 35% 70%);
  color: hsl(145 40% 22%);
}

.form-status--err {
  background: hsl(8 55% 94%);
  border-color: hsl(8 50% 75%);
  color: hsl(8 55% 28%);
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ——— Footer ——— */

.site-footer {
  background: var(--navy-deep);
  color: rgba(243, 235, 227, 0.78);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr;
  }
}

.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 22rem;
}

.footer-col h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.social-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.social-link__icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.footer-disclosures {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-top: 0.25rem;
}

@media (min-width: 720px) {
  .footer-disclosures {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.footer-disclosure h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.footer-disclosure a {
  display: inline-block;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(243, 235, 227, 0.78);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}

.footer-disclosure a:hover,
.footer-disclosure a:focus-visible {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-on-navy);
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.footer-credit a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(243, 235, 227, 0.65);
  transition: color 0.2s ease;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: var(--cream);
}

.footer-credit img {
  height: 1.35rem;
  width: auto;
  border-radius: 0.15rem;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.92;
}

.listing-detail {
  padding: calc(var(--header-h) + 2rem) 0 4rem;
}

.listing-detail__head {
  margin: 0.5rem 0 1.5rem;
}

.listing-detail__price {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-top: 0.35rem;
}

.listing-detail__description {
  max-width: 46rem;
  margin-bottom: 2rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.listing-detail__subhead {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}

.listing-docs {
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.listing-docs__list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.listing-docs__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  background: none;
}

.listing-docs__label {
  flex: 1 1 12rem;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--ink);
}

.listing-docs__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
}

.listing-docs .doc-link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
}

.listing-docs .doc-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.listing-gallery {
  margin-bottom: 2.5rem;
}

.listing-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem;
}

.listing-gallery__item {
  margin: 0;
}

.listing-gallery__preview {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.listing-gallery__preview img,
.listing-gallery__thumb-fallback {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.listing-gallery__preview--video {
  position: relative;
  cursor: pointer;
}

.listing-gallery__thumb-fallback {
  display: block;
  background: hsl(215 22% 18%);
}

.media-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3.15rem;
  height: 3.15rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: hsla(0, 0%, 0%, 0.55);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.media-play::before {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.55rem 0 0.55rem 0.9rem;
  border-color: transparent transparent transparent #fff;
}

.listing-gallery__item figcaption {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.listing-detail__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.listing-detail .btn,
.listing-docs .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
}

.listing-detail .btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.listing-detail .btn--ghost {
  background: transparent;
}

/* Shared media modal */
.media-modal[hidden] {
  display: none !important;
}

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.media-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 36, 0.72);
}

.media-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(56rem, 100%);
  max-height: min(90vh, 52rem);
  background: var(--white);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.media-modal__close {
  position: absolute;
  top: 0.4rem;
  right: 0.55rem;
  z-index: 2;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
  background: var(--white);
  border: 0;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
}

.media-modal__body {
  flex: 1;
  min-height: 12rem;
  overflow: auto;
  background: hsl(215 20% 12%);
  display: grid;
  place-items: center;
}

.media-modal__body img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.media-modal__body iframe,
.media-modal__body embed {
  width: 100%;
  height: min(70vh, 40rem);
  border: 0;
  background: var(--white);
}

.media-modal__body iframe.media-modal__video {
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

.media-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
}

.media-modal__actions .btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
}

.media-modal__actions [hidden] {
  display: none !important;
}

.media-modal__actions .btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.media-modal__actions .btn--ghost {
  background: transparent;
}

/* ——— Reveal on scroll ——— */

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .hero__eyebrow,
  .hero .display,
  .hero__lead,
  .hero .btn-row,
  .hero__scroll,
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .hero__media img {
    animation: none;
    transform: none;
  }

  .hero__scroll::after {
    animation: none;
  }
}
