/* ==========================================================================
   Vistaar Homes — style.css (the only stylesheet)
   --------------------------------------------------------------------------
   PART 1  Design tokens   ← colours, fonts, spacing (change the look here)
   PART 2  Base            typography, sections, headings, reveal motion
   PART 3  Layout          header, mobile menu, footer, mobile action bar
   PART 4  Components      buttons, forms, cards, badges, gallery, filter, modal
   PART 5  Sections        hero slider, page banner, fact bar, about, contact…
   PART 6  Pages           page-specific touches, hover, reduced motion, print
   Built on Bootstrap 5.3.8 (grid + utilities). Sharp corners, soft shadows.
   ========================================================================== */

/* ##########################################################################
   PART 1 — TOKENS
   ########################################################################## */

/* ==========================================================================
   Vistaar Homes — Design tokens
   --------------------------------------------------------------------------
   Every colour, font, spacing and shadow used on the site lives here.
   Change a token once and the whole site updates.
   Contrast checked against WCAG AA (4.5:1 for text).
   ========================================================================== */

:root {
  /* ---------- Brand colours ---------- */
  --brand:        #ee7e39;   /* Accent orange — rules, icons, text on dark (5.8:1 on ink) */
  --brand-600:    #b35718;   /* Button fill with white text (4.9:1) */
  --brand-700:    #a9501a;   /* Orange text on light backgrounds (5.5:1) */
  --brand-tint:   #fbeee4;   /* Soft orange wash */

  /* ---------- Neutrals ---------- */
  --ink:          #1f2328;   /* Headings, body text, dark sections */
  --ink-900:      #15181c;   /* Deepest dark (footer, dark panels) */
  --ink-soft:     #4a4f55;   /* Secondary text */
  --ink-muted:    #6b7178;   /* Captions, meta (4.9:1 on white) */
  --on-dark:      #ffffff;
  --on-dark-soft: rgba(255, 255, 255, 0.74);
  --on-dark-line: rgba(255, 255, 255, 0.14);

  --surface:      #ffffff;
  --surface-alt:  #f6f4f1;   /* Warm stone section background */
  --surface-warm: #faf9f7;
  --line:         #e6e2dc;   /* Hairline borders */
  --line-strong:  #cfc9c0;

  /* ---------- Feedback ---------- */
  --success:      #1f7a4d;
  --success-bg:   #effaf4;
  --error:        #b42318;
  --error-bg:     #fff2f0;

  /* ---------- Typography ---------- */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --fs-xs:   0.75rem;    /* 12px — eyebrows, badges */
  --fs-sm:   0.875rem;   /* 14px — meta, buttons */
  --fs-base: 1rem;       /* 16px — body */
  --fs-lg:   1.0625rem;  /* 17px — intros */
  --fs-h3:   clamp(1.5rem, 1.3rem + 0.8vw, 1.95rem);
  --fs-h2:   clamp(2.1rem, 1.6rem + 2vw, 3.25rem);
  --fs-h1:   clamp(2.6rem, 1.7rem + 3.8vw, 4.9rem);

  --lh-tight: 1.06;
  --lh-body:  1.7;
  --tracking-caps: 0.16em;

  /* ---------- Spacing & layout ---------- */
  --nav-height:    72px;
  --section-space: 72px;
  --gutter:        16px;
  --container-max: 1320px;

  /* ---------- Shape: sharp, architectural edges ---------- */
  --radius: 0;
  --rule:   1px solid var(--line);

  /* ---------- Elevation ---------- */
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04), 0 2px 8px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 2px 4px rgba(17, 24, 39, 0.04), 0 12px 32px rgba(17, 24, 39, 0.09);
  --shadow-lg: 0 6px 12px rgba(17, 24, 39, 0.06), 0 28px 64px rgba(17, 24, 39, 0.16);

  /* ---------- Motion ---------- */
  --ease-out:  cubic-bezier(0.2, 0.8, 0.2, 1);
  --duration:  0.35s;

  /* ---------- Bootstrap 5.3 variable overrides ---------- */
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--surface);
  --bs-primary: var(--brand-600);
  --bs-primary-rgb: 179, 87, 24;
  --bs-link-color: var(--brand-700);
  --bs-link-color-rgb: 169, 80, 26;
  --bs-link-hover-color: var(--ink);
  --bs-border-color: var(--line);
  --bs-border-radius: 0;
  --bs-border-radius-sm: 0;
  --bs-border-radius-lg: 0;
  --bs-border-radius-xl: 0;
  --bs-border-radius-xxl: 0;
  --bs-border-radius-pill: 0;
  --bs-focus-ring-color: rgba(179, 87, 24, 0.3);
}

/* Larger screens: taller header, more breathing room */
@media (min-width: 768px) {
  :root {
    --nav-height: 80px;
    --section-space: 96px;
    --gutter: 24px;
  }
}

@media (min-width: 1200px) {
  :root {
    --nav-height: 88px;
    --section-space: 120px;
  }
}

/* ##########################################################################
   PART 2 — BASE
   ########################################################################## */

/* ==========================================================================
   Vistaar Homes — Base
   Reset · document · typography · focus · shared utilities · reveal motion
   ========================================================================== */

/* ---------- 1. Document & mobile browser behaviour ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
iframe,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a {
  color: var(--brand-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--duration) ease;
}

address {
  margin: 0;
  font-style: normal;
}

p {
  margin-top: 0;
}

[hidden] {
  display: none !important;
}

/* ---------- 2. Typography ---------- */
h1,
h2,
h3,
h4,
.h1 {
  margin-top: 0;
  color: inherit;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  text-wrap: balance;
  font-variant-numeric: lining-nums;   /* straight numbers (14, 317) instead of old-style */
}

h1, .h1 { font-size: var(--fs-h1); }
h2      { font-size: var(--fs-h2); }
h3      { font-size: var(--fs-h3); }
h4      { font-size: 1.25rem; }

strong {
  font-weight: 700;
}

/* ---------- 3. Focus (keyboard users only) ---------- */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  box-shadow: none;
}

.section--dark :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible {
  outline-color: var(--brand);
}

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  z-index: 2000;
  top: max(8px, env(safe-area-inset-top));
  left: max(8px, env(safe-area-inset-left));
  padding: 0.75rem 1.1rem;
  transform: translateY(-200%);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
  color: #fff;
}

/* ---------- 5. Container width ---------- */
@media (min-width: 1400px) {
  .container {
    max-width: var(--container-max);
  }
}

/* ---------- 6. Sections ---------- */
.section {
  position: relative;
  padding-block: var(--section-space);
}

.section--white { background: var(--surface); }
.section--alt   { background: var(--surface-alt); }

.section--dark {
  background: var(--ink);
  color: var(--on-dark);
}

.section--dark .section-intro,
.section--dark p {
  color: var(--on-dark-soft);
}

/* Hairline rule at the top of consecutive light sections — a crisp editorial rhythm */
.section--white + .section--white::before,
.section--alt + .section--alt::before {
  position: absolute;
  top: 0;
  right: var(--gutter);
  left: var(--gutter);
  max-width: calc(var(--container-max) - 24px);
  height: 1px;
  margin-inline: auto;
  background: var(--line);
  content: "";
}

/* ---------- 7. Section headings ---------- */
.section-heading {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading--center .eyebrow {
  justify-content: center;
}

.section-heading--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: none;
}

.section-title {
  margin-bottom: 0.9rem;
}

.section-heading .section-title:last-child {
  margin-bottom: 0;
}

.section-intro {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: var(--fs-lg);
}

.section-heading--center .section-intro {
  margin-inline: auto;
}

.subheading {
  margin: 2rem 0 1rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

/* Eyebrow: small caps label with a short orange rule */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--brand-700);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  flex: 0 0 28px;
  width: 28px;
  height: 1px;
  background: currentColor;
  content: "";
}

.eyebrow--light,
.section--dark .eyebrow {
  color: var(--brand);
}

/* ---------- 8. Text links with arrow ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.link-arrow .bi {
  color: var(--brand-600);
  transition: transform var(--duration) var(--ease-out);
}

.link-arrow--light {
  color: #fff;
}

.link-arrow--light .bi {
  color: var(--brand);
}

/* ---------- 9. Prose blocks ---------- */
.prose p {
  color: var(--ink-soft);
}

.prose p:last-child {
  margin-bottom: 0;
}

.lead-quote {
  margin: 2rem 0 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--brand);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.35;
}

/* ---------- 10. Scroll reveal (fade + rise). Content is visible without JavaScript ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s var(--ease-out);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 11. Visually hidden form honeypot ---------- */
.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- 12. Phone gutters: 16px side padding on every container ---------- */
.container,
.container-fluid {
  --bs-gutter-x: 2rem;
}

/* ---------- 13. Straight (lining) numbers everywhere the display font is used ---------- */
.hero__title,
.page-hero__title,
.fact-bar__item dd,
.property-card__dates dd,
.distance-list strong,
.process__number,
.offer-card strong,
.not-found__code,
.sold-card__body strong {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

/* ##########################################################################
   PART 3 — LAYOUT
   ########################################################################## */

/* ==========================================================================
   Vistaar Homes — Layout
   1. Header & navigation   2. Mobile menu   3. Footer
   4. Mobile action bar     5. Back to top
   ========================================================================== */

/* ---------- 1. Header & navigation ---------- */
.site-nav {
  --nav-fg: #fff;
  min-height: var(--nav-height);
  padding: 0;
  padding-top: env(safe-area-inset-top);
  background: transparent;
  color: var(--nav-fg);
  transition:
    background-color var(--duration) ease,
    box-shadow var(--duration) ease,
    color var(--duration) ease;
}

/* Thin rule under the transparent header */
.site-nav::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  content: "";
  transition: background-color var(--duration) ease;
}

/* Solid state: after scrolling, and on pages without a hero */
.site-nav.is-scrolled,
.header-solid .site-nav {
  --nav-fg: var(--ink);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

.site-nav.is-scrolled::after,
.header-solid .site-nav::after {
  background: var(--line);
}

.site-nav__inner {
  min-height: var(--nav-height);
  padding-right: max(var(--bs-gutter-x, 0.75rem) * 0.5, env(safe-area-inset-right));
  padding-left: max(var(--bs-gutter-x, 0.75rem) * 0.5, env(safe-area-inset-left));
}

/* Logo: one SVG, text colour follows the header state (currentColor) */
.brand-logo {
  width: auto;
  height: 44px;
  aspect-ratio: 3162 / 950;
  color: inherit;
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0;
  color: var(--nav-fg);
}

.site-nav__brand:hover {
  color: var(--nav-fg);
}

.site-nav__desktop {
  align-items: center;
  gap: 1.75rem;
}

.site-nav__links {
  flex-direction: row;
  gap: 0.15rem;
}

.site-nav__links .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  color: var(--nav-fg);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Animated underline */
.site-nav__links .nav-link::after {
  position: absolute;
  right: 0.85rem;
  bottom: 0.45rem;
  left: 0.85rem;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--brand);
  content: "";
  transition: transform var(--duration) var(--ease-out);
}

.site-nav__links .nav-link.active::after {
  transform: scaleX(1);
}

.site-nav__links .nav-link.active {
  color: var(--nav-fg);
}

.site-nav__phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: var(--nav-fg);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__phone .bi {
  color: var(--brand);
}

.site-nav__cta {
  white-space: nowrap;
}

/* Hamburger: three sharp bars */
.site-nav__toggler {
  display: grid;
  width: 48px;
  height: 48px;
  place-content: center;
  gap: 6px;
  padding: 0;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, var(--nav-fg) 45%, transparent);
  background: transparent;
  color: var(--nav-fg);
}

.site-nav__toggler-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
}

.site-nav__toggler-bar:nth-child(2) {
  width: 16px;
  justify-self: end;
}

@media (min-width: 1200px) {
  .site-nav__phone {
    display: inline-flex;
  }
  .brand-logo {
    height: 52px;
  }
}

/* ---------- 2. Mobile off-canvas menu ---------- */
.site-menu {
  --bs-offcanvas-width: min(88vw, 400px);
  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface);
  color: var(--ink);
  overscroll-behavior: contain;
}

.site-menu__header {
  min-height: var(--nav-height);
  border-bottom: var(--rule);
}

.site-menu__brand {
  color: var(--ink);
}

.site-menu__brand .brand-logo {
  height: 40px;
}

.site-menu__close {
  width: 44px;
  height: 44px;
  padding: 0;
}

.site-menu__body {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem 1.5rem;
}

.site-menu__links {
  margin-bottom: 1.75rem;
}

.site-menu__links .nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0.75rem 0;
  border-bottom: var(--rule);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
}

.site-menu__links .nav-link .bi {
  color: var(--brand-600);
  font-size: 1rem;
}

.site-menu__links .nav-link.active {
  color: var(--brand-700);
}

.site-menu__cta {
  min-height: 52px;
}

.site-menu__contact {
  display: grid;
  gap: 0.25rem;
  margin-top: auto;
  padding-top: 2rem;
}

.site-menu__contact a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-menu__contact .bi {
  color: var(--brand-600);
}

/* ---------- 3. Footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: var(--on-dark-soft);
  font-size: 0.925rem;
}

.site-footer__main {
  padding: 72px 0 56px;
  border-top: 3px solid var(--brand);
}

.site-footer__logo {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: #fff;
}

.site-footer__logo .brand-logo {
  height: 56px;
}

.site-footer__about {
  max-width: 420px;
}

.site-footer__heading {
  margin-bottom: 1.25rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.site-footer__links li + li {
  margin-top: 0.1rem;
}

.site-footer__links a,
.site-footer__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--on-dark-soft);
  text-decoration: none;
}

.site-footer__contact {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 1.75rem;
}

.site-footer__contact a {
  align-items: flex-start;
  gap: 0.7rem;
  padding-block: 0.45rem;
  overflow-wrap: anywhere;
}

.site-footer__contact .bi {
  margin-top: 0.2rem;
  color: var(--brand);
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
}

.social-link {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--on-dark-line);
  color: #fff;
  text-decoration: none;
}

/* Footer newsletter */
.newsletter-form .form-label {
  color: #fff;
}

.newsletter-form__row {
  display: flex;
}

.newsletter-form__row .form-control {
  flex: 1 1 auto;
  min-width: 0;
  border-color: transparent;
}

.newsletter-form__submit {
  flex: 0 0 auto;
}

.newsletter-form__consent {
  margin-top: 0.85rem;
}

.newsletter-form .form-check-label {
  color: var(--on-dark-soft);
  font-size: 0.8rem;
}

.newsletter-form .form-check-input {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: transparent;
}

.newsletter-form .invalid-feedback {
  color: #ffb4a8;
}

.site-footer__bottom {
  padding: 1.25rem 0 calc(1.25rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--on-dark-line);
  font-size: 0.8rem;
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
}

.site-footer__bottom a {
  color: #fff;
}

/* Leave room for the mobile action bar */
@media (max-width: 767.98px) {
  .site-footer__bottom {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
}

/* ---------- 4. Mobile action bar (Call / Book a Visit) ---------- */
.mobile-action-bar {
  position: fixed;
  z-index: 1035;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  background: var(--ink);
  box-shadow: 0 -6px 24px rgba(17, 24, 39, 0.18);
}

.mobile-action-bar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 56px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.mobile-action-bar__item--accent {
  background: var(--brand-600);
}

.mobile-action-bar__item:active {
  filter: brightness(0.9);
}

/* ---------- 5. Back to top ---------- */
.back-to-top {
  position: fixed;
  z-index: 1030;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(76px + env(safe-area-inset-bottom));
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: var(--rule);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

@media (min-width: 768px) {
  .back-to-top {
    bottom: max(24px, env(safe-area-inset-bottom));
  }
}

/* Footer newsletter text on the dark background */
.site-footer .form-privacy {
  margin: 1rem 0;
  color: var(--on-dark-soft);
}

.site-footer .form-privacy a {
  color: #fff;
}

.newsletter-form .form-control {
  border-color: transparent;
}

/* ##########################################################################
   PART 4 — COMPONENTS
   ########################################################################## */

/* ==========================================================================
   Vistaar Homes — Components
   1. Buttons        2. Forms          3. Property card    4. Team card
   5. Feature card   6. Video card     7. Gallery          8. Info cards
   9. Lists & chips  10. Breadcrumbs   11. Filter          12. Accordion
   13. Modal         14. Framed media & maps
   ========================================================================== */

/* ---------- 1. Buttons (sharp edges, uppercase, 48px touch target) ---------- */
.btn {
  --bs-btn-border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border-width: 1px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  transition:
    background-color var(--duration) ease,
    border-color var(--duration) ease,
    color var(--duration) ease,
    transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  --bs-btn-bg: var(--brand-600);
  --bs-btn-border-color: var(--brand-600);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-active-bg: var(--brand);
  --bs-btn-active-border-color: var(--brand);
  --bs-btn-active-color: var(--ink);
  --bs-btn-disabled-bg: var(--brand-600);
  --bs-btn-disabled-border-color: var(--brand-600);
  --bs-btn-focus-shadow-rgb: 179, 87, 24;
}

.btn-outline-light {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, 0.7);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #fff;
  --bs-btn-hover-color: var(--ink);
  --bs-btn-active-bg: #fff;
  --bs-btn-active-color: var(--ink);
}

.btn-outline-dark {
  --bs-btn-color: var(--ink);
  --bs-btn-border-color: var(--ink);
  --bs-btn-hover-bg: var(--ink);
  --bs-btn-hover-border-color: var(--ink);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--ink);
  --bs-btn-active-color: #fff;
}

.spinner-border-sm {
  --bs-spinner-width: 0.95rem;
  --bs-spinner-height: 0.95rem;
  --bs-spinner-border-width: 0.15em;
}

/* ---------- 2. Forms ---------- */
.form-label {
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.form-label .req {
  color: var(--brand-700);
}

.text-optional {
  color: var(--ink-muted);
  font-weight: 500;
}

.form-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.form-control,
.form-select {
  min-height: 52px;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background-color: var(--surface);
  color: var(--ink);
  font-size: 16px;                /* 16px stops iOS Safari zooming into fields */
  line-height: 1.5;
  box-shadow: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-control::placeholder {
  color: var(--ink-muted);        /* 4.9:1 — readable, since placeholders now replace visible labels */
  opacity: 1;                     /* Firefox fades placeholders by default */
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(179, 87, 24, 0.14);
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--error);
  background-image: none;
  padding-right: 0.95rem;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14);
}

.form-control.is-valid,
.form-select.is-valid {
  border-color: var(--success);
  background-image: none;
  padding-right: 0.95rem;
}

.invalid-feedback {
  margin-top: 0.4rem;
  color: var(--error);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Show feedback whenever the field is marked invalid (works for every layout) */
.is-invalid ~ .invalid-feedback,
.newsletter-form__row:has(.is-invalid) ~ .invalid-feedback {
  display: block;
}

/* Error message on the left, character counter on the right, under the textarea */
.form-field-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.4rem;
}

.form-field-foot .invalid-feedback {
  margin-top: 0;
}

.form-field-foot .form-counter {
  margin-left: auto;
  white-space: nowrap;
}

.form-counter {
  color: var(--ink-muted);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}

.form-counter.is-near-limit {
  color: var(--brand-700);
  font-weight: 700;
}

.form-privacy {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.form-check {
  min-height: 44px;
  padding-left: 2rem;
}

.form-check-input {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  margin-left: -2rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
}

.form-check-input:checked {
  border-color: var(--brand-600);
  background-color: var(--brand-600);
}

.form-check-input.is-invalid ~ .form-check-label {
  color: inherit;
}

/* Form-wide messages */
.form-alert {
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem 0.9rem 1.1rem;
  border-left: 3px solid;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.form-alert--error {
  border-color: var(--error);
  background: var(--error-bg);
  color: var(--error);
}

.form-alert--success {
  border-color: var(--success);
  background: var(--success-bg);
  color: #145b39;
}

/* ---------- 3. Property card (small title, status badge, soft shadow, sharp edges) ---------- */
.property-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: var(--rule);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    border-color var(--duration) ease;
}

.property-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
}

.property-card__media > a {
  display: block;
  height: 100%;
}

.property-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

/* Soft shade at the top so the badge always reads on bright photos */
.property-card__media::after {
  position: absolute;
  inset: 0 0 auto;
  height: 38%;
  background: linear-gradient(180deg, rgba(21, 24, 28, 0.38), transparent);
  content: "";
  pointer-events: none;
}

/* Branded placeholder until project photos arrive */
.property-card__placeholder {
  display: grid;
  height: 100%;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(238, 126, 57, 0.22), transparent 58%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 64px),
    var(--ink);
}

.property-card__mark {
  width: 58%;
  color: #fff;                    /* wordmark uses currentColor */
  height: auto;
  aspect-ratio: 3162 / 950;
  opacity: 0.92;
}

.property-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.4rem;
}

.property-card__location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
  color: var(--ink-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.property-card__location .bi {
  color: var(--brand-600);
  font-size: 0.8rem;
}

/* Small, crisp title */
.property-card__title {
  margin-bottom: 0.9rem;
  font-size: 1.4rem;
  line-height: 1.15;
}

.property-card__title a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--duration) ease;
}

.property-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.property-card__specs li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem;
  border: var(--rule);
  background: var(--surface-warm);
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.3;
}

.property-card__specs .bi {
  color: var(--brand-600);
}

.property-card__specs strong {
  color: var(--ink);
}

.property-card__summary {
  display: -webkit-box;
  margin-bottom: 1.25rem;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.property-card__action {
  margin-top: auto;
}

/* Wide card: photo beside the details (home page, 1–2 current projects) */
@media (min-width: 768px) {
  .property-card--wide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .property-card--wide .property-card__media {
    aspect-ratio: auto;
    min-height: 100%;
  }
  .property-card--wide .property-card__body {
    justify-content: center;
    padding: 1.75rem;
  }
}

/* ---------- 3b. Status badge (Current / Sold) ---------- */
.status-badge {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.6rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.18);
}

.status-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-badge--current {
  background: var(--brand-600);
}

.status-badge--current::before {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.status-badge--sold::before {
  background: var(--brand);
}

/* ---------- 4. Team card ---------- */
.team-card {
  height: 100%;
  border: var(--rule);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.team-card__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface-alt);
}

.team-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.8s var(--ease-out);
}

.team-card__body {
  padding: 1.75rem;
  border-top: 3px solid var(--brand);
}

.team-card__name {
  margin-bottom: 0.3rem;
  font-size: 2rem;
}

.team-card__role {
  margin-bottom: 1rem;
  color: var(--brand-700);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.team-card__bio {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.925rem;
}

/* ---------- 5. Feature card ---------- */
.feature-card {
  height: 100%;
  padding: 2rem 1.75rem;
  border: var(--rule);
  background: var(--surface);
  transition:
    border-color var(--duration) ease,
    box-shadow var(--duration) ease;
}

.feature-card__icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 1.25rem;
  place-items: center;
  border: 1px solid var(--brand);
  color: var(--brand-600);
  font-size: 1.35rem;
}

.feature-card__title {
  margin-bottom: 0.6rem;
  font-size: 1.55rem;
}

.feature-card__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.925rem;
}

.feature-card--dark {
  border-color: var(--on-dark-line);
  background: rgba(255, 255, 255, 0.03);
}

.feature-card--dark .feature-card__icon {
  color: var(--brand);
}

.feature-card--dark .feature-card__text {
  color: var(--on-dark-soft);
}

/* ---------- 6. Video card ---------- */
.video-card {
  margin: 0;
  border: 1px solid var(--on-dark-line);
  background: var(--ink-900);
}

.section--white .video-card,
.section--alt .video-card {
  border-color: var(--line);
}

.video-card__media {
  background: #000;
}

.video-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.video-card__caption {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 56px;
  padding: 0.9rem 1.1rem;
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.video-card__caption .bi {
  color: var(--brand);
}

/* Vimeo "click to play" facade */
.video-facade {
  display: block;
  overflow: hidden;
  background: #000;
  color: #fff;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition:
    opacity var(--duration) ease,
    transform 0.8s var(--ease-out);
}

.video-facade__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.video-facade__play > .bi {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  padding-left: 4px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(21, 24, 28, 0.55);
  font-size: 2rem;
  transition: background-color var(--duration) ease;
}

.video-facade iframe {
  border: 0;
}

/* ---------- 7. Gallery ---------- */
.gallery {
  display: grid;
  gap: 12px;
  margin: 0;
}

.gallery__item {
  min-width: 0;
}

.gallery__link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface-alt);
}

.gallery__link img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.gallery__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: rgba(21, 24, 28, 0.72);
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity var(--duration) ease,
    transform var(--duration) var(--ease-out);
}

.gallery__caption {
  margin: 0.75rem 0 0;
  font-size: var(--fs-sm);
  font-weight: 700;
}

/* Equal grid */
.gallery--grid,
.gallery--plans {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Mosaic: first image large */
.gallery--mosaic {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery--mosaic .gallery__item:first-child {
  grid-column: 1 / -1;
}

/* Plans sit on white and are never cropped */
.gallery--plans .gallery__link {
  border: var(--rule);
  background: #fff;
}

.gallery--plans .gallery__link img {
  padding: 12px;
  object-fit: contain;
}

/* Two-column grid inside a narrow column */
.gallery--grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Stacked (vertical) */
.gallery--stack {
  grid-template-columns: 1fr;
}

.gallery--stack .gallery__link img {
  aspect-ratio: 16 / 9;
}

/* Horizontal scroll strip (swipe on mobile) */
.gallery--strip {
  grid-auto-columns: minmax(200px, 42%);
  grid-auto-flow: column;
  margin-top: 1.5rem;
  padding-bottom: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.gallery--strip .gallery__item {
  scroll-snap-align: start;
}

.gallery--strip .gallery__link img {
  aspect-ratio: 16 / 10;
}

@media (min-width: 768px) {
  .gallery {
    gap: 16px;
  }
  .gallery--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gallery--mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .gallery--mosaic .gallery__item:first-child {
    grid-row: span 2;
    grid-column: span 2;
  }
  .gallery--mosaic .gallery__item:first-child .gallery__link {
    height: 100%;
  }
  .gallery--mosaic .gallery__item:first-child img {
    aspect-ratio: auto;
  }
  .gallery--plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gallery--strip {
    grid-auto-columns: minmax(200px, 24%);
  }
}

@media (min-width: 1200px) {
  .gallery--plans {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .gallery--strip {
    grid-auto-columns: calc((100% - 6 * 16px) / 7);
    overflow: visible;
  }
}

/* ---------- 8. Info cards ---------- */

/* Summary card (sticky facts beside project overview) */

/* Price card (460 Armagh) */

/* Offer card (vehicle incentive) */
.offer-card {
  height: 100%;
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--on-dark-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
}

.offer-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.offer-card figcaption {
  display: grid;
  gap: 0.2rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--on-dark-line);
  color: var(--on-dark-soft);
  font-size: var(--fs-sm);
}

.offer-card strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.1;
}

.offer-card__home {
  color: var(--brand);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

/* Download card */

.download-list {
  margin: 0 0 1.25rem;
}

.download-list a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 64px;
  padding: 0.75rem 0;
  border-bottom: var(--rule);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.download-list a > .bi:first-child {
  color: var(--brand-600);
  font-size: 1.5rem;
}

.download-list span {
  display: grid;
  flex: 1 1 auto;
  font-size: 0.925rem;
}

.download-list small {
  color: var(--ink-muted);
  font-size: var(--fs-xs);
  font-weight: 500;
}

.download-list__arrow {
  color: var(--ink-muted);
}

/* Quick contact card */

/* Service card (Services page) — portrait profile layout */
.service-card {
  height: 100%;
  border: var(--rule);
  background: var(--surface);
}

.service-card--profile {
  overflow: hidden;
}

/* Portrait: fills its column, head kept in frame */
.service-card__media {
  position: relative;
  height: 100%;
  margin: 0;
  background: var(--surface-alt);
  aspect-ratio: 4 / 3;
}

.service-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  transition: transform 0.8s var(--ease-out);
}

/* Thin brand rule on the inner edge of the photo */
.service-card__media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--brand);
}

.service-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 2rem 1.5rem 2.25rem;
}

/* Large faded index number (01 / 02), decorative only */
.service-card--profile[data-index] .service-card__body::after {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  color: var(--line-strong);
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1;
  opacity: 0.55;
  pointer-events: none;
}

.service-card--profile[data-index="01"] .service-card__body::after { content: "01"; }
.service-card--profile[data-index="02"] .service-card__body::after { content: "02"; }

.service-card__title {
  position: relative;
  margin-bottom: 1.25rem;
  padding-top: 1.1rem;
  font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.5rem);
}

/* Short orange rule above the title */
.service-card__title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--brand);
}

.service-card__person {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.9rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: var(--rule);
}

.service-card__person p {
  margin: 0;
}

.service-card__name {
  color: var(--ink) !important;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
}

.service-card__role {
  color: var(--brand-700) !important;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.service-card p {
  color: var(--ink-soft);
}

.service-card__body > p:last-child {
  max-width: 62ch;
  margin-bottom: 0;
  font-size: var(--fs-lg);
  line-height: 1.8;
}

@media (max-width: 575.98px) {
  .service-card--profile[data-index] .service-card__body::after {
    display: none;
  }
}

@media (min-width: 768px) {
  .service-card__media {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .service-card__body {
    padding: 3rem 2.75rem;
  }

  .service-card--profile[data-index] .service-card__body::after {
    top: 2rem;
    right: 2.5rem;
    font-size: 4.5rem;
  }
}

@media (min-width: 1200px) {
  .service-card--profile {
    min-height: 480px;
  }

  .service-card__body {
    padding: 3.5rem 4rem;
  }
}

@media (hover: hover) {
  .service-card--profile:hover .service-card__media img {
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card__media img {
    transition: none;
  }
}

/* Safety net: if an older Services markup (small avatar) is still on the server,
   keep it tidy instead of showing a full-size photo */
.service-card:not(.service-card--profile) {
  padding: 2.25rem 2rem;
}

.service-card__avatar {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: top;
}

/* ---------- 9. Lists & chips ---------- */
.check-list {
  display: grid;
  gap: 0.6rem;
  margin: 1.25rem 0 1.5rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.check-list .bi {
  flex: 0 0 auto;
  margin-top: 0.1rem;
  color: var(--brand-600);
  font-size: 1.1rem;
}

.section--dark .check-list li {
  color: var(--on-dark-soft);
}

.section--dark .check-list .bi {
  color: var(--brand);
}

@media (min-width: 768px) {
  .check-list--two {
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
}

.icon-list {
  display: grid;
  gap: 0;
  margin: 1.5rem 0 0;
  border-top: var(--rule);
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: var(--rule);
}

.icon-list .bi {
  flex: 0 0 auto;
  margin-top: 0.1rem;
  color: var(--brand-600);
  font-size: 1.2rem;
}

/* Key Features: two-part layout (intro left, tiles right) */
.features-intro .lead-quote {
  margin-top: 1.5rem;
}

@media (min-width: 992px) {
  .features-intro {
    position: sticky;
    top: calc(var(--nav-height) + 32px);
  }
}

.feature-tiles {
  margin-bottom: 0;   /* keep Bootstrap row side margins so tiles line up */
}

.feature-tile {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  height: 100%;
  padding: 1.15rem 1.25rem;
  border: var(--rule);
  border-left: 2px solid var(--brand);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  transition:
    border-color var(--duration) ease,
    box-shadow var(--duration) ease;
}

.feature-tile .bi {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand-600);
  font-size: 1.15rem;
}

.feature-tile span {
  align-self: center;
}

@media (hover: hover) {
  .feature-tile:hover {
    border-color: var(--line-strong);
    border-left-color: var(--brand);
    box-shadow: var(--shadow-md);
  }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0;
}

.feature-grid li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem;
  border: var(--rule);
  font-weight: 700;
  font-size: 0.925rem;
}

.feature-grid .bi {
  color: var(--brand-600);
  font-size: 1.25rem;
}

.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.25rem 0 1.75rem;
}

.spec-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border: var(--rule);
  background: var(--surface);
  font-size: 0.8125rem;
}

.spec-chips .bi {
  color: var(--brand-600);
}

.spec-chips span {
  color: var(--ink-muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.tag-list li {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--brand);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
}

.tag-list--stack {
  flex-direction: column;
}

.plain-list li {
  padding: 0.55rem 0;
  border-bottom: var(--rule);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.distance-list {
  margin: 0 0 1.5rem;
  border-top: var(--rule);
}

.distance-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: var(--rule);
}

.distance-list .bi {
  color: var(--brand-600);
  font-size: 1.15rem;
}

.distance-list span {
  flex: 1 1 auto;
}

.distance-list strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

/* ---------- 10. Breadcrumbs ---------- */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumbs li + li::before {
  color: var(--brand);
  content: "/";
}

.breadcrumbs a {
  color: #fff;
  text-decoration: none;
}

.breadcrumbs--dark {
  padding-top: 2rem;
}

.breadcrumbs--dark li {
  color: var(--ink-muted);
}

.breadcrumbs--dark a {
  color: var(--ink);
}

/* ---------- 11. Project filter (Our Projects page) ---------- */
.filter-bar {
  position: sticky;
  z-index: 20;
  top: var(--nav-height);
  border-bottom: var(--rule);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
}

.filter-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.85rem;
}

.filter-bar__count {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    background-color var(--duration) ease,
    border-color var(--duration) ease,
    color var(--duration) ease;
}

.filter__btn span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  place-items: center;
  background: var(--surface-alt);
  color: var(--ink-soft);
  font-size: 0.6875rem;
  letter-spacing: 0;
}

.filter__btn.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.filter__btn.is-active span {
  background: var(--brand-600);
  color: #fff;
}

/* ---------- 12. Accordion (FAQ) ---------- */
.faq {
  --bs-accordion-border-radius: 0;
  --bs-accordion-inner-border-radius: 0;
  --bs-accordion-border-color: var(--line);
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-active-bg: var(--surface-warm);
  --bs-accordion-active-color: var(--ink);
  margin-bottom: 2rem;
}

.faq .accordion-button {
  min-height: 64px;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
}

.faq .accordion-body {
  color: var(--ink-soft);
}

/* ---------- 13. Site-visit modal ---------- */
.enquiry-modal {
  border: 0;
  border-top: 3px solid var(--brand);
  box-shadow: var(--shadow-lg);
}

.enquiry-modal__header {
  align-items: flex-start;
  padding: calc(1.25rem + env(safe-area-inset-top)) 1.5rem 1rem;
  border-bottom: var(--rule);
}

.enquiry-modal__header .eyebrow {
  margin-bottom: 0.4rem;
}

.enquiry-modal__header .modal-title {
  margin: 0;
  font-size: 2.1rem;
}

.enquiry-modal__header .btn-close {
  width: 44px;
  height: 44px;
  margin: -0.5rem -0.5rem 0 auto;
  padding: 0;
}

.enquiry-modal__body {
  padding: 1.5rem;
}

.enquiry-modal__submit {
  position: sticky;
  z-index: 2;
  bottom: -1.5rem;
  margin: 1.5rem -1.5rem -1.5rem;
  padding: 1rem 1.5rem calc(1rem + env(safe-area-inset-bottom));
  border-top: var(--rule);
  background: var(--surface);
}

@media (min-width: 576px) {
  .enquiry-modal__header {
    padding: 1.75rem 2rem 1.25rem;
  }
  .enquiry-modal__body {
    padding: 1.75rem 2rem 2rem;
  }
  .enquiry-modal__submit {
    position: static;
    margin: 1.5rem 0 0;
    padding: 0;
    border: 0;
  }
  .modal-dialog {
    max-width: 560px;
  }
}

/* ---------- 14. Framed media & maps ---------- */
.framed-media {
  position: relative;
  isolation: isolate;
}

.framed-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

/* Architectural corner frame */
.framed-media::after {
  position: absolute;
  z-index: -1;
  right: -14px;
  bottom: -14px;
  width: 45%;
  height: 45%;
  border-right: 1px solid var(--brand);
  border-bottom: 1px solid var(--brand);
  content: "";
  pointer-events: none;
}

.framed-media::before {
  position: absolute;
  z-index: -1;
  top: -14px;
  left: -14px;
  width: 22%;
  height: 22%;
  border-top: 1px solid var(--brand);
  border-left: 1px solid var(--brand);
  content: "";
  pointer-events: none;
}

.map-frame,
.contact__map {
  position: relative;
  overflow: hidden;
  border: var(--rule);
  background: var(--surface-alt);
}

.map-frame {
  height: 100%;
  min-height: 360px;
}

.map-frame iframe,
.contact__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact__map-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.5rem;
  color: var(--ink-muted);
  font-size: var(--fs-sm);
}

.contact__map-placeholder .bi {
  color: var(--brand-600);
  font-size: 1.6rem;
}

/* ---------- Property card: start/finish dates + photo placeholder ---------- */
.property-card__dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 1rem;
  border-block: var(--rule);
}

.property-card__dates > div {
  padding: 0.6rem 0;
}

.property-card__dates > div + div {
  padding-left: 1rem;
  border-left: var(--rule);
}

.property-card__dates dt {
  color: var(--ink-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.property-card__dates dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.property-card__dates + .property-card__specs {
  margin-top: 0;
}

/* ##########################################################################
   PART 5 — SECTIONS
   ########################################################################## */

/* ==========================================================================
   Vistaar Homes — Sections
   1. Home hero slider   2. Inner page hero   3. Fact bar   4. Notice band
   5. About              6. Contact            7. CTA band  8. Offer
   9. Process            10. Audience tabs     11. Home blocks (Stanmore)
   ========================================================================== */

/* ---------- 1. Home hero slider ---------- */
.hero {
  position: relative;
  height: 88vh;
  height: 88svh;               /* Stable on iOS/Android as the address bar hides */
  min-height: 560px;
  max-height: 980px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.hero__carousel,
.hero__slides,
.hero__slide {
  height: 100%;
}

.hero__slide {
  touch-action: pan-y;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__slide.active .hero__image {
  animation: heroZoom 7s ease-out both;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 18, 22, 0.5) 0, transparent 180px),
    linear-gradient(0deg, rgba(15, 18, 22, 0.9) 0%, rgba(15, 18, 22, 0.55) 55%, rgba(15, 18, 22, 0.55) 100%);
}

.hero__content-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  align-items: flex-end;
  padding-top: var(--nav-height);
  padding-bottom: 9.5rem;
}

.hero__content {
  max-width: 720px;
}

.hero__content > * {
  opacity: 0;
  transform: translateY(18px);
}

.hero__slide.active .hero__content > * {
  animation: heroIn 0.7s var(--ease-out) forwards;
}

.hero__slide.active .hero__content > :nth-child(2) { animation-delay: 0.1s; }
.hero__slide.active .hero__content > :nth-child(3) { animation-delay: 0.2s; }
.hero__slide.active .hero__content > :nth-child(4) { animation-delay: 0.3s; }

@keyframes heroIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__title {
  margin-bottom: 1rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.18);
  text-wrap: balance;
}

.hero__text {
  max-width: 560px;
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-lg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Controls: numbered progress bars + pause/prev/next */
.hero__controls {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 0;
}

.hero__controls-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero__indicators {
  display: flex;
  gap: 0.75rem;
}

.hero__indicator {
  width: min(84px, 20vw);
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  opacity: 0.55;
  transition: opacity var(--duration) ease;
}

.hero__indicator.active {
  opacity: 1;
}

.hero__indicator-number {
  display: block;
  margin-bottom: 0.45rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero__indicator-track {
  display: block;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
}

.hero__indicator-track > span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brand);
}

.hero__buttons {
  display: flex;
  gap: 8px;
}

.hero__button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: #fff;
  transition:
    background-color var(--duration) ease,
    border-color var(--duration) ease,
    color var(--duration) ease;
}

/* Phones: swipe replaces the arrows; keep only the pause button */
@media (max-width: 575.98px) {
  .hero__button[data-bs-slide] {
    display: none;
  }
  .hero__indicator {
    width: 56px;
  }
}

@media (min-width: 992px) {
  .hero__content-wrap {
    align-items: center;
    padding-bottom: 6rem;
  }
  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(15, 18, 22, 0.5) 0, transparent 180px),
      linear-gradient(90deg, rgba(15, 18, 22, 0.82) 0%, rgba(15, 18, 22, 0.45) 50%, rgba(15, 18, 22, 0.1) 100%),
      linear-gradient(0deg, rgba(15, 18, 22, 0.55) 0%, transparent 35%);
  }
}

/* Landscape phones: keep the text clear of the controls */
@media (max-width: 991.98px) and (orientation: landscape) and (max-height: 520px) {
  .hero {
    min-height: 440px;
  }
  .hero__content-wrap {
    padding-bottom: 6rem;
  }
  .hero__title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .hero__text {
    margin-bottom: 1rem;
  }
}

/* ---------- 2. Inner page hero ---------- */
.page-hero {
  position: relative;
  display: flex;
  min-height: 420px;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.page-hero--lg {
  min-height: 78vh;
  min-height: 78svh;
}

.page-hero__media,
.page-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-hero__image {
  object-fit: cover;
  animation: heroZoom 9s ease-out both;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 18, 22, 0.55) 0, transparent 180px),
    linear-gradient(0deg, rgba(15, 18, 22, 0.92) 0%, rgba(15, 18, 22, 0.62) 55%, rgba(15, 18, 22, 0.5) 100%);
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 3.5rem;
}

.page-hero .breadcrumbs {
  margin-bottom: 2rem;
}

.page-hero__content {
  max-width: 820px;
}

.page-hero__title {
  max-width: 16ch;                               /* cleaner line breaks */
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.9rem);   /* 37px → 62px (was up to 78px) */
  line-height: 1.08;
}

.page-hero__intro {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--fs-lg);
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (min-width: 992px) {
  .page-hero {
    min-height: 520px;
  }
  .page-hero__inner {
    padding-bottom: 4.5rem;
  }
}

/* ---------- 3. Fact bar (key specs under a hero) ---------- */
.fact-bar {
  position: relative;
  z-index: 3;
  background: var(--ink-900);
  color: #fff;
}

.fact-bar__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.fact-bar__item {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 0.75rem;
  border-bottom: 1px solid var(--on-dark-line);
}

.fact-bar__item:nth-child(odd) {
  border-right: 1px solid var(--on-dark-line);
}

.fact-bar__item .bi {
  color: var(--brand);
  font-size: 1.1rem;
}

.fact-bar__item dt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--on-dark-soft);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.fact-bar__item dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.1;
}

.fact-bar--pillars .fact-bar__list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fact-bar--pillars .fact-bar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-right: 1px solid var(--on-dark-line);
}

.fact-bar--pillars .fact-bar__item:last-child {
  border-right: 0;
}

.fact-bar--pillars strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .fact-bar__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .fact-bar__item {
    padding: 1.75rem 1.5rem;
    border-right: 1px solid var(--on-dark-line);
    border-bottom: 0;
  }
  .fact-bar__item:first-child {
    padding-left: 0;
  }
  .fact-bar__item:last-child {
    border-right: 0;
  }
}

@media (max-width: 575.98px) {
  .fact-bar--pillars .fact-bar__item {
    flex-direction: column;
    gap: 0.25rem;
    border-bottom: 0;
    text-align: center;
  }
  .fact-bar--pillars strong {
    font-size: 1.1rem;
  }
}

/* ---------- 4. Notice band ("coming soon") ---------- */

/* ---------- 5. About ---------- */
.about__content p:not(.eyebrow) {
  color: var(--ink-soft);
}

@media (min-width: 992px) {
  .about__content {
    padding-left: 2rem;
  }
}

/* ---------- 6. Contact ---------- */
.contact__shell {
  border: var(--rule);
  box-shadow: var(--shadow-lg);
}

.contact__form-panel,
.contact__info-panel {
  height: 100%;
  padding: 2.25rem 1.25rem;
}

.contact__form-panel {
  background: var(--surface);
}

.contact__form-panel .section-intro {
  margin-bottom: 1.75rem;
}

.contact__info-panel {
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: #fff;
}

.contact__info-title {
  margin-bottom: 1.5rem;
  color: #fff;
  font-size: 1.9rem;
}

.contact__details {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.contact__detail {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}

.contact__detail > .bi {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--on-dark-line);
  color: var(--brand);
  font-size: 1.1rem;
}

.contact__detail .contact__label {
  margin-bottom: 0.2rem;
  color: var(--on-dark-soft);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.contact__detail p {
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
}

.contact__detail a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact__map {
  flex: 1 1 auto;
  min-height: 240px;
  border-color: var(--on-dark-line);
  background: #252a30;
}

.contact__map .contact__map-placeholder {
  color: var(--on-dark-soft);
}

.contact__directions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  margin-top: 0.75rem;
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.contact__directions .bi {
  color: var(--brand);
}

.contact-form__submit {
  width: 100%;
}

@media (min-width: 576px) {
  .contact__form-panel,
  .contact__info-panel {
    padding: 2.75rem;
  }
  .contact-form__submit {
    width: auto;
    min-width: 200px;
  }
}

@media (min-width: 1200px) {
  .contact__form-panel,
  .contact__info-panel {
    padding: 4rem;
  }
}

/* ---------- 7. CTA band ---------- */

/* ---------- 8. Offer (vehicle incentive) ---------- */
.offer {
  background:
    radial-gradient(circle at 85% 30%, rgba(238, 126, 57, 0.18), transparent 45%),
    var(--ink);
}

.offer__terms {
  display: grid;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.offer__terms li {
  display: flex;
  gap: 0.65rem;
  color: var(--on-dark-soft);
}

.offer__terms .bi {
  color: var(--brand);
}

/* ---------- 9. Process ---------- */
.process {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: var(--rule);
}

.process__step {
  position: relative;
  padding: 2rem 1.5rem;
  background: var(--surface);
}

.process__number {
  display: block;
  margin-bottom: 1rem;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1;
}

.process__title {
  margin-bottom: 0.75rem;
  font-size: 1.9rem;
}

.process__text {
  color: var(--ink-soft);
}

@media (min-width: 992px) {
  .process {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .process__step {
    padding: 2.5rem 2.25rem;
  }
}

/* ---------- 10. Audience tabs ---------- */
.audience {
  border: var(--rule);
  background: var(--surface);
}

.audience__tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  border-bottom: var(--rule);
  scrollbar-width: none;
}

.audience__tab {
  flex: 1 0 auto;
  min-height: 56px;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.audience__tab.active {
  border-bottom-color: var(--brand);
  color: var(--ink);
}

.audience__panels {
  padding: 1.75rem 1.5rem;
}

.audience__panels p {
  color: var(--ink-soft);
}

@media (min-width: 768px) {
  .audience__panels {
    padding: 2.5rem;
  }
}

/* ---------- 11. Home blocks (Stanmore Road) ---------- */
.home-block + .home-block {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: var(--rule);
}

.home-block__media {
  display: block;
  overflow: hidden;
}

.home-block__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.home-block__title {
  margin-bottom: 0;
  font-size: var(--fs-h2);
}

.home-block__label {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

/* Home block as a white panel card (Stanmore Road) */
.home-block--panel {
  padding: 1rem;
  border: var(--rule);
  border-top: 3px solid var(--brand);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.home-block--panel + .home-block--panel {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 3px solid var(--brand);
}

.home-block--panel .home-block__title {
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
}

.home-block--panel .spec-chips li {
  background: var(--surface-warm);
}

.home-block--panel .spec-chips strong {
  color: var(--ink);
}

.home-block--panel .gallery--strip {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: var(--rule);
}

@media (min-width: 768px) {
  .home-block--panel,
  .home-block--panel + .home-block--panel {
    padding: 2rem;
  }
  .home-block--panel .check-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .home-block--panel,
  .home-block--panel + .home-block--panel {
    padding: 2.5rem;
  }
}

/* Feature card, horizontal: icon left, text right */
.feature-card--row {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.5rem 1.4rem;
  border-left: 2px solid var(--brand);
  box-shadow: var(--shadow-sm);
}

.feature-card--row .feature-card__icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  margin-bottom: 0;
  border: 0;
  background: var(--brand-tint);
}

.feature-card--row .feature-card__title {
  margin-bottom: 0.35rem;
  font-size: 1.4rem;
}

/* "View all photos": show first 9 until expanded (all photos stay in the lightbox) */
.js .gallery--collapsible:not(.is-expanded) .gallery__item:nth-child(n + 10) {
  display: none;
}

.gallery-more {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.no-js .gallery-more {
  display: none;
}

/* Overview card (91 Olliviers): text + amenities in one white panel */
.overview-panel {
  padding: 1.75rem 1.5rem;
  border: var(--rule);
  border-top: 3px solid var(--brand);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.overview-panel .prose p {
  font-size: var(--fs-lg);
  line-height: 1.8;
}

.overview-panel__title {
  margin: 2rem 0 1rem;
  padding-top: 1.5rem;
  border-top: var(--rule);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.amenity-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 0;
}

.amenity-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 0.9rem;
  border: var(--rule);
  background: var(--surface-warm);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.amenity-list .bi {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand-600);
}

@media (min-width: 768px) {
  .overview-panel {
    padding: 2.5rem;
  }
}

/* Hero feature chips (e.g. "2 & 3 Bedrooms") */
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.hero-chip .bi {
  color: var(--brand);
}

.page-hero__actions:has(.hero-chip) .btn {
  flex-basis: 100%;
  max-width: max-content;
}

/* Sold property tiles (Stanmore page) */
.sold-card {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}

.sold-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.sold-card__body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 0.35rem;
  padding: 3rem 1.5rem 1.5rem;
  background: linear-gradient(0deg, rgba(15, 18, 22, 0.9), transparent);
}

.sold-card__body strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.15;
}

.sold-card__body span {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-sm);
}

@media (hover: hover) and (pointer: fine) {
  .sold-card:hover img {
    transform: scale(1.04);
  }
  .sold-card:hover {
    color: #fff;
  }
}

.offer__date {
  margin: 0;
  color: #ffb4a8;
  font-weight: 700;
}

/* ##########################################################################
   PART 6 — PAGES
   ########################################################################## */

/* ==========================================================================
   Vistaar Homes — Page specifics, hover states, accessibility & print
   1. Home   2. Pages with a solid header   3. Legal   4. 404
   5. Hover (mouse only)   6. Reduced motion   7. Print
   ========================================================================== */

/* ---------- 1. Home ---------- */

/* Video row: swipe sideways on phones, grid from tablet up */
@media (max-width: 575.98px) {
  .video-row {
    flex-wrap: nowrap;
    margin-right: calc(var(--bs-gutter-x) * -0.5);
    padding-bottom: 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .video-row__item {
    scroll-snap-align: start;
  }
}

/* ---------- 2. Pages with a solid header (no hero) ---------- */
.main--offset {
  padding-top: var(--nav-height);
}

.page-contact .contact {
  padding-top: 2rem;
}

/* ---------- 3. Legal pages ---------- */
.legal__header {
  max-width: 760px;
  margin: 2rem 0 2.5rem;
  padding-bottom: 2rem;
  border-bottom: var(--rule);
}

.legal__updated {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--fs-sm);
}

.legal__body {
  max-width: 760px;
}

.legal__body h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.9rem;
}

.legal__body p,
.legal__body li {
  color: var(--ink-soft);
}

.legal__body ul {
  padding-left: 1.2rem;
}

.legal__body li + li {
  margin-top: 0.4rem;
}

/* ---------- 4. 404 ---------- */
.not-found {
  min-height: 60vh;
  text-align: center;
}

.not-found__code {
  margin-bottom: 0.5rem;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 600;
  line-height: 1;
}

.not-found .section-intro {
  margin: 0 auto 1.75rem;
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ---------- 5. Hover effects — mouse/trackpad only (no sticky hover on touch) ---------- */
@media (hover: hover) and (pointer: fine) {
  a:hover {
    color: var(--ink);
  }

  .site-nav__links .nav-link:hover::after {
    transform: scaleX(1);
  }

  .site-nav__phone:hover,
  .site-nav__links .nav-link:hover {
    color: var(--nav-fg);
  }

  .site-nav__toggler:hover,
  .hero__button:hover {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--ink);
  }

  .link-arrow:hover {
    color: var(--brand-700);
  }

  .link-arrow:hover .bi,
  

  .link-arrow--light:hover {
    color: var(--brand);
  }

  .property-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }

  .property-card:hover .property-card__media img,
  .team-card:hover .team-card__media img,
  .gallery__link:hover img,
  .home-block__media:hover img,
  .video-facade:hover img {
    transform: scale(1.04);
  }

  .property-card:hover .property-card__title a {
    color: var(--brand-700);
  }

  .gallery__link:hover .gallery__zoom {
    opacity: 1;
    transform: none;
  }

  .gallery--plans .gallery__link:hover img {
    transform: scale(1.02);
  }

  .video-facade:hover img {
    opacity: 1;
  }

  .video-facade:hover .video-facade__play > .bi {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--ink);
  }

  .feature-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
  }

  .feature-card--dark:hover {
    box-shadow: none;
  }

  .site-menu__links .nav-link:hover,
  .download-list a:hover {
    color: var(--brand-700);
  }

  .social-link:hover {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--ink);
  }

  .site-footer__links a:hover,
  .site-footer__contact a:hover,
  .contact__detail a:hover,
  .contact__directions:hover,
  .breadcrumbs a:hover {
    color: var(--brand);
  }

  .breadcrumbs--dark a:hover {
    color: var(--brand-700);
  }

  .filter__btn:not(.is-active):hover,
  .audience__tab:hover {
    color: var(--brand-700);
  }

  .back-to-top:hover {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--ink);
  }
}

/* ---------- 6. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero__content > *,
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 7. Print ---------- */
@media print {
  .site-header,
.hero__controls,
.mobile-action-bar,
.back-to-top,
.btn,
.newsletter-form,
.modal,
.contact__map,
.map-frame {
    display: none !important;
  }

  .hero,
  .page-hero {
    height: auto;
    min-height: 0;
    background: none;
    color: #000;
  }

  .hero__slide:not(.active),
  .hero__overlay,
  .page-hero__overlay {
    display: none;
  }

  .hero__content > * {
    opacity: 1;
    transform: none;
  }

  .hero__title,
  .page-hero__title {
    color: #000;
  }

  .section {
    padding-block: 1.5rem;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ##########################################################################
   PART 7 — PREMIUM FINISH
   One consistent treatment everywhere: sharp corners, hairline borders,
   small soft shadows, slow confident motion. Nothing here changes content.
   ########################################################################## */

/* ---------- Consistent small shadow on every card-like block ---------- */
.feature-card,
.video-card,
.service-card,
.sold-card,
.offer-card,
.gallery__link,
.home-block__media,
.contact__shell {
  box-shadow: var(--shadow-sm);
}

.section--dark .video-card {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* Gallery "feature": first photo full width, the rest in pairs (fits a half-width column) */
.gallery--feature {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery--feature .gallery__item:first-child {
  grid-column: 1 / -1;
}

.gallery--feature .gallery__item:first-child img {
  aspect-ratio: 16 / 10;
}

/* Fact bar: any number of facts fills the row evenly (no lonely last item) */
.fact-bar:not(.fact-bar--pillars) .fact-bar__item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .fact-bar__list {
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    grid-template-columns: none;
  }
  .fact-bar:not(.fact-bar--pillars) .fact-bar__item:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

.overview-sticky {
  top: calc(var(--nav-height) + 2rem);
}

@media (max-width: 767.98px) {
  .fact-bar:not(.fact-bar--pillars) .fact-bar__item:last-child:nth-child(odd) {
    border-right: 0;
  }
}

/* Floor plans sit flat on white — no shadow, just the hairline */
.gallery--plans .gallery__link {
  box-shadow: none;
}

/* ---------- Gallery: soft shade + zoom icon on hover ---------- */
.gallery__link::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(21, 24, 28, 0.35), transparent 45%);
  opacity: 0;
  content: "";
  transition: opacity var(--duration) ease;
  pointer-events: none;
}

.gallery--plans .gallery__link::after {
  display: none;
}

/* ---------- Buttons: crisp, with a small lift on hover ---------- */
.btn-primary {
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08), 0 4px 12px rgba(179, 87, 24, 0.18);
}

/* ---------- Section titles: a touch tighter for a refined look ---------- */
.section-title {
  letter-spacing: -0.02em;
}

/* ---------- Mouse-only hover states ---------- */
@media (hover: hover) and (pointer: fine) {
  .gallery__link:hover::after {
    opacity: 1;
  }

  .btn-primary:hover {
    box-shadow: 0 2px 4px rgba(17, 24, 39, 0.08), 0 10px 22px rgba(238, 126, 57, 0.28);
  }

  .feature-card:hover,
  .service-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
  }

  .filter__btn:not(.is-active):hover {
    border-color: var(--ink);
    color: var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery__link::after {
    transition: none;
  }
}