/* ==========================================================================
   Mezinjer for Real Estate (/real-estate)
   Loaded after site.css (reset, .wrap, footer, skip link, mockbar, logo sizes).
   Look follows Ed's approved green-and-ivory mockup (30 Oct 2026): warm ivory,
   deep forest green, pale sage closing panel, restrained terracotta accents,
   DM Serif Display headlines with Plus Jakarta Sans for body and controls.
   Everything is scoped to .re-page.
   Fonts are self-hosted (OFL) because the CSP only allows font-src 'self'.
   Fonts and CSS-referenced files are not cache-busted by build.mjs, so give
   them a new file name if they ever change.
   ========================================================================== */

@font-face { font-family: "RE Serif"; src: url("/_home/fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "RE Serif"; src: url("/_home/fonts/dm-serif-display-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/_home/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/_home/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/_home/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

.re-page {
  --r-ivory: #F8F5EF;
  --r-cream: #FFFCF6;
  --r-forest: #203F35;
  --r-forest-dk: #17302a;
  --r-sage: #DDE5D6;
  --r-sage-line: #BCC9B8;
  --r-terra: #A9573A;          /* text-safe terracotta on ivory (>= 4.5:1) */
  --r-terra-soft: #F1E2D6;
  --r-text: #3A3632;           /* warm charcoal */
  --r-muted: #5F5A54;
  --r-line: #E4DED3;
  --r-serif: "RE Serif", Georgia, "Times New Roman", serif;
  --r-sans: "Jakarta", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--r-ivory);
  color: var(--r-text);
  font-family: var(--r-sans);
}
.re-page h1, .re-page h2, .re-page h3 { font-family: var(--r-serif); font-weight: 400; color: var(--r-forest); text-wrap: balance; }
.re-page h1 { font-size: clamp(44px, 4.1vw, 62px); line-height: 1.02; letter-spacing: -0.02em; }
.re-page h1 span { display: block; }
.re-page h2 { font-size: clamp(34px, 3.3vw, 48px); line-height: 1.06; letter-spacing: -0.015em; }
.re-page h3 { font-size: 23px; line-height: 1.15; letter-spacing: -0.005em; }
.re-page p { color: var(--r-muted); }
.re-page section { padding: 0; }
.re-page a:focus-visible, .re-page button:focus-visible { outline: 3px solid var(--r-terra); outline-offset: 3px; border-radius: 4px; }
.re-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.re-page .ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons and links ---------- */
.re-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 12px 26px; border-radius: 8px;
  background: var(--r-forest); color: var(--r-ivory); border: 1.5px solid var(--r-forest);
  font: 600 16px/1.2 var(--r-sans); box-shadow: 0 8px 20px #203f3524;
  transition: background .15s, border-color .15s;
}
.re-btn:hover { background: var(--r-forest-dk); border-color: var(--r-forest-dk); }
.re-btn .ic { width: 18px; height: 18px; stroke-width: 2; }
.re-btn-sm { min-height: 44px; padding: 9px 20px; font-size: 14.5px; box-shadow: none; white-space: nowrap; }
.re-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 600 15.5px/1.2 var(--r-sans); color: var(--r-forest);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 7px; text-decoration-color: #203f3566;
}
.re-link:hover { text-decoration-color: var(--r-forest); }
.re-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }

/* ---------- Header (overlays the hero photo) ---------- */
.re-header { position: absolute; left: 0; right: 0; z-index: 20; }
.re-header nav { padding: 20px 0; }
.re-page .re-header .logo-img { height: 46px; }
.re-header .navlinks {
  gap: 4px; font: 600 14px var(--r-sans); color: var(--r-forest);
  background: #f8f5efe6; border-radius: 999px; padding: 5px 5px 5px 10px;
  box-shadow: 0 6px 24px #1d2a2414; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.re-header .navlinks > a:not(.re-btn), .re-header .who-menu-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px;
}
.re-header .navlinks > a:not(.re-btn):hover, .re-header .who-menu-btn:hover, .re-header .who-menu-btn[aria-expanded="true"] { color: var(--r-terra); }
.re-header .re-btn-sm { border-radius: 999px; }
.re-page .re-header .navlinks > a.re-btn { display: inline-flex; }
/* "Who's it for?" menu: shared base in site.css, recoloured here */
.re-header .who-menu-list {
  top: calc(100% + 8px); left: 0; min-width: 200px;
  background: var(--r-cream); border-color: var(--r-line); box-shadow: 0 14px 36px #1d2a2424; font-family: var(--r-sans);
}
.re-header .navlinks .who-menu-list a { color: var(--r-forest); }
.re-header .navlinks .who-menu-list a:hover { background: var(--r-sage); color: var(--r-forest); }
.re-header .navlinks .who-menu-list a[aria-current="page"] { color: var(--r-terra); }

/* ---------- Hero ---------- */
.re-hero { position: relative; min-height: 640px; padding-bottom: 54px; }
.re-hero-copy { position: relative; z-index: 2; padding: 150px 0 40px; }
.re-hero-copy > * { max-width: 600px; }
.re-hero-copy > h1 { max-width: 720px; }
.re-eyebrow { font: 700 12.5px/1 var(--r-sans); letter-spacing: 2.4px; text-transform: uppercase; color: var(--r-terra) !important; margin-bottom: 22px; }
.re-lede { font-size: 18.5px; line-height: 1.55; color: var(--r-text) !important; max-width: 470px !important; margin-top: 22px; }
.re-hero .re-actions { margin-top: 32px; }
.re-promise { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 14px; }
.re-promise .ic { color: var(--r-terra); width: 22px; height: 22px; }

.re-hero-media { position: absolute; top: 22px; right: 0; width: 64%; height: 590px; }
.re-hero-photo { position: absolute; inset: 0; margin: 0; }
.re-hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 56% 30%; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%), linear-gradient(180deg, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 30%), linear-gradient(180deg, #000 80%, transparent 100%);
  mask-composite: intersect;
}
.re-hero-cap { position: absolute; right: calc(3% + clamp(190px, 15vw, 226px) + 32px); bottom: 8px; text-align: right; font: italic 400 19px/1.2 var(--r-serif); color: var(--r-terra); }

/* Phone illustration (fictional profile) */
.re-phone-wrap { position: absolute; right: 3%; top: 39%; width: clamp(190px, 15vw, 226px); margin: 0; z-index: 3; }
.re-phone {
  border-radius: 30px; padding: 7px; background: #1d2421;
  box-shadow: 0 22px 44px #1d2a2438, 0 2px 0 #3a443f inset;
}
.re-phone-screen { border-radius: 24px; overflow: hidden; background: var(--r-cream); padding-bottom: 10px; }
.re-appbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px; color: var(--r-forest); }
.re-appbar img { height: 22px; width: auto; }
.re-appbar .ic { width: 15px; height: 15px; }
.re-appbar .ic:first-child { visibility: hidden; }
.re-phone-photo img { display: block; width: calc(100% - 20px); margin: 0 10px; aspect-ratio: 16 / 10; height: auto; object-fit: cover; border-radius: 10px; }
.re-phone-id { padding: 10px 14px 0; }
.re-phone-id strong { display: block; font: 700 15px/1.2 var(--r-sans); color: #1d2622; }
.re-phone-id small { display: block; font-size: 11.5px; color: var(--r-muted); margin-top: 2px; }
.re-phone-id span { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--r-muted); margin-top: 5px; }
.re-phone-id .ic { width: 12px; height: 12px; }
.re-tabs { display: flex; margin: 10px 14px 0; border-bottom: 1px solid var(--r-line); font: 600 11.5px var(--r-sans); }
.re-tabs span { flex: 1; text-align: center; padding: 6px 0 7px; color: var(--r-muted); }
.re-tabs .on { color: var(--r-forest); box-shadow: inset 0 -2px 0 var(--r-terra); }
.re-bubble {
  margin: 12px 12px 0 30px; padding: 9px 11px; border-radius: 12px 12px 4px 12px;
  background: var(--r-sage); color: #1f2d27; font-size: 11.5px; line-height: 1.4;
}
.re-input {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 12px 10px 0; padding: 8px 10px 8px 12px; border: 1px solid var(--r-line); border-radius: 999px;
  font-size: 11px; color: #8a847c; background: #fff;
}
.re-input .ic { width: 15px; height: 15px; color: var(--r-forest); }
.re-phone-cap { text-align: center; margin-top: 10px; font-size: 12px; color: var(--r-muted); letter-spacing: .2px; }

/* ---------- Relationship stories ---------- */
.re-stories { padding: 34px 0 70px !important; }
.re-story-grid { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.re-story picture img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; }
.re-story:nth-child(1) img { object-position: 50% 35%; }
.re-story:nth-child(2) img { object-position: 50% 40%; }
.re-story:nth-child(3) img { object-position: 50% 30%; }
.re-story-copy { display: grid; grid-template-columns: 52px 1fr; gap: 16px; margin-top: 20px; align-items: start; }
.re-story-copy p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; }
.re-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--r-terra-soft); color: var(--r-terra); }
.re-icon .ic { width: 24px; height: 24px; }

/* ---------- Forest-green band ---------- */
.re-band { position: relative; overflow: hidden; background: var(--r-forest); color: var(--r-ivory); padding: 76px 0 !important; }
.re-band-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: 64px; align-items: center; }
.re-page .re-band h2 { color: var(--r-ivory); font-size: clamp(38px, 4vw, 60px); }
.re-band-copy p { color: #f8f5efd9 !important; font-size: 18px; line-height: 1.6; margin-top: 22px; max-width: 470px; }
.re-house { display: block; width: 100%; max-width: 440px; margin-top: 34px; fill: none; stroke: #f8f5ef59; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.re-sprig { position: absolute; right: 1.5%; top: 26px; height: 240px; width: auto; fill: none; stroke: #f8f5ef40; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.re-ask { background: var(--r-ivory); border-radius: 14px; padding: 32px 32px 26px; color: var(--r-text); box-shadow: 0 20px 50px #0b1a1440; }
.re-ask h3 { font-size: 28px; }
.re-ask ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.re-ask li { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 10px; background: #fff; border: 1px solid var(--r-line); font-size: 15.5px; color: var(--r-text); }
.re-ask li .ic { color: var(--r-forest); width: 22px; height: 22px; }
.re-ask-note { font-size: 13px; margin-top: 16px; }

/* ---------- Where people find your Mez ---------- */
.re-places { padding: 76px 0 30px !important; }
.re-sub { font-size: 18px; color: var(--r-text) !important; margin-top: 8px; }
.re-place-grid { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.re-place-grid figure { margin: 0; }
.re-place-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.re-place-grid figcaption { text-align: center; margin-top: 14px; font: 400 19px/1.2 var(--r-serif); color: var(--r-forest); }
.re-note { margin-top: 22px; font-size: 13px; text-align: center; }

/* ---------- How it works ---------- */
.re-how { padding: 60px 0 70px !important; }
.re-steps { list-style: none; margin: 34px 0 0; padding: 0 0 34px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--r-sage-line); }
.re-steps li { display: grid; grid-template-columns: auto 52px 1fr; gap: 18px; align-items: start; padding: 4px 30px; }
.re-steps li:first-child { padding-left: 0; }
.re-steps li + li { border-left: 1px solid var(--r-sage-line); }
.re-num { font: 400 36px/1 var(--r-serif); color: var(--r-terra); padding-top: 4px; }
.re-steps h3 { font-size: 21px; }
.re-steps p { margin-top: 6px; font-size: 15px; line-height: 1.5; }

/* ---------- Closing ---------- */
.re-close { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); min-height: 440px; }
.re-close-photo img { display: block; width: 100%; height: 100%; min-height: 440px; object-fit: cover; object-position: 45% 60%; }
.re-close-panel { background: var(--r-sage); padding: 64px clamp(28px, 4.5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.re-page .re-close h2 { font-size: clamp(38px, 3.6vw, 54px); }
.re-close-panel p { color: var(--r-text) !important; font-size: 18px; margin-top: 14px; }
.re-close .re-actions { margin-top: 30px; }

.re-fine { font-size: 12.5px; line-height: 1.6; padding: 26px 0 0; max-width: 900px; }

/* ---------- Footer ---------- */
.re-page footer { color: var(--r-muted); font-size: 12px; }
.re-page .footer-inner { border-top: 1px solid var(--r-line); margin-top: 26px; padding: 26px 0 36px; }
.re-foot-brand { display: flex; align-items: center; gap: 18px; }
.re-page footer .logo-img { height: 40px; }
.re-foot-line { padding-left: 18px; border-left: 1px solid var(--r-line); font-size: 13px; color: var(--r-muted); }
.re-page .footer-links { flex-wrap: wrap; gap: 0 20px; font-size: 13px; }
.re-page .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.re-page .footer-links a:hover { color: var(--r-forest); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .re-hero-media { width: 62%; }
  .re-steps li { grid-template-columns: auto 1fr; }
  .re-steps .re-icon { display: none; }
}
@media (max-width: 1000px) {
  .re-hero { min-height: 0; padding-bottom: 0; }
  .re-hero-copy { padding: 116px 0 34px; }
  .re-hero-media { position: relative; width: 100%; height: auto; margin-bottom: 150px; }
  .re-hero-photo { position: relative; }
  .re-hero-photo img {
    aspect-ratio: 3 / 2; height: auto;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%); mask-image: linear-gradient(180deg, transparent 0, #000 12%);
  }
  .re-hero-cap { left: 24px; right: auto; text-align: left; bottom: -48px; max-width: 46%; }
  .re-phone-wrap { top: 56%; right: 24px; width: clamp(150px, 24vw, 200px); }
  .re-story-grid { gap: 22px; }
  .re-story-copy { grid-template-columns: 1fr; gap: 12px; }
  .re-band-grid { grid-template-columns: 1fr; gap: 40px; }
  .re-house { max-width: 380px; }
  .re-place-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .re-steps { grid-template-columns: 1fr; gap: 0; }
  .re-steps li, .re-steps li:first-child { padding: 18px 0; grid-template-columns: 56px 52px 1fr; }
  .re-steps .re-icon { display: inline-grid; }
  .re-steps li + li { border-left: 0; border-top: 1px solid var(--r-sage-line); }
  .re-close { grid-template-columns: 1fr; }
  .re-close-photo img { min-height: 0; aspect-ratio: 3 / 2; height: auto; }
}
@media (max-width: 740px) {
  .re-header nav { padding: 14px 0; }
  .re-page .re-header .logo-img { height: 38px; }
  .re-header .navlinks > a.re-nav-hide { display: none; }
  .re-header .navlinks { padding: 4px; }
  .re-header .who-menu-btn { padding: 0 10px; }
  .re-header .who-menu-list { left: auto; right: 0; }
  .re-hero-copy { padding-top: 96px; }
  .re-lede { font-size: 17px; }
  .re-hero .re-actions .re-btn { flex: 1 1 100%; }
  .re-hero-media { margin-bottom: 215px; }
  .re-page h1 { font-size: 40px; }
  .re-hero-cap { left: 18px; bottom: -64px; font-size: 17px; }
  .re-phone-wrap { right: 10px; width: 138px; top: 54%; }
  .re-phone { border-radius: 22px; padding: 5px; }
  .re-phone-screen { border-radius: 18px; }
  .re-appbar { padding: 8px 9px 5px; }
  .re-appbar img { height: 16px; }
  .re-phone-photo img { width: calc(100% - 14px); margin: 0 7px; }
  .re-phone-id { padding: 7px 9px 0; }
  .re-phone-id strong { font-size: 12px; }
  .re-phone-id small, .re-phone-id span { font-size: 9.5px; }
  .re-tabs { margin: 7px 9px 0; font-size: 9.5px; }
  .re-bubble { margin: 8px 8px 0 16px; font-size: 9.5px; padding: 7px 8px; }
  .re-input { margin: 8px 7px 0; font-size: 9px; padding: 6px 8px; }
  .re-phone-cap { font-size: 11px; }
  .re-story-grid { grid-template-columns: 1fr; gap: 34px; }
  .re-story-copy { grid-template-columns: 52px 1fr; gap: 16px; }
  .re-stories { padding: 34px 0 56px !important; }
  .re-band { padding: 56px 0 !important; }
  .re-ask { padding: 24px 18px 20px; }
  .re-ask h3 { font-size: 25px; }
  .re-ask li { padding: 13px 14px; font-size: 15px; gap: 12px; }
  .re-sprig { height: 150px; top: 12px; }
  .re-places { padding: 56px 0 20px !important; }
  .re-how { padding: 44px 0 56px !important; }
  .re-steps li, .re-steps li:first-child { grid-template-columns: 44px 48px 1fr; gap: 14px; }
  .re-num { font-size: 30px; }
  .re-icon { width: 48px; height: 48px; }
  .re-close-panel { padding: 44px 22px 48px; }
  .re-close .re-actions .re-btn { flex: 1 1 100%; }
  .re-page .footer-inner { flex-direction: column; align-items: flex-start; }
  .re-foot-brand { flex-wrap: wrap; gap: 10px 16px; }
}
@media (max-width: 520px) {
  .re-place-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 440px) {
  .re-header nav { gap: 10px; }
  .re-page .re-header .logo-img { height: 32px; }
  .re-header .navlinks { gap: 0; }
  .re-header .re-btn-sm { padding: 8px 14px; font-size: 13.5px; }
  .re-header .who-menu-btn { padding: 0 8px; font-size: 13.5px; }
}
@media (max-width: 380px) {
  .re-page .re-header .logo-img { height: 29px; }
  .re-header .re-btn-sm { padding: 7px 12px; font-size: 13px; }
  .re-header .who-menu-btn { padding: 0 7px; font-size: 13px; }
  .re-phone-wrap { width: 126px; }
}
@media (max-width: 359px) {
  .re-header .who-menu { display: none; }   /* too narrow for both; footer keeps the industry links */
}
@media (prefers-reduced-motion: reduce) {
  .re-btn { transition: none; }
}
@media (max-width: 400px) {
  /* small phones: "Who's it for?" is longer than the old "Use cases", so tighten the header pill */
  .re-header nav { gap: 8px; }
  .re-page .re-header .logo-img { height: 27px; }
  .re-header .who-menu-btn { padding: 0 5px; font-size: 12.5px; gap: 6px; }
  .re-header .re-btn-sm { padding: 7px 10px; font-size: 12.5px; }
}
