/* =========================================================================
   Smuts Property Investments — components.css
   Reusable UI: buttons, badges, pills. Section-specific blocks are appended
   as each section is built.
   ========================================================================= */

/* ----------------------------------------------------------------- Buttons */
/* Square corners throughout. Base padding per spec: 8px 16px.
   min-height keeps tap targets >= 44px on touch. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  min-height: 44px;
  border-radius: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.6;
  text-align: center;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45, 49, 43, 0.22);
}
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

.btn--primary {
  background: var(--color-forest);
  color: var(--color-white);
  border-color: var(--color-forest);
}
.btn--primary:hover {
  background: var(--color-forest-dark);
  border-color: var(--color-forest-dark);
}

.btn--secondary {
  background: var(--color-sage);
  color: var(--color-white);
  border-color: var(--color-sage);
}
.btn--secondary:hover {
  background: var(--color-sage-dark);
  border-color: var(--color-sage-dark);
}

/* Outlined — used on dark backgrounds */
.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-sage);
}
.btn--outline:hover {
  background: var(--color-sage);
  color: var(--color-white);
}

.btn--block {
  width: 100%;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ---------------------------------------------------------- Badges / pills */
/* Status badge for listings */
.badge {
  display: inline-block;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-forest);
}
.badge--for-sale { background: var(--color-forest); }
.badge--rental   { background: var(--color-sage); }
.badge--sold     { background: var(--color-charcoal); }
.badge--let      { background: var(--color-charcoal); }

/* "New!" nav pill — white rounded pill, dark text */
.pill {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 9px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-charcoal);
  background: var(--color-white);
  border-radius: 100px;
  vertical-align: middle;
}

/* ---------------------------------------------------------- Section heads */
.section-head {
  margin-bottom: var(--space-lg);
}
.section-head--center {
  text-align: center;
}

/* =======================================================================
   Header / navigation
   ======================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #f2eee2;
  transition: box-shadow var(--transition);
}
.site-header.is-sticky {
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--header-h);
  height: var(--header-h);
  padding-block: 0;
}

/* Brand logo lockup — house mark above SMUTS / PROPERTY */
.brand-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--color-forest);
  line-height: 1;
}
.brand-logo__icon {
  display: block;
}
.brand-logo__icon svg {
  display: block;
  width: 46px;
  height: auto;
}
.brand-logo__word {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.brand-logo__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-forest);
}
.brand-logo__sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--color-forest);
  margin-top: 4px;
  /* optical: offset the right-hand letter-spacing so the word stays centred */
  text-indent: 5px;
}
.brand-logo__img {
  /* Header default — overridden per-context below. */
  max-height: 64px;
  width: auto;
}
.brand-logo--header {
  /* Flush against the header chrome — no inline-flex padding/margin. */
  padding: 0;
  margin: 0;
  height: var(--header-h);
}
.brand-logo--header .brand-logo__img {
  /* Logo fills the full height of the nav bar with zero padding. */
  display: block;
  max-height: var(--header-h);
  height: var(--header-h);
  width: auto;
  margin: 0;
  padding: 0;
}

/* Desktop nav — hidden on mobile, shown at >=1024 (responsive.css) */
.site-nav {
  display: none;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.site-nav__link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--color-charcoal);
  padding: 8px 16px;
  transition: color var(--transition);
}
.site-nav__link:hover {
  color: var(--color-forest);
}

.site-header__cta {
  /* Visible at every width. Mobile shows the compact "Call now" label;
     desktop swaps to the full phone number + icon. Span visibility is
     controlled below. */
  display: inline-flex;
}
.site-header__cta-full {
  display: inline;
}
.site-header__cta-compact {
  display: none;
}

/* Hamburger button — on mobile it's a small white square next to the Call CTA. */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 11px 9px;
  background: var(--color-white);
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-charcoal);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav — a small dropdown anchored to the bottom of the header
   (cream-2 panel with shadow). Not a full-screen overlay. */
.mobile-nav {
  position: absolute;
  top: 100%;
  right: var(--container-pad);
  z-index: 1100;
  width: auto;
  min-width: 220px;
  padding: 24px;
  background: var(--color-cream-2);
  box-shadow: 0 20px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}
.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  margin: 0;
  padding: 0;
}
.mobile-nav__link {
  display: block;
  padding: 4px 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-charcoal);
}
.mobile-nav__link:hover { color: var(--color-forest); }
.mobile-nav .btn--primary {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #d9d9d9;
  min-height: 48px;
  width: 100%;
  justify-content: center;
}

body.no-scroll {
  overflow: hidden;
}

/* =======================================================================
   Footer
   ======================================================================= */
.site-footer {
  background: var(--color-charcoal);
  color: var(--color-cream);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding-block: var(--space-lg) var(--space-md);
}

/* Footer logo — real SMUTS mark on its cream tile (baked into the image) */
.site-footer__logo {
  display: inline-block;
  line-height: 0;
}
.site-footer__logo img {
  display: block;
  width: 210px;
  height: auto;
}

/* "Get in touch" + "Find us on" headings — Montserrat SemiBold 18px */
.site-footer__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h5);
  line-height: 1.2;
  color: var(--color-white);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: var(--space-sm);
}
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: #d9d9d9;
}
.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: #d9d9d9;
}
.site-footer a {
  color: #d9d9d9;
  transition: color var(--transition);
}
.site-footer a:hover {
  color: var(--color-sage);
}

/* "Find us on" + social icons row */
.site-footer__find {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: var(--space-md);
}
.site-footer__find-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h5);
  color: var(--color-white);
}
.site-footer__social {
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
}
.site-footer__social a img {
  display: block;
  width: 30px;
  height: 30px;
}
.site-footer__social a:hover {
  opacity: 0.65;
}

.site-footer__nhbrc {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
}
/* "Registered" label — Roboto Medium 14px (overrides the Montserrat heading) */
.site-footer__nhbrc .site-footer__heading {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 0;
}
.site-footer__nhbrc img {
  width: 100px;
  height: auto;
}
.site-footer__nhbrc-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 2px;
  color: var(--color-white);
}
.site-footer__nhbrc-sub {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-sage);
  max-width: 18ch;
}
.site-footer__bar-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-block: var(--space-md);
  font-size: 12px;
  color: var(--color-sage);
}
.site-footer__bar-inner p { margin: 0; }
.site-footer__copyright,
.site-footer__privacy { color: var(--color-sage); }
.site-footer__privacy:hover { color: var(--color-cream); }

/* =======================================================================
   WhatsApp float
   ======================================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: var(--shadow-md);
  animation: spi-pulse 2s infinite;
}
.whatsapp-float:hover {
  background: #1ebe5d;
}
@keyframes spi-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50%       { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}

/* =======================================================================
   Contact modal
   ======================================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-md);
  overflow-y: auto;
  opacity: 0;
  transition: opacity var(--transition);
}
/* Critical: keep the hidden attribute working so the closed modal doesn't
   overlay the page and swallow clicks. */
.modal[hidden] {
  display: none;
}
.modal.is-open {
  opacity: 1;
}
.modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 580px;
  margin: auto;
  background: var(--color-cream);
  padding: 20px 20px 40px;
  box-shadow: var(--shadow-md);
  transform: translateY(12px);
  transition: transform var(--transition);
}
.modal.is-open .modal__dialog {
  transform: translateY(0);
}
.modal__close {
  align-self: flex-end;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-charcoal);
}
.modal__close:hover { color: var(--color-forest); }
.modal__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--color-charcoal);
}
.modal__head .accent-rule {
  margin: 0;
}
.modal__notice {
  padding: var(--space-sm);
  background: var(--color-cream-2);
  border: 1px dashed var(--color-border);
  font-size: var(--fs-small);
}
.form-success {
  padding: var(--space-md);
  background: var(--color-forest);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 600;
  text-align: center;
}

/* CF7 form — labelled fields above transparent inputs (Figma) */
.modal-form-wrap form,
.modal-form-wrap .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-form-wrap .hidden-fields-container {
  display: none;
}
.modal-field > label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.modal-field__label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-forest);
}
.modal-field .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}
.modal-form-wrap input[type="text"],
.modal-form-wrap input[type="tel"],
.modal-form-wrap input[type="email"],
.modal-form-wrap textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-charcoal);
  background: transparent;
  border: 1px solid var(--color-charcoal);
  border-radius: 0;
}
.modal-form-wrap input[type="text"],
.modal-form-wrap input[type="tel"],
.modal-form-wrap input[type="email"] {
  height: 48px;
}
.modal-form-wrap textarea { min-height: 124px; resize: vertical; }
.modal-form-wrap input:focus,
.modal-form-wrap textarea:focus {
  outline: none;
  border-color: var(--color-forest);
}
.modal-form-wrap input[type="hidden"] { display: none; }
.modal-field--submit { margin-top: 8px; }
.modal-form-wrap .wpcf7-submit {
  width: 100%;
  padding: 8px 16px;
  min-height: 44px;
  background: var(--color-forest);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: capitalize;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background var(--transition);
}
.modal-form-wrap .wpcf7-submit:hover { background: var(--color-forest-dark); }
.wpcf7-not-valid-tip { color: #c0392b; font-size: var(--fs-small); }
.wpcf7-response-output {
  margin: var(--space-sm) 0 0 !important;
  padding: var(--space-xs) var(--space-sm) !important;
  font-size: var(--fs-small);
}

/* =======================================================================
   Home — Hero
   ======================================================================= */
.hero {
  position: relative;
  /* cream behind the text, transitioning to charcoal at the bottom so the
     hero photo feathers into the charcoal block (video + testimonial + about) */
  background: linear-gradient(to bottom, var(--color-cream-2) 0%, var(--color-cream) 38%, var(--color-charcoal) 66%);
  padding-top: var(--space-lg);
  overflow: hidden;
}
.hero__content {
  position: relative;
  z-index: 2;
}
.hero__title {
  max-width: 914px;
  margin-bottom: var(--space-md);
}
.hero__title-line {
  display: inline; /* flows naturally on mobile; forced to two lines on desktop */
}
.hero__subtitle {
  max-width: 60ch;
  color: var(--color-charcoal);
  margin-bottom: var(--space-lg);
}
.hero__actions {
  margin-bottom: var(--space-md);
}
.hero__image {
  position: relative;
  width: 100%;
  /* pulled up to sit closer behind the buttons */
  margin-top: -148px;
  line-height: 0;
  /* Figma crops the tall photo into a wide ~2.31:1 band */
  aspect-ratio: 1280 / 553;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Feather the photo into the cream on the sides and bottom only — the top
     stays solid so the roof peak/chimney aren't cut off. */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, #000 0, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, #000 0, #000 72%, transparent 100%);
  mask-composite: intersect;
}

/* =======================================================================
   Home — Video section
   ======================================================================= */
.video-section {
  position: relative;
  z-index: 2;
  background: var(--color-charcoal);
  padding-block: 0 var(--space-xl);
  /* contain the card's negative margin so the charcoal bg doesn't ride up over
     the hero photo's fade (margin-collapse would create a hard edge) */
  display: flow-root;
}
.video-thumb {
  position: relative;
  z-index: 3;
  /* pull up so the card overlaps the hero photo where it fades out (Figma) */
  margin-top: -180px;
  max-width: 938px;
  margin-inline: auto;
  aspect-ratio: 938 / 473;
  border: 3px solid #bdbdbd;
  border-radius: 12px;
  overflow: hidden;
}
.video-thumb__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--color-charcoal);
}
.video-thumb__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform var(--transition);
}
.video-thumb__play-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  color: var(--color-forest);
  box-shadow: var(--shadow-md);
}
.video-thumb__play-circle svg {
  margin-left: 4px; /* optically centre the triangle */
}
.video-thumb__play:hover {
  transform: translate(-50%, -50%) scale(1.06);
}
.video-thumb.is-playing .video-thumb__play {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .video-thumb__play:hover { transform: translate(-50%, -50%); }
}

/* =======================================================================
   Home — Testimonial (light + dark variants)
   ======================================================================= */
.testimonial {
  padding-block: var(--space-xl);
}
.testimonial--dark {
  background: var(--color-charcoal);
  color: var(--color-white);
}
.testimonial--light {
  background: var(--color-cream);
  color: var(--color-charcoal);
}
.testimonial__inner {
  max-width: 826px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}
.testimonial__quote-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-md);
  width: 100%;
}
.testimonial__mark {
  flex: 0 0 auto;
  color: var(--color-sage);
}
.testimonial__mark-svg {
  display: block;
  width: 59px;
  height: 47px;
}
.testimonial__mark--close {
  align-self: flex-end;
  transform: rotate(180deg);
}
.testimonial__quote {
  flex: 1 1 auto;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h4);
  line-height: 1.3;
  text-align: center;
}
.testimonial__person {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.testimonial__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial__avatar--placeholder {
  display: block;
  background: var(--color-sage);
}
.testimonial__person-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.testimonial__name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
}
.testimonial__title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
}

/* =======================================================================
   Home — Testimonial (dark + light variants)
   ======================================================================= */
.testimonial {
  padding-block: var(--space-xl);
}
.testimonial--dark {
  background: var(--color-charcoal);
  color: var(--color-white);
}
.testimonial--light {
  background: var(--color-cream);
  color: var(--color-charcoal);
}
.testimonial__inner {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: center;
}
.testimonial__quote-row {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  align-items: stretch;
}
.testimonial__mark {
  flex-shrink: 0;
  color: var(--color-sage);
  line-height: 0;
}
.testimonial__mark--open {
  align-self: flex-start;
}
.testimonial__mark--close {
  align-self: flex-end;
  transform: rotate(180deg);
}
.testimonial__mark-svg {
  display: block;
  /* 30px tall, width follows the 59:47 SVG viewBox aspect ratio. */
  height: 30px;
  width: auto;
}
.testimonial__quote {
  flex: 1 1 0;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
}
.testimonial__person {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.testimonial__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial__avatar--placeholder {
  background: var(--color-sage);
}
.testimonial__person-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.testimonial__name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
}
.testimonial__title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-sage);
}

/* =======================================================================
   Home — About section (dark, overlapping photos)
   ======================================================================= */
.about-section {
  background: var(--color-charcoal);
  color: var(--color-white);
  padding-block: var(--space-xl) calc(var(--space-xl) + 70px);
  /* angled bottom edge: dark block tapers up on the left into the cream below */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 90px));
}
.about-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.about-section__title {
  color: var(--color-cream);
}
.about-section__content p {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}
.about-section__actions {
  margin-top: var(--space-lg);
}

/* Overlapping photo stack */
.about-photos {
  position: relative;
  width: 100%;
  max-width: 456px;
  margin-inline: auto;
  aspect-ratio: 456 / 528;
}
.about-photos__item {
  position: absolute;
  overflow: hidden;
  background: var(--color-sage);
  box-shadow: var(--shadow-md);
}
.about-photos__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-photos__item--1 { left: 0;    top: 0;     width: 100%;   height: 49.8%; z-index: 1; }
.about-photos__item--2 { left: 44%;  top: 30%;   width: 48%;    height: 53%;   z-index: 2; }
.about-photos__item--3 { left: 15%;  top: 67.4%; width: 65.4%;  height: 32.6%; z-index: 3; }

/* Section label / eyebrow — Montserrat Medium 24px sage (Figma) */
.section-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h4);
  line-height: 1.2;
  color: var(--color-sage);
  margin-bottom: var(--space-sm);
}

/* =======================================================================
   Home — Services ("What We Do")
   ======================================================================= */
.services {
  background: var(--color-cream);
  padding-block: var(--space-xl);
}
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.services__title {
  color: var(--color-charcoal);
}
.services__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}
.service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  color: var(--color-sage);
  cursor: pointer;
  transition: color var(--transition);
}
.service-item.is-active {
  color: var(--color-forest);
}
.service-item__num {
  flex-shrink: 0;
}

.services__panel {
  position: relative;
  aspect-ratio: 704 / 486;
  overflow: hidden;
}
.services__layer {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.services__layer.is-active {
  opacity: 1;
}
.services__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.services__layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(4, 4, 4, 0), rgba(4, 4, 4, 0.5));
}
.services__layer-meta {
  position: absolute;
  left: 0;
  bottom: 20px;
  z-index: 1;
  display: flex;
  flex-direction: row; /* white rule flush-left, then number on the baseline (Figma) */
  align-items: flex-end;
  gap: 12px;
}
.services__layer-rule {
  display: block;
  width: 100px;
  height: 4px;
  margin-bottom: 10px; /* lift the rule to sit on the number's baseline */
  background: var(--color-white);
}
.services__layer-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
  color: var(--color-white);
}
@media (prefers-reduced-motion: reduce) {
  .services__layer { transition: none; }
}

/* =======================================================================
   Home — Why Choose Us (dark section, cream cards)
   ======================================================================= */
.why-choose {
  /* dark timber-frame photo band with angled top + bottom edges (baked into the
     PNG's transparency); stretched to the section so the angles hug the corners */
  background: url("../images/why-choose-bg.png") no-repeat;
  background-size: 100% 100%;
  color: var(--color-white);
  padding-block: var(--space-2xl);
}
.why-choose__head {
  max-width: 952px;
  margin-bottom: var(--space-lg);
}
.why-choose__title {
  color: var(--color-white);
}
.why-choose__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.why-card {
  background: var(--color-cream);
  color: var(--color-charcoal);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.why-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--color-sage);
  flex-shrink: 0;
}
.why-card__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.why-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.2;
  color: var(--color-charcoal);
}
.why-card__body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-charcoal);
}

/* =======================================================================
   Home — How It Works (cream section, charcoal step cards)
   ======================================================================= */
.how-it-works {
  background: var(--color-cream);
  padding-block: var(--space-xl);
}
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.how-intro__title {
  color: var(--color-charcoal);
}
.how-intro__lead {
  color: var(--color-charcoal);
  max-width: 606px;
}
.how-photos {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-top: var(--space-lg);
  aspect-ratio: 619 / 623;
}
.how-photos__item {
  position: absolute;
  overflow: hidden;
  background: var(--color-sage);
  box-shadow: var(--shadow-md);
}
.how-photos__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.how-photos__item--1 { left: 0;     top: 0;     width: 56.4%; height: 73%;   z-index: 1; }
.how-photos__item--2 { left: 28.3%; top: 50.7%; width: 71.7%; height: 49.3%; z-index: 2; }

.how-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.how-card {
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.how-card__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.3);
}
.how-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.2;
  color: var(--color-sage);
}
.how-card__body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-white);
}

/* =======================================================================
   Home — CTA banner
   ======================================================================= */
.cta-banner {
  background: var(--color-cream);
  padding-block: var(--space-xl);
}
.cta-banner__box {
  position: relative;
  overflow: hidden;
  background: var(--color-white);
  border: 6px solid var(--color-white);
  padding: var(--space-xl) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}
.cta-banner__box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/cta-texture.jpg") center / cover no-repeat;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}
.cta-banner__box > * {
  position: relative;
  z-index: 1;
}
.cta-banner__title {
  margin: 0;
  max-width: 879px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-charcoal);
}
.cta-banner__lead {
  margin: 0;
  max-width: 60ch;
  color: var(--color-charcoal);
}

/* =======================================================================
   Listings — card + carousel (home preview + archive)
   ======================================================================= */
.listings-preview {
  background: var(--color-cream);
  padding-block: var(--space-xl);
}
.listings-preview__head {
  max-width: 952px;
  margin-bottom: var(--space-lg);
}
.listings-preview__title {
  color: var(--color-charcoal);
}

/* Static three-up grid of listings (replaces the old carousel). */
.listings-preview__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
.listings-preview__actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-lg);
}
.listings-preview__actions .btn {
  width: 280px;
  max-width: 100%;
}

.carousel {
  position: relative;
}
.carousel__track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.carousel__track::-webkit-scrollbar {
  display: none;
}
.carousel__slide {
  flex: 0 0 82vw;
  scroll-snap-align: start;
  display: flex;
}
.carousel__nav {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: var(--space-lg);
}
.carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--color-sage);
  color: var(--color-charcoal);
  background: transparent;
  transition: background var(--transition), color var(--transition);
}
.carousel__btn:hover {
  background: var(--color-sage);
  color: var(--color-white);
}

/* Listing card */
.listing-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  background: var(--color-white);
  padding: 20px;
}
.listing-card__media {
  position: relative;
  display: block;
  height: 240px;
  overflow: hidden;
}
.listing-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.listing-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(102, 102, 102, 0.3), rgba(0, 0, 0, 0.3));
}
.listing-card__badge {
  align-self: flex-start;
  padding: 4px 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  color: var(--color-charcoal);
  background: var(--color-sage);
}
.listing-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.2;
  color: var(--color-sage);
}
.listing-card__title a {
  color: inherit;
  transition: color var(--transition);
}
.listing-card__title a:hover {
  color: var(--color-forest);
}
.listing-card__date {
  margin: 0;
  color: var(--color-forest);
  font-size: 18px;
}
.listing-card__price {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--color-forest);
}
.listing-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: var(--fs-small);
  color: var(--color-charcoal);
}
.listing-card__stats span {
  color: var(--color-muted);
}
.listing-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}
.listing-card__more {
  gap: 10px;
}

/* =======================================================================
   About page — hero
   ======================================================================= */
.about-hero {
  position: relative;
  display: flex;
  align-items: center; /* Figma centres the headline vertically over the photo. */
  min-height: clamp(440px, 68vh, 700px);
  overflow: hidden;
  background: var(--color-charcoal);
}
.about-hero__media {
  position: absolute;
  inset: 0;
}
.about-hero__media picture,
.about-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Figma crops the source so the middle band of the photo is shown. */
  object-position: center center;
}
.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}
.about-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: var(--space-xl);
  text-align: center;
}
.about-hero__title {
  margin: 0 auto;
  max-width: 1069px;
  color: var(--color-white);
}

/* =======================================================================
   About page — intro (dark block + overlapping photos)
   ======================================================================= */
.about-intro {
  background: var(--color-charcoal);
  color: var(--color-white);
  padding-block: var(--space-2xl) calc(var(--space-2xl) + 70px);
  /* angled bottom edge into the cream "What We Stand For" section below */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 90px));
}
.about-intro__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.about-intro__title {
  color: var(--color-cream);
}
.about-stack {
  position: relative;
  width: 100%;
  max-width: 437px;
  margin-inline: auto;
  aspect-ratio: 437 / 700;
}
.about-stack__item {
  position: absolute;
  overflow: hidden;
  background: var(--color-sage);
  box-shadow: var(--shadow-md);
}
.about-stack__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-stack__item--1 { left: 24.7%; top: 0;     width: 75.3%; height: 66.4%; z-index: 1; }
.about-stack__item--2 { left: 0;     top: 63.4%; width: 93.6%; height: 36.6%; z-index: 5; }

/* =======================================================================
   About page — finance partners band
   ======================================================================= */
.finance-partners {
  background: var(--color-forest);
  padding-block: 32px 28px;
}
.finance-partners__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(40px, 9vw, 130px);
}
.finance-partners__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.finance-partners__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  color: var(--color-white);
}
.finance-partners__logo {
  /* PNGs are tightly cropped, so a single height yields equal visual weight. */
  height: 54px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

/* =======================================================================
   About page — What We Stand For (cream section, white cards)
   ======================================================================= */
.stand-for {
  background: var(--color-cream);
  padding-block: var(--space-xl);
}
.stand-for__head {
  margin-bottom: var(--space-lg);
}
.stand-for__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.stand-card {
  background: var(--color-white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stand-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--color-sage);
  flex-shrink: 0;
}
.stand-card__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.stand-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h4);
  line-height: 1.2;
  color: var(--color-charcoal);
}
.stand-card__body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-charcoal);
}

/* =======================================================================
   Projects grid — "What We Bring to Every Build" (About + Our Work)
   ======================================================================= */
.our-work {
  background: var(--color-cream);
  padding-block: var(--space-xl);
}
.our-work__head {
  max-width: 973px;
  margin-bottom: var(--space-lg);
}
.our-work__intro {
  margin: 0;
  color: var(--color-charcoal);
}
.our-work__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
.project-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--color-white);
  padding: 20px;
}
.project-card__media {
  position: relative;
  height: 275px;
  overflow: hidden;
}
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(102, 102, 102, 0.3), rgba(0, 0, 0, 0.3));
}
.project-card__badge {
  align-self: flex-start;
  padding: 4px 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  color: var(--color-charcoal);
  background: var(--color-sage);
}
.project-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h4);
  line-height: 1.2;
  color: var(--color-sage);
}
.project-card__location {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-charcoal);
}
.project-card__location img {
  width: 24px;
  height: 24px;
}
.project-card__desc {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-charcoal);
}

/* =======================================================================
   Contact page — hero
   ======================================================================= */
.contact-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(380px, 56vh, 600px);
  overflow: hidden;
  background: var(--color-charcoal);
}
.contact-hero__media {
  position: absolute;
  inset: 0;
}
.contact-hero__media picture,
.contact-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(45, 49, 43, 0.25) 0%, rgba(45, 49, 43, 0.75) 100%);
}
.contact-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: var(--space-2xl) calc(var(--space-2xl) + 60px);
}
.contact-hero__title {
  margin: 0;
  max-width: 760px;
  color: var(--color-white);
}
.contact-hero__subtitle {
  margin: var(--space-sm) 0 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--fs-body);
}

/* =======================================================================
   Contact page — info card
   ======================================================================= */
.contact-info {
  position: relative;
  z-index: 2;
  padding-bottom: var(--space-2xl);
}
.contact-info__card {
  margin-top: -90px;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
.contact-info__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.contact-info__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-info__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--color-sage);
}
.contact-info__value {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  color: var(--color-charcoal);
}
a.contact-info__value:hover {
  color: var(--color-forest);
}
.contact-info__title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-forest);
}
.contact-info__intro p {
  margin: 0 0 var(--space-sm);
  color: var(--color-charcoal);
}

/* =======================================================================
   FAQ accordion (Contact + FAQs pages)
   ======================================================================= */
.faqs {
  background: var(--color-cream);
  padding-block: var(--space-xl);
}
.faqs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.faqs__title {
  color: var(--color-charcoal);
}
.faqs__lead {
  color: var(--color-charcoal);
  max-width: 40ch;
}
.faqs__prompt {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h5);
  color: var(--color-charcoal);
}
.faqs__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--color-white);
}
.faq-item__heading {
  margin: 0;
}
.faq-item__q {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h5);
  line-height: 1.3;
  color: var(--color-charcoal);
  cursor: pointer;
}
.faq-item__num {
  flex-shrink: 0;
  color: var(--color-sage);
}
.faq-item__text {
  flex: 1;
}
.faq-item__icon {
  flex-shrink: 0;
  color: var(--color-charcoal);
  transition: transform var(--transition);
}
.faq-item.is-open .faq-item__icon {
  transform: rotate(180deg);
}
.faq-item__a {
  padding: 0 20px 20px 56px;
}
.faq-item__a p {
  margin: 0;
  color: var(--color-charcoal);
  line-height: 1.6;
}

/* =======================================================================
   Cookie banner
   ======================================================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
  background: var(--color-charcoal);
  color: var(--color-cream);
  transform: translateY(100%);
  transition: transform var(--transition);
}
.cookie-banner.is-visible {
  transform: translateY(0);
}
.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-block: var(--space-md);
}
.cookie-banner__text {
  margin: 0;
  font-size: var(--fs-small);
  max-width: 70ch;
}
.cookie-banner__actions {
  display: flex;
  gap: var(--space-sm);
}

/* =======================================================================
   Page hero — cream title band (Privacy Policy, generic pages)
   ======================================================================= */
.page-hero {
  background: var(--color-cream-2);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-lg);
}
.page-hero__inner {
  max-width: 820px;
}
.page-hero__title {
  margin-bottom: 0;
}
.page-hero__meta {
  margin: var(--space-xs) 0 0;
  font-size: var(--fs-small);
  color: var(--color-muted);
}

/* =======================================================================
   Legal / prose — long-form reading column (Privacy Policy, page.php)
   ======================================================================= */
.legal-section {
  background: var(--color-cream);
}
.legal {
  max-width: 760px;
}
.legal__intro {
  font-size: calc(var(--fs-body) + 1px);
  color: var(--color-text);
}
.legal h2 {
  font-size: var(--fs-h4);
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-forest);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}
.legal h2:first-child,
.legal > :first-child {
  margin-top: 0;
}
.legal h3 {
  font-size: var(--fs-h5);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}
.legal p {
  margin-bottom: var(--space-sm);
}
.legal ul,
.legal ol {
  margin: 0 0 var(--space-sm);
  padding-left: 1.4em;
}
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li {
  margin-bottom: 6px;
  list-style-position: outside;
}
.legal a {
  color: var(--color-forest);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal a:hover {
  color: var(--color-forest-dark);
}
.legal__contact {
  list-style: none;
  padding-left: 0;
}

/* =======================================================================
   404 — page not found
   ======================================================================= */
.error-404 {
  background: var(--color-cream);
  text-align: center;
}
.error-404__inner {
  max-width: 640px;
}
.error-404__code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(96px, 22vw, 180px);
  line-height: 1;
  letter-spacing: 4px;
  color: var(--color-sage);
  opacity: 0.5;
  margin: 0 0 var(--space-sm);
}
.error-404__title {
  margin-bottom: var(--space-sm);
}
.error-404__lead {
  color: var(--color-muted);
  margin-bottom: var(--space-md);
}
.error-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* =======================================================================
   Listings archive — hero, filter, grid, feature rows
   ======================================================================= */
.listings-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(360px, 52vh, 560px);
  overflow: hidden;
  background: var(--color-charcoal);
}
.listings-hero__media {
  position: absolute;
  inset: 0;
}
.listings-hero__media picture,
.listings-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.listings-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(45, 49, 43, 0.30) 0%, rgba(45, 49, 43, 0.78) 100%);
}
.listings-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: var(--space-xl);
}
.listings-hero__title {
  margin: 0;
  max-width: 900px;
  color: var(--color-cream);
}
.listings-hero__subtitle {
  margin: var(--space-sm) 0 0;
  max-width: 800px;
  color: rgba(242, 240, 233, 0.92);
  font-size: var(--fs-body);
}

.listings-archive {
  background: var(--color-cream);
  padding-block: var(--space-xl);
}

/* Filter bar */
.listings-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-lg);
}
.listings-filter__label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h5);
  color: var(--color-charcoal);
  margin-right: 8px;
}
.listings-filter__tab {
  padding: 5px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-charcoal);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.listings-filter__tab:hover {
  border-color: var(--color-sage);
}
.listings-filter__tab.is-active {
  background: var(--color-forest);
  color: var(--color-white);
  border-color: var(--color-forest);
}

/* Grid */
.listings-archive__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
.listing-card[hidden] {
  display: none;
}
.listing-card__stats-line {
  margin: 0;
  font-size: var(--fs-body);
  color: var(--color-charcoal);
}

.listings-archive__empty {
  margin-top: var(--space-lg);
  text-align: center;
  color: var(--color-muted);
}
.listings-archive__none {
  text-align: center;
  padding-block: var(--space-lg);
}
.listings-archive__none-title {
  color: var(--color-charcoal);
}
.listings-archive__none .btn {
  margin-top: var(--space-sm);
}

/* Feature rows — "Not just listed here, built here." / portfolio */
.listings-feature {
  background: var(--color-cream);
  padding-block: var(--space-xl);
}
.listings-feature__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.listings-feature__media img,
.listings-feature__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.listings-feature__placeholder {
  background: var(--color-cream-2);
  border: 1px dashed var(--color-border);
}
.listings-feature__title {
  color: var(--color-charcoal);
}

/* =======================================================================
   Single listing — hero, details card, gallery, lightbox
   ======================================================================= */
.listing-single__hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(320px, 46vh, 460px);
  overflow: hidden;
  background: var(--color-charcoal);
}
.listing-single__hero-media {
  position: absolute;
  inset: 0;
}
.listing-single__hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.listing-single__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(45, 49, 43, 0.20) 0%, rgba(45, 49, 43, 0.80) 100%);
}
.listing-single__hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: var(--space-lg);
}
.listing-single__badge {
  display: inline-block;
  padding: 4px 8px;
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  color: var(--color-charcoal);
  background: var(--color-sage);
}
.listing-single__title {
  margin: 0;
  color: var(--color-cream);
}

.listing-single__details {
  background: var(--color-cream);
  padding-block: var(--space-lg);
}
.listing-detail-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--color-white);
  padding: var(--space-md);
}
.listing-detail-card__desc {
  margin: 0;
  color: var(--color-charcoal);
  font-size: var(--fs-body);
}
.listing-detail-card__stats {
  margin: 0;
  color: var(--color-forest);
  font-size: 16px;
}
.listing-detail-card__price {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-charcoal);
}
.listing-detail-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.listing-single__gallery {
  background: var(--color-cream);
  padding-block: 0 var(--space-xl);
}
.listing-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.listing-gallery__item {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
}
.listing-gallery__item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition);
}
.listing-gallery__item:hover img {
  transform: scale(1.04);
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}
.lightbox[hidden] {
  display: none;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.lightbox__figure {
  position: relative;
  z-index: 1;
  margin: 0;
}
.lightbox__img {
  display: block;
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}
.lightbox__nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.10);
  border-radius: 50%;
  transition: background var(--transition);
}
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__counter {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-small);
}
