/* ==========================================================================
   Presentation Manor — design system
   One token set, one type scale, one set of components.
   ========================================================================== */

:root {
  /* Brand */
  --plum: #43286b;
  --plum-deep: #2a1a42;
  --plum-mid: #54357f;
  --terracotta: #e0492b;
  --terracotta-deep: #c23a20; /* AA for small text on cream */
  --cream: #fbf7f1;
  --sand: #f3ebdf;
  --white: #ffffff;
  --ink: #3b3546;
  --muted: #635c70;
  --line: #e3dcea;
  --line-strong: #cfc4dd;

  /* Type */
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-h1: clamp(2.5rem, 1.65rem + 3.1vw, 4rem);      /* 40 -> 64 */
  --fs-h2: clamp(2rem, 1.5rem + 1.9vw, 2.75rem);      /* 32 -> 44 */
  --fs-h3: clamp(1.5rem, 1.28rem + 0.8vw, 1.9375rem); /* 24 -> 31 */
  --fs-h4: clamp(1.25rem, 1.15rem + 0.35vw, 1.4375rem);
  --fs-body: clamp(1.1875rem, 1.13rem + 0.22vw, 1.3125rem); /* 19 -> 21 */
  --fs-small: 1rem;
  --fs-lead: clamp(1.25rem, 1.12rem + 0.5vw, 1.5rem);  /* 20 -> 24 */
  --fs-eyebrow: 0.875rem;
  --fs-nav: 1.0625rem;
  --lh-body: 1.7;

  /* Space */
  --wrap: 1200px;
  --wrap-wide: 1360px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --band: clamp(3.5rem, 5.6vw, 5.25rem);
  --gap: clamp(1.5rem, 3vw, 2.5rem);

  /* Shape */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(42, 26, 66, 0.06);
  --shadow: 0 24px 48px -32px rgba(42, 26, 66, 0.45);
  --shadow-lift: 0 32px 60px -30px rgba(42, 26, 66, 0.35);
  --header-h: 96px;
}

/* --------------------------------------------------------------- reset */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--plum);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); line-height: 1.14; }
h3 { font-size: var(--fs-h3); line-height: 1.24; letter-spacing: -0.015em; }
h4 { font-size: var(--fs-h4); line-height: 1.3; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--plum); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta-deep); }

ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: 0.5em; }

strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--plum); color: #fff; padding: 0.75rem 1.25rem;
  border-radius: var(--r-sm); font-weight: 700;
}
.skip:focus { top: 1rem; color: #fff; }

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

.band { padding-block: var(--band); }
.band-sm { padding-block: clamp(1.75rem, 3vw, 2.75rem); }
.band-lg { padding-block: clamp(5rem, 9vw, 8rem); }

.tone-cream { background: var(--cream); }
.tone-white { background: var(--white); }
.tone-sand { background: var(--sand); }
.tone-plum { background: var(--plum); color: #efe8f6; }
.tone-plum h2, .tone-plum h3, .tone-plum h1 { color: #fff; }
.tone-plum .lead { color: #e6dcf2; }

main { display: block; }
#main:focus { outline: none; }

/* ------------------------------------------------------------- typography */
.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin: 0 0 1rem;
}
.eyebrow-light { color: #f6c9bb; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 1.2em;
}
.tone-plum .lead { color: #e6dcf2; }

.prose { max-width: 64ch; }
.prose p { margin-bottom: 1.15em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { margin-bottom: 1.3em; }
.prose a { text-decoration: underline; }

.section-head { max-width: 780px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .lead { margin-inline: auto; }
.section-head h2 { margin-bottom: 0.5em; margin-top: 0; }
.section-head .lead { margin-bottom: 0; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1.0625rem; color: var(--plum);
  text-decoration: none;
}
.text-link svg { transition: transform 0.25s ease; }
.text-link:hover svg { transform: translateX(4px); }


/* -------------------------------------------------------- prose additions */
.flow-h3 { margin: 2rem 0 0.6rem; }
.prose > .flow-h3:first-child { margin-top: 0; }
h2.long { font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.125rem); line-height: 1.24; }

.media-stack { display: grid; gap: 0.9rem; }
.media-primary { margin: 0; }
.inline-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.inline-gallery.is-single { grid-template-columns: 1fr; }
.inline-gallery figure { margin: 0; border-radius: var(--r-md); overflow: hidden; }
.inline-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.tour-embed {
  position: relative; aspect-ratio: 16 / 10; margin: 1.75rem 0;
  border-radius: var(--r-md); overflow: hidden; background: var(--plum-deep);
  box-shadow: var(--shadow-sm);
}
.tour-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 56px; padding: 0 2rem;
  font-family: var(--font); font-size: 1rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--r-pill);
  cursor: pointer; transition: background 0.2s ease, color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn-sm { min-height: 48px; padding: 0 1.25rem; font-size: 0.9063rem; }
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover { background: var(--plum-deep); color: #fff; box-shadow: var(--shadow); }

.btn-secondary { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn-secondary:hover { background: var(--plum); color: #fff; }

.btn-accent { background: var(--terracotta-deep); color: #fff; }
.btn-accent:hover { background: #a93018; color: #fff; box-shadow: var(--shadow); }

.btn-light { background: #fff; color: var(--plum); }
.btn-light:hover { background: var(--cream); color: var(--plum); }

.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(251, 247, 241, 0.94);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(42,26,66,0.4); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h);
}

.brand { display: block; flex: 0 0 auto; }
.brand img { width: clamp(158px, 11.5vw, 200px); height: auto; }

.primary-nav ul {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none; margin: 0; padding: 0;
}
.primary-nav li { margin: 0; }
.nav-item { position: relative; display: flex; align-items: center; }

.nav-link {
  display: inline-block; padding: 0.75rem 0.4rem;
  font-size: 0.9688rem; font-weight: 500; color: var(--ink);
  text-decoration: none; white-space: nowrap;
}
.nav-link:hover, .nav-link.is-active { color: var(--plum); font-weight: 600; }
.nav-link.is-active::after {
  content: ''; display: block; height: 3px; margin-top: 0.35rem;
  background: var(--terracotta); border-radius: 3px;
}

.nav-toggle {
  display: inline-grid; place-items: center;
  width: 26px; height: 44px; margin-left: -4px;
  background: none; border: 0; color: var(--muted); cursor: pointer;
  border-radius: 6px;
}
.nav-toggle .caret { transition: transform 0.25s ease; }
.nav-item.is-open .nav-toggle .caret { transform: rotate(180deg); }

.nav-panel {
  position: absolute; top: calc(100% + 6px); left: -0.75rem; z-index: 95;
  min-width: 300px; padding: 0.75rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow);
}
.nav-panel[hidden] { display: none; }
.nav-panel ul { display: block; list-style: none; margin: 0; padding: 0; }
.nav-panel li { margin: 0; }
.nav-panel a {
  display: block; padding: 0.7rem 1rem; border-radius: 10px;
  font-size: 1.0625rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.nav-panel a:hover { background: var(--cream); color: var(--plum); }

.header-actions { display: flex; align-items: center; gap: 0.9rem; flex: 0 0 auto; }
.header-phone {
  display: none; align-items: center; gap: 0.5rem;
  font-size: 1.0625rem; font-weight: 600; color: var(--plum); text-decoration: none;
}
.header-phone:hover { color: var(--terracotta-deep); }

.burger {
  display: none; width: 48px; height: 48px; padding: 0;
  background: none; border: 0; cursor: pointer;
}
.burger span {
  display: block; width: 26px; height: 2px; margin: 5px auto;
  background: var(--plum); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 85; overflow-y: auto;
  background: var(--cream); padding: calc(var(--header-h) + 1.5rem) var(--gutter) 3rem;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.m-link {
  display: block; padding: 0.9rem 0; font-size: 1.375rem; font-weight: 600;
  color: var(--plum); text-decoration: none; border-bottom: 1px solid var(--line);
}
.m-group { position: relative; }
.m-group .m-link { padding-right: 3.5rem; }
.m-toggle {
  position: absolute; right: 0; top: 6px; width: 52px; height: 52px;
  display: grid; place-items: center; background: none; border: 0;
  color: var(--plum); cursor: pointer;
}
.m-group.is-open .m-toggle .caret { transform: rotate(180deg); }
.m-sub[hidden] { display: none; }
.m-sub { padding: 0.25rem 0 0.75rem 1rem !important; }
.m-sub a {
  display: block; padding: 0.6rem 0; font-size: 1.1875rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
}
.m-donate { color: var(--terracotta-deep); }
.m-contact { margin-top: 2rem; color: var(--muted); }
.m-contact a { font-size: 1.25rem; font-weight: 700; color: var(--plum); text-decoration: none; }

/* ------------------------------------------------------------------ hero */
.hero-home {
  position: relative; display: grid; align-items: end;
  min-height: clamp(540px, 76vh, 780px);
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
  overflow: hidden; background: var(--plum-deep);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(42,26,66,0.9) 0%, rgba(42,26,66,0.62) 42%, rgba(42,26,66,0.18) 78%),
    linear-gradient(to top, rgba(42,26,66,0.55), rgba(42,26,66,0) 45%);
}
.hero-home-inner { position: relative; padding-block: clamp(3rem, 8vw, 6rem); }
.hero-home-copy { max-width: 660px; }
.hero-home-copy h1 { color: #fff; margin-bottom: 0.45em; max-width: 15ch; }
.hero-home-copy .lead { color: #f0e8f7; max-width: 44ch; }

.hero-page { background: var(--cream); padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4.5rem); }
.hero-page.tone-sand { background: var(--sand); }
.hero-page-inner { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-page-inner.has-image { grid-template-columns: 1.05fr 0.95fr; }
.hero-page-copy h1 { margin-bottom: 0.35em; max-width: 24ch; }
.hero-page-copy .lead { margin-bottom: 0; }
.hero-page-media img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow);
}

.crumbs { margin-bottom: 1.5rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; font-size: 0.9375rem; }
.crumbs li { margin: 0; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 0.5rem; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--plum); text-decoration: underline; }

/* ------------------------------------------------------------ media rows */
.media-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.media-row.is-flip .media-figure { order: 2; }
.media-figure { margin: 0; }
.media-figure img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.ratio-4-3 img { aspect-ratio: 4 / 3; }
.ratio-3-2 img { aspect-ratio: 3 / 2; }
.ratio-1-1 img { aspect-ratio: 1 / 1; }
.ratio-5-4 img { aspect-ratio: 5 / 4; }
.media-copy h2 { margin-bottom: 0.55em; }

/* ----------------------------------------------------------------- cards */
.living-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem);
}
.living-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.living-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.living-card-media { display: block; }
.living-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.living-card-body { padding: clamp(1.5rem, 2.5vw, 2rem); display: flex; flex-direction: column; flex: 1; }
.living-card h3 { font-size: clamp(1.375rem, 1.2rem + 0.5vw, 1.625rem); margin-bottom: 0.5em; }
.living-card h3 a { color: inherit; text-decoration: none; }
.living-card p { color: var(--muted); font-size: 1.0625rem; line-height: 1.65; margin-bottom: 1.5rem; }
.living-card .text-link { margin-top: auto; }

.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 4px solid var(--terracotta);
  box-shadow: var(--shadow-sm);
}
.feature-card h3 { font-size: clamp(1.25rem, 1.15rem + 0.35vw, 1.4375rem); margin-bottom: 0.5em; }
.feature-card p { color: var(--muted); font-size: 1.0625rem; line-height: 1.65; }
.feature-card .text-link { margin-top: 0.75rem; }

/* ------------------------------------------------------------ feature list */
.feature-list-wrap {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.feature-list-wrap.is-single { grid-template-columns: 1fr; max-width: 900px; }
.feature-list-media { margin: 0; }
.feature-list-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.check-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.check-list li { display: flex; gap: 0.9rem; align-items: flex-start; margin: 0; font-size: 1.0625rem; line-height: 1.6; }
.check {
  flex: 0 0 26px; width: 26px; height: 26px; margin-top: 0.15rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--plum); color: #fff;
}
.tone-plum .check { background: var(--terracotta); }

/* --------------------------------------------------------------- gallery */
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
.strip-item { margin: 0; overflow: hidden; border-radius: var(--r-md); }
.strip-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.4s ease; }
.strip-item:hover img { transform: scale(1.04); }
.strip-item.is-wide { grid-column: span 2; grid-row: span 2; }
.strip-item.is-wide img { aspect-ratio: 1 / 1; }

.gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 780px) { .gallery-grid.cols-3 { grid-template-columns: 1fr 1fr; } }
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: var(--r-md); background: var(--sand); }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }

/* ----------------------------------------------------------------- quote */
.quote-band { padding-block: clamp(4rem, 8vw, 7rem); }
.tone-plum.quote-band { background: linear-gradient(140deg, var(--plum) 0%, var(--plum-deep) 100%); }
.quote-wrap { max-width: 940px; }
.quote-mark { color: var(--terracotta); opacity: 0.9; margin-bottom: 1.5rem; }
.quote-band blockquote { margin: 0; }
.quote-band blockquote p {
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.4; letter-spacing: -0.015em; color: #fff; font-weight: 500;
}
.quote-cite { margin-top: 1.5rem; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: #d9c9ea; }

/* ------------------------------------------------------------------- cta */
.cta-band-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.cta-band-inner.is-single { grid-template-columns: 1fr; max-width: 820px; }
.cta-band h2 { margin-bottom: 0.5em; }
.cta-band .lead { margin-bottom: 0; }
.cta-band-media { margin: 0; }
.cta-band-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
.tone-plum.cta-band { background: linear-gradient(120deg, var(--plum) 0%, var(--plum-deep) 100%); }

/* ---------------------------------------------------------------- videos */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.video-card {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--plum-deep);
  border-radius: var(--r-md); overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.video-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0.92; }
.video-card .play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,0.94); color: var(--plum);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.video-card:hover .play { background: #fff; transform: scale(1.06); }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem); background: rgba(20, 11, 32, 0.94);
}
.lightbox[hidden] { display: none; }
.lightbox video { width: min(1100px, 100%); max-height: 82vh; border-radius: var(--r-md); background: #000; }
.lightbox-close {
  position: absolute; top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem);
  width: 56px; height: 56px; display: grid; place-items: center;
  background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%; font-size: 1.5rem; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }

/* ------------------------------------------------------------------ form */
.tour-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 1.0625rem; font-weight: 600; color: var(--plum); }
.req { color: var(--terracotta-deep); }
.field input, .field textarea {
  font-family: var(--font); font-size: 1.125rem; color: var(--ink);
  padding: 0.9rem 1rem; min-height: 60px;
  background: #fff; border: 2px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--plum);
  box-shadow: 0 0 0 4px rgba(67, 40, 107, 0.12);
}
.field.has-error input, .field.has-error textarea { border-color: var(--terracotta-deep); }
.error { color: var(--terracotta-deep); font-size: 1rem; margin: 0; }
.form-actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 1.25rem; }
.form-note { font-size: 1rem; color: var(--muted); margin: 0; }
.form-status { grid-column: 1 / -1; margin: 0; font-size: 1.0625rem; }
.form-status.is-ok { color: #1c6b4a; font-weight: 600; }
.form-status.is-err { color: var(--terracotta-deep); font-weight: 600; }
.form-success {
  background: #fff; border: 2px solid var(--plum); border-radius: var(--r-md);
  padding: clamp(1.75rem, 4vw, 2.5rem); text-align: center;
}
.form-success h3 { margin-bottom: 0.5em; }

/* ------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-card {
  background: #fff; border-radius: var(--r-lg); padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm); border-top: 4px solid var(--terracotta);
}
.contact-card h3 { margin-bottom: 0.75em; }
.contact-card address { font-style: normal; font-size: 1.125rem; margin-bottom: 1.5rem; }
.contact-card address p { margin-bottom: 0.6em; }
.contact-card a { color: var(--plum); font-weight: 600; }
.map-block { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-block iframe { display: block; border: 0; width: 100%; }

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { margin-bottom: 1rem; }


/* --------------------------------------------------------------- services */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 2.5vw, 2rem); }
.detail-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(1.5rem, 2.5vw, 2rem); border-top: 4px solid var(--terracotta);
}
.detail-card h3 { font-size: 1.375rem; margin-bottom: 0.75em; }
.detail-card .check-list { margin-top: 0; gap: 0.75rem; }

/* ------------------------------------------------------------- 3D tours */
.tour-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 2.5vw, 2rem); }
.tour-card { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--plum-deep); }
.tour-stage {
  position: relative; display: grid; align-content: center; justify-items: center; gap: 1.1rem;
  aspect-ratio: 16 / 10; padding: 2rem; text-align: center;
  background-color: var(--plum-deep);
  background-size: cover; background-position: center;
  transition: background-size 600ms ease;
}
.tour-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour-scrim {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(42,26,66,0.15) 0%, rgba(42,26,66,0.74) 100%);
}
.tour-stage > *:not(.tour-scrim) { position: relative; z-index: 1; }
.tour-label {
  color: #fff; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  font-size: 0.9375rem; margin: 0; text-shadow: 0 1px 14px rgba(42,26,66,0.55);
}
.tour-card:hover .tour-stage, .tour-card:focus-within .tour-stage { background-size: 106%; }

/* ------------------------------------------------------------ tour page */
.tour-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.tour-form-col h2 { margin-bottom: 0.4em; }
.tour-aside { display: grid; gap: 1.5rem; }
.aside-note { font-size: 1.0625rem; color: var(--muted); margin: 1rem 0 0; }
.aside-note-card {
  background: var(--cream); border-radius: var(--r-md); padding: clamp(1.5rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
}
.aside-note-card h3 { font-size: 1.25rem; margin-bottom: 0.4em; }
.aside-note-card p { margin: 0; color: var(--muted); }
.center { text-align: center; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--plum-deep); color: #d8cfe4; padding-top: clamp(3rem, 6vw, 5rem); }
.footer-top {
  display: grid; grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: clamp(1.75rem, 3.2vw, 2.75rem); padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
.brand-foot img { width: 200px; }
.brand-foot { display: inline-block; margin-bottom: 1.25rem; }
.foot-blurb { font-size: 1.0625rem; line-height: 1.6; color: #c3b7d4; max-width: 32ch; margin-bottom: 1.4rem; }
.foot-brand address { font-style: normal; display: grid; gap: 0.5rem; margin-bottom: 1.5rem; }
.foot-brand address a, .foot-col a { color: #e4dcee; text-decoration: none; font-size: 1.0625rem; line-height: 1.5; }
.foot-brand address a:hover, .foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-social { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.9375rem; color: #a99ec0; }
.foot-social a { color: #d8cfe4; text-decoration: none; }
.foot-social a:hover { color: #fff; text-decoration: underline; }
.foot-title {
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #f0e9f8; margin: 0 0 1rem;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.foot-col li { margin: 0; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: 1.5rem; border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 1rem; color: #b7abca;
}
.footer-bottom p { margin: 0; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.foot-legal a { color: #e4dcee; text-decoration: none; }
.foot-legal a:hover { color: #fff; text-decoration: underline; }

/* --------------------------------------------------------------- helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2rem); }
.stack-lg > * + * { margin-top: clamp(2rem, 4vw, 3rem); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------ responsive */

/* ------------------------------------------------------- editorial text */
.text-section {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 5.5rem); align-items: start;
}
.text-section-head h2 { margin-bottom: 0.5em; }
.text-section-head .lead { margin-bottom: 1.4em; }
.text-section-head .text-rule {
  width: 72px; height: 4px; background: var(--terracotta); border-radius: 4px; margin-bottom: 1.75rem;
}
.text-section .prose { max-width: 62ch; }
.text-section .prose p:first-child { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink); }
.text-section-head h2.long { font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2rem); line-height: 1.25; }

.intro-prose { max-width: 74ch; }
.intro-prose p { font-size: var(--fs-body); line-height: 1.75; }
.intro-prose .intro-lead {
  font-size: clamp(1.3125rem, 1.15rem + 0.6vw, 1.625rem);
  line-height: 1.55; color: var(--plum); font-weight: 500; letter-spacing: -0.01em;
  margin-bottom: 1.2em;
}

@media (max-width: 1279px) {
  .primary-nav { display: none; }
  .burger { display: block; }
  .header-phone { display: none; }
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1500px) { .header-phone { display: inline-flex; } }

@media (max-width: 980px) {
  .detail-grid, .tour-grid, .tour-layout { grid-template-columns: 1fr; }
  :root { --header-h: 80px; }
  .brand img { width: 176px; }
  .hero-page-inner.has-image, .text-section,
  .media-row, .media-row.is-flip,
  .feature-list-wrap, .cta-band-inner, .contact-grid, .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .media-row.is-flip .media-figure { order: 0; }
  .living-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .tour-form { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { gap: 0.75rem; }
  .header-actions .btn-sm { display: none; }
  .hero-home-copy { max-width: none; }
  .footer-bottom { flex-direction: column; }
  .video-grid { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
  .strip-item.is-wide { grid-column: auto; grid-row: auto; }
}

/* tour grids inside migrated pages */
.tour-grid-2 { grid-template-columns: 1fr 1fr; }
.tour-inline { max-width: 620px; }

/* long editorial media rows: give the copy more room */
.media-row.is-long { grid-template-columns: 0.82fr 1.18fr; gap: clamp(2rem, 5vw, 4.5rem); }
.media-row.is-long .prose { max-width: 66ch; }

@media (max-width: 900px) {
  .media-row.is-long { grid-template-columns: 1fr; }
  .media-row.is-long.is-flip .media-figure { order: 0; }
}

/* long unbroken strings (emails, URLs) must never widen a grid column */
.media-row > *, .text-section > *, .feature-list-wrap > *, .cta-band-inner > * { min-width: 0; }
.prose a, .prose p, .contact-card a { overflow-wrap: anywhere; }

/* text safety net for narrow screens */
h1, h2, h3, h4, p, li, blockquote { overflow-wrap: break-word; }
.btn { max-width: 100%; }

/* the brand mark keeps its colour on the dark footer thanks to a light chip */
.foot-logo-chip { display: inline-block; background: var(--cream); border-radius: 14px; padding: 0.65rem 0.9rem; }
.foot-logo-chip .brand img { width: 168px; }

/* long source headings appear as display text, not as H2s */
.long-heading {
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
  line-height: 1.32; font-weight: 600; color: var(--plum);
  letter-spacing: -0.015em; margin: 0 0 0.6em; text-wrap: balance;
}

/* labelled spaces (dining rooms, community rooms) */
.room-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 2.5vw, 2rem); }
.room-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.room-card { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.room-card figure { margin: 0; }
.room-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.room-card-body { padding: 1.35rem 1.5rem 1.6rem; }
.room-card h3 { font-size: 1.375rem; margin-bottom: 0.35em; }
.room-card p { margin: 0; color: var(--muted); font-size: 1.0625rem; }
@media (max-width: 760px) { .room-grid, .room-grid.cols-3 { grid-template-columns: 1fr; } }

/* names that sit beside a photo run, kept as readable text */
.name-list {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem;
  list-style: none; margin: 2rem 0 0; padding: 0;
  font-size: 1.0625rem; color: var(--plum); font-weight: 600;
}
.name-list li { margin: 0; display: flex; align-items: center; gap: 0.55rem; }
.name-list li::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--terracotta); flex: 0 0 auto;
}
