/* ==========================================================================
   WrightHaven Homes — V5 Design System (production static layer)
   Source: design/design-system/  (WHH Moodboard + Mockups V5, 07/13/26)

   Link this file on redesigned pages only (homepage, Pasture Edge first).
   Do NOT load site-wide until the full reskin ships — it would clash with
   the live Elementor gold/dark brand.

   Usage:
     <link rel="stylesheet" href="/assets/wh-ds/wh-ds.css">
     <!-- page markup uses .whd-* classes below -->
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* -------------------------------------------------------------------------- */
/* Tokens                                                                     */
/* -------------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --whh-navy:       #1D3142;
  --whh-espresso:   #38272D;
  --whh-brown:      #6E594C;
  --whh-olive:      #494F25;
  --whh-olive-deep: #3A3D2A;
  --whh-sage:       #C3C79D;
  --whh-stone:      #BFB5AB;
  --whh-warm-white: #FAF8F4;
  --whh-cream:      #F5F2EC;
  --whh-linen:      #EDE6DA;
  --whh-ink:        #2A2320;
  --whh-ink-soft:   #6B6157;
  --whh-navy-tint:  #2C4356;
  --whh-olive-soft: #5C6335;
  --whh-sage-soft:  #D6D9BB;

  /* Semantic surfaces */
  --surface-page:       var(--whh-cream);
  --surface-card:       var(--whh-warm-white);
  --surface-raised:     #FBFAF7;
  --surface-fill:       var(--whh-linen);
  --surface-dark:       var(--whh-navy);
  --surface-dark-olive: var(--whh-olive-deep);
  --surface-dark-alt:   var(--whh-espresso);

  /* Text */
  --text-heading:        var(--whh-ink);
  --text-body:           #3A332E;
  --text-muted:          var(--whh-ink-soft);
  --text-inverse:        #F3EEE6;
  --text-inverse-muted:  #CDD3D9;

  --accent:      var(--whh-olive);
  --accent-soft: var(--whh-sage);

  --border-hairline: rgba(42, 35, 32, 0.14);
  --border-subtle:   rgba(42, 35, 32, 0.22);
  --border-strong:   var(--whh-ink);
  --border-inverse:  rgba(243, 238, 230, 0.38);

  --scrim-bottom: linear-gradient(180deg, rgba(29, 49, 66, 0) 0%, rgba(20, 28, 36, 0.72) 100%);
  --scrim-full:   linear-gradient(180deg, rgba(20, 28, 36, 0.35) 0%, rgba(20, 28, 36, 0.55) 100%);

  /* Type */
  --font-serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-sans:  'Montserrat', 'Avenir Next', 'Avenir', 'Helvetica Neue', Arial, sans-serif;

  /* Type — display is for short hero lines; h2 is intentionally large */
  --text-display: clamp(3rem, 6.5vw, 5.5rem);
  --text-h1:      clamp(2.5rem, 4.5vw, 4rem);
  --text-h2:      clamp(2.25rem, 3.8vw, 3.5rem);
  --text-h3:      1.75rem;
  --text-title:   1.25rem;
  --text-lead:    1.25rem;
  --text-body-lg: 1.0625rem;
  --text-base:    1rem;
  --text-sm:      0.875rem;
  --text-label:   0.75rem;

  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;

  --leading-display: 1.16;
  --leading-heading: 1.22;
  --leading-body:    1.65;
  --leading-snug:    1.35;

  --tracking-display: -0.01em;
  --tracking-body:    0;
  --tracking-label:   0.22em;
  --tracking-button:  0.16em;

  /* Spacing */
  --space-0:  0;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;
  --space-11: 160px;

  --container-max:  1240px;
  --container-wide: 1440px;
  --gutter:         clamp(24px, 5vw, 80px);
  --section-y:      clamp(64px, 9vw, 128px);

  /* Effects */
  --radius-none: 0;
  --radius-sm:   2px;
  --border-width: 1px;
  --shadow-sm:   0 1px 2px rgba(42, 35, 32, 0.06);
  --shadow-md:   0 8px 24px -12px rgba(42, 35, 32, 0.22);
  --shadow-lg:   0 24px 60px -24px rgba(29, 49, 66, 0.30);
  --shadow-image: 0 30px 70px -30px rgba(20, 28, 36, 0.45);

  /*
   * Motion tokens — Emil Kowalski / animations.dev
   * Strong custom curves (built-in ease-out is too weak).
   * UI stays ≤300ms. Marketing reveals can be slightly longer.
   */
  --ease-out:      cubic-bezier(0.23, 1, 0.32, 1);   /* enter / exit / press */
  --ease-in-out:   cubic-bezier(0.77, 0, 0.175, 1);  /* on-screen morph */
  --ease-drawer:   cubic-bezier(0.32, 0.72, 0, 1);   /* iOS-like sheet */
  --ease-standard: var(--ease-out);                 /* alias for older rules */

  --dur-press:  160ms;  /* :active scale */
  --dur-fast:   180ms;  /* colour / opacity UI */
  --dur-ui:     220ms;  /* small surfaces */
  --dur-drawer: 280ms;  /* mobile nav panel */
  --dur-reveal: 500ms;  /* marketing section enter (once per view) */
  --dur-med:    220ms;  /* was 320 — over UI budget; kept as alias */
  --dur-slow:   480ms;  /* decorative image zoom only */

  /* Focus + stacking */
  --focus-ring-color:  var(--whh-olive);
  --focus-ring-width:  2px;
  --focus-ring-offset: 3px;
  --z-base:     1;
  --z-dropdown: 40;
  --z-header:   100;
  --z-drawer:   200;

  /* ------------------------------------------------------------------ */
  /* Component tokens — keep in sync with design/design-system/tokens/   */
  /* components.css. Alias primitives/semantics; never a new hex here    */
  /* unless it is unique to a component (header cream glass, photo scrim). */
  /* ------------------------------------------------------------------ */
  --control-min: 44px;
  --control-radius: var(--radius-none);
  --control-border-width: var(--border-width);

  --button-font: var(--font-sans);
  --button-weight: var(--weight-medium);
  --button-tracking: var(--tracking-button);
  --button-leading: 1;
  --button-radius: var(--control-radius);
  --button-border-width: var(--control-border-width);
  --button-gap: 10px;
  --button-icon-size: 15px;
  --button-disabled-opacity: 0.45;
  --button-press-scale: 0.97;
  --button-ghost-hover-opacity: 0.65;
  --button-ghost-arrow-shift: 5px;
  --button-padding-sm: 9px 18px;
  --button-padding-md: 14px 30px;
  --button-padding-lg: 18px 40px;
  --button-padding-ghost: 4px 0;
  --button-font-size-sm: 0.6875rem;
  --button-font-size-md: 0.75rem;
  --button-font-size-lg: 0.8125rem;
  --button-header-padding: 11px 22px;
  --button-header-font-size: 0.72rem;
  --button-header-tracking: 0.12em;
  --button-header-min-height: 40px;
  --button-primary-bg: var(--whh-navy);
  --button-primary-fg: var(--text-inverse);
  --button-primary-border: var(--whh-navy);
  --button-primary-hover-bg: var(--whh-navy-tint);
  --button-primary-hover-fg: var(--text-inverse);
  --button-primary-hover-border: var(--whh-navy-tint);
  --button-secondary-bg: transparent;
  --button-secondary-fg: var(--text-heading);
  --button-secondary-border: var(--border-strong);
  --button-secondary-hover-bg: var(--whh-ink);
  --button-secondary-hover-fg: var(--text-inverse);
  --button-secondary-hover-border: var(--whh-ink);
  --button-accent-bg: var(--whh-sage);
  --button-accent-fg: var(--whh-olive-deep);
  --button-accent-border: var(--whh-sage);
  --button-accent-hover-bg: var(--whh-sage-soft);
  --button-accent-hover-fg: var(--whh-olive-deep);
  --button-accent-hover-border: var(--whh-sage-soft);
  --button-inverse-bg: rgba(20, 28, 36, 0.28);
  --button-inverse-fg: var(--text-inverse);
  --button-inverse-border: rgba(243, 238, 230, 0.95);
  --button-inverse-hover-bg: var(--text-inverse);
  --button-inverse-hover-fg: var(--whh-navy);
  --button-inverse-hover-border: var(--text-inverse);
  --button-inverse-blur: 2px;
  --button-inverse-solid-bg: var(--text-inverse);
  --button-inverse-solid-fg: var(--whh-navy);
  --button-inverse-solid-border: var(--text-inverse);
  --button-inverse-solid-hover-bg: var(--whh-warm-white);
  --button-inverse-solid-hover-fg: var(--whh-navy);
  --button-inverse-solid-hover-border: var(--whh-warm-white);
  --button-ghost-bg: transparent;
  --button-ghost-fg: var(--text-heading);
  --button-ghost-border: transparent;
  --button-ghost-tracking: var(--tracking-label);
  --button-ghost-olive: var(--whh-olive);
  --button-ghost-sage: var(--whh-sage);
  --button-ghost-inverse: var(--text-inverse);

  --badge-font: var(--font-sans);
  --badge-size: 0.6875rem;
  --badge-weight: var(--weight-medium);
  --badge-tracking: var(--tracking-label);
  --badge-padding: 7px 12px;
  --badge-padding-solid: 10px 16px;
  --badge-gap: var(--space-2);
  --badge-radius: var(--control-radius);
  --badge-mark-size: 5px;
  --badge-fg: var(--text-muted);
  --badge-bg: transparent;
  --badge-border: var(--border-subtle);
  --badge-mark: var(--whh-stone);
  --badge-olive-fg: var(--whh-olive);
  --badge-olive-border: rgba(73, 79, 37, 0.38);
  --badge-navy-fg: var(--whh-navy);
  --badge-navy-border: rgba(29, 49, 66, 0.35);
  --badge-sage-fg: var(--whh-brown);
  --badge-sage-border: rgba(110, 89, 76, 0.32);
  --badge-sage-mark: var(--whh-sage);
  --badge-solid-fg: var(--text-inverse);
  --badge-solid-bg: var(--whh-olive);
  --badge-solid-sage-bg: var(--whh-sage);
  --badge-solid-sage-fg: var(--whh-olive-deep);

  --card-radius: var(--control-radius);
  --card-bg: transparent;
  --card-body-bg: var(--surface-card);
  --card-body-padding: 26px 28px 24px;
  --card-body-gap: var(--space-3);
  --card-shadow: var(--shadow-sm);
  --card-media-ratio: 4 / 2.7;
  --card-media-ratio-overlay: 4 / 3;
  --card-media-bg: var(--surface-fill);
  --card-badge-inset: 18px;
  --card-title-size: 1.75rem;
  --card-title-size-overlay: 2rem;
  --card-title-leading: 1.15;
  --card-title-tracking: var(--tracking-display);
  --card-title-color: var(--text-heading);
  --card-loc-size: 0.9375rem;
  --card-loc-gap: 7px;
  --card-loc-icon: 15px;
  --card-loc-color: var(--text-body);
  --card-desc-size: 0.9375rem;
  --card-desc-leading: 1.7;
  --card-action-size: 12px;
  --card-action-weight: var(--weight-semibold);
  --card-action-tracking: var(--tracking-button);
  --card-action-color: var(--whh-olive);
  --card-action-gap: 9px;
  --card-action-pad-top: 10px;
  --card-price-size: 12px;
  --card-price-tracking: 0.14em;
  --card-image-hover-scale: 1.04;
  --card-overlay-padding: var(--space-6);
  --card-overlay-gap: var(--space-2);
  --card-overlay-title: var(--text-inverse);

  --input-height: 48px;
  --input-padding: 12px 16px;
  --input-padding-underline: 10px 0;
  --input-radius: var(--control-radius);
  --input-font: var(--font-sans);
  --input-size: var(--text-base);
  --input-fg: var(--text-heading);
  --input-bg: var(--surface-card);
  --input-bg-underline: transparent;
  --input-border: var(--border-subtle);
  --input-border-width: var(--control-border-width);
  --input-focus-border: var(--whh-olive);
  --input-focus-ring: inset 0 0 0 1px var(--whh-olive);
  --input-placeholder: var(--text-muted);
  --input-textarea-min: 120px;
  --field-gap: var(--space-2);
  --field-label-color: var(--text-muted);
  --field-label-focus: var(--text-heading);
  --field-hint-size: var(--text-sm);
  --field-hint-color: var(--text-muted);

  --label-font: var(--font-sans);
  --label-size: var(--text-label);
  --label-weight: var(--weight-medium);
  --label-tracking: var(--tracking-label);
  --label-leading: 1.4;
  --label-gap: 14px;
  --label-fg: var(--text-muted);
  --label-accent: var(--accent);
  --label-inverse: var(--text-inverse-muted);
  --label-rule-width: 32px;
  --label-rule-opacity: 0.6;

  --divider-color: var(--border-hairline);
  --divider-color-subtle: var(--border-subtle);
  --divider-color-inverse: var(--border-inverse);
  --divider-thickness: 1px;
  --divider-label-gap: 20px;

  --header-bg: rgba(251, 248, 242, 0.92);
  --header-bg-scrolled: rgba(251, 248, 242, 0.96);
  --header-blur: 10px;
  --header-blur-scrolled: 12px;
  --header-shadow-scrolled: 0 2px 16px rgba(42, 35, 32, 0.08);
  --header-gap: var(--space-5);
  --header-z: var(--z-header);
  --nav-link-size: clamp(10.5px, 0.85vw, 12px);
  --nav-link-weight: var(--weight-medium);
  --nav-link-tracking: 0.14em;
  --nav-link-fg: var(--text-muted);
  --nav-link-active: var(--whh-olive);
  --nav-link-inverse: rgba(243, 238, 230, 0.85);
  --nav-link-pad-bottom: 4px;
  --nav-gap: clamp(12px, 2vw, 28px);
  --nav-toggle-size: var(--control-min);
  --nav-dropdown-min: 240px;
  --nav-dropdown-bg: var(--surface-card);
  --nav-dropdown-border: var(--border-hairline);
  --nav-dropdown-shadow: 0 12px 40px rgba(29, 49, 66, 0.12);

  --hero-min-height: 92vh;
  --hero-padding-top: 120px;
  --hero-padding-bottom: var(--space-9);
  --hero-display-gap: 22px;
  --hero-lead-margin: 24px 0 36px;
  --hero-actions-gap: var(--space-4);
  --hero-scrim: linear-gradient(100deg, rgba(24, 26, 18, 0.78) 0%, rgba(24, 26, 18, 0.45) 55%, rgba(24, 26, 18, 0.25) 100%);

  --cta-padding-y: var(--space-9);
  --cta-inner-gap: var(--space-6);
  --cta-scrim: rgba(26, 28, 18, 0.88);

  --footer-bg: var(--surface-dark-olive);
  --footer-fg: var(--text-inverse);
  --footer-muted: var(--text-inverse-muted);
  --footer-padding: var(--space-9) var(--gutter) var(--space-6);
  --footer-grid-gap: var(--space-7);
  --footer-link-size: 14px;
  --footer-logo-height: 112px;
  --footer-logo-height-mobile: 88px;
  --footer-bar-gap: var(--space-8);
  --footer-bar-pad-top: var(--space-5);
}

/* -------------------------------------------------------------------------- */
/* Base (scoped to redesigned pages via body.whd-page)                         */
/* -------------------------------------------------------------------------- */
body.whd-page {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; /* prevent rare media/grid bleed from creating side-scroll */
}

body.whd-page *,
body.whd-page *::before,
body.whd-page *::after {
  box-sizing: border-box;
}

body.whd-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Fill-frame photos: the global height:auto reset above will otherwise
   leave a landscape image sitting at the top of a tall media column,
   with the dark frame color showing as a huge empty slab underneath. */
body.whd-page .bs-showcase__frame img,
body.whd-page .whd-carousel__slide img,
body.whd-page .home-usp-panel__media > img,
body.whd-page .home-explore__preview-media img,
body.whd-page .whd-nav__mega-media img {
  height: 100%;
  max-width: none;
}

/* Logo — large at rest (matches old homepage presence), shrinks on scroll */
body.whd-page .whd-logo img,
body.whd-page a.whd-logo img {
  height: var(--whd-logo-h, 96px);
  width: auto;
  max-width: none;
  object-fit: contain;
  transition: height var(--dur-ui) var(--ease-out);
}

@media (max-width: 720px) {
  body.whd-page {
    --whd-logo-h: 64px;
  }
}

/*
 * Do NOT set `a { color: inherit }` globally — it out-specifies section
 * colours on photo tiles (mosaic labels went dark-on-dark / invisible).
 * Each link type sets its own colour below.
 */

/* ---- Button variants (anchors) — always win on contrast ---- */
body.whd-page a.whd-btn {
  text-decoration: none;
}
body.whd-page a.whd-btn--primary {
  color: var(--button-primary-fg);
  background-color: var(--button-primary-bg);
  border-color: var(--button-primary-border);
}
body.whd-page a.whd-btn--inverse-solid {
  color: var(--button-inverse-solid-fg);
  background-color: var(--button-inverse-solid-bg);
  border-color: var(--button-inverse-solid-border);
}
body.whd-page a.whd-btn--secondary {
  color: var(--button-secondary-fg);
  background-color: var(--button-secondary-bg);
  border-color: var(--button-secondary-border);
}
body.whd-page a.whd-btn--accent {
  color: var(--button-accent-fg);
  background-color: var(--button-accent-bg);
  border-color: var(--button-accent-border);
}
body.whd-page a.whd-btn--inverse {
  color: var(--button-inverse-fg);
  border-color: var(--button-inverse-border);
  background-color: var(--button-inverse-bg);
}
body.whd-page a.whd-btn--ghost {
  color: var(--button-ghost-fg);
  background-color: var(--button-ghost-bg);
  border-color: var(--button-ghost-border);
}
body.whd-page a.whd-btn--ghost.is-olive { color: var(--button-ghost-olive); }
body.whd-page a.whd-btn--ghost.is-sage  { color: var(--button-ghost-sage); }
body.whd-page a.whd-btn--ghost.is-inverse { color: var(--button-ghost-inverse); }

body.whd-page :focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

/* -------------------------------------------------------------------------- */
/* Layout                                                                     */
/* -------------------------------------------------------------------------- */
.whd-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.whd-container--wide {
  max-width: var(--container-wide);
}

.whd-section {
  padding-block: var(--section-y);
  padding-inline: var(--gutter);
}

.whd-section--tight {
  padding-block: var(--space-8);
}

.whd-section--page {
  background: var(--surface-page);
}

.whd-section--card {
  background: var(--surface-card);
}

.whd-section--olive {
  background: var(--surface-dark-olive);
  color: var(--text-inverse);
}

.whd-section--navy {
  background: var(--surface-dark);
  color: var(--text-inverse);
}

.whd-section--espresso {
  background: var(--surface-dark-alt);
  color: var(--text-inverse);
}

/* -------------------------------------------------------------------------- */
/* Type utilities                                                             */
/* -------------------------------------------------------------------------- */
.whd-display {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: var(--weight-medium);
  font-size: var(--text-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  color: var(--text-heading);
  text-wrap: balance;
}

.whd-h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: var(--weight-medium);
  font-size: var(--text-h1);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-display);
  color: var(--text-heading);
  text-wrap: balance;
}

.whd-h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: var(--weight-medium);
  font-size: var(--text-h2);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-display);
  color: var(--text-heading);
  text-wrap: balance;
}

.whd-h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: var(--weight-medium);
  font-size: var(--text-h3);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--text-heading);
}

.whd-lead {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-lead);
  line-height: 1.7;
  color: var(--text-body);
}

.whd-body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--text-body);
}

.whd-caption {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-muted);
}

.whd-on-dark .whd-display,
.whd-on-dark .whd-h1,
.whd-on-dark .whd-h2,
.whd-on-dark .whd-h3,
.whd-section--olive .whd-display,
.whd-section--olive .whd-h1,
.whd-section--olive .whd-h2,
.whd-section--olive .whd-h3,
.whd-section--navy .whd-display,
.whd-section--navy .whd-h1,
.whd-section--navy .whd-h2,
.whd-section--navy .whd-h3 {
  color: var(--text-inverse);
}

.whd-on-dark .whd-lead,
.whd-on-dark .whd-body,
.whd-section--olive .whd-lead,
.whd-section--olive .whd-body,
.whd-section--navy .whd-lead,
.whd-section--navy .whd-body {
  color: var(--text-inverse);
}

.whd-on-dark .whd-caption,
.whd-section--olive .whd-caption,
.whd-section--navy .whd-caption {
  color: var(--text-inverse-muted);
}

/* -------------------------------------------------------------------------- */
/* Section label (eyebrow)                                                    */
/* -------------------------------------------------------------------------- */
.whd-label {
  display: inline-flex;
  align-items: center;
  gap: var(--label-gap);
  font-family: var(--label-font);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--label-fg);
  line-height: var(--label-leading);
}

.whd-label--accent { color: var(--label-accent); }
.whd-label--inverse { color: var(--label-inverse); }

.whd-label__rule {
  width: var(--label-rule-width);
  height: 1px;
  background: currentColor;
  opacity: var(--label-rule-opacity);
  flex: none;
}

.whd-label__num {
  opacity: 0.7;
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */
.whd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--button-gap);
  font-family: var(--button-font);
  font-weight: var(--button-weight);
  text-transform: uppercase;
  letter-spacing: var(--button-tracking);
  line-height: var(--button-leading);
  text-decoration: none;
  cursor: pointer;
  border: var(--button-border-width) solid transparent;
  border-radius: var(--button-radius);
  /* Press uses transform; colour uses separate props — never transition: all */
  transition:
    transform var(--dur-press) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  /* Instant press feedback (Apple: respond on pointer-down) */
  -webkit-tap-highlight-color: transparent;
}

/* Feedback — tens/day: subtle scale only, 160ms ease-out */
.whd-btn:active:not(:disabled):not([aria-disabled="true"]) {
  transform: scale(var(--button-press-scale));
}

.whd-btn:disabled,
.whd-btn[aria-disabled="true"] {
  opacity: var(--button-disabled-opacity);
  cursor: not-allowed;
  pointer-events: none;
}

/* Button icon — authored SVG, sized to the label. .whd-btn is inline-flex
   with gap:10px, so the glyph aligns with no extra layout. */
.whd-btn__icon {
  flex: 0 0 auto;
  width: var(--button-icon-size);
  height: var(--button-icon-size);
  display: block;
}

.whd-btn--sm { padding: var(--button-padding-sm); font-size: var(--button-font-size-sm); }
.whd-btn--md { padding: var(--button-padding-md); font-size: var(--button-font-size-md); }
.whd-btn--lg { padding: var(--button-padding-lg); font-size: var(--button-font-size-lg); }

/* Header chrome CTA — sm was only ~31px tall; keep compact but tappable */
.whd-header .whd-btn.whd-btn--sm {
  min-height: var(--button-header-min-height);
  padding: var(--button-header-padding);
  font-size: var(--button-header-font-size);
  letter-spacing: var(--button-header-tracking);
  box-sizing: border-box;
}

/* Primary = filled navy */
.whd-btn--primary {
  background: var(--button-primary-bg);
  color: var(--button-primary-fg);
  border-color: var(--button-primary-border);
}

/* Secondary = outlined ink */
.whd-btn--secondary {
  background: var(--button-secondary-bg);
  color: var(--button-secondary-fg);
  border-color: var(--button-secondary-border);
}

/* Accent = sage fill (hero primary on photo) */
.whd-btn--accent {
  background: var(--button-accent-bg);
  color: var(--button-accent-fg);
  border-color: var(--button-accent-border);
}

/* Inverse = outlined on dark / photo */
.whd-btn--inverse {
  background: var(--button-inverse-bg);
  color: var(--button-inverse-fg);
  border-color: var(--button-inverse-border);
  backdrop-filter: blur(var(--button-inverse-blur));
}

/* Inverse solid = cream fill on dark */
.whd-btn--inverse-solid {
  background: var(--button-inverse-solid-bg);
  color: var(--button-inverse-solid-fg);
  border-color: var(--button-inverse-solid-border);
}

/* Ghost = text link with arrow */
.whd-btn--ghost {
  background: var(--button-ghost-bg);
  color: var(--button-ghost-fg);
  border-color: var(--button-ghost-border);
  padding: var(--button-padding-ghost);
  letter-spacing: var(--button-ghost-tracking);
}
.whd-btn--ghost .whd-btn__arrow {
  display: inline-block;
  letter-spacing: 0;
  transition: transform var(--dur-ui) var(--ease-out);
}
.whd-btn--ghost.is-olive { color: var(--button-ghost-olive); }
.whd-btn--ghost.is-sage  { color: var(--button-ghost-sage); }
.whd-btn--ghost.is-inverse { color: var(--button-ghost-inverse); }

/* Hover colour / arrow — real pointers only (no sticky touch hover) */
@media (hover: hover) and (pointer: fine) {
  body.whd-page a.whd-btn--primary:hover {
    background: var(--button-primary-hover-bg);
    border-color: var(--button-primary-hover-border);
    color: var(--button-primary-hover-fg);
  }
  body.whd-page a.whd-btn--secondary:hover {
    background: var(--button-secondary-hover-bg);
    color: var(--button-secondary-hover-fg);
    border-color: var(--button-secondary-hover-border);
  }
  body.whd-page a.whd-btn--accent:hover {
    background: var(--button-accent-hover-bg);
    border-color: var(--button-accent-hover-border);
    color: var(--button-accent-hover-fg);
  }
  body.whd-page a.whd-btn--inverse:hover {
    background: var(--button-inverse-hover-bg);
    color: var(--button-inverse-hover-fg);
    border-color: var(--button-inverse-hover-border);
  }
  body.whd-page a.whd-btn--inverse-solid:hover {
    background: var(--button-inverse-solid-hover-bg);
    border-color: var(--button-inverse-solid-hover-border);
    color: var(--button-inverse-solid-hover-fg);
  }
  body.whd-page a.whd-btn--ghost:hover {
    opacity: var(--button-ghost-hover-opacity);
  }
  body.whd-page a.whd-btn--ghost:hover .whd-btn__arrow {
    transform: translateX(var(--button-ghost-arrow-shift));
  }
  /* Scrolled inverse header: Contact outline dark, hover fill */
  html.whd-nav-scrolled body.whd-page .whd-header--inverse a.whd-btn--inverse:hover {
    background: var(--whh-ink);
    color: var(--text-inverse);
    border-color: var(--whh-ink);
  }
}

/* -------------------------------------------------------------------------- */
/* Arrow CTA — Pines launch button, reused on homepage + community heroes     */
/* Cream fill + olive square on dark; olive fill + cream square on light.     */
/* -------------------------------------------------------------------------- */
.pin-hero__cta,
button.pin-hero__cta {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  gap: 0.85rem;
  min-height: 3.25rem;
  padding: 0.45rem 0.45rem 0.45rem 1.2rem;
  background: #FBF8F2 !important;
  color: #23231e !important;
  -webkit-text-fill-color: #23231e !important;
  border: 0;
  text-decoration: none;
  font-family: var(--font-sans, Montserrat, sans-serif);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(20, 18, 14, 0.32);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  white-space: nowrap;
}
.pin-hero__cta:link,
.pin-hero__cta:visited,
.pin-hero__cta:hover,
.pin-hero__cta:active,
.pin-hero__cta:focus-visible {
  color: #23231e !important;
  -webkit-text-fill-color: #23231e !important;
  text-decoration: none;
}
.pin-hero__cta:hover {
  background: #fff !important;
}
.pin-hero__cta:focus-visible {
  outline: 2px solid #FBF8F2;
  outline-offset: 3px;
}
.pin-hero__cta:disabled,
.pin-hero__cta[aria-disabled="true"] {
  opacity: 0.65;
  cursor: wait;
}

.pin-hero__cta-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: none;
  background: var(--whh-olive, #494F25);
  color: #FBF8F2;
}
.pin-hero__cta-icon svg {
  display: block;
  stroke: #FBF8F2;
}

.pin-hero__cta--inverse,
a.pin-hero__cta--inverse,
button.pin-hero__cta--inverse {
  background: var(--whh-olive, #494F25) !important;
  color: #FBF8F2 !important;
  -webkit-text-fill-color: #FBF8F2 !important;
  box-shadow: 0 10px 24px rgba(20, 18, 14, 0.16);
}
.pin-hero__cta--inverse:link,
.pin-hero__cta--inverse:visited,
.pin-hero__cta--inverse:hover,
.pin-hero__cta--inverse:active,
.pin-hero__cta--inverse:focus-visible,
a.pin-hero__cta--inverse:hover,
button.pin-hero__cta--inverse:hover,
a.pin-hero__cta--inverse:focus-visible,
button.pin-hero__cta--inverse:focus-visible {
  color: #FBF8F2 !important;
  -webkit-text-fill-color: #FBF8F2 !important;
}
.pin-hero__cta--inverse:hover,
a.pin-hero__cta--inverse:hover,
button.pin-hero__cta--inverse:hover {
  background: #3d4220 !important;
}
.pin-hero__cta--inverse:focus-visible,
a.pin-hero__cta--inverse:focus-visible,
button.pin-hero__cta--inverse:focus-visible {
  outline: 2px solid var(--whh-olive, #494F25);
  outline-offset: 3px;
}
.pin-hero__cta--inverse .pin-hero__cta-icon {
  background: #FBF8F2;
  color: var(--whh-olive, #494F25);
}
.pin-hero__cta--inverse .pin-hero__cta-icon svg {
  stroke: var(--whh-olive, #494F25);
}

.pin-hero__ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 3.25rem;
  height: auto;
  padding: 0.45rem 1.35rem !important;
  font-family: var(--font-sans, Montserrat, sans-serif);
  font-size: 0.92rem !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: #FBF8F2 !important;
  -webkit-text-fill-color: #FBF8F2 !important;
  border: 1.5px solid #FBF8F2 !important;
  background: rgba(20, 18, 14, 0.62) !important;
  box-shadow: 0 10px 28px rgba(20, 18, 14, 0.32);
  text-decoration: none;
  white-space: nowrap;
}
.pin-hero__ghost:link,
.pin-hero__ghost:visited,
.pin-hero__ghost:hover,
.pin-hero__ghost:active,
.pin-hero__ghost:focus-visible {
  color: #FBF8F2 !important;
  -webkit-text-fill-color: #FBF8F2 !important;
  text-decoration: none;
}
.pin-hero__ghost:hover {
  background: rgba(20, 18, 14, 0.82) !important;
  border-color: #fff !important;
}
.pin-hero__ghost:focus-visible {
  outline: 2px solid #FBF8F2;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .home-hero__actions .pin-hero__cta,
  .home-hero__actions .pin-hero__ghost,
  .wh-hero-ctas .pin-hero__cta,
  .wh-hero-ctas .pin-hero__ghost,
  [class*="__hero-actions"] .pin-hero__cta,
  [class*="__hero-actions"] .pin-hero__ghost {
    width: 100%;
    max-width: 100%;
  }
  .home-hero__actions .pin-hero__cta,
  .wh-hero-ctas .pin-hero__cta,
  [class*="__hero-actions"] .pin-hero__cta {
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.15rem;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }
  .home-hero__actions .pin-hero__cta .pin-hero__cta-icon,
  .wh-hero-ctas .pin-hero__cta .pin-hero__cta-icon,
  [class*="__hero-actions"] .pin-hero__cta .pin-hero__cta-icon {
    width: auto;
    height: auto;
    margin: 0;
    background: transparent;
    color: inherit;
  }
  .home-hero__actions .pin-hero__cta .pin-hero__cta-icon svg,
  .wh-hero-ctas .pin-hero__cta .pin-hero__cta-icon svg,
  [class*="__hero-actions"] .pin-hero__cta .pin-hero__cta-icon svg {
    display: block;
    width: 14px;
    height: 14px;
    stroke: currentColor;
  }
  .pin-hero__cta--inverse .pin-hero__cta-icon svg {
    stroke: currentColor;
  }
  .home-hero__actions .pin-hero__ghost,
  .wh-hero-ctas .pin-hero__ghost,
  [class*="__hero-actions"] .pin-hero__ghost {
    justify-content: center;
  }
}

/* -------------------------------------------------------------------------- */
/* Badge                                                                      */
/* -------------------------------------------------------------------------- */
.whd-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--badge-gap);
  font-family: var(--badge-font);
  font-size: var(--badge-size);
  font-weight: var(--badge-weight);
  letter-spacing: var(--badge-tracking);
  text-transform: uppercase;
  line-height: 1;
  padding: var(--badge-padding);
  border-radius: var(--badge-radius);
  border: 1px solid var(--badge-border);
  color: var(--badge-fg);
  background: var(--badge-bg);
}

.whd-badge__mark {
  width: var(--badge-mark-size);
  height: var(--badge-mark-size);
  flex: none;
  background: var(--badge-mark);
}

.whd-badge--olive { color: var(--badge-olive-fg); border-color: var(--badge-olive-border); }
.whd-badge--olive .whd-badge__mark { background: var(--badge-olive-fg); }

.whd-badge--navy { color: var(--badge-navy-fg); border-color: var(--badge-navy-border); }
.whd-badge--navy .whd-badge__mark { background: var(--badge-navy-fg); }

.whd-badge--sage { color: var(--badge-sage-fg); border-color: var(--badge-sage-border); }
.whd-badge--sage .whd-badge__mark { background: var(--badge-sage-mark); }

/* Solid ribbon (status on community photo) */
.whd-badge--solid {
  border: none;
  color: var(--badge-solid-fg);
  background: var(--badge-solid-bg);
  padding: var(--badge-padding-solid);
}
.whd-badge--solid.whd-badge--olive { background: var(--badge-solid-bg); }
.whd-badge--solid.whd-badge--navy  { background: var(--badge-navy-fg); }
.whd-badge--solid.whd-badge--sage  {
  background: var(--badge-solid-sage-bg);
  color: var(--badge-solid-sage-fg);
}

/* -------------------------------------------------------------------------- */
/* Community / project card                                                   */
/* -------------------------------------------------------------------------- */
.whd-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  height: 100%;
}

.whd-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: var(--card-media-ratio);
  overflow: hidden;
  background: var(--card-media-bg);
  flex: none;
}

.whd-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
  will-change: transform;
}

.whd-card__badge {
  position: absolute;
  left: 0;
  bottom: var(--card-badge-inset);
  z-index: var(--z-base);
}

.whd-card__body {
  flex: 1;
  background: var(--card-body-bg);
  padding: var(--card-body-padding);
  display: flex;
  flex-direction: column;
  gap: var(--card-body-gap);
  box-shadow: var(--card-shadow);
}

.whd-card__title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.whd-card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: var(--weight-medium);
  font-size: var(--card-title-size);
  line-height: var(--card-title-leading);
  letter-spacing: var(--card-title-tracking);
  color: var(--card-title-color);
}

.whd-card__price {
  font-family: var(--font-sans);
  font-size: var(--card-price-size);
  font-weight: var(--card-action-weight);
  letter-spacing: var(--card-price-tracking);
  text-transform: uppercase;
  color: var(--card-action-color);
  white-space: nowrap;
}

.whd-card__loc {
  display: inline-flex;
  align-items: center;
  gap: var(--card-loc-gap);
  font-family: var(--font-sans);
  font-size: var(--card-loc-size);
  font-weight: var(--weight-medium);
  color: var(--card-loc-color);
}

.whd-card__loc-icon {
  width: var(--card-loc-icon);
  height: var(--card-loc-icon);
  flex: none;
  background: var(--card-action-color);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.whd-card__desc {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--card-desc-size);
  line-height: var(--card-desc-leading);
  color: var(--text-body);
}

.whd-card__action {
  display: inline-flex;
  align-items: center;
  gap: var(--card-action-gap);
  margin-top: auto;
  padding-top: var(--card-action-pad-top);
  font-family: var(--font-sans);
  font-size: var(--card-action-size);
  font-weight: var(--card-action-weight);
  letter-spacing: var(--card-action-tracking);
  text-transform: uppercase;
  color: var(--card-action-color);
}

.whd-card__action-arrow {
  display: inline-block;
  letter-spacing: 0;
  transition: transform var(--dur-ui) var(--ease-out);
}

/* Decorative card motion — gated to real hover (marketing frequency) */
@media (hover: hover) and (pointer: fine) {
  .whd-card:hover .whd-card__media img {
    transform: scale(var(--card-image-hover-scale));
  }
  .whd-card:hover .whd-card__action-arrow {
    transform: translateX(var(--button-ghost-arrow-shift));
  }
}

/* Overlay card (hero tiles) */
.whd-card--overlay .whd-card__media {
  aspect-ratio: var(--card-media-ratio-overlay);
}

.whd-card--overlay .whd-card__scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim-bottom);
  pointer-events: none;
}

.whd-card--overlay .whd-card__overlay-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--card-overlay-padding);
  display: flex;
  flex-direction: column;
  gap: var(--card-overlay-gap);
  z-index: var(--z-base);
}

.whd-card--overlay .whd-card__title {
  color: var(--card-overlay-title);
  font-size: var(--card-title-size-overlay);
}

/* -------------------------------------------------------------------------- */
/* Form input                                                                 */
/* -------------------------------------------------------------------------- */
.whd-field {
  display: flex;
  flex-direction: column;
  gap: var(--field-gap);
}

.whd-field__label {
  font-family: var(--label-font);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--field-label-color);
}

.whd-input {
  width: 100%;
  height: var(--input-height);
  padding: var(--input-padding);
  font-family: var(--input-font);
  font-size: var(--input-size);
  color: var(--input-fg);
  background: var(--input-bg);
  border: var(--input-border-width) solid var(--input-border);
  border-radius: var(--input-radius);
  appearance: none;
  transition: border-color var(--dur-fast) var(--ease-standard);
}

.whd-input:focus {
  outline: none;
  border-color: var(--input-focus-border);
  box-shadow: var(--input-focus-ring);
}

.whd-input::placeholder {
  color: var(--input-placeholder);
}

textarea.whd-input {
  height: auto;
  min-height: var(--input-textarea-min);
  resize: vertical;
  line-height: var(--leading-body);
}

/* -------------------------------------------------------------------------- */
/* Logo — original WrightHaven wordmark                                      */
/* White artwork: use as-is on dark/photo; invert on cream/light headers.     */
/* -------------------------------------------------------------------------- */
.whd-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: none;
  line-height: 0;
}

.whd-logo img {
  display: block;
  height: var(--whd-logo-h, 96px);
  width: auto;
  object-fit: contain;
}

/* White logo → near-black for cream / light headers */
.whd-logo--on-light img,
.whd-header:not(.whd-header--inverse) .whd-logo:not(.whd-logo--pe-stack) img,
html.whd-nav-scrolled .whd-header--inverse .whd-logo:not(.whd-logo--pe-stack) img {
  filter: brightness(0) saturate(100%);
  opacity: 0.92;
}

.whd-logo--on-dark img,
.whd-header--inverse .whd-logo:not(.whd-logo--pe-stack) img {
  filter: none;
  opacity: 1;
}

/* After scroll, inverse header becomes solid cream — logo stays dark. */
html.whd-nav-scrolled .whd-header--inverse .whd-logo:not(.whd-logo--pe-stack) img {
  filter: brightness(0) saturate(100%);
  opacity: 0.92;
}

/* -------------------------------------------------------------------------- */
/* Pasture Edge stacked lockup — PE logo over plain “WrightHaven” text        */
/* -------------------------------------------------------------------------- */
.whd-logo--pe-stack,
.whd-logo--community-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  line-height: 1;
  max-width: min(230px, 50vw);
  transition: gap 0.22s ease;
}

/* Tall marks (Granwood, Creek Bank, Pines) vs wide PE/Cherrywood wordmarks */
.whd-logo--shape-tall .whd-logo__pe-img,
.whd-logo--shape-tall .whd-logo__comm-img {
  height: clamp(2.9rem, 4.8vw, 3.6rem) !important;
  max-width: min(120px, 28vw);
}
.whd-logo--shape-wide .whd-logo__pe-img,
.whd-logo--shape-wide .whd-logo__comm-img {
  height: clamp(2.75rem, 4.6vw, 3.45rem) !important;
  max-width: min(220px, 50vw);
}

.whd-logo__pe-wrap {
  display: block;
  line-height: 0;
}

.whd-logo__pe-img {
  display: block;
  /* Default (before scroll): larger so PE is easy to read */
  height: clamp(2.75rem, 4.6vw, 3.45rem) !important;
  width: auto !important;
  max-width: min(220px, 50vw);
  object-fit: contain;
  object-position: center;
  filter: none !important;
  opacity: 1;
  transition: height 0.22s ease, max-width 0.22s ease;
}

.whd-logo__wh {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 96%;
  padding-top: 0.32rem;
  border-top: 1px solid color-mix(in srgb, #23231e 16%, transparent);
}

/* No leaf icon — text only */
.whd-logo__wh-img {
  display: none !important;
}

.whd-logo__wh-text {
  display: block;
  font-family: var(--font-sans, "Montserrat", "Poppins", sans-serif);
  font-size: clamp(0.72rem, 1.15vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-heading, #23231e);
  opacity: 0.78;
  white-space: nowrap;
  line-height: 1;
  transition: font-size 0.22s ease, opacity 0.22s ease, letter-spacing 0.22s ease;
}

.whd-header--inverse .whd-logo--pe-stack .whd-logo__wh {
  border-top-color: rgba(251, 248, 242, 0.28);
}

.whd-header--inverse .whd-logo--pe-stack.whd-logo--on-dark .whd-logo__wh-text {
  color: #fbf8f2;
  opacity: 0.88;
}

html.whd-nav-scrolled .whd-header--inverse .whd-logo--pe-stack .whd-logo__wh {
  border-top-color: color-mix(in srgb, #23231e 14%, transparent);
}

html.whd-nav-scrolled .whd-header--inverse .whd-logo--pe-stack .whd-logo__wh-text {
  color: var(--text-heading, #23231e);
  opacity: 0.72;
}

/* Cream community inverse (CBM etc.): ink divider. Color marks stay as drawn
   (do not brightness(0) the CBM river). Pines cinematic stays on-dark. */
.whd-header--community.whd-header--inverse .whd-logo--on-light .whd-logo__wh,
.whd-header--pe.whd-header--inverse .whd-logo--on-light .whd-logo__wh {
  border-top-color: color-mix(in srgb, #23231e 16%, transparent);
}

/* Community sub-brand headers (PE, Granwood, Cherrywood, Creek Bank, Pines) */
.whd-header--pe,
.whd-header--community {
  --whd-logo-h: 96px;
  align-items: center;
  /* Eggshell white nav */
  background: #FAF7F0 !important;
  background-color: #FAF7F0 !important;
  backdrop-filter: none;
  border-bottom-color: color-mix(in srgb, #23231e 10%, transparent);
  box-shadow: none;
}

/* On scroll: a bit smaller */
html.whd-nav-scrolled .whd-header--pe,
html.whd-nav-scrolled .whd-header--community {
  --whd-logo-h: 64px;
  background: #FAF7F0 !important;
  background-color: #FAF7F0 !important;
  box-shadow: 0 1px 0 color-mix(in srgb, #23231e 6%, transparent);
}

/* Inverse community pages: still solid eggshell so logos stay readable */
.whd-header--community.whd-header--inverse,
.whd-header--pe.whd-header--inverse {
  background: #FAF7F0 !important;
  background-color: #FAF7F0 !important;
  border-bottom-color: color-mix(in srgb, #23231e 10%, transparent);
}

/* Dark-text nav on community eggshell (even if data-variant=inverse) */
.whd-header--community.whd-header--inverse .whd-nav__link,
.whd-header--pe.whd-header--inverse .whd-nav__link {
  color: var(--text-muted, #6b6a5f);
}
.whd-header--community.whd-header--inverse .whd-nav__link.is-active,
.whd-header--community.whd-header--inverse .whd-nav__link:hover,
.whd-header--pe.whd-header--inverse .whd-nav__link.is-active,
.whd-header--pe.whd-header--inverse .whd-nav__link:hover {
  color: var(--whh-olive, #5b6045);
  border-bottom-color: var(--whh-olive, #5b6045);
}
.whd-header--community.whd-header--inverse .whd-nav-toggle,
.whd-header--pe.whd-header--inverse .whd-nav-toggle {
  color: var(--text-heading, #23231e);
  border-color: var(--text-heading, #23231e);
}
.whd-header--community.whd-header--inverse a.whd-btn--inverse,
.whd-header--pe.whd-header--inverse a.whd-btn--inverse {
  color: var(--text-heading, #23231e) !important;
  -webkit-text-fill-color: var(--text-heading, #23231e) !important;
  border-color: var(--text-heading, #23231e) !important;
  background: transparent !important;
}

html.whd-nav-scrolled .whd-logo--pe-stack {
  gap: 0.28rem;
}

html.whd-nav-scrolled .whd-logo--pe-stack .whd-logo__pe-img {
  height: clamp(1.85rem, 3vw, 2.25rem) !important;
  max-width: min(170px, 40vw);
}

html.whd-nav-scrolled .whd-logo--pe-stack .whd-logo__wh {
  padding-top: 0.22rem;
}

html.whd-nav-scrolled .whd-logo--pe-stack .whd-logo__wh-text {
  font-size: clamp(0.58rem, 0.95vw, 0.68rem);
  letter-spacing: 0.18em;
  opacity: 0.72;
}

@media (max-width: 720px) {
  .whd-logo--pe-stack {
    max-width: 46vw;
    gap: 0.32rem;
  }
  .whd-logo__pe-img {
    height: 2.35rem !important;
    max-width: 10.5rem;
  }
  .whd-logo__wh-text {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
  }
  html.whd-nav-scrolled .whd-logo--pe-stack .whd-logo__pe-img {
    height: 1.7rem !important;
  }
  html.whd-nav-scrolled .whd-logo--pe-stack .whd-logo__wh-text {
    font-size: 0.55rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Header + scroll shrink (old-site pattern: large logo → compact bar)        */
/* Driven by wh-ds.js → html.whd-nav-scrolled                                 */
/* -------------------------------------------------------------------------- */
:root {
  --whd-logo-h: 96px;
  --whd-header-py: 22px;
}

html.whd-nav-scrolled {
  --whd-logo-h: 56px;
  --whd-header-py: 10px;
}

@media (max-width: 720px) {
  :root { --whd-logo-h: 64px; --whd-header-py: 14px; }
  html.whd-nav-scrolled { --whd-logo-h: 44px; --whd-header-py: 8px; }
}

.whd-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--header-z);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--header-gap);
  padding: var(--whd-header-py) clamp(20px, 3.5vw, 80px);
  background: var(--header-bg);
  backdrop-filter: blur(var(--header-blur));
  border-bottom: 1px solid var(--border-hairline);
  transition:
    padding var(--dur-ui) var(--ease-out),
    background-color var(--dur-ui) var(--ease-out),
    border-color var(--dur-ui) var(--ease-out),
    box-shadow var(--dur-ui) var(--ease-out);
}

.whd-header--inverse {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

/* Scrolled: solid bar + shadow (whether inverse or light) */
html.whd-nav-scrolled .whd-header {
  background: var(--header-bg-scrolled);
  backdrop-filter: blur(var(--header-blur-scrolled));
  border-bottom-color: var(--border-hairline);
  box-shadow: var(--header-shadow-scrolled);
}

/* Inverse nav links become dark once bar is cream */
html.whd-nav-scrolled .whd-header--inverse .whd-nav__link {
  color: var(--text-muted);
}
html.whd-nav-scrolled .whd-header--inverse .whd-nav__link.is-active,
html.whd-nav-scrolled .whd-header--inverse .whd-nav__link:hover {
  color: var(--nav-link-active);
  border-bottom-color: var(--nav-link-active);
}
html.whd-nav-scrolled .whd-header--inverse .whd-nav-toggle {
  border-color: var(--border-strong);
  color: var(--text-heading);
}
/* Contact CTA: switch from inverse outline to dark outline when scrolled */
html.whd-nav-scrolled .whd-header--inverse a.whd-btn--inverse,
html.whd-nav-scrolled .whd-header--inverse .whd-btn--inverse {
  color: var(--text-heading) !important;
  -webkit-text-fill-color: var(--text-heading) !important;
  border-color: var(--border-strong) !important;
  background: transparent !important;
}

@media (prefers-reduced-motion: reduce) {
  .whd-header,
  body.whd-page .whd-logo img {
    transition: none;
  }
}

.whd-nav {
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
}

/* Desktop dropdown / mega (Communities) — matches live-site photo mega menu */
.whd-nav__item {
  position: relative;
  display: flex;
  align-items: center;
}
.whd-nav__item.has-dropdown .whd-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.whd-nav__caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.7;
  transform: translateY(1px);
}
.whd-nav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: var(--nav-dropdown-min);
  padding: 10px 0;
  background: var(--nav-dropdown-bg, var(--surface-card, #FBFAF7));
  border: 1px solid var(--nav-dropdown-border, var(--border-hairline, #DDD6CC));
  box-shadow: var(--nav-dropdown-shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-ui, 200ms) var(--ease-out, ease),
    transform var(--dur-ui, 200ms) var(--ease-out, ease),
    visibility var(--dur-ui, 200ms);
  z-index: var(--z-dropdown);
}
.whd-nav__dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.whd-nav__item.has-dropdown:hover .whd-nav__dropdown,
.whd-nav__item.has-dropdown:focus-within .whd-nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Simple text dropdown links (non-mega fallback) */
.whd-nav__dropdown-link {
  display: block;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-heading, #3A3A38);
  white-space: nowrap;
  transition: background var(--dur-fast, 120ms) var(--ease-out, ease),
    color var(--dur-fast, 120ms) var(--ease-out, ease);
}
.whd-nav__dropdown-link.is-divider {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border-hairline, #DDD6CC);
  color: var(--text-muted, #6E594C);
}
@media (hover: hover) and (pointer: fine) {
  .whd-nav__dropdown-link:hover {
    background: rgba(73, 79, 37, 0.08);
    color: var(--whh-olive, #494F25);
  }
}

/*
 * Communities mega menu — port of the live Elementor CTA grid:
 * dark panel, 5 photo cards, diagonal price ribbons, title bars.
 *
 * position:fixed + --whd-mega-top / --whd-mega-right (set in wh-ds.js)
 * pin the panel just under the Communities trigger and right-align to it.
 * Viewport-centering left:50% left a huge dead gap on ultrawide screens
 * (trigger top-right, panel mid-screen) so the hover path failed.
 */
.whd-nav__item.has-mega {
  position: relative;
}
.whd-nav__dropdown.whd-nav__mega {
  position: fixed;
  left: auto;
  right: var(--whd-mega-right, clamp(20px, 3.5vw, 80px));
  top: var(--whd-mega-top, 88px);
  transform: translateY(4px);
  min-width: min(1080px, calc(100vw - 48px));
  width: min(1080px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  margin: 0;
  padding: 18px 18px 12px;
  background: #2c2c2c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.whd-nav__dropdown.whd-nav__mega::before {
  /* bridge hover gap between link and panel so menu doesn’t flicker */
  top: -16px;
  height: 16px;
}
.whd-nav__item.has-mega:hover .whd-nav__dropdown.whd-nav__mega,
.whd-nav__item.has-mega:focus-within .whd-nav__dropdown.whd-nav__mega {
  transform: translateY(0);
}
.whd-nav__mega-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.whd-nav__mega-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #f3eee6;
  min-width: 0;
  background: #111;
  overflow: hidden;
  transition: transform var(--dur-ui, 200ms) var(--ease-out, ease),
    box-shadow var(--dur-ui, 200ms) var(--ease-out, ease);
}
.whd-nav__mega-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1a1a1a;
}
.whd-nav__mega-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 500ms var(--ease-out, ease);
}
.whd-nav__badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px 1px;
  background: var(--whh-olive, #494F25);
  color: #f3eee6;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  vertical-align: 1px;
  line-height: 1.4;
}
.whd-header--inverse .whd-nav__badge {
  background: #f3eee6;
  color: var(--whh-olive, #494F25);
}
.whd-nav__mega-ribbon {
  position: absolute;
  top: 14px;
  right: -34px;
  z-index: 2;
  width: 130px;
  padding: 6px 0;
  background: #1a1a1a;
  color: #f3eee6;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.whd-nav__mega-ribbon--compact {
  top: 12px;
  right: 12px;
  width: auto;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  white-space: nowrap;
  transform: none;
}
.whd-nav__mega-card:first-child .whd-nav__mega-ribbon {
  top: 16px;
  right: -36px;
  width: 132px;
  padding: 7px 0;
  background: var(--whh-olive, #494F25);
  font-size: 9px;
  letter-spacing: 0.06em;
  line-height: 1.15;
}
.whd-nav__mega-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 52px;
  padding: 10px 8px;
  background: #111;
  color: #f3eee6;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
}
.whd-nav__mega-title.is-accent {
  background: #111;
  color: #f3eee6;
}
.whd-nav__mega-tag {
  display: inline-block;
  padding: 2px 8px 1px;
  background: var(--whh-olive, #494F25);
  color: #f3eee6;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
}
.whd-nav__mega-name {
  display: block;
}
.whd-nav__mega-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.whd-nav__mega-footlink {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(243, 238, 230, 0.72);
  transition: color var(--dur-fast, 120ms) var(--ease-out, ease);
}
@media (hover: hover) and (pointer: fine) {
  .whd-nav__mega-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
  .whd-nav__mega-card:hover .whd-nav__mega-media img {
    transform: scale(1.04);
  }
  .whd-nav__mega-footlink:hover {
    color: #f3eee6;
  }
}

/* Mega stays dark even when inverse header scrolls to light chrome */
.whd-header--inverse .whd-nav__dropdown:not(.whd-nav__mega) {
  background: rgba(29, 49, 66, 0.96);
  border-color: rgba(243, 238, 230, 0.18);
}
.whd-header--inverse .whd-nav__dropdown-link {
  color: rgba(243, 238, 230, 0.92);
}
.whd-header--inverse .whd-nav__dropdown-link.is-divider {
  border-top-color: rgba(243, 238, 230, 0.18);
  color: rgba(243, 238, 230, 0.65);
}
@media (hover: hover) and (pointer: fine) {
  .whd-header--inverse .whd-nav__dropdown-link:hover {
    background: rgba(195, 199, 157, 0.12);
    color: var(--whh-sage, #C3C79D);
  }
}
html.whd-nav-scrolled .whd-header--inverse .whd-nav__dropdown:not(.whd-nav__mega) {
  background: var(--surface-card, #FBFAF7);
  border-color: var(--border-hairline, #DDD6CC);
}
html.whd-nav-scrolled .whd-header--inverse .whd-nav__dropdown-link {
  color: var(--text-heading, #3A3A38);
}
html.whd-nav-scrolled .whd-header--inverse .whd-nav__dropdown-link.is-divider {
  border-top-color: var(--border-hairline, #DDD6CC);
  color: var(--text-muted, #6E594C);
}
html.whd-nav-scrolled .whd-header--inverse .whd-nav__dropdown.whd-nav__mega {
  background: #2c2c2c;
  border-color: rgba(255, 255, 255, 0.08);
}

/* Mobile drawer community sublinks */
.whd-mnav__group { margin: 0; }
.whd-mnav__subs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 8px 12px;
  margin: 0 0 4px;
  border-left: 1px solid rgba(73, 79, 37, 0.2);
  margin-left: 8px;
}
.whd-mnav__sublink {
  display: block;
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted, #6E594C);
}

.whd-nav__link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: var(--nav-link-size);
  font-weight: var(--nav-link-weight);
  letter-spacing: var(--nav-link-tracking);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--nav-link-fg);
  border-bottom: 1px solid transparent;
  padding-bottom: var(--nav-link-pad-bottom);
  /* Colour only — high-frequency chrome, keep near-imperceptible */
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.whd-nav__link.is-active {
  color: var(--nav-link-active);
  border-bottom-color: var(--nav-link-active);
}

.whd-header--inverse .whd-nav__link {
  color: var(--nav-link-inverse);
}

.whd-header--inverse .whd-nav__link.is-active {
  color: var(--text-inverse);
  border-bottom-color: var(--text-inverse);
}

@media (hover: hover) and (pointer: fine) {
  .whd-nav__link:hover {
    color: var(--nav-link-active);
    border-bottom-color: var(--nav-link-active);
  }
  .whd-header--inverse .whd-nav__link:hover {
    color: var(--text-inverse);
    border-bottom-color: var(--text-inverse);
  }
}

/* Mobile menu toggle */
.whd-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--nav-toggle-size);
  height: var(--nav-toggle-size);
  min-height: var(--nav-toggle-size);
  padding: 0;
  border: 1px solid var(--border-strong);
  background: transparent;
  background-color: transparent;
  cursor: pointer;
  border-radius: var(--control-radius);
  color: var(--text-heading);
  flex: none;
  box-shadow: none;
  font: inherit;
  text-transform: none;
  appearance: none;
  -webkit-appearance: none;
}

.whd-header--inverse .whd-nav-toggle {
  border-color: rgba(243, 238, 230, 0.72);
  color: var(--text-inverse);
  background: rgba(20, 18, 14, 0.28);
  background-color: rgba(20, 18, 14, 0.28);
}

@media (hover: hover) {
  .whd-nav-toggle:hover {
    border-color: var(--whh-olive, #494F25);
    color: var(--whh-olive, #494F25);
  }
  .whd-header--inverse .whd-nav-toggle:hover {
    border-color: #F3EEE6;
    color: #F3EEE6;
    background: rgba(20, 18, 14, 0.42);
    background-color: rgba(20, 18, 14, 0.42);
  }
}

.whd-nav-toggle:focus-visible {
  outline: 2px solid var(--whh-olive, #494F25);
  outline-offset: 2px;
}

/* Elementor kit paints every bare <button> gold. Shield header chrome. */
body.whd-page .whd-header .whd-nav-toggle,
body.whd-page button.whd-nav-toggle,
.whd-header .whd-nav-toggle {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  font: inherit !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  min-height: var(--nav-toggle-size) !important;
  padding: 0 !important;
}

body.whd-page whd-header[data-variant="inverse"] .whd-nav-toggle,
body.whd-page .whd-header--inverse .whd-nav-toggle {
  background: rgba(20, 18, 14, 0.28) !important;
  background-color: rgba(20, 18, 14, 0.28) !important;
}

body.whd-page .whd-mnav__close,
.whd-mnav__close {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  font: inherit !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  min-height: 0 !important;
}

.whd-nav-toggle__bars {
  display: block;
  width: 18px;
  height: 12px;
  position: relative;
}

.whd-nav-toggle__bars::before,
.whd-nav-toggle__bars::after,
.whd-nav-toggle__bars span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
}

.whd-nav-toggle__bars::before { top: 0; }
.whd-nav-toggle__bars span { top: 50%; transform: translateY(-50%); }
.whd-nav-toggle__bars::after { bottom: 0; }

@media (max-width: 960px) {
  .whd-nav { display: none; }
  .whd-nav-toggle { display: inline-flex; }
}

/* Mobile drawer */
.whd-mnav {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  pointer-events: none;
  visibility: hidden;
}

.whd-mnav.is-open {
  pointer-events: auto;
  visibility: visible;
}

.whd-mnav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 28, 18, 0.55);
  opacity: 0;
  /* Symmetric path: fade with panel. Exit slightly faster than enter. */
  transition: opacity var(--dur-drawer) var(--ease-drawer);
}

.whd-mnav.is-open .whd-mnav__backdrop { opacity: 1; }

.whd-mnav__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 88vw);
  background: var(--surface-page);
  padding: 16px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Spatial consistency: enters and exits from the same edge (right) */
  transform: translateX(100%);
  transition: transform var(--dur-drawer) var(--ease-drawer);
  box-shadow: var(--shadow-lg);
  will-change: transform;
}

.whd-mnav.is-open .whd-mnav__panel { transform: translateX(0); }

/* Asymmetric: dismiss slightly snappier than open */
.whd-mnav:not(.is-open) .whd-mnav__panel {
  transition-duration: 200ms;
}
.whd-mnav:not(.is-open) .whd-mnav__backdrop {
  transition-duration: 200ms;
}

.whd-mnav__head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: none;
  margin: 0 0 4px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border-hairline);
}

.whd-mnav__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px 2px 0;
}

.whd-mnav__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: transparent;
  background-color: transparent;
  font-size: inherit;
  line-height: 1;
  cursor: pointer;
  color: var(--text-heading);
  flex: none;
  transition:
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.whd-mnav__close svg {
  display: block;
  width: 18px;
  height: 18px;
}

@media (hover: hover) {
  .whd-mnav__close:hover {
    background: color-mix(in srgb, var(--whh-olive, #494F25) 8%, transparent);
    border-color: var(--whh-olive, #494F25);
    color: var(--whh-olive, #494F25);
  }
}

.whd-mnav__close:focus-visible {
  outline: 2px solid var(--whh-olive, #494F25);
  outline-offset: 2px;
}

.whd-mnav__link {
  display: block;
  padding: 14px 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-heading);
  border-bottom: 1px solid var(--border-hairline);
}

.whd-mnav__cta {
  margin-top: 24px;
  text-align: center;
}

.whd-mnav__social {
  margin-top: auto;
  display: flex;
  gap: 16px;
  padding-top: 24px;
}

.whd-mnav__social a {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
}

/* -------------------------------------------------------------------------- */
/* Hero band                                                                  */
/* -------------------------------------------------------------------------- */
.whd-hero {
  position: relative;
  min-height: var(--hero-min-height);
  display: flex;
  align-items: center;
  padding: var(--hero-padding-top) var(--gutter) var(--hero-padding-bottom);
  background-size: cover;
  background-position: center;
  color: var(--text-inverse);
}

.whd-hero__scrim {
  position: absolute;
  inset: 0;
  background: var(--hero-scrim);
  pointer-events: none;
}

.whd-hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
}

.whd-hero .whd-display {
  color: var(--text-inverse);
  margin-top: var(--hero-display-gap);
  max-width: 14ch;
}

.whd-hero .whd-lead {
  color: var(--text-inverse);
  margin: var(--hero-lead-margin);
  max-width: 42ch;
}

.whd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hero-actions-gap);
}

/* -------------------------------------------------------------------------- */
/* CTA band                                                                   */
/* -------------------------------------------------------------------------- */
.whd-cta-band {
  position: relative;
  padding: var(--cta-padding-y) var(--gutter);
  background-size: cover;
  background-position: center;
  color: var(--text-inverse);
}

.whd-cta-band__scrim {
  position: absolute;
  inset: 0;
  background: var(--cta-scrim);
  pointer-events: none;
}

.whd-cta-band__inner {
  position: relative;
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--cta-inner-gap);
  flex-wrap: wrap;
}

.whd-cta-band .whd-h2 {
  color: var(--text-inverse);
  max-width: 18ch;
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */
.whd-footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: var(--footer-padding);
}

.whd-footer__grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--footer-grid-gap);
}

.whd-footer__blurb {
  margin: 20px 0 0;
  max-width: 280px;
  font-family: var(--font-sans);
  font-size: var(--footer-link-size);
  line-height: 1.7;
  color: var(--footer-muted);
}

.whd-footer__list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.whd-footer__list a {
  font-family: var(--font-sans);
  font-size: var(--footer-link-size);
  color: var(--footer-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
/* Footer links must stay light on olive (no body-ink inherit) */
body.whd-page .whd-footer a {
  color: var(--footer-muted);
}
body.whd-page .whd-footer a:hover {
  color: var(--footer-fg);
}
body.whd-page .whd-footer .whd-logo {
  color: inherit;
}
/* Footer mark — a bit larger than the header shrink size so it anchors the column */
body.whd-page .whd-footer .whd-logo img,
.whd-footer .whd-logo img {
  height: var(--footer-logo-height);
  width: auto;
  max-width: min(280px, 100%);
  object-fit: contain;
}
@media (max-width: 560px) {
  body.whd-page .whd-footer .whd-logo img,
  .whd-footer .whd-logo img {
    height: var(--footer-logo-height-mobile);
  }
}

.whd-footer__visit {
  margin: 18px 0 0;
  font-family: var(--font-sans);
  font-size: var(--footer-link-size);
  line-height: 1.8;
  color: var(--footer-muted);
}

.whd-footer__bar {
  max-width: var(--container-max);
  margin: var(--footer-bar-gap) auto 0;
  padding-top: var(--footer-bar-pad-top);
  border-top: 1px solid var(--border-inverse);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--footer-muted);
}

.whd-footer__tagline {
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .whd-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .whd-nav {
    display: none; /* mobile nav handled per-page */
  }
}

@media (max-width: 560px) {
  .whd-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------- */
/* Pillars / values helpers                                                   */
/* -------------------------------------------------------------------------- */
.whd-pillar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.whd-pillar__icon {
  width: 30px;
  height: 30px;
  background: var(--whh-olive);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.whd-pillar__title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-heading);
}

.whd-pillar__text {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
}

.whd-value-num {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  color: var(--whh-sage);
}

/* Arch-cropped photo (max once per page) */
.whd-arch {
  border-radius: 999px 999px 0 0;
  object-fit: cover;
  width: 100%;
  display: block;
}

/* Divider */
.whd-divider {
  border: 0;
  border-top: 1px solid var(--border-hairline);
  margin: 0;
}

.whd-divider--inverse {
  border-top-color: var(--border-inverse);
}

/* -------------------------------------------------------------------------- */
/* Scroll / page reveals (marketing, once-per-view)                           */
/* Purpose: prevent jarring section pop-in. Never blocks interaction.         */
/* Wired by IntersectionObserver in wh-ds.js → .is-inview                     */
/* -------------------------------------------------------------------------- */
.whd-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  /* Decorative — interaction stays live while revealing */
  transition-delay: var(--whd-reveal-delay, 0ms);
}

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

/* Hero entrance — rare per session, soft marketing beat */
.whd-hero__inner.whd-reveal {
  transform: translateY(12px);
}

/* Stagger helpers (30–80ms between siblings) */
.whd-reveal-stagger > .whd-reveal:nth-child(1) { --whd-reveal-delay: 0ms; }
.whd-reveal-stagger > .whd-reveal:nth-child(2) { --whd-reveal-delay: 50ms; }
.whd-reveal-stagger > .whd-reveal:nth-child(3) { --whd-reveal-delay: 100ms; }
.whd-reveal-stagger > .whd-reveal:nth-child(4) { --whd-reveal-delay: 150ms; }
.whd-reveal-stagger > .whd-reveal:nth-child(5) { --whd-reveal-delay: 200ms; }
.whd-reveal-stagger > .whd-reveal:nth-child(6) { --whd-reveal-delay: 250ms; }

/* Footer link hover — gated */
@media (hover: hover) and (pointer: fine) {
  .whd-footer__list a {
    transition: color var(--dur-fast) var(--ease-out);
  }
  .whd-footer__list a:hover {
    color: var(--text-inverse);
  }
}

/* -------------------------------------------------------------------------- */
/* prefers-reduced-motion — gentler, not zero                                 */
/* Keep opacity/colour comprehension; drop travel & scale motion.             */
/* -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-press:  1ms;
    --dur-fast:   120ms;
    --dur-ui:     120ms;
    --dur-drawer: 160ms;
    --dur-reveal: 200ms;
    --dur-med:    120ms;
    --dur-slow:   1ms;
  }

  .whd-btn:active:not(:disabled):not([aria-disabled="true"]) {
    transform: none;
    opacity: 0.88;
  }

  .whd-btn--ghost .whd-btn__arrow,
  .whd-card__action-arrow,
  .whd-card__media img {
    transition: none;
  }

  .whd-card:hover .whd-card__media img,
  .whd-card:hover .whd-card__action-arrow,
  .whd-btn--ghost:hover .whd-btn__arrow {
    transform: none;
  }

  /* Reveals: opacity only, no vertical travel */
  .whd-reveal {
    transform: none;
    transition: opacity 200ms ease;
  }
  .whd-reveal.is-inview {
    transform: none;
  }

  /* Drawer: opacity crossfade instead of slide (vestibular-safe) */
  .whd-mnav__panel {
    transform: none;
    opacity: 0;
    transition: opacity 160ms ease;
  }
  .whd-mnav.is-open .whd-mnav__panel {
    opacity: 1;
    transform: none;
  }
  .whd-mnav:not(.is-open) .whd-mnav__panel {
    opacity: 0;
  }
}

/* ==========================================================================
   Elementor text flip (cream rebrand) — Must for V5 pages
   --------------------------------------------------------------------------
   Legacy Elementor widgets were authored for dark sections (white body copy).
   When we put cream under them, that white text becomes invisible.

   Default on body.whd-page: dark body/heading type.
   Opt back into light type only on known dark islands (hero, olive bands, CTAs).
   ========================================================================== */

/* Cream-surface defaults — beat Elementor widget colors */
body.whd-page .elementor-heading-title,
body.whd-page .elementor-widget-heading .elementor-heading-title,
body.whd-page .elementor-widget-text-editor,
body.whd-page .elementor-widget-text-editor p,
body.whd-page .elementor-widget-text-editor li,
body.whd-page .elementor-icon-list-text,
body.whd-page .elementor-icon-list-item,
body.whd-page .elementor-icon-box-title,
body.whd-page .elementor-icon-box-title a,
body.whd-page .elementor-icon-box-description,
body.whd-page .elementor-cta__title,
body.whd-page .elementor-cta__description,
body.whd-page .elementor-image-box-title,
body.whd-page .elementor-image-box-description,
body.whd-page .elementor-testimonial__text,
body.whd-page .elementor-testimonial__name,
body.whd-page .elementor-testimonial__title,
body.whd-page .elementor-tab-title,
body.whd-page .elementor-tab-content,
body.whd-page .elementor-accordion-title,
body.whd-page .elementor-toggle-title,
body.whd-page .e-n-accordion-item-title-text,
body.whd-page .e-n-accordion-item .elementor-widget-text-editor,
body.whd-page .e-n-accordion-item p,
body.whd-page .elementor-counter-number-wrapper,
body.whd-page .elementor-counter-title,
body.whd-page .elementor-price-table,
body.whd-page .elementor-price-table__heading,
body.whd-page .elementor-price-table__subheading,
body.whd-page .elementor-price-table__period,
body.whd-page .elementor-price-table__feature-inner,
body.whd-page .ue-counter-current,
body.whd-page .ue-counter-total {
  color: var(--text-body, #3A332E) !important;
}

body.whd-page .elementor-heading-title,
body.whd-page h1.elementor-heading-title,
body.whd-page h2.elementor-heading-title,
body.whd-page h3.elementor-heading-title,
body.whd-page h4.elementor-heading-title,
body.whd-page h5.elementor-heading-title,
body.whd-page h6.elementor-heading-title {
  color: var(--text-heading, #1C1917) !important;
}

/* Icon glyphs on cream (not white) */
body.whd-page .elementor-icon-list-icon {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Dark islands — restore light type (heroes, olive anchors, inverse bands)
   -------------------------------------------------------------------------- */
body.whd-page .wh-hero,
body.whd-page .wh-hero .wh-hero-title,
body.whd-page .wh-hero .wh-hero-sub,
body.whd-page .wh-hero .wh-hero-kicker,
body.whd-page .wh-hero .wh-hero-note,
body.whd-page .wh-hero .elementor-heading-title,
body.whd-page .wh-hero .elementor-widget-text-editor,
body.whd-page .wh-hero .elementor-widget-text-editor p,
body.whd-page #contact,
body.whd-page #contact .elementor-heading-title,
body.whd-page #contact .elementor-widget-text-editor,
body.whd-page #contact .elementor-widget-text-editor p,
body.whd-page #contact .elementor-field-label,
body.whd-page #contact .elementor-field-group > label,
body.whd-page #contact label,
body.whd-page .fp-model__cta,
body.whd-page .fp-model__cta *,
body.whd-page .custom-index__cta,
body.whd-page .custom-index__cta .whd-h2,
body.whd-page .custom-index__cta p,
body.whd-page .sustain-index__cta,
body.whd-page .sustain-index__cta .whd-h2,
body.whd-page .sustain-index__cta p,
body.whd-page [class*="__cta"][class*="olive"],
body.whd-page .whd-band--olive,
body.whd-page .whd-band--olive .whd-h2,
body.whd-page .whd-band--olive p,
body.whd-page .whd-band--olive .whd-body,
body.whd-page .whd-section--olive,
body.whd-page .whd-section--olive .whd-h1,
body.whd-page .whd-section--olive .whd-h2,
body.whd-page .whd-section--olive .whd-lead,
body.whd-page .whd-section--olive p,
body.whd-page .whd-simple__cta,
body.whd-page .whd-simple__cta .whd-h1,
body.whd-page .whd-simple__cta .whd-h2,
body.whd-page .whd-simple__cta .whd-lead,
body.whd-page .whd-simple__cta p,
body.whd-page .whd-contact-band,
body.whd-page .whd-contact-band .whd-h2,
body.whd-page .whd-contact-band p,
body.whd-page .whd-contact-band label {
  color: #F3EEE6 !important;
}

/* Hero title pure white (display) */
body.whd-page .wh-hero .wh-hero-title {
  color: #ffffff !important;
}
body.whd-page .wh-hero .wh-hero-sub {
  color: rgba(255, 255, 255, 0.92) !important;
}
body.whd-page .wh-hero .wh-hero-kicker,
body.whd-page .wh-hero .wh-hero-note {
  color: rgba(243, 238, 230, 0.88) !important;
}

/* Form fields on olive stay dark-on-white surfaces */
body.whd-page #contact input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
body.whd-page #contact select,
body.whd-page #contact textarea,
body.whd-page #contact .elementor-field-textual {
  color: var(--text-heading, #1C1917) !important;
}

/* Elementor buttons: olive fill + light label on cream pages */
body.whd-page .elementor-button,
body.whd-page a.elementor-button {
  background-color: var(--whh-olive, #4A5D4E) !important;
  background-image: none !important;
  border-color: var(--whh-olive, #4A5D4E) !important;
  color: #F3EEE6 !important;
  border-radius: 0 !important;
}
body.whd-page .elementor-button .elementor-button-text {
  color: #F3EEE6 !important;
}
body.whd-page .elementor-divider__text,
body.whd-page .elementor-divider__element {
  color: var(--text-heading, #1C1917) !important;
}
body.whd-page #contact .elementor-button,
body.whd-page #contact button[type="submit"] {
  background-color: #F3EEE6 !important;
  border-color: #F3EEE6 !important;
  color: var(--whh-olive, #4A5D4E) !important;
}
body.whd-page #contact .elementor-button .elementor-button-text {
  color: var(--whh-olive, #4A5D4E) !important;
}
