/* Rico Homes component system. Every page loads css/tokens.css then this file;
   nothing else styles the public site. Components use the rh- prefix and read
   only tokens - a raw colour or size here is a bug.

   Structure: base, layout, type, actions, header and menu, footer, sections,
   property card, development page, forms, journal, motion. */

/* ---- base ------------------------------------------------------------------ */
/* Without this reset padding adds to width, and padded blocks overflowed a
   375px viewport so the page scrolled sideways on a phone. */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-height) + 16px); }
body.rh-page {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.rh-menu-open { overflow: hidden; }
img, video { max-width: 100%; }
a { color: var(--color-brand); }
a:hover { color: var(--color-brand-hover); }
:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }
.rh-inverse :focus-visible { outline-color: var(--color-text-inverse); }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; }
dl, dd { margin: 0; }
figure { margin: 0; }
button { font: inherit; }
[hidden] { display: none !important; }

.rh-skip {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  padding: var(--space-3) var(--space-4); background: var(--color-brand); color: var(--color-text-inverse);
}
.rh-skip:focus { top: var(--space-4); color: var(--color-text-inverse); }
.rh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- layout ---------------------------------------------------------------- */
.rh-wrap {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--page-margin));
  margin-inline: auto;
  padding-inline: var(--page-margin);
}
.rh-section { padding-block: var(--space-section); }
.rh-section--sand { background: var(--color-surface-sunken); }
.rh-section--rule { border-top: 1px solid var(--color-border); }
.rh-inverse { background: var(--color-brand); color: var(--color-text-inverse); }
.rh-inverse a { color: var(--color-text-inverse); }

/* asymmetric two-column grids; stack at 900px */
.rh-split   { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-12) clamp(40px, 6vw, 96px); }
.rh-split-r { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-12) clamp(40px, 6vw, 96px); }
.rh-split-l { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-12) clamp(40px, 6vw, 96px); }
.rh-align-end { align-items: end; }
.rh-align-center { align-items: center; }

.rh-section-head { margin-bottom: var(--space-12); }

/* spacing utilities, for the odd one-off gap between blocks */
.rh-mt-2 { margin-top: var(--space-2); }
.rh-mt-3 { margin-top: var(--space-3); }
.rh-mt-4 { margin-top: var(--space-4); }
.rh-mt-6 { margin-top: var(--space-6); }
.rh-mt-8 { margin-top: var(--space-8); }
.rh-mt-12 { margin-top: var(--space-12); }

/* ---- type ------------------------------------------------------------------ */
.rh-eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 var(--space-6);
  font-size: var(--text-label); font-weight: 600; line-height: 1.4;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-text-muted);
}
.rh-eyebrow::before { content: ''; flex: none; width: 32px; height: 1px; background: var(--color-accent); }
.rh-inverse .rh-eyebrow { color: var(--color-text-inverse-muted); }
.rh-inverse .rh-eyebrow::before { background: var(--color-accent-inverse); }

.rh-display, .rh-h1, .rh-h2, .rh-h3, .rh-title {
  font-family: var(--font-display); font-weight: 500;
  overflow-wrap: break-word; hyphens: auto;
}
.rh-display { font-size: var(--text-display); line-height: 0.98; letter-spacing: -0.015em; }
.rh-h1      { font-size: var(--text-h1); line-height: 1; letter-spacing: -0.015em; }
.rh-h2      { font-size: var(--text-h2); line-height: 1.05; letter-spacing: -0.01em; }
.rh-h3      { font-size: var(--text-h3); line-height: 1.1; }
.rh-title   { font-size: var(--text-title); line-height: 1.1; }
.rh-lede    { font-size: var(--text-lead); line-height: 1.6; color: var(--color-text-secondary); max-width: 36em; }
.rh-copy    { color: var(--color-text-secondary); max-width: 38em; }
.rh-copy + .rh-copy { margin-top: var(--space-4); }
.rh-muted   { color: var(--color-text-muted); }
.rh-small   { font-size: var(--text-small); }
.rh-label {
  font-size: var(--text-label); font-weight: 600; letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--color-text-muted);
}
.rh-inverse .rh-lede, .rh-inverse .rh-copy { color: var(--color-text-inverse-muted); }

/* ---- actions --------------------------------------------------------------- */
.rh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  font-family: var(--font-body); font-size: var(--text-ui); font-weight: 500; letter-spacing: 0.03em;
  text-decoration: none; line-height: 1.2; text-align: center;
  background: var(--color-brand); color: var(--color-text-inverse);
  border: 1px solid var(--color-brand); border-radius: var(--radius-sm); cursor: pointer;
  transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}
.rh-btn:hover { background: var(--color-brand-hover); border-color: var(--color-brand-hover); color: var(--color-text-inverse); }
.rh-btn:disabled { opacity: 0.6; cursor: progress; }
.rh-btn--secondary { background: transparent; color: var(--color-text); border-color: var(--color-text); }
.rh-btn--secondary:hover { background: var(--color-text); border-color: var(--color-text); color: var(--color-text-inverse); }
.rh-btn--light { background: var(--color-text-inverse); color: var(--color-brand); border-color: var(--color-text-inverse); font-weight: 600; }
.rh-btn--light:hover { background: var(--color-surface); color: var(--color-brand-hover); border-color: var(--color-surface); }
.rh-btn--ghost-light { background: transparent; color: var(--color-text-inverse); border-color: rgba(245, 242, 236, 0.45); }
.rh-btn--ghost-light:hover { background: rgba(245, 242, 236, 0.08); color: var(--color-text-inverse); border-color: var(--color-text-inverse); }
.rh-btn--small { min-height: 44px; padding: 0 22px; font-size: 0.875rem; }
.rh-btn--block { display: flex; width: 100%; }
.rh-btn svg, .rh-link svg { flex: none; }

.rh-link {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  font-size: var(--text-ui); font-weight: 500; color: var(--color-brand); text-decoration: none;
}
.rh-link span { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.rh-link svg { transition: transform var(--duration-base) ease; }
.rh-link:hover svg { transform: translateX(4px); }
.rh-link--plain { color: var(--color-text); }

.rh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-8); margin-top: var(--space-12); }
.rh-actions--flush { margin-top: 0; }

.rh-badge {
  display: inline-block; padding: 4px 8px;
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--color-brand); line-height: 1.3;
}

/* ---- header ---------------------------------------------------------------- */
.rh-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245, 242, 236, 0.96);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--duration-base) ease;
}
@supports (backdrop-filter: blur(8px)) {
  .rh-header { background: rgba(245, 242, 236, 0.9); backdrop-filter: blur(8px); }
}
.rh-header.is-compact { box-shadow: var(--shadow-sm); }
.rh-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-8);
  height: var(--header-height);
  transition: height var(--duration-base) ease;
}
.rh-header.is-compact .rh-header-inner { height: var(--header-height-compact); }

.rh-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--color-text); text-decoration: none; }
.rh-logo:hover { color: var(--color-text); }
.rh-logo img { display: block; width: 36px; height: 36px; }
.rh-logo span { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: 0.2em; line-height: 1; white-space: nowrap; }

.rh-nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 36px); }
.rh-nav a {
  position: relative; padding: 6px 0;
  font-size: var(--text-ui); color: var(--color-text); text-decoration: none;
}
.rh-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--duration-base) ease;
}
.rh-nav a:hover { color: var(--color-brand); }
.rh-nav a:hover::after, .rh-nav a[aria-current="page"]::after { transform: scaleX(1); }
.rh-nav a[aria-current="page"] { color: var(--color-brand); }

.rh-header-actions { display: flex; align-items: center; gap: var(--space-6); }
.rh-header-phone { font-size: 0.875rem; color: var(--color-text-secondary); text-decoration: none; white-space: nowrap; }
.rh-menu-btn {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  color: var(--color-text); cursor: pointer;
}

@media (max-width: 1180px) { .rh-header-phone { display: none; } }
@media (max-width: 1000px) {
  .rh-nav { display: none; }
  .rh-menu-btn { display: inline-flex; }
}
@media (max-width: 560px) {
  :root { --header-height: 64px; --header-height-compact: 60px; }
  .rh-logo img { width: 28px; height: 28px; }
  .rh-logo span { font-size: 18px; }
  .rh-header-actions .rh-btn { display: none; }
}

/* full-screen menu sheet, phone and tablet */
.rh-menu {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  background: var(--color-ink-surface); color: var(--color-text-inverse);
  overflow-y: auto;
}
.rh-menu-top {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-height); padding-inline: var(--page-margin);
  border-bottom: 1px solid var(--color-on-ink-border);
}
.rh-menu-top span { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.2em; }
.rh-menu-close {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: none; color: var(--color-text-inverse); border: 1px solid var(--color-on-ink-border); border-radius: var(--radius-sm); cursor: pointer;
}
.rh-menu nav { display: grid; padding: var(--space-6) var(--page-margin) 0; }
.rh-menu nav a {
  padding: 14px 0; border-bottom: 1px solid var(--color-on-ink-border);
  font-family: var(--font-display); font-size: 36px; line-height: 1.1;
  color: var(--color-text-inverse); text-decoration: none;
}
.rh-menu nav a[aria-current="page"] { color: var(--color-accent-inverse); }
.rh-menu-actions { margin-top: auto; display: grid; gap: var(--space-3); padding: var(--space-6) var(--page-margin) var(--space-8); }
.rh-menu-actions .rh-btn--ghost-light { border-color: var(--color-text-muted); }

/* ---- footer ---------------------------------------------------------------- */
.rh-footer { background: var(--color-ink-surface); color: var(--color-on-ink); font-size: var(--text-ui); }
.rh-footer a { color: var(--color-on-ink); text-decoration: none; }
.rh-footer a:hover { color: var(--color-text-inverse); }
.rh-footer-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--space-12); padding-top: var(--space-16);
}
.rh-footer .rh-logo span { color: var(--color-text-inverse); font-size: 20px; }
.rh-footer .rh-logo img { width: 32px; height: 32px; }
.rh-footer h2 {
  margin-bottom: var(--space-4);
  font-family: var(--font-body); font-size: var(--text-label); font-weight: 600;
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-on-ink-muted);
}
.rh-footer ul { list-style: none; display: grid; gap: 4px; }
.rh-footer li a { display: inline-flex; align-items: center; min-height: 36px; }
.rh-footer-blurb { margin-top: var(--space-4); max-width: 22em; }
.rh-footer-news { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin-top: var(--space-6); max-width: 320px; }
.rh-footer-news label { font-size: var(--text-small); color: var(--color-on-ink); }
.rh-footer-news-row { display: flex; gap: var(--space-2); }
.rh-footer-news input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 12px;
  font: inherit; font-size: 16px; color: var(--color-text-inverse);
  background: var(--color-on-ink-field); border: 1px solid var(--color-on-ink-field-border); border-radius: var(--radius-sm);
}
.rh-footer-news button {
  min-height: 44px; padding: 0 16px; font: inherit; font-size: 0.875rem; font-weight: 500;
  color: var(--color-ink-surface); background: var(--color-text-inverse); border: 0; border-radius: var(--radius-sm); cursor: pointer;
}
.rh-footer-news .rh-form-status { color: var(--color-on-ink); }
.rh-footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3);
  margin-top: var(--space-16); padding-block: var(--space-6) var(--space-8);
  border-top: 1px solid var(--color-on-ink-border); font-size: var(--text-small); color: var(--color-on-ink-muted);
}
@media (max-width: 900px) {
  .rh-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rh-footer-grid > :first-child, .rh-footer-grid > :last-child { grid-column: 1 / -1; }
}

/* ---- home hero ------------------------------------------------------------- */
.rh-hero { padding-top: clamp(40px, 7vw, 104px); padding-bottom: var(--space-section); }
.rh-hero .rh-lede { margin-top: var(--space-8); }
.rh-hero-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6);
  margin-top: var(--space-16); padding-top: 28px; border-top: 1px solid var(--color-border);
}
.rh-hero-facts dt, .rh-facts dt {
  font-size: var(--text-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted);
}
.rh-hero-facts dd, .rh-facts dd {
  margin-top: 6px; font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.1;
}

.rh-frame { position: relative; overflow: hidden; background: var(--color-image-well); }
.rh-frame > img, .rh-frame > .rh-img, .rh-frame > .rh-img > img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.rh-frame--4x5 { aspect-ratio: 4 / 5; }
.rh-frame--3x2 { aspect-ratio: 3 / 2; }
.rh-frame--4x3 { aspect-ratio: 4 / 3; }
.rh-caption {
  display: flex; justify-content: space-between; gap: var(--space-4);
  margin-top: 14px; font-size: var(--text-small); color: var(--color-text-muted);
}

/* the one place a render runs full width; cropped only as an overflow guard */
.rh-bleed { position: relative; background: var(--color-ink-surface); }
.rh-bleed img { display: block; width: 100%; height: auto; max-height: 78vh; min-height: 300px; object-fit: cover; object-position: 50% 55%; }
.rh-bleed figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 28px;
  display: flex; justify-content: space-between; gap: var(--space-4);
  font-size: var(--text-small); color: var(--color-text-inverse); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

/* numbered process list */
.rh-steps { list-style: none; border-top: 1px solid var(--color-text); }
.rh-steps li {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--space-6);
  padding: 28px 0; border-bottom: 1px solid var(--color-border);
}
.rh-steps .rh-num { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--color-accent); }
.rh-steps h3 { font-family: var(--font-display); font-size: 28px; line-height: 1.15; }
.rh-steps p { margin-top: var(--space-2); color: var(--color-text-secondary); }

/* trust points on green */
.rh-points {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: var(--space-16); border-top: 1px solid var(--color-border-inverse); list-style: none;
}
.rh-points li { padding: var(--space-8) var(--space-8) 0 0; }
.rh-points h3 { font-family: var(--font-display); font-size: 26px; line-height: 1.15; }
.rh-points p { margin-top: var(--space-3); font-size: 1rem; color: var(--color-text-inverse-muted); }
@media (max-width: 1080px) { .rh-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- property card --------------------------------------------------------- */
.rh-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-12) var(--gutter); list-style: none; }
.rh-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rh-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16) clamp(24px, 4vw, 64px); }
@media (max-width: 1080px) { .rh-cards, .rh-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .rh-cards, .rh-cards--3, .rh-cards--2 { grid-template-columns: minmax(0, 1fr); } }

.rh-card { position: relative; display: flex; flex-direction: column; height: 100%; }
.rh-card .rh-frame img { transition: transform var(--duration-slow) var(--ease-out); }
.rh-card:hover .rh-frame img { transform: scale(1.03); }
.rh-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.rh-card-price { margin-top: var(--space-4); font-size: var(--text-ui); font-weight: 500; }
.rh-card-title { margin-top: 6px; font-family: var(--font-display); font-weight: 500; font-size: var(--text-title); line-height: 1.1; overflow-wrap: break-word; }
.rh-card-title a { color: var(--color-text); text-decoration: none; }
/* the whole card is one link target, announced once, by its title */
.rh-card-title a::after { content: ''; position: absolute; inset: 0; }
.rh-card-title a:focus-visible { outline: none; }
.rh-card:focus-within { outline: 2px solid var(--color-brand); outline-offset: 6px; }
.rh-card-location { margin-top: var(--space-1); font-size: var(--text-ui); color: var(--color-text-muted); }
.rh-card-specs { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--color-border); font-size: 0.875rem; color: var(--color-text-secondary); }
.rh-card-cta { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 500; color: var(--color-brand); }
.rh-card-cta svg { transition: transform var(--duration-base) ease; }
.rh-card:hover .rh-card-cta svg { transform: translateX(4px); }

.rh-card--wide .rh-card-title { font-size: var(--text-h3); }
.rh-card--wide .rh-card-summary { margin-top: var(--space-3); color: var(--color-text-secondary); }

.rh-state { padding-block: var(--space-12); max-width: 36em; }
.rh-state h2 { font-family: var(--font-display); font-size: var(--text-h3); line-height: 1.1; }
.rh-state p { margin-top: var(--space-3); color: var(--color-text-secondary); }

/* skeleton while Firestore answers */
.rh-skel { background: linear-gradient(90deg, var(--color-image-well) 0%, var(--color-surface-sunken) 50%, var(--color-image-well) 100%); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .rh-skel { animation: rh-shimmer 1.4s ease-in-out infinite; }
  @keyframes rh-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
}
.rh-skel-card { aspect-ratio: 4 / 5; }

/* ---- development page ------------------------------------------------------ */
.rh-crumbs { padding-block: 28px 24px; font-size: var(--text-small); color: var(--color-text-muted); }
.rh-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 10px; }
.rh-crumbs li + li::before { content: '/'; margin-right: 10px; }
.rh-crumbs a { color: var(--color-text-muted); text-decoration: none; }
.rh-crumbs a:hover { color: var(--color-brand); }
.rh-crumbs [aria-current] { color: var(--color-text); }

.rh-mosaic { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); grid-template-rows: repeat(2, clamp(180px, 21vw, 300px)); gap: 12px; }
.rh-mosaic > :first-child { grid-row: 1 / 3; }
.rh-mosaic--single { grid-template-columns: minmax(0, 1fr); grid-template-rows: clamp(280px, 42vw, 612px); }
.rh-mosaic--single > :first-child { grid-row: auto; }
.rh-mosaic .rh-frame { height: 100%; }
.rh-mosaic-more {
  position: absolute; right: var(--space-4); bottom: var(--space-4);
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px;
  background: var(--color-background); color: var(--color-text);
  font-size: 0.875rem; font-weight: 500; text-decoration: none; border-radius: var(--radius-sm);
}
.rh-mosaic-count {
  display: none; position: absolute; right: var(--space-3); bottom: var(--space-3); padding: 6px 10px;
  background: rgba(23, 25, 26, 0.72); color: var(--color-text-inverse); font-size: 12px; font-weight: 500; border-radius: var(--radius-sm);
}

.rh-dev { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-12) clamp(40px, 5vw, 80px); align-items: start; padding-top: var(--space-12); }
.rh-dev-head .rh-card-meta { margin: 0 0 18px; }
.rh-dev-location { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--color-text-secondary); }
.rh-dev-section { padding-top: clamp(56px, 6vw, 80px); }
.rh-dev-section > h2 { margin-bottom: var(--space-6); }
.rh-dev-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-3); margin-bottom: 20px; }
.rh-dev-section-head h2 { margin: 0; }

.rh-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-top: var(--space-10); border-top: 1px solid var(--color-text); border-bottom: 1px solid var(--color-border);
}
.rh-facts > div { padding: 20px 16px 20px 0; }

.rh-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-8); color: var(--color-text-secondary); }
.rh-list li { padding: 13px 0; border-top: 1px solid var(--color-border); }
.rh-list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.rh-aside {
  position: sticky; top: calc(var(--header-height-compact) + 24px);
  padding: var(--space-8); background: var(--color-surface); border: 1px solid var(--color-border);
}
.rh-aside-price { margin-top: 6px; font-family: var(--font-display); font-size: 40px; line-height: 1.05; }
.rh-aside .rh-btn { width: 100%; }
.rh-aside-actions { display: grid; gap: var(--space-3); margin-top: 28px; }
.rh-checks { list-style: none; display: grid; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--color-border); font-size: 0.875rem; color: var(--color-text-secondary); }
.rh-checks li { display: flex; gap: 10px; }
.rh-checks svg { flex: none; margin-top: 2px; color: var(--color-brand); }

/* unit mix: a table on desktop, a list of rows on a phone */
.rh-units-wrap { overflow-x: auto; }
.rh-units { width: 100%; border-collapse: collapse; font-size: 1rem; }
.rh-units thead tr { border-bottom: 1px solid var(--color-text); }
.rh-units th[scope="col"] {
  padding: 12px 16px; text-align: left; font-size: var(--text-label); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted);
}
.rh-units th[scope="col"]:first-child { padding-left: 0; }
.rh-units tbody tr { border-bottom: 1px solid var(--color-border); transition: background-color var(--duration-fast) ease; }
.rh-units tbody tr:hover { background: rgba(235, 230, 220, 0.6); }
.rh-units td, .rh-units tbody th { padding: 18px 16px; text-align: left; vertical-align: baseline; }
.rh-units tbody th { padding-left: 0; font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.2; }
.rh-units .rh-unit-price { text-align: right; padding-right: 0; font-weight: 500; white-space: nowrap; }
.rh-units th.rh-unit-price { text-align: right; }
.rh-units .rh-unit-summary { display: none; }

.rh-drive { list-style: none; border-top: 1px solid var(--color-text); margin-top: 28px; }
.rh-drive li { display: flex; align-items: baseline; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.rh-drive strong { flex: none; width: 76px; font-family: var(--font-display); font-weight: 500; font-size: 30px; line-height: 1; }

.rh-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; }
.rh-gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.rh-gallery a { display: block; height: 100%; }
.rh-gallery .rh-frame { height: 100%; min-height: 200px; }
.rh-gallery img { transition: transform var(--duration-slow) var(--ease-out); }
.rh-gallery a:hover img { transform: scale(1.03); }

.rh-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.rh-videos video { display: block; width: 100%; background: var(--color-ink-surface); }

.rh-adviser {
  display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: var(--space-6) var(--space-10); align-items: center;
  padding: var(--space-10); background: var(--color-surface); border: 1px solid var(--color-border);
}
.rh-adviser img { display: block; width: 160px; height: 200px; object-fit: cover; object-position: 50% 15%; background: var(--color-image-well); }
.rh-adviser--compact { grid-template-columns: 112px minmax(0, 1fr); padding: var(--space-6); }
.rh-adviser--compact img { width: 112px; height: 140px; }
.rh-adviser .rh-copy { margin-top: var(--space-2); }
.rh-adviser-name { margin-top: var(--space-2); font-family: var(--font-display); font-size: 32px; line-height: 1.1; }
.rh-adviser-contact { display: grid; gap: var(--space-2); font-size: var(--text-ui); }
.rh-adviser-contact a { color: var(--color-text); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }

.rh-map { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; background: var(--color-image-well); }

/* bottom bar on a phone: the enquiry action stays in reach */
.rh-sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: none; grid-template-columns: minmax(0, 1fr) 52px; gap: 10px;
  padding: 12px var(--page-margin) calc(12px + env(safe-area-inset-bottom));
  background: rgba(245, 242, 236, 0.97); border-top: 1px solid var(--color-border);
}
.rh-sticky-bar .rh-btn--secondary { padding: 0; }

@media (max-width: 1000px) {
  .rh-dev { grid-template-columns: minmax(0, 1fr); }
  .rh-aside { position: static; }
  .rh-sticky-bar { display: grid; }
  .rh-has-sticky-bar { padding-bottom: 80px; }
}
@media (max-width: 700px) {
  .rh-mosaic { grid-template-columns: minmax(0, 1fr); grid-template-rows: 300px; margin-inline: calc(-1 * var(--page-margin)); }
  .rh-mosaic > :not(:first-child), .rh-mosaic-more { display: none; }
  .rh-mosaic > :first-child { grid-row: auto; }
  .rh-mosaic-count { display: block; }
  .rh-list--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rh-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rh-adviser { grid-template-columns: 112px minmax(0, 1fr); padding: var(--space-6); }
  .rh-adviser img { width: 112px; height: 140px; }
  .rh-adviser-contact { grid-column: 1 / -1; }

  .rh-units, .rh-units tbody { display: block; }
  .rh-units thead { display: none; }
  .rh-units tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 16px 0; }
  .rh-units tbody tr:first-child { border-top: 1px solid var(--color-text); }
  .rh-units tbody th, .rh-units td { padding: 0; }
  .rh-units td { display: none; }
  .rh-units td.rh-unit-price { display: block; }
  .rh-units td.rh-unit-summary { display: block; grid-column: 1 / -1; font-size: 0.875rem; color: var(--color-text-muted); }
}

/* ---- forms ----------------------------------------------------------------- */
.rh-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.rh-form--single { grid-template-columns: minmax(0, 1fr); }
.rh-field { display: grid; gap: var(--space-2); align-content: start; font-size: var(--text-small); font-weight: 500; color: var(--color-text-secondary); }
.rh-field--full { grid-column: 1 / -1; }
.rh-field .rh-optional { font-weight: 400; color: var(--color-text-muted); }
.rh-field input, .rh-field select, .rh-field textarea {
  width: 100%; min-height: 52px; padding: 0 16px;
  font: inherit; font-size: 16px; /* below 16px iOS zooms on focus */
  font-weight: 400; color: var(--color-text);
  background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
  transition: border-color var(--duration-fast) ease;
}
.rh-field textarea { min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.rh-field select { appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2317191A' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.rh-field input:hover, .rh-field select:hover, .rh-field textarea:hover { border-color: var(--color-text-muted); }
.rh-field input:focus, .rh-field select:focus, .rh-field textarea:focus { outline: 2px solid var(--color-brand); outline-offset: 2px; border-color: var(--color-brand); }
.rh-field [aria-invalid="true"] { border-color: var(--color-error); }
.rh-field-error { display: flex; gap: 8px; font-weight: 400; color: var(--color-error); }
.rh-field-error:empty { display: none; }
.rh-form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); margin-top: var(--space-2); }
.rh-form-status { font-size: var(--text-small); color: var(--color-text-muted); }
.rh-form-status.is-error { color: var(--color-error); }
.rh-form-alert {
  grid-column: 1 / -1; display: flex; gap: 10px; padding: 14px 16px;
  background: var(--color-error-surface); border: 1px solid var(--color-error); color: var(--color-error-text); font-size: 0.875rem;
}
.rh-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* forms on green */
.rh-inverse .rh-field { color: var(--color-text-inverse-muted); }
.rh-inverse .rh-field input, .rh-inverse .rh-field select, .rh-inverse .rh-field textarea { background: var(--color-text-inverse); border-color: var(--color-text-inverse); }
.rh-inverse .rh-field input:focus, .rh-inverse .rh-field select:focus, .rh-inverse .rh-field textarea:focus { outline-color: var(--color-accent-inverse); }
.rh-inverse .rh-field-error { color: var(--color-error-inverse); }
.rh-inverse .rh-form-status { color: var(--color-text-inverse-muted); }
.rh-inverse .rh-form-status.is-error { color: var(--color-error-inverse); }
.rh-inverse .rh-form-alert { background: var(--color-error-surface); }

.rh-sent { max-width: 36em; }
.rh-sent-mark {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  border: 1px solid currentColor; border-radius: 50%; color: var(--color-success);
}
.rh-inverse .rh-sent-mark { color: var(--color-text-inverse); }

@media (max-width: 560px) {
  .rh-form { grid-template-columns: minmax(0, 1fr); }
  .rh-form-foot .rh-btn { width: 100%; }
}

/* contact methods */
.rh-contact-list { list-style: none; display: grid; gap: var(--space-2); margin-top: var(--space-8); }
.rh-contact-list a, .rh-contact-list span { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--color-text); text-decoration: none; }
.rh-contact-list a:hover { color: var(--color-brand); }
.rh-inverse .rh-contact-list a, .rh-inverse .rh-contact-list span { color: var(--color-text-inverse); }

/* ---- page head (about, contact, journal) ----------------------------------- */
.rh-page-head { padding-block: clamp(48px, 7vw, 104px) clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--color-border); }
.rh-page-head .rh-lede { margin-top: var(--space-6); }

/* FAQ uses native <details>: keyboard and screen-reader support for free */
.rh-faq { border-top: 1px solid var(--color-text); }
.rh-faq details { border-bottom: 1px solid var(--color-border); }
.rh-faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-6);
  min-height: 64px; padding: 18px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 24px; line-height: 1.2;
}
.rh-faq summary::-webkit-details-marker { display: none; }
.rh-faq summary svg { flex: none; transition: transform var(--duration-base) ease; }
.rh-faq details[open] summary svg { transform: rotate(45deg); }
.rh-faq details p { padding: 0 0 22px; max-width: 42em; color: var(--color-text-secondary); }

.rh-person { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-12) clamp(40px, 6vw, 96px); align-items: center; }

/* ---- journal --------------------------------------------------------------- */
.rh-post-card { position: relative; display: flex; flex-direction: column; }
.rh-post-card .rh-frame { aspect-ratio: 3 / 2; }
.rh-post-card .rh-frame img { transition: transform var(--duration-slow) var(--ease-out); }
.rh-post-card:hover .rh-frame img { transform: scale(1.03); }
.rh-post-card h3 { margin-top: var(--space-3); font-family: var(--font-display); font-size: 26px; line-height: 1.15; }
.rh-post-card h3 a { color: var(--color-text); text-decoration: none; }
.rh-post-card h3 a::after { content: ''; position: absolute; inset: 0; }
.rh-post-card:focus-within { outline: 2px solid var(--color-brand); outline-offset: 6px; }
.rh-post-card h3 a:focus-visible { outline: none; }
.rh-post-card .rh-label { margin-top: 18px; }
.rh-post-card p { margin-top: var(--space-2); color: var(--color-text-secondary); font-size: 1rem; }
.rh-post-card--lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8) clamp(32px, 5vw, 72px); align-items: center; }
.rh-post-card--lead h3 { font-size: var(--text-h3); }

.rh-article { max-width: 720px; margin-inline: auto; }
.rh-article .rh-frame { aspect-ratio: 3 / 2; margin-bottom: var(--space-12); }
.rh-article-body { margin-top: var(--space-8); font-size: var(--text-lead); line-height: 1.75; color: var(--color-text-secondary); }
.rh-article-body p + p { margin-top: 1.2em; }

@media (max-width: 900px) {
  .rh-split, .rh-split-r, .rh-split-l, .rh-person, .rh-post-card--lead { grid-template-columns: minmax(0, 1fr); }
  .rh-points { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .rh-hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rh-hero-facts > :last-child { grid-column: 1 / -1; }
  .rh-list, .rh-list--3 { grid-template-columns: minmax(0, 1fr); }
  .rh-steps li { grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-3); padding: 20px 0; }
  .rh-steps .rh-num { font-size: 24px; }
  .rh-steps h3 { font-size: 24px; }
  .rh-drive strong { width: 64px; font-size: 24px; }
}

/* ---- gallery lightbox (site.js) ------------------------------------------ */
.rh-lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(23, 25, 26, 0.96); color: var(--color-text-inverse);
}
.rh-lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rh-lightbox::backdrop { background: rgba(23, 25, 26, 0.96); }
.rh-lightbox img { display: block; max-width: calc(100vw - 2 * var(--page-margin)); max-height: calc(100vh - 160px); object-fit: contain; }
.rh-lightbox button {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  background: none; color: var(--color-text-inverse); border: 1px solid var(--color-on-ink-border); border-radius: var(--radius-sm); cursor: pointer;
}
.rh-lightbox-close { position: absolute; top: var(--space-4); right: var(--space-4); }
.rh-lightbox-bar { display: flex; align-items: center; gap: var(--space-6); margin-top: var(--space-6); font-size: var(--text-small); }

/* ---- motion ---------------------------------------------------------------- */
/* Blur-up: the stored 640px thumbnail sits behind the full image as it loads. */
.rh-img { display: block; background-size: cover; background-position: center; }
/* Content is visible by default. Images fade and sections rise ONLY when
   motion is welcome and site.js has proved it is running (it adds .rh-blur to
   <html>), so a script failure can never leave a page blank. */
@media (prefers-reduced-motion: no-preference) {
  .rh-blur .rh-img img { opacity: 0; transition: opacity 0.5s ease; }
  .rh-blur .rh-img img.is-loaded { opacity: 1; }
  .rh-blur .rh-reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.4s ease; }
  .rh-blur .rh-reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
