/* demos/real-estate/site.css
   ⚠️ NEW (Portfolio Demos)

   Halden & Rowe — fictional residential brokerage, concept demo.

   WHY THIS FILE IS STANDALONE
   The four demos under /demos/ exist to show that Apex designs *per
   industry*, so this stylesheet deliberately imports nothing and shares no
   layout system with the other three. Its signature is: a high-contrast
   serif display face, generous letterspacing on small caps labels, hairline
   rules instead of borders-and-shadows, an asymmetric listings grid, and a
   single champagne accent used sparingly enough to stay expensive.

   It deliberately does NOT use: rounded cards, drop shadows, glassmorphism,
   or a three-column feature row — all of which read as generic, and all of
   which the restaurant/dental/construction demos also avoid in their own
   different ways.

   No inline <style> anywhere (D-003) — /demos/(.*) is a hash-free route.
*/

:root {
  --ink: #131417;
  --ink-deep: #0c0d0f;
  --paper: #f7f5f1;
  --paper-warm: #efece5;
  /* Three champagnes, because one cannot do all three jobs.
     --accent-light  text and fills on the near-black grounds (8.6:1 there)
     --accent        rules, borders, underlines, hover fills — never small
                     text on paper, where it measures 2.9:1
     --accent-text   the same champagne pushed dark enough to clear AA for
                     small text on --paper (4.8:1). This split exists
                     because the rendered-DOM scan caught 18 nodes using
                     the decorative value as body-size text. */
  --accent: #a8873f;
  --accent-light: #c9a96a;
  --accent-text: #856826;
  --muted: #5f5f66;
  --muted-dark: #a4a3a8;
  --rule: rgba(19, 20, 23, 0.14);
  --rule-dark: rgba(247, 245, 241, 0.16);

  --display: "Zodiak", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --text: "Switzer", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Consumed by demos/demo-frame.css */
  --apex-strip-bg: #0c0d0f;
  --apex-strip-ink: #f7f5f1;
  --apex-strip-ink-dim: #9b9a96;
  --apex-strip-line: rgba(247, 245, 241, 0.14);
  --apex-strip-accent: #c9a96a;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0;
}

h1 { font-size: clamp(38px, 6.2vw, 76px); }
h2 { font-size: clamp(28px, 3.6vw, 46px); }
h3 { font-size: clamp(20px, 2vw, 25px); }
p { margin: 0; }

a { color: inherit; }

/* A18 (docs/website-quality-standard.md) -- every displayed phone number
   and email address is a real tel:/mailto: link, so a visitor on a phone
   places the call or opens a message with one tap instead of copying
   digits by hand. Deliberately identical to the surrounding text: these
   contact blocks were designed as data and this makes them actionable,
   not different. The underline appears on hover/focus so pointer and
   keyboard users still get an affordance. */
.re-contactlink { color: inherit; text-decoration: none; }
.re-contactlink:hover,
.re-contactlink:focus-visible { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

.re-wrap {
  width: min(1240px, 100% - clamp(32px, 8vw, 120px));
  margin-inline: auto;
}

/* ---------- shared type marks ---------- */

.re-eyebrow {
  font-family: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
}
/* On the near-black grounds the darkened text champagne would be the
   unreadable one, so the relationship inverts. */
.re-hero .re-eyebrow,
.re-sec--dark .re-eyebrow,
.re-consult .re-eyebrow { color: var(--accent-light); }

/* ---------- buttons ---------- */

.re-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 30px;
  font-family: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.re-btn--solid { background: var(--ink); color: var(--paper); }
.re-btn--solid:hover { background: var(--accent); color: var(--ink-deep); }

.re-btn--line { border-color: rgba(247, 245, 241, 0.4); color: var(--paper); }
.re-btn--line:hover { border-color: var(--accent-light); color: var(--accent-light); }

.re-btn--ghost {
  border-color: currentColor;
  min-height: 42px;
  padding: 0 20px;
  font-size: 12px;
}

/* The hit box is extended with a pseudo-element rather than padding so the
   underline stays tight against the text: padding would push the rule 12px
   away and break the type detail this design is built on. */
.re-link {
  position: relative;
  display: inline-block;
  margin-top: 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}
.re-link::after { content: ""; position: absolute; left: 0; right: 0; top: -10px; bottom: -10px; }
.re-link:hover { color: var(--accent); }

/* ---------- navigation ---------- */

.re-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: transparent;
  color: var(--paper);
  transition: background-color .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.re-nav.is-solid {
  background: rgba(12, 13, 15, 0.94);
  border-bottom-color: var(--rule-dark);
  backdrop-filter: saturate(140%) blur(8px);
}

.re-nav__inner {
  width: min(1240px, 100% - clamp(32px, 8vw, 120px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 84px;
}

.re-mark { text-decoration: none; margin-right: auto; }
.re-mark__name {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.re-mark__sub {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-top: 2px;
}

.re-nav__links { display: flex; gap: 30px; }
.re-nav__links a {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.82;
  padding: 6px 0;
}
.re-nav__links a:hover { opacity: 1; color: var(--accent-light); }

.re-burger {
  display: none;
  width: 46px;
  height: 46px;
  background: none;
  border: 1px solid var(--rule-dark);
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 5px;
}
.re-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--paper);
  transition: transform .25s ease, opacity .25s ease;
}
.re-burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.re-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.re-mobile {
  background: rgba(12, 13, 15, 0.98);
  border-top: 1px solid var(--rule-dark);
}
.re-mobile nav { display: flex; flex-direction: column; padding: 8px 0 20px; }
.re-mobile a {
  padding: 15px clamp(16px, 6vw, 40px);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-dark);
}
.re-mobile__cta { color: var(--accent-light); border-bottom: 0 !important; }

/* ---------- hero ---------- */

.re-hero {
  position: relative;
  background: var(--ink-deep);
  color: var(--paper);
  margin-top: -84px;
  padding-top: 84px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 92vh;
}

.re-hero__copy {
  padding: clamp(64px, 8vw, 110px) clamp(32px, 5vw, 88px) clamp(96px, 10vw, 150px)
           max(clamp(32px, 8vw, 120px), calc((100vw - 1240px) / 2));
}
.re-hero h1 { margin: 20px 0 0; max-width: 12ch; }
.re-hero__lede {
  margin-top: 26px;
  max-width: 46ch;
  font-size: 17.5px;
  color: rgba(247, 245, 241, 0.72);
}
.re-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.re-hero__plate { align-self: stretch; overflow: hidden; }
.re-hero__plate svg { width: 100%; height: 100%; object-fit: cover; }

/* ---------- search ---------- */

.re-search-wrap {
  width: min(1240px, 100% - clamp(32px, 8vw, 120px));
  margin: -66px auto 0;
  position: relative;
  z-index: 5;
}

.re-search {
  background: var(--paper);
  border-top: 3px solid var(--accent);
  box-shadow: 0 24px 60px -34px rgba(12, 13, 15, 0.55);
  padding: 30px clamp(22px, 3vw, 38px) 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 18px 22px;
  align-items: end;
}

.re-search__head {
  grid-column: 1 / -1;
  font-size: 15px;
  font-family: var(--text);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.re-search__go { align-self: end; }
.re-search__note {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}

/* ---------- fields ---------- */

.re-field { display: flex; flex-direction: column; gap: 7px; }
.re-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.re-field select,
.re-field input,
.re-field textarea {
  font-family: var(--text);
  font-size: 15.5px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 10px 0;
  min-height: 44px;
  width: 100%;
}
.re-field textarea { resize: vertical; min-height: 92px; }
.re-field select { appearance: none; cursor: pointer; }

/* ---------- sections ---------- */

.re-sec { padding: clamp(76px, 9vw, 130px) 0; }
.re-sec--tight { padding-bottom: clamp(56px, 6vw, 90px); }
.re-sec--dark { background: var(--ink-deep); color: var(--paper); }
.re-sec--dark .re-sec__lede { color: rgba(247, 245, 241, 0.66); }

.re-sec__head { max-width: 62ch; margin-bottom: clamp(40px, 5vw, 66px); }
.re-sec__head h2 { margin-top: 16px; }
.re-sec__lede { margin-top: 18px; color: var(--muted); font-size: 17px; }

.re-sec__head--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: none;
  align-items: end;
}
.re-sec__head--row .re-sec__lede { margin-top: 0; }

/* ---------- listings grid (asymmetric on purpose) ---------- */

.re-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.re-card {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition: background-color .3s ease;
}
.re-card:hover { background: var(--paper-warm); }
.re-card--feature { grid-column: span 2; grid-row: span 2; }

.re-card__plate { overflow: hidden; }
.re-card__plate svg { width: 100%; height: auto; }
.re-card--feature .re-card__plate { flex: 1; }
.re-card--feature .re-card__plate svg { height: 100%; object-fit: cover; }

.re-card__body { padding: 26px clamp(20px, 2vw, 30px) 30px; }
.re-card__area {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.re-card__body h3 { margin-top: 10px; }
.re-card--feature .re-card__body h3 { font-size: clamp(26px, 3vw, 38px); }
.re-card__price {
  margin-top: 8px;
  font-family: var(--display);
  font-size: 20px;
  color: var(--muted);
}
.re-card__note { margin-top: 16px; color: var(--muted); font-size: 15px; max-width: 48ch; }

.re-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
  color: var(--muted);
}
.re-specs li { position: relative; }
.re-specs li + li::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--muted);
}

/* ---------- areas rail ---------- */

.re-areas {
  display: flex;
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.re-area {
  background: var(--paper);
  scroll-snap-align: start;
  flex: 1 0 clamp(230px, 20vw, 300px);
  padding: 34px clamp(20px, 2vw, 30px) 40px;
}
.re-area__num {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent-text);
}
.re-area h3 { margin: 12px 0 10px; font-size: 22px; }
.re-area p { color: var(--muted); font-size: 15px; }

/* ---------- split panels ---------- */

.re-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.re-split__panel { background: var(--paper); padding: clamp(36px, 4.4vw, 64px); }
.re-split__panel h2 { margin: 16px 0 20px; font-size: clamp(25px, 2.6vw, 34px); }
.re-split__panel > p { color: var(--muted); max-width: 46ch; }

.re-list { margin-top: 26px; }
.re-list li {
  padding: 13px 0 13px 26px;
  border-top: 1px solid var(--rule);
  font-size: 15.5px;
  position: relative;
}
.re-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 12px;
  height: 1px;
  background: var(--accent);
}

/* ---------- roster ---------- */

.re-roster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule-dark);
  border-top: 1px solid var(--rule-dark);
}
.re-roster li { background: var(--ink-deep); padding: 34px 26px 40px; }
.re-roster h3 { font-size: 23px; }
.re-roster__role {
  margin: 8px 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.re-roster li p:last-child { color: rgba(247, 245, 241, 0.62); font-size: 15px; }

/* ---------- process ---------- */

.re-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); }
.re-steps li { background: var(--paper); padding: 32px 24px 40px; border-top: 2px solid var(--ink); }
.re-steps__num {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--accent-text);
}
.re-steps h3 { margin: 14px 0 10px; font-size: 21px; }
.re-steps p { color: var(--muted); font-size: 15px; }

/* ---------- consultation ---------- */

.re-consult { background: var(--ink-deep); color: var(--paper); padding: clamp(76px, 9vw, 130px) 0; }
.re-consult__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.re-consult h2 { margin: 16px 0 20px; }
.re-consult__copy > p { color: rgba(247, 245, 241, 0.7); max-width: 44ch; }

.re-contact {
  margin-top: 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 28px;
}
.re-contact dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-light);
  padding: 13px 0;
  border-top: 1px solid var(--rule-dark);
}
.re-contact dd {
  padding: 13px 0;
  border-top: 1px solid var(--rule-dark);
  font-size: 15.5px;
}

.re-form { display: flex; flex-direction: column; gap: 22px; }
.re-form .re-field label { color: rgba(247, 245, 241, 0.66); }
.re-form .re-field input,
.re-form .re-field select,
.re-form .re-field textarea {
  color: var(--paper);
  border-bottom-color: var(--rule-dark);
}
.re-form .re-field input:focus,
.re-form .re-field select:focus,
.re-form .re-field textarea:focus { border-bottom-color: var(--accent-light); }
.re-form__go { background: var(--accent-light); color: var(--ink-deep); align-self: start; }
.re-form__go:hover { background: var(--paper); }
.re-form__status { font-size: 13px; color: rgba(247, 245, 241, 0.6); }
.re-form__status.is-done { color: var(--accent-light); }

/* ---------- footer ---------- */

.re-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 6vw, 84px) 0 40px;
  border-top: 1px solid var(--rule-dark);
}
.re-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.re-footer__mark { font-size: 24px; }
.re-footer__line { margin-top: 14px; color: rgba(247, 245, 241, 0.6); font-size: 15px; max-width: 40ch; }
.re-footer__head {
  font-family: var(--text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.re-footer__list { margin-top: 12px; display: flex; flex-direction: column; gap: 0; font-size: 15px; color: rgba(247, 245, 241, 0.72); }
.re-footer__list li { padding: 6px 0; }
/* inline-block + padding so each row is a ~30px target, not a 17px one */
.re-footer__list a { text-decoration: none; display: inline-block; padding: 3px 0; }
.re-footer__list a:hover { color: var(--accent-light); }

.re-footer__legal {
  border-top: 1px solid var(--rule-dark);
  padding-top: 26px;
  color: rgba(247, 245, 241, 0.55);
  max-width: 90ch;
}
.re-footer__legal strong { color: var(--paper); }
.re-footer__legal a { color: var(--accent-light); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1080px) {
  .re-roster, .re-steps { grid-template-columns: repeat(2, 1fr); }
  .re-grid { grid-template-columns: repeat(2, 1fr); }
  .re-card--feature { grid-column: span 2; grid-row: auto; }
  .re-card--feature .re-card__plate svg { height: auto; }
}

@media (max-width: 900px) {
  .re-nav__links, .re-nav__cta { display: none; }
  .re-burger { display: grid; }

  .re-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .re-hero__copy {
    padding: clamp(48px, 9vw, 80px) clamp(20px, 6vw, 40px) clamp(52px, 8vw, 76px);
  }
  .re-hero h1 { max-width: 16ch; }
  .re-hero__plate { order: 2; }
  .re-hero__plate svg { aspect-ratio: 16 / 11; }

  .re-search-wrap { margin-top: 0; width: 100%; }
  .re-search {
    grid-template-columns: 1fr 1fr;
    box-shadow: none;
    padding: 28px clamp(20px, 6vw, 40px) 26px;
  }
  .re-search__go { grid-column: 1 / -1; }

  .re-sec__head--row { grid-template-columns: 1fr; align-items: start; }
  .re-sec__head--row .re-sec__lede { margin-top: 4px; }
  .re-split { grid-template-columns: 1fr; }
  .re-consult__inner { grid-template-columns: 1fr; }
  .re-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .re-grid { grid-template-columns: 1fr; }
  .re-card--feature { grid-column: auto; }
  .re-roster, .re-steps { grid-template-columns: 1fr; }
  .re-search { grid-template-columns: 1fr; }
  .re-footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .re-area { flex-basis: 78vw; }
  .re-hero__actions .re-btn { width: 100%; }
  .re-contact { grid-template-columns: 1fr; gap: 0; }
  .re-contact dt { padding-bottom: 0; border-top: 1px solid var(--rule-dark); }
  .re-contact dd { padding-top: 4px; border-top: 0; }
}

/* =========================================================
   MOTION
   Everything below is decorative. A visitor who has asked their OS to
   reduce motion gets the same layout with none of it.
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
