/* ====================================================================
   MAYOR WALLIS MANOR & VENTURE VILLAS — SITE STYLES
   "Elevated warm & premium" design system.
   --------------------------------------------------------------------
   HOW TO EDIT
   · Colors, type sizes, spacing: everything is driven by the CSS
     custom properties in the :root block just below.
   · The display face (Plus Jakarta Sans) loads from Google Fonts on
     every page; if the visitor is offline it falls back to Public Sans.
   · Body text uses Public Sans, embedded in css/fonts.css so it works
     with no internet connection.
   · Every animation on the site is wrapped in
     @media (prefers-reduced-motion: no-preference) — visitors who ask
     their device for less motion get a calm, static page.
   ==================================================================== */

/* ================================================================
   1. DESIGN TOKENS
   ================================================================ */
:root {
  /* Palette — deep forest, cream, sage, soft gold */
  --green-black:  #10241A;   /* deepest green — hero sky, footer end */
  --green-deep:   #1E3A2A;
  --green:        #1E4D33;
  --green-glow:   #2C5C3E;   /* hero mid-sky */
  --green-mid:    #3E6B2E;
  --green-bright: #4E7A3A;
  --sage:         #A7C69B;
  --sage-deep:    #7E9B72;
  --sage-soft:    #ECEADD;
  --sage-mist:    #F0EEE3;
  --cream:        #F6F5EF;
  --white-warm:   #FDFCF8;
  --white:        #FFFFFF;
  --ink:          #22301F;
  --ink-soft:     #43503D;
  --ink-mute:     #5C6852;   /* darkest "muted" tone that still passes AA on cream */
  --gold:         #C9A26B;   /* decorative only on light backgrounds — never body text */
  --gold-bright:  #E0BC85;
  --gold-deep:    #A67F47;   /* borders/icons only on light backgrounds */
  --gold-pale:    #E9DCC3;
  --gold-text-dark: #D9C08A; /* gold-tone text, allowed on deep green only */
  --sun:          #E9C98F;
  --alert:        #9C4531;
  --alert-ink:    #7E3826;
  --line:         #E2E0D4;
  --line-soft:    #EDEBDF;
  --cream-dim:    #CBD8C0;   /* soft text on deep green */

  /* Glass surfaces */
  --glass-light:  rgba(253, 252, 248, 0.72);
  --glass-dark:   rgba(20, 43, 31, 0.55);
  --glass-line:   rgba(201, 162, 107, 0.35);

  /* Type */
  --sans:  'Public Sans', system-ui, 'Segoe UI', Arial, sans-serif;
  --serif: 'Plus Jakarta Sans', 'Public Sans', system-ui, 'Segoe UI', Arial, sans-serif; /* display face for headings (var name kept for compatibility) */
  --fs-display: clamp(2.9rem, 1.8rem + 4.2vw, 4.6rem);
  --fs-h2:      clamp(2rem, 1.45rem + 2vw, 2.9rem);
  --fs-h3:      clamp(1.3rem, 1.15rem + 0.6vw, 1.55rem);
  --fs-lead:    clamp(1.1rem, 1rem + 0.35vw, 1.22rem);
  --fs-body:    1rem;      /* 18px */
  --fs-small:   0.89rem;   /* 16px */
  --fs-fine:    0.84rem;   /* ~15px — nothing on the page renders smaller */

  /* Rhythm */
  --sp-section: clamp(4.5rem, 8vw, 8rem);
  --gutter:     clamp(1.1rem, 3vw, 2rem);
  --radius:     20px;
  --radius-sm:  14px;
  --radius-lg:  28px;
  --radius-arch: 999px 999px var(--radius) var(--radius);
  --pill:       999px;

  /* Elevation */
  --shadow-soft:  0 4px 18px rgba(30, 77, 51, 0.07);
  --shadow-card:  0 6px 24px rgba(30, 58, 42, 0.08), 0 1px 2px rgba(30, 58, 42, 0.06);
  --shadow-lift:  0 14px 34px rgba(30, 58, 42, 0.14);
  --shadow-float: 0 30px 70px -20px rgba(16, 36, 26, 0.35);
  --shadow-gold:  0 12px 40px -8px rgba(201, 162, 107, 0.45);

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout:  cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 200ms;
  --dur-med:  450ms;
  --dur-slow: 800ms;

  --header-offset: 6rem;
}

/* ================================================================
   2. RESET + BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; /* 18px base — comfortable for older readers */ }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--green);
  margin: 0;
}
h2 em, h1 em { font-style: italic; color: var(--green-mid); }
.bg-dark h2 em, .bg-dark h1 em { color: var(--gold-text-dark); }
p { margin: 0; max-width: 68ch; }
img, svg, iframe { max-width: 100%; }
a { color: var(--green); }
/* Long unbreakable tokens (email addresses) must never force page overflow */
.office-card a, .footer-col address, .fairhousing p, .portal-card p { overflow-wrap: anywhere; }
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}
.bg-dark :focus-visible, .hero :focus-visible { outline-color: var(--cream); }
::selection { background: var(--sage); color: var(--green-deep); }

/* ================================================================
   3. UTILITIES
   ================================================================ */
.container { max-width: 1420px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }
.container--prose  { max-width: 980px; }
.section { padding-block: var(--sp-section); scroll-margin-top: var(--header-offset); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: var(--sans);
  font-size: var(--fs-fine); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green-mid); margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: ""; width: 34px; height: 2px; background: var(--gold); flex-shrink: 0;
}
.eyebrow--center { justify-content: center; display: flex; }
.bg-dark .eyebrow { color: var(--sage); }
.hero .eyebrow { color: var(--gold-text-dark); }
.lead { font-size: var(--fs-lead); color: var(--ink-soft); }
.fine { font-size: var(--fs-fine); color: var(--ink-mute); line-height: 1.6; }
.section-head--center { text-align: center; }
.section-head--center h1, .section-head--center h2 { font-size: var(--fs-h2); }
.section-head--center .lead { margin: 0.9rem auto 0; max-width: 72ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.8rem 1.7rem;
  border-radius: var(--pill); border: 2px solid transparent;
  font-family: var(--sans); font-size: var(--fs-body); font-weight: 700;
  text-decoration: none; cursor: pointer; text-align: center;
}
@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease,
      border-color var(--dur-fast) ease, transform var(--dur-fast) ease,
      box-shadow var(--dur-fast) ease, background-position var(--dur-med) var(--ease-out);
  }
  .btn:hover { transform: translateY(-2px); }
}
.btn--solid { background: var(--green); color: var(--cream); }
.btn--solid:hover { background: var(--green-deep); box-shadow: var(--shadow-soft); }
.btn--outline { border-color: var(--sage); color: var(--green); background: transparent; }
.btn--outline:hover { border-color: var(--green); background: var(--white-warm); }
.btn--light { background: var(--cream); color: var(--green); }
.btn--light:hover { background: var(--white); box-shadow: var(--shadow-soft); }
.btn--ghost-dark { border-color: rgba(246, 245, 239, 0.5); color: var(--cream); background: transparent; }
.btn--ghost-dark:hover { border-color: var(--cream); }
.btn--alert { background: var(--alert); color: var(--white); }
.btn--alert:hover { background: var(--alert-ink); }
/* Signature gold button — dark text on a warm gold gradient */
.btn--gold {
  background: linear-gradient(105deg, var(--gold-deep) 0%, var(--gold) 45%, var(--gold-bright) 75%, var(--gold) 100%);
  background-size: 220% 100%;
  background-position: 0% 0;
  color: var(--green-black);
  font-weight: 800;
  box-shadow: 0 6px 22px -6px rgba(201, 162, 107, 0.55);
}
.btn--gold:hover { background-position: 90% 0; box-shadow: var(--shadow-gold); }
.btn--lg { min-height: 3.4rem; padding: 1rem 2.2rem; font-size: var(--fs-lead); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}

/* Ready-made frame for real photos — see IMAGE SWAP POINT comments */
.photo-frame {
  display: block; width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit;
}

/* ================================================================
   4. TOP BAR + HEADER + NAV
   ================================================================ */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--green); color: var(--cream);
  padding: 0.9rem 1.4rem; border-radius: 0 0 12px 12px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0; }

.topbar {
  background: linear-gradient(90deg, var(--green-black), var(--green-deep));
  color: #E7E9DC;
  font-size: var(--fs-small); padding-block: 0.5rem;
  border-bottom: 1px solid rgba(201, 162, 107, 0.25);
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.5rem 1.5rem; flex-wrap: wrap;
}
.topbar a { color: var(--cream); font-weight: 700; text-decoration: none; }
.topbar a:hover { color: var(--gold-text-dark); text-decoration: underline; }
.topbar__hours { display: none; }
@media (min-width: 720px) { .topbar__hours { display: inline; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream); border-bottom: 1px solid var(--line);
}
@media (prefers-reduced-motion: no-preference) {
  .site-header { transition: box-shadow var(--dur-fast) ease, background-color var(--dur-fast) ease; }
}
.site-header.is-stuck {
  background: var(--glass-light);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid var(--glass-line);
  box-shadow: 0 6px 24px rgba(30, 58, 42, 0.12);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header.is-stuck { background: var(--white-warm); }
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.4rem; position: relative;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand__name {
  font-family: var(--serif); font-weight: 800; letter-spacing: -0.01em;
  font-size: 1.32rem; color: var(--green); line-height: 1.1;
}
.brand__sub {
  display: block; font-family: var(--sans); font-size: 0.66em;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600;
}

.menu-toggle {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 3rem; padding: 0.5rem 1.1rem;
  background: var(--white-warm); border: 2px solid var(--line);
  border-radius: var(--pill); font-family: var(--sans);
  font-size: var(--fs-small); font-weight: 700; color: var(--green); cursor: pointer;
}
.menu-toggle .bars { display: inline-flex; flex-direction: column; gap: 4px; }
.menu-toggle .bars span { width: 18px; height: 2.5px; background: var(--green); border-radius: 2px; }

.site-nav[hidden] { display: none; }
.site-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--cream); border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(30, 58, 42, 0.14);
  padding: 0.5rem var(--gutter) 1.4rem;
}
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nav-list a {
  display: flex; align-items: center; min-height: 3rem;
  padding: 0.4rem 0.6rem; font-weight: 600; font-size: var(--fs-body);
  color: var(--ink); text-decoration: none; border-radius: 10px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.nav-list a:hover { color: var(--green); background: var(--white-warm); }
.nav-list a[aria-current] { color: var(--green); font-weight: 700; }
.nav-cta-row { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1rem; }
.header-actions { display: flex; gap: 0.6rem; align-items: center; }
.header-cta { display: none; }

@media (min-width: 1280px) {
  .menu-toggle { display: none; }
  .brand__name { white-space: nowrap; }
  .site-nav, .site-nav[hidden] {
    display: block; position: static; background: none;
    border: 0; box-shadow: none; padding: 0;
    flex: 1; margin-inline: clamp(1rem, 2.5vw, 3rem);
  }
  .nav-list { flex-direction: row; align-items: center; justify-content: space-between; gap: 0.2rem; }
  .nav-list a {
    border-bottom: 0; font-size: var(--fs-small); padding: 0.5rem 0.6rem; white-space: nowrap;
  }
  /* Animated gold underline */
  .nav-list a::after {
    content: ""; position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0.15rem;
    height: 2px; background: var(--gold); border-radius: 2px;
    transform: scaleX(0); transform-origin: left center;
  }
  @media (prefers-reduced-motion: no-preference) {
    .nav-list a::after { transition: transform var(--dur-fast) var(--ease-out); }
  }
  .nav-list a:hover::after, .nav-list a[aria-current]::after { transform: scaleX(1); }
  .nav-cta-row { display: none; }
  .header-cta { display: inline-flex; min-height: 2.8rem; padding: 0.6rem 1.4rem; font-size: var(--fs-small); white-space: nowrap; }
}

/* ================================================================
   5. HERO — full-bleed photo of the entrance sign
   ================================================================ */
.hero {
  position: relative;
  min-height: min(88vh, 54rem);
  display: flex; align-items: center;
  background: var(--green-black);
  color: var(--cream);
  overflow: hidden;
  padding-block: clamp(4rem, 9vw, 7rem) clamp(7rem, 12vw, 10rem);
}
.hero__scene { position: absolute; inset: 0; pointer-events: none; }
.hero-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-layer svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The photo bleeds 12% past the top so the parallax drift (main.js
   translates the layer downward as you scroll) never exposes a gap. */
.hero-photo {
  position: absolute; left: 0; right: 0;
  top: -12%; width: 100%; height: 112%;
  object-fit: cover;
  object-position: center 64%;   /* keep the sign and blooms in frame */
}
/* Scrim keeps the headline readable over the photo: dark on the text
   side, a gentle wash on the right, and grounded along the bottom. */
/* On wide screens the photo is oversized and pinned left, which slides
   the entrance sign out from behind the headline to the right side. */
@media (min-width: 900px) {
  .hero-photo { width: 185%; max-width: none; object-position: left 58%; }
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(16, 36, 26, 0.55) 0%, rgba(16, 36, 26, 0) 42%),
    linear-gradient(100deg, rgba(16, 36, 26, 0.82) 0%, rgba(16, 36, 26, 0.52) 52%, rgba(16, 36, 26, 0.16) 82%);
}
.hero .container { width: 100%; }
.hero__content { position: relative; z-index: 2; max-width: 680px; }
.hero h1 {
  font-size: var(--fs-display);
  color: var(--cream);
  text-wrap: balance;
  margin-bottom: 1.3rem;
  line-height: 1.06;
}
.hero h1 em { font-style: italic; color: var(--gold-text-dark); }
.hero .lead { color: var(--cream-dim); margin-bottom: 2rem; max-width: 56ch; }
.hero__ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.2rem; }
/* Arched divider flowing into the facts strip */
.hero__arch { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; line-height: 0; }
.hero__arch svg { display: block; width: 100%; height: clamp(3rem, 8vw, 6.5rem); }

/* Headline line-mask reveal (JS adds html.js-reveal; static otherwise) */
.line-mask { display: block; overflow: hidden; }
.line-mask .line { display: block; }
@media (prefers-reduced-motion: no-preference) {
  html.js-reveal .line-mask .line {
    transform: translateY(112%);
    animation: heroLine 0.9s var(--ease-out) forwards;
  }
  html.js-reveal .line-mask:nth-child(2) .line { animation-delay: 0.12s; }
  html.js-reveal .hero__content > .eyebrow,
  html.js-reveal .hero__content > .lead,
  html.js-reveal .hero__ctas {
    opacity: 0; transform: translateY(16px);
    animation: heroFade 0.8s var(--ease-out) forwards;
  }
  html.js-reveal .hero__content > .eyebrow { animation-delay: 0.05s; }
  html.js-reveal .hero__content > .lead   { animation-delay: 0.3s; }
  html.js-reveal .hero__ctas              { animation-delay: 0.42s; }
  /* Slow settle-in zoom on the hero photo */
  html.js-reveal .hero-photo {
    transform: scale(1.045);
    animation: heroZoom 2.6s var(--ease-out) forwards;
  }
}
@keyframes heroLine { to { transform: translateY(0); } }
@keyframes heroFade { to { opacity: 1; transform: translateY(0); } }
@keyframes heroZoom { to { transform: scale(1); } }

/* ================================================================
   6. QUICK FACTS — glass cards floating over the hero's arch
   ================================================================ */
.facts { background: var(--cream); position: relative; z-index: 4; }
.facts__grid {
  display: grid; gap: 1.1rem;
  margin-top: clamp(-4.5rem, -6vw, -3rem);
  padding-bottom: 2.6rem;
}
@media (min-width: 720px) { .facts__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .facts__grid { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; } }
.fact {
  display: flex; gap: 0.95rem; align-items: flex-start;
  background: var(--glass-light);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.3rem 1.4rem;
}
@supports not (backdrop-filter: blur(1px)) { .fact { background: var(--white-warm); } }
.fact__icon {
  flex-shrink: 0; width: 3rem; height: 3rem; border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-pale), #F3E8D2);
  border: 1px solid var(--gold);
  display: grid; place-items: center;
}
.fact__title { font-weight: 700; color: var(--green); font-size: var(--fs-body); }
.fact__sub { font-size: var(--fs-fine); color: var(--ink-mute); line-height: 1.5; }

/* ================================================================
   7. COMMUNITIES (dark section)
   ================================================================ */
.communities {
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(201, 162, 107, 0.14), transparent),
    var(--green);
  color: var(--cream);
}
.communities h1, .communities h2 { color: var(--cream); font-size: var(--fs-h2); margin-bottom: 0.9rem; }
.communities .section-intro { color: var(--cream-dim); margin-bottom: 2.8rem; }
.communities__grid { display: grid; gap: 1.7rem; }
@media (min-width: 720px) { .communities__grid { grid-template-columns: repeat(3, 1fr); } }
.community-card {
  background: var(--cream); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; color: var(--ink);
  outline: 1px solid transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .community-card { transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out); }
  .community-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-float); outline-color: var(--glass-line); }
}
.community-card__art {
  height: 180px; position: relative; overflow: hidden;
  border-radius: var(--radius-arch);
  margin: 0.9rem 0.9rem 0;
  background: linear-gradient(168deg, var(--green-deep) 0%, var(--green) 68%, #26593C 100%);
}
.community-card__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.community-card__body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; gap: 0.65rem; flex: 1; }
.community-card h3 { font-size: var(--fs-h3); }
.community-card p { font-size: var(--fs-small); color: var(--ink-soft); flex: 1; }
.community-card__stats {
  display: flex; gap: 0.4rem; font-size: var(--fs-fine); color: var(--ink-soft);
  border-top: 1px solid var(--line-soft); padding-top: 0.7rem; flex-wrap: wrap;
}
.community-card__stats strong { color: var(--green); font-family: var(--serif); font-size: 1.05em; }
.community-card__link { font-weight: 700; font-size: var(--fs-small); color: var(--green); text-decoration: none; margin-top: 0.2rem; }
.community-card__link:hover { text-decoration: underline; }
.communities__legal { margin-top: 1.5rem; color: var(--cream-dim); }

/* ================================================================
   7b. PHOTO GALLERY — real photographs from around the grounds
   ================================================================ */
.gallery { background: var(--cream); }
.gallery .section-head--center { margin-bottom: 2.6rem; }
.gallery__grid { display: grid; gap: 1.4rem; }
@media (min-width: 860px) {
  .gallery__grid {
    grid-template-columns: 1.25fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .gallery__item--feature { grid-row: span 2; }
}
.gallery__grid--trio { margin-top: 1.4rem; }
@media (min-width: 860px) {
  .gallery__grid--trio { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
}
.gallery__item {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  background: var(--sage-soft);
}
.gallery__item--feature { border-radius: var(--radius-arch); }
.gallery__item img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.gallery__item--feature img { aspect-ratio: 4 / 3.4; }
@media (prefers-reduced-motion: no-preference) {
  .gallery__item img { transition: transform 900ms var(--ease-out); }
  .gallery__item:hover img { transform: scale(1.04); }
}
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.6rem 1.3rem 1rem;
  background: linear-gradient(to top, rgba(16, 36, 26, 0.82) 0%, rgba(16, 36, 26, 0.45) 55%, rgba(16, 36, 26, 0) 100%);
  color: var(--cream);
  font-size: var(--fs-fine); font-weight: 600; line-height: 1.45;
  text-shadow: 0 1px 3px rgba(16, 36, 26, 0.6);
}

/* ================================================================
   7c. EXPLORE — home-page cards linking to each page of the site
   ================================================================ */
.explore { background: var(--cream); }
.explore .section-head--center { margin-bottom: 2.6rem; }
.explore__grid { display: grid; gap: 1.4rem; }
@media (min-width: 640px)  { .explore__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .explore__grid { grid-template-columns: repeat(3, 1fr); } }
.explore-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card); outline: 1px solid transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .explore-card { transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out); }
  .explore-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-float); outline-color: var(--glass-line); }
  .explore-card__img img { transition: transform 900ms var(--ease-out); }
  .explore-card:hover .explore-card__img img { transform: scale(1.05); }
}
.explore-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sage-soft); }
.explore-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.explore-card__img--art { display: grid; place-items: center; background: linear-gradient(180deg, #DCE8D2 0%, #EFEDE0 100%); }
.explore-card__img--art svg { width: 78%; height: 88%; }
.explore-card__body { padding: 1.2rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.explore-card h3 { font-size: var(--fs-h3); }
.explore-card p { font-size: var(--fs-small); color: var(--ink-soft); flex: 1; }
.explore-card__go { font-weight: 700; font-size: var(--fs-small); color: var(--green); }
.explore-card:hover .explore-card__go { text-decoration: underline; }
.explore__faq { text-align: center; margin-top: 2rem; }
.explore__faq a { font-weight: 700; }

/* ================================================================
   8. 3D VIRTUAL TOUR
   ================================================================ */
.tour { background: var(--sage-mist); border-top: 1px solid var(--glass-line); }
.tour .section-head--center { margin-bottom: 2.6rem; }
.tour-stage {
  max-width: 1120px; margin-inline: auto;
  background: var(--white-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}
.tour-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, #DCE8D2 0%, #EFEDE0 100%);
  outline: none;
}
@media (max-width: 719px) { .tour-viewport { aspect-ratio: 4 / 3; } }
.tour-viewport canvas.tour-canvas {
  position: absolute; inset: 0; width: 100% !important; height: 100% !important;
  display: block; touch-action: none; border-radius: 0;
}
.tour-poster {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.1rem; text-align: center; padding: 1.5rem;
}
.tour-poster[hidden] { display: none; }
.tour-poster__art { width: min(340px, 60%); height: auto; }
.tour-poster__title {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600; color: var(--green);
}
.tour-poster__hint { font-size: var(--fs-fine); color: var(--ink-mute); }
/* Loading spinner */
.tour-viewport.is-loading::after {
  content: ""; position: absolute; z-index: 3;
  top: calc(50% - 24px); left: calc(50% - 24px);
  width: 48px; height: 48px; border-radius: 50%;
  border: 4px solid var(--gold-pale); border-top-color: var(--gold-deep);
}
@media (prefers-reduced-motion: no-preference) {
  .tour-viewport.is-loading::after { animation: tourSpin 0.9s linear infinite; }
}
@keyframes tourSpin { to { transform: rotate(360deg); } }
.tour-controls {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.8rem; padding: 0.9rem 1.2rem;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.tour-controls[hidden] { display: none; }
.tour-rooms { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tour-room-btn {
  min-height: 2.7rem; padding: 0.45rem 1.05rem;
  border-radius: var(--pill); border: 1.5px solid var(--line);
  background: var(--white-warm); color: var(--ink-soft);
  font-family: var(--sans); font-size: var(--fs-small); font-weight: 700; cursor: pointer;
}
.tour-room-btn:hover { border-color: var(--gold); color: var(--green); }
.tour-room-btn[aria-pressed="true"] {
  background: var(--green); border-color: var(--green); color: var(--cream);
}
.tour-nav { display: flex; align-items: center; gap: 0.45rem; }
.tour-arrow, .tour-reset {
  min-height: 2.7rem; border-radius: var(--pill);
  border: 1.5px solid var(--line); background: var(--white-warm);
  color: var(--green); font-family: var(--sans); font-weight: 700;
  font-size: var(--fs-small); cursor: pointer; padding: 0.45rem 0.95rem;
}
.tour-arrow:hover, .tour-reset:hover { border-color: var(--green); }
.tour-caption {
  padding: 1rem 1.3rem 1.2rem;
  font-size: var(--fs-small); color: var(--ink-soft);
  background: var(--white-warm); max-width: none;
}

/* Floor plan + features row */
.tour-companion { display: grid; gap: 2rem; margin-top: 2.6rem; align-items: start; }
@media (min-width: 1024px) { .tour-companion { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; } }
.floorplan-figure { margin: 0; }
.floorplan-figure svg {
  display: block; width: 100%; height: auto;
  background: var(--white-warm); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.floorplan-figure figcaption { margin-top: 0.8rem; }
.tour-real { margin: 1.6rem 0 0; }
.tour-real img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.tour-real figcaption { margin-top: 0.7rem; }
.tour-features h3 { font-size: var(--fs-h3); margin-bottom: 1rem; }
.tour-features .chip-row { margin-block: 1rem 1.4rem; }
.tour-features p { color: var(--ink-soft); margin-bottom: 1rem; }

/* ================================================================
   12. APPLY — gold timeline
   ================================================================ */
.apply { background: var(--cream); }
.apply h1, .apply h2 { font-size: var(--fs-h2); margin-bottom: 0.9rem; }
.apply .section-intro { margin-bottom: 2.8rem; }
.apply__grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .apply__grid { grid-template-columns: 1.2fr 1fr; } }
.steps {
  display: flex; flex-direction: column; gap: 1.1rem;
  list-style: none; margin: 0; padding: 0;
  position: relative;
}
.steps::before {
  content: ""; position: absolute; top: 1.6rem; bottom: 1.6rem; left: 2.75rem;
  width: 2px; background: linear-gradient(180deg, var(--gold), var(--gold-pale));
  z-index: 0;
}
@media (max-width: 479px) { .steps::before { display: none; } }
.step {
  background: var(--white-warm); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
  display: flex; gap: 1.2rem; align-items: flex-start;
  position: relative; z-index: 1;
}
.step__num {
  flex-shrink: 0; width: 2.7rem; height: 2.7rem; border-radius: 50%;
  background: var(--sage-soft); color: var(--green);
  border: 2px solid var(--gold);
  display: grid; place-items: center;
  font-size: 1.15rem; font-weight: 600; font-family: var(--serif);
}
@media (prefers-reduced-motion: no-preference) {
  .step__num { transition: background-color var(--dur-med) ease, color var(--dur-med) ease; }
}
html.js-reveal .step.is-visible .step__num,
html:not(.js-reveal) .step__num { background: var(--green); color: var(--cream); }
.step > div { min-width: 0; }
.step h3 { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; color: var(--green); margin-bottom: 0.3rem; }
.step p { font-size: var(--fs-small); color: var(--ink-soft); overflow-wrap: anywhere; }
.apply__side { display: flex; flex-direction: column; gap: 1.5rem; }
.docs-card { padding: 1.8rem; }
.docs-card h3 {
  font-family: var(--sans); font-size: var(--fs-fine); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green-mid); margin-bottom: 0.9rem;
}
.docs-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.docs-card li { display: flex; gap: 0.7rem; align-items: baseline; font-size: var(--fs-small); color: var(--ink-soft); }
.docs-card li::before { content: "✓"; color: var(--green-bright); font-weight: 700; }
.docs-card .fine { margin-top: 1rem; }


/* ================================================================
   13. LOCATION
   ================================================================ */
.location { background: var(--white-warm); border-block: 1px solid var(--line); }
.location__grid { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 1024px) { .location__grid { grid-template-columns: 1fr 1.1fr; gap: 3.4rem; } }
.location h2 { font-size: var(--fs-h2); margin-bottom: 1.1rem; }
.location__text p { margin-bottom: 1rem; color: var(--ink-soft); }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-top: 1.6rem; }
.perks .perk:last-child:nth-child(odd) { grid-column: 1 / -1; }
.perk {
  background: var(--sage-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem; font-size: var(--fs-fine); font-weight: 600; color: var(--ink);
}
.map-panel {
  border-radius: var(--radius-arch); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-float); background: var(--sage-soft);
  position: relative;
}
.map-panel iframe { width: 100%; height: 460px; border: 0; display: block; }
.map-panel__badge {
  position: absolute; top: clamp(4rem, 9vw, 7rem); left: 1rem; z-index: 2;
  background: var(--glass-light);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-line); border-radius: var(--pill);
  padding: 0.5rem 1.1rem; font-size: var(--fs-fine); font-weight: 700; color: var(--green);
  box-shadow: var(--shadow-card);
}
.map-panel__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.9rem 1.3rem; background: var(--white-warm);
  border-top: 1px solid var(--line); flex-wrap: wrap; font-size: var(--fs-fine); color: var(--ink-mute);
}
.map-panel__foot a { font-weight: 700; color: var(--green); }

/* ================================================================
   14. RESIDENT HUB + PAYMENT PORTALS
   ================================================================ */
.residents { background: var(--sage-soft); }
.residents h1, .residents h2 { font-size: var(--fs-h2); margin-bottom: 0.9rem; }
.residents .section-intro { margin-bottom: 2rem; }
.emergency {
  background: var(--white); border: 2px solid var(--alert); border-radius: var(--radius-lg);
  padding: 1.3rem 1.6rem; margin-bottom: 2rem;
  display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap;
}
.emergency__icon {
  flex-shrink: 0; width: 2.8rem; height: 2.8rem; border-radius: 50%;
  background: var(--alert); color: var(--white);
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 700;
  position: relative;
}
@media (prefers-reduced-motion: no-preference) {
  .emergency__icon::after {
    content: ""; position: absolute; inset: -6px; border-radius: 50%;
    border: 2px solid var(--alert); opacity: 0;
    animation: pulseRing 2.4s ease-out infinite;
  }
}
@keyframes pulseRing {
  0% { transform: scale(0.8); opacity: 0.7; }
  70% { transform: scale(1.15); opacity: 0; }
  100% { opacity: 0; }
}
.emergency__text { flex: 1; min-width: min(260px, 100%); }
.emergency__text b { color: var(--alert-ink); font-size: var(--fs-body); }
.emergency__text p { font-size: var(--fs-fine); color: var(--ink-soft); line-height: 1.55; }

/* Featured payment panel */
.portal-panel {
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(201, 162, 107, 0.16), transparent),
    var(--green-deep);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--gold);
  color: var(--cream);
  padding: clamp(1.7rem, 4vw, 2.6rem);
  margin-bottom: 2rem;
  scroll-margin-top: var(--header-offset);
}
.portal-panel h3 {
  color: var(--cream); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  margin-bottom: 0.5rem;
}
.portal-panel > p { color: var(--cream-dim); font-size: var(--fs-small); margin-bottom: 1.6rem; }
.portal-cards { display: grid; gap: 1.1rem; }
@media (min-width: 720px) { .portal-cards { grid-template-columns: 1fr 1fr; } }
.portal-card {
  background: rgba(246, 245, 239, 0.07);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.portal-card h4 {
  margin: 0; font-family: var(--serif); font-weight: 600;
  font-size: 1.25rem; color: var(--cream);
}
.portal-card p { font-size: var(--fs-fine); color: var(--cream-dim); flex: 1; }
.portal-card .btn { align-self: flex-start; margin-top: 0.5rem; }
.portal-panel__note { margin-top: 1.4rem; font-size: var(--fs-fine); color: var(--gold-text-dark); max-width: none; }
.portal-panel__note a { color: var(--cream); font-weight: 700; }
.ext-icon { flex-shrink: 0; }

.badge-soon {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--gold-pale); border: 1px solid var(--gold);
  color: #6B4F23; border-radius: var(--pill);
  padding: 0.25rem 0.8rem; font-size: var(--fs-fine); font-weight: 700;
}
.workorder { margin-top: 2.2rem; scroll-margin-top: var(--header-offset); }
.workorder__head { max-width: 780px; margin-bottom: 1.4rem; }
.workorder__head h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.workorder__head .lead a { font-weight: 700; }


/* ================================================================
   15. SUGGESTION BOX + FORMS
   ================================================================ */

.form-card { padding: clamp(1.5rem, 3.4vw, 2.2rem); display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: var(--fs-fine); font-weight: 700; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--ink-mute); }
.field input, .field select, .field textarea {
  border: 1.5px solid #C9C6B4; border-radius: 12px;
  padding: 0.8rem 0.9rem; min-height: 3rem;
  font-family: var(--sans); font-size: var(--fs-body); color: var(--ink);
  background: var(--white-warm); width: 100%;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--sage); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(201, 162, 107, 0.35);
}
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 720px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-status {
  background: var(--sage-soft); border: 1px solid var(--sage);
  border-radius: var(--radius-sm); padding: 1rem 1.2rem;
  font-size: var(--fs-small); color: var(--ink); line-height: 1.55;
}
.form-status[hidden] { display: none; }

/* ================================================================
   16. CALENDAR
   ================================================================ */
.calendar { background: var(--sage-mist); }
.calendar__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.calendar h2 { font-size: var(--fs-h2); }
.calendar-image { margin: 0 0 1.8rem; text-align: center; }
.calendar-image img {
  display: block; width: 100%; max-width: 920px; margin: 0 auto;
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.calendar-image figcaption { margin-top: 0.6rem; }
.calendar__label {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 1.8rem; color: var(--green); margin-top: 0.3rem;
}
.calendar__nav { display: flex; gap: 0.6rem; }
.calendar__nav button {
  width: 3rem; height: 3rem; border-radius: 50%;
  border: 2px solid #B4BAA2; background: var(--cream);
  font-size: 1.1rem; color: var(--green); cursor: pointer;
}
.calendar__nav button:hover { border-color: var(--gold-deep); }
.calendar__grid-wrap { display: grid; gap: 1.8rem; align-items: start; }
@media (min-width: 1024px) { .calendar__grid-wrap { grid-template-columns: 1.5fr 1fr; } }
.cal-board {
  background: var(--white-warm); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.3rem; box-shadow: var(--shadow-card);
}
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-week { margin-bottom: 0.5rem; }
.cal-week span {
  text-align: center; font-size: var(--fs-fine); font-weight: 700;
  letter-spacing: 0.06em; color: var(--ink-mute); padding-block: 0.3rem;
}
.cal-cell {
  min-height: 54px; border-radius: 10px; padding: 6px 8px;
  font-size: var(--fs-fine); background: var(--cream);
  border: 1px solid var(--line-soft); color: var(--ink-soft);
  display: flex; flex-direction: column; gap: 2px;
}
.cal-cell--empty { background: transparent; border-color: transparent; }
@media (max-width: 400px) {
  .cal-board { padding: 0.8rem; }
  .cal-cell { padding: 4px 3px; min-height: 44px; align-items: center; }
  .cal-week span { font-size: 0.7rem; letter-spacing: 0.02em; }
  .calendar__grid-wrap > * { min-width: 0; }
  .event { padding: 0.8rem 0.9rem; }
}
.cal-cell--event {
  background: linear-gradient(160deg, #DCE8D2, #D2E0C4);
  border-color: var(--sage); color: var(--green); font-weight: 600;
}
.cal-cell--event::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-deep); }
.cal-cell--today { border: 2px solid var(--gold); }
.event-list { display: flex; flex-direction: column; gap: 0.85rem; }
.event {
  background: var(--white-warm); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.2rem; display: flex; gap: 1rem; align-items: center;
  box-shadow: var(--shadow-soft);
}
.event__date {
  flex-shrink: 0; width: 3.4rem; height: 3.4rem; border-radius: 12px;
  background: linear-gradient(160deg, var(--green), var(--green-deep));
  color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.event__date b { font-size: 1.15rem; line-height: 1.1; font-family: var(--serif); }
.event__date span { font-size: 0.67rem; letter-spacing: 0.08em; text-transform: uppercase; }
.event__body b { color: var(--green); font-size: var(--fs-small); }
.event__body div { font-size: var(--fs-fine); color: var(--ink-mute); }

/* ================================================================
   17. FAQ
   ================================================================ */
.faq .container { max-width: 880px; }
.faq h1, .faq h2 { font-size: var(--fs-h2); text-align: center; margin-bottom: 2.2rem; }
.faq .eyebrow { justify-content: center; display: flex; }
.faq details {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0; margin-bottom: 0.8rem; overflow: hidden;
}
.faq details[open] { border-color: var(--gold); box-shadow: var(--shadow-card); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.2rem 3.4rem 1.2rem 1.5rem;
  font-family: var(--serif);
  font-size: 1.12rem; font-weight: 600; color: var(--green);
  min-height: 3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.3rem; top: 50%;
  margin-top: -0.75rem; font-size: 1.5rem; font-weight: 400;
  color: var(--gold-deep); line-height: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .faq summary::after { transition: transform var(--dur-fast) var(--ease-out); }
  .faq details[open] .faq__panel { animation: faqOpen 0.35s var(--ease-out); }
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { border-bottom: 1px solid var(--line-soft); }
.faq details p { padding: 1rem 1.5rem 1.3rem; font-size: var(--fs-small); color: var(--ink-soft); }
@keyframes faqOpen { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ================================================================
   18. CONTACT (dark section)
   ================================================================ */
.contact {
  background:
    radial-gradient(1100px 560px at 90% -10%, rgba(201, 162, 107, 0.14), transparent),
    var(--green);
  color: var(--cream);
}
.contact h1, .contact h2 { color: var(--cream); font-size: var(--fs-h2); margin-bottom: 0.9rem; }
.contact .section-intro { color: var(--cream-dim); margin-bottom: 2.4rem; }
.contact__grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .contact__grid { grid-template-columns: 1.25fr 0.75fr; gap: 2.6rem; } }
.contact .form-card { border: 0; }
.office-card {
  background: var(--green-black); border-radius: var(--radius-arch);
  padding: 3.2rem 1.9rem 2rem; text-align: center;
  border: 1px solid rgba(201, 162, 107, 0.3);
}
.office-card h3 { color: var(--cream); font-size: 1.5rem; margin-bottom: 1.2rem; }
.office-card__frame {
  width: min(220px, 74%); margin: 0 auto 1.4rem;
  padding: 6px; border-radius: var(--radius-arch);
  background: var(--green-deep); border: 2px solid var(--gold);
  box-shadow: var(--shadow-gold);
}
.office-card__photo {
  display: block; width: 100%; height: auto; border-radius: inherit;
}
.office-card figure { margin: 0; }
.office-card figcaption { margin-top: 0.6rem; color: var(--cream-dim); font-size: var(--fs-fine); }
.office-card__rows { display: flex; flex-direction: column; gap: 1.05rem; font-size: var(--fs-small); color: var(--cream-dim); }
.office-card__rows b { display: block; font-size: var(--fs-fine); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); margin-bottom: 0.15rem; }
.office-card a { color: var(--cream); font-weight: 700; text-decoration: none; }
.office-card a:hover { text-decoration: underline; }
.office-card .tel-big { font-size: 1.35rem; font-family: var(--serif); }
.office-card__note { margin-top: 1.4rem; font-size: var(--fs-fine); color: var(--gold-text-dark); }

/* ================================================================
   19. FAIR HOUSING
   ================================================================ */
.fairhousing { background: var(--sage-soft); }
.fairhousing .container { max-width: 980px; }
.fairhousing__head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.fairhousing h2 { font-size: var(--fs-h2); }
.eho-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 2.5px solid var(--gold-deep); border-radius: 8px; background: var(--white-warm);
  padding: 0.5rem 0.9rem; font-weight: 800; color: var(--green); font-size: var(--fs-body);
}
.fairhousing p { margin-bottom: 1rem; font-size: var(--fs-small); color: var(--ink-soft); max-width: none; }
.fairhousing strong { color: var(--green); }
.fairhousing a { font-weight: 700; }

/* ================================================================
   20. FOOTER + BACK TO TOP
   ================================================================ */
.site-footer {
  background: linear-gradient(180deg, var(--green-deep), var(--green-black));
  color: #E7E9DC; padding: 3.8rem 0 1.8rem;
}
.footer-grid { display: grid; gap: 2.4rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.4rem; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.8rem; } }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem; }
.footer-brand span { font-family: var(--serif); font-weight: 600; letter-spacing: 0; font-size: 1.35rem; color: var(--cream); }
.site-footer p { font-size: var(--fs-fine); color: #B9C4AC; line-height: 1.6; }
.footer-col h3 {
  font-family: var(--sans); font-size: var(--fs-fine); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sage); margin-bottom: 0.95rem;
}
.footer-col address { font-style: normal; font-size: var(--fs-small); line-height: 1.9; }
.footer-col a { color: var(--cream); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; color: var(--gold-text-dark); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; font-size: var(--fs-small); }
.footer-links a { color: #E7E9DC; }
.footer-note { color: var(--gold-text-dark); font-weight: 600; }
.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.3rem;
  border-top: 1px solid rgba(231, 233, 220, 0.15);
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.8rem; flex-wrap: wrap; font-size: var(--fs-fine); color: #93A489;
}
.footer-eho { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-eho span {
  border: 1.5px solid #93A489; border-radius: 4px;
  padding: 2px 7px; font-size: 0.72rem; font-weight: 700;
}

.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
  width: 3.2rem; height: 3.2rem; border-radius: 50%;
  background: var(--green); color: var(--cream);
  border: 1px solid var(--glass-line);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-lift);
  opacity: 0; visibility: hidden; transform: translateY(10px);
}
@media (prefers-reduced-motion: no-preference) {
  .to-top { transition: opacity var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out), visibility var(--dur-fast); }
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-deep); }

/* Footer: EHO mark, HHP management credit */
.footer-managed {
  display: flex; align-items: center; justify-content: center; gap: 0.9rem;
  padding: 1.4rem 0 0; margin-top: 2.2rem;
  border-top: 1px solid rgba(246, 245, 239, 0.14);
  color: var(--cream-dim); font-size: var(--fs-small);
}
.footer-managed b { color: var(--cream); }
.hhp-logo {
  display: inline-flex; align-items: center;
  background: var(--white-warm); border-radius: 10px;
  padding: 0.4rem 0.75rem;
}
.hhp-logo img { display: block; height: 40px; width: auto; }
.footer-eho { display: inline-flex; align-items: center; gap: 0.9rem; }
.footer-eho img { height: 64px; width: auto; }
.isa-mark { width: 44px; height: 44px; color: var(--cream); }
.isa-mark--dark { color: var(--green); width: 40px; height: 40px; margin-left: 0.6rem; }
.footer-managed__link {
  display: inline-flex; align-items: center; gap: 0.9rem;
  color: inherit; text-decoration: none;
}
.footer-managed__link:hover b { text-decoration: underline; }

/* Award panel — the Top 3 of 2026 feature (home + scrapbook) */
.award-panel {
  display: grid; gap: 1.8rem; align-items: center;
  background: linear-gradient(115deg, #FBF7EC 0%, #F6EEDC 62%, #F3E8D2 100%);
  border: 1px solid var(--gold); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  margin-top: 1.4rem;
}
@media (min-width: 760px) { .award-panel { grid-template-columns: 185px 1fr; } }
.award-panel__medal { width: min(185px, 58%); margin-inline: auto; }
.award-panel__medal svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 26px rgba(166, 127, 71, 0.35)); }
.award-panel__text h2 { font-size: clamp(1.45rem, 1.15rem + 1.3vw, 2rem); margin: 0.35rem 0 0.7rem; }
.award-panel__text p { color: var(--ink-soft); font-size: var(--fs-small); max-width: 62ch; }
.award-panel__text p b { color: var(--green); }
.award-panel__text .fine { margin-top: 0.7rem; }

/* Award band (home + scrapbook) */
.award-band { background: var(--cream); padding-block: 0.6rem 2.4rem; }
.award-band__inner {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  flex-wrap: wrap; text-align: center;
  background: linear-gradient(105deg, #FBF7EC, #F6EEDC);
  border: 1px solid var(--gold); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 1.1rem 1.6rem;
}
.award-band__laurel { width: 40px; height: 40px; flex-shrink: 0; }
.award-band__text { font-weight: 600; color: var(--ink); font-size: var(--fs-small); max-width: 60ch; }
.award-band__text b { color: var(--green); font-size: 1.05em; }
.award-band__text .fine { display: block; margin-top: 0.15rem; }

/* Service partners */
.partners__grid { display: grid; gap: 1.4rem; margin-top: 2.4rem; }
@media (min-width: 640px)  { .partners__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .partners__grid { grid-template-columns: repeat(4, 1fr); } }
.partner-card {
  padding: 1.8rem 1.5rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
}
.partner-card__logo {
  width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-pale), #F3E8D2);
  border: 1px solid var(--gold);
  font-family: var(--serif); font-weight: 800; font-size: 1.25rem; color: var(--green);
}
.partner-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.partner-card__logo--img {
  width: 100%; height: 112px; border-radius: 10px;
  background: var(--white); border: none; padding: 0.4rem;
  margin-bottom: 0.6rem;
}
/* Percentage heights don't resolve for grid children here, so the
   logo gets an explicit height and letterboxes via object-fit. */
.partner-card__logo--img img { width: 100%; height: 96px; object-fit: contain; }
a.partner-card { text-decoration: none; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  a.partner-card { transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out); }
  a.partner-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
}
.partner-card__go { font-weight: 700; font-size: var(--fs-fine); color: var(--green); margin-top: auto; }
a.partner-card:hover .partner-card__go { text-decoration: underline; }
.partner-card h3 { font-size: 1.15rem; }
.partner-card p { font-size: var(--fs-fine); color: var(--ink-mute); }

/* Scrapbook */
.scrapbook__layout { display: grid; gap: 1.4rem; margin-top: 2.4rem; align-items: start; }
@media (min-width: 900px) {
  /* Facebook's page plugin renders at most 500px wide, so the feed
     keeps that width and real photos fill the rest of the row. */
  .scrapbook__layout { grid-template-columns: minmax(0, 500px) 1fr; }
}
.scrapbook__side { display: grid; gap: 1.4rem; }
.scrapbook-feed {
  margin: 0;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  overflow: hidden;
}
.scrapbook-feed iframe { display: block; width: 100%; height: 720px; border: 0; }
.scrapbook-feed__foot { padding: 1rem 1.2rem; border-top: 1px solid var(--line); text-align: center; }

/* ================================================================
   21. MOTION SYSTEM (only when the visitor allows it)
   All hiding happens under html.js-reveal, so content is always
   visible with JavaScript off or reduced motion on.
   ================================================================ */
@media (prefers-reduced-motion: no-preference) {
  html.js-reveal .reveal,
  html.js-reveal [data-reveal] {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  }
  html.js-reveal [data-reveal="left"]  { transform: translateX(-24px); }
  html.js-reveal [data-reveal="right"] { transform: translateX(24px); }
  html.js-reveal [data-reveal="scale"] { transform: scale(0.96); }
  html.js-reveal .reveal.is-visible,
  html.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }
  html.js-reveal .reveal.d2, html.js-reveal [data-reveal-delay="1"] { transition-delay: 0.1s; }
  html.js-reveal .reveal.d3, html.js-reveal [data-reveal-delay="2"] { transition-delay: 0.2s; }
  html.js-reveal [data-reveal-delay="3"] { transition-delay: 0.3s; }
}

/* ================================================================
   22. FLOATING WIDGETS — "Chat with us" + "Text Us"
   Markup lives near the bottom of index.html (search "FLOATING
   WIDGETS"); behavior in js/widgets.js. The back-to-top button
   moves to the bottom-LEFT here (overriding section 20 above) so
   the two launchers can own the bottom-right corner.
   Layer order: open panel 110 › scrim 105 › header 100 ›
   launchers 95 › back-to-top 90.
   ================================================================ */
.to-top {
  right: auto; left: 1.2rem;
  bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
}

/* Widgets show/hide via the hidden attribute — keep it authoritative
   even though display is set on these elements below. */
.fab[hidden], .chat-panel[hidden], .textus-panel[hidden], .widget-scrim[hidden] {
  display: none !important;
}

/* --- Launcher buttons ------------------------------------------- */
.fab {
  --fab-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
  position: fixed; right: 1.2rem; z-index: 95;
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 3.4rem; padding: 0.8rem 1.35rem;
  border-radius: var(--pill); border: 1px solid var(--glass-line);
  font-family: var(--sans); font-size: var(--fs-body); font-weight: 700;
  cursor: pointer; box-shadow: var(--shadow-lift);
}
@media (prefers-reduced-motion: no-preference) {
  .fab { transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) ease; }
  .fab:hover { transform: translateY(-2px); }
}
.fab--chat { bottom: var(--fab-bottom); background: var(--green); color: var(--cream); }
.fab--chat:hover { background: var(--green-deep); }
.fab--text {
  bottom: calc(var(--fab-bottom) + 3.4rem + 0.7rem);
  background: var(--white-warm); color: var(--green);
  border: 2px solid var(--sage);
}
.fab--text:hover { border-color: var(--green); background: var(--white); }
body.widget-open .fab { visibility: hidden; }

/* --- Scrim behind the mobile bottom sheet ------------------------ */
.widget-scrim {
  position: fixed; inset: 0; z-index: 105;
  background: rgba(16, 36, 26, 0.45);
}

/* --- Panels (shared shell) ---------------------------------------
   Under 720px both panels are full-width bottom sheets; from 720px
   they float above the launchers in the bottom-right corner. */
.chat-panel, .textus-panel {
  position: fixed; z-index: 110;
  left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column;
  max-height: 88vh; max-height: 88dvh;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-float);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 720px) {
  .chat-panel, .textus-panel {
    left: auto; right: 1.2rem;
    bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
    border-radius: var(--radius-lg);
    padding-bottom: 0;
  }
  .chat-panel {
    width: min(420px, calc(100vw - 2.4rem));
    max-height: min(640px, calc(100vh - 7rem));
    max-height: min(640px, calc(100dvh - 7rem));
  }
  .textus-panel { width: min(380px, calc(100vw - 2.4rem)); }
  .widget-scrim { display: none; }
}
@media (max-width: 719.98px) {
  body.widget-open { overflow: hidden; }
}
@media (prefers-reduced-motion: no-preference) {
  .chat-panel, .textus-panel { animation: widget-in var(--dur-med) var(--ease-out); }
  @keyframes widget-in {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
  }
}

.widget-panel__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem;
  padding: 1.05rem 1.2rem 0.85rem;
  border-bottom: 1px solid var(--line-soft);
  background: var(--white-warm);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.widget-panel__title { font-size: 1.25rem; }
.widget-panel__close {
  flex-shrink: 0; width: 2.6rem; height: 2.6rem;
  border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); color: var(--ink-soft);
  font-size: 1.05rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.widget-panel__close:hover { background: var(--sage-soft); color: var(--green); }
.widget-handoff {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.2rem 1rem;
  border-top: 1px solid var(--line-soft);
  background: var(--white-warm);
}
.widget-handoff .btn, .textus-fallback .btn {
  min-height: 2.5rem; padding: 0.45rem 1.05rem; font-size: var(--fs-small);
}

/* --- Chat: message log ------------------------------------------- */
.chat-log {
  flex: 1 1 auto; min-height: 9rem; overflow-y: auto;
  overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 0.65rem;
  padding: 1rem 1.2rem;
}
.chat-msg {
  max-width: 88%; padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-body); line-height: 1.55;
}
.chat-msg p { margin: 0; }
.chat-msg p + p { margin-top: 0.55rem; }
.chat-msg--user {
  align-self: flex-end; background: var(--green); color: var(--cream);
  border-bottom-right-radius: 4px;
}
.chat-msg--bot {
  align-self: flex-start; background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-bottom-left-radius: 4px;
}
.chat-msg--bot a { color: var(--green); font-weight: 700; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.chat-actions .btn { min-height: 2.4rem; padding: 0.4rem 0.95rem; font-size: var(--fs-small); }
.chat-sources {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem;
  margin-top: 0.55rem; font-size: var(--fs-fine);
}

/* Typing indicator — dots only pulse when motion is allowed */
.chat-typing { display: inline-flex; gap: 0.3rem; align-items: center; min-height: 1.2em; }
.chat-typing .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage-deep); }
@media (prefers-reduced-motion: no-preference) {
  .chat-typing .dot { animation: chat-dot 1.1s infinite var(--ease-inout); }
  .chat-typing .dot:nth-child(2) { animation-delay: 0.15s; }
  .chat-typing .dot:nth-child(3) { animation-delay: 0.3s; }
  @keyframes chat-dot {
    0%, 60%, 100% { opacity: 0.35; transform: none; }
    30% { opacity: 1; transform: translateY(-3px); }
  }
}

/* --- Chat: quick-topic chips + input row ------------------------- */
.chat-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0 1.2rem 0.8rem; }
.chat-chip {
  border: 1.5px solid var(--sage); border-radius: var(--pill);
  background: var(--white-warm); color: var(--green);
  font-family: var(--sans); font-size: var(--fs-small); font-weight: 700;
  padding: 0.4rem 0.9rem; min-height: 2.4rem; cursor: pointer;
}
.chat-chip:hover { border-color: var(--green); background: var(--white); }
.chat-form { display: flex; gap: 0.55rem; padding: 0 1.2rem 0.9rem; }
.chat-form input {
  flex: 1 1 auto; min-width: 0; min-height: 3rem;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--line); border-radius: var(--pill);
  background: var(--white); color: var(--ink);
  font-family: var(--sans);
  font-size: max(16px, var(--fs-body)); /* ≥16px so iOS never auto-zooms */
}
.chat-form input:focus-visible { border-color: var(--green); }

/* --- Text Us: topic picker --------------------------------------- */
.textus-body {
  display: flex; flex-direction: column; gap: 0.6rem;
  padding: 1rem 1.2rem 1.1rem; overflow-y: auto;
}
.textus-body > p { font-size: var(--fs-small); color: var(--ink-soft); }
.textus-topic { justify-content: flex-start; text-align: left; width: 100%; }
.textus-alt { margin: -0.15rem 0 0.25rem; }
.textus-fallback { border-top: 1px solid var(--line-soft); padding-top: 0.85rem; margin-top: 0.3rem; }
.textus-fallback p { font-size: var(--fs-small); color: var(--ink-soft); }
.textus-number {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem;
  margin-top: 0.45rem; font-size: var(--fs-lead); font-weight: 700;
}
.textus-number a { text-decoration: none; white-space: nowrap; }

/* ================================================================
   23. PRINT — floating controls never belong on paper
   ================================================================ */
@media print {
  .fab, .chat-panel, .textus-panel, .widget-scrim, .to-top { display: none !important; }
}
