/* =============================================================================
   Torin Gunnell Digital — Real Estate page (/real-estate/)
   -----------------------------------------------------------------------------
   Loaded AFTER style.css, only on the real-estate page. Everything is scoped
   under .re-page so the wedding site is untouched.

   Identity (deliberately not the wedding brand):
     - white ground, near-black type, hairline greys — less is more
     - ONE flourish: a spectral gradient (blue → purple → pink → orange),
       used sparingly on key words, stat numbers, and fine details
     - Poppins throughout: extra-bold sentence-case display, regular UI/body
     - the closing inquiry section inverts to black for weight
   The shared header/footer markup stays (one nav, one codebase) but is
   re-skinned here to match.
   ========================================================================== */

/* ---- Tokens ---- */
.re-page {
  --re-bg: #ffffff;
  --re-ink: #0a0a0a;
  --re-grey: #6e6e73;                 /* secondary text */
  --re-line: rgba(10, 10, 10, .12);   /* hairlines */
  --re-panel: #f5f5f7;                /* soft panel grey */
  --re-grad: linear-gradient(100deg, #0a84ff 0%, #7d4cff 32%, #e8509d 64%, #ff7e29 100%);
  --font-block: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-grotesk: "Poppins", "Helvetica Neue", Arial, sans-serif;
}

/* ---- Page base ---- */
.re-page {
  background: var(--re-bg);
  color: var(--re-ink);
  font-family: var(--font-grotesk);
  font-weight: 400;
}
.re-page ::selection { background: var(--re-ink); color: var(--re-bg); }

/* Display type: heavy Poppins, sentence case, tight tracking. */
.re-page h1, .re-page h2, .re-page h3, .re-page .statement {
  font-family: var(--font-block);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -.02em;
  line-height: 1.08;
  color: var(--re-ink);
}

/* THE flourish: spectral gradient text. Used sparingly. */
.re-accent-text {
  background: var(--re-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Light placeholder fill until R2 media exists. */
.re-page .media-fill { background: linear-gradient(135deg, #ececec, #f7f7f7); }

/* Focus rings stay ink. */
.re-page a:focus-visible, .re-page button:focus-visible,
.re-page input:focus-visible, .re-page textarea:focus-visible,
.re-page select:focus-visible { outline-color: var(--re-ink); }

/* ---- Re-skin the shared header / mobile menu (markup unchanged) ---- */
.re-page .site-header {
  background: var(--re-bg);
  color: var(--re-ink);
  box-shadow: 0 1px 0 var(--re-line);
}
.re-page .announcement { background: var(--re-ink); color: var(--re-bg); }
.re-page .announcement p { font-family: var(--font-grotesk); font-weight: 700; }
.re-page .announcement a { text-decoration-color: var(--re-bg); }
.re-page .nav-link { font-family: var(--font-grotesk); font-weight: 500; }
.re-page .nav-link::after { background: var(--re-ink); }
.re-page .nav-link--cta {
  background: var(--re-ink);
  border-color: var(--re-ink);
  color: var(--re-bg);
  font-weight: 700;
}
.re-page .nav-link--cta:hover { background: #333; border-color: #333; color: var(--re-bg); }
.re-page .mobile-menu { background: var(--re-bg); color: var(--re-ink); }
.re-page .mobile-menu nav a {
  font-family: var(--font-block);
  font-weight: 700;
  letter-spacing: -.01em;
}
.re-page .mobile-menu .link-underline { font-family: var(--font-grotesk); font-weight: 700; }
.re-page .link-underline::after { background: var(--re-ink); }

/* ---- Re-skin the shared footer ---- */
.re-page .site-footer { background: var(--re-bg); border-top: 1px solid var(--re-line); }
.re-page .footer-col h3 { font-family: var(--font-grotesk); font-weight: 700; color: var(--re-grey); }
.re-page .footer-col a, .re-page .footer-social a { font-family: var(--font-grotesk); }
.re-page .footer-col a:hover, .re-page .footer-social a:hover { color: var(--re-grey); }
.re-page .footer-bottom { border-top: 1px solid var(--re-line); }
.re-page .footer-bottom p { font-family: var(--font-grotesk); color: var(--re-grey); }

/* ---- Shared-class re-skins used throughout the page ---- */
.re-page .btn {
  font-family: var(--font-grotesk);
  font-weight: 700;
  letter-spacing: .14em;
  border: 1px solid var(--re-ink);
  color: var(--re-ink);
}
.re-page .btn:hover { background: var(--re-ink); color: var(--re-bg); }
.re-page .btn--accent {
  background: var(--re-ink);
  border-color: var(--re-ink);
  color: var(--re-bg);
}
/* Primary CTA hover: the one place a button goes spectral. */
.re-page .btn--accent:hover {
  background: var(--re-grad);
  border-color: transparent;
  color: var(--re-bg);
}

.re-page .section-label {
  font-family: var(--font-grotesk);
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--re-ink);
}
.re-page .section-label::after { background: var(--re-line); }
.re-page .eyebrow { font-family: var(--font-grotesk); font-weight: 700; }

/* ---- True child stagger ----
   scripts.js already assigns each child of [data-stagger] an incremental
   --d delay; here the children actually animate with it (scoped to this
   page so wedding pages are untouched). */
html.js .re-page [data-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms);
}
html.js .re-page [data-stagger].is-visible > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .re-page [data-stagger] > * { opacity: 1; transform: none; }
}

/* ---- Hero: two columns — copy left, square image right ---- */
.re-hero {
  padding-block: clamp(3rem, 7vw, 5.5rem) var(--space-lg);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: stretch;
}
.re-h1 {
  font-size: clamp(2.75rem, 7vw, 6.25rem);
  font-weight: 800;
  max-width: 15ch;
  margin-top: 1.75rem;
}
.re-pill {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  border: 1px solid var(--re-line);
  border-radius: 999px;
  padding: .55em 1.2em;
  font-family: var(--font-grotesk);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .66rem;
  color: var(--re-ink);
}
.re-pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--re-grad);
  flex: 0 0 auto;
}
.re-hero-sub {
  color: var(--re-grey);
  max-width: 46ch;
  margin-top: 1.75rem;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  font-weight: 500;
}
.re-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}
/* Credibility stat row under the CTAs. */
.re-hero-stats {
  list-style: none;
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}
.re-hero-stats li { display: flex; flex-direction: column; }
.re-hero-stats li + li {
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
  border-left: 1px solid var(--re-line);
}
.re-hero-stat-num {
  font-family: var(--font-block);
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 1;
  color: var(--re-ink);
}
.re-hero-stat-label {
  margin-top: .4rem;
  font-family: var(--font-grotesk);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .6rem;
  color: var(--re-grey);
}
/* Trusted-by line. */
.re-hero-trust {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  font-family: var(--font-grotesk);
  font-size: .85rem;
  color: var(--re-ink);
}
.re-hero-trust span {
  display: block;
  margin-bottom: .4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .6rem;
  color: var(--re-grey);
}
.re-hero-media {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-radius: clamp(1rem, 2vw, 1.5rem);
  overflow: hidden;
}
/* Hero reel (right column): a phone mockup that fills the full height of the
   hero. The screen stays an exact 9:16 (height-driven) so no letterbox bars.
   Hidden on mobile — see responsive block. */
.re-hero-figure {
  display: flex;
  min-width: 0;
}
.re-hero-reel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
}
.re-hero-reel .re-phone {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: stretch;
  width: auto;
}
.re-hero-reel .re-phone .re-video {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  aspect-ratio: 9 / 16;   /* width follows the stretched height — exact 9:16 */
}
.re-hero-reel .re-tile-meta { flex: 0 0 auto; }

/* ---- Service marquee: outlined block type, monochrome ---- */
.re-marquee {
  overflow: hidden;
  border-block: 1px solid var(--re-line);
  padding-block: clamp(1.1rem, 2vw, 1.75rem);
}
.re-marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  width: max-content;
  animation: re-marquee 32s linear infinite;
}
.re-marquee-track span {
  font-family: var(--font-block);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  line-height: 1;
  white-space: nowrap;
  color: var(--re-ink);
}
/* Outline the words where supported — solid ink elsewhere. */
@supports ((-webkit-text-stroke: 1px black) or (text-stroke: 1px black)) {
  .re-marquee-track span {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(10, 10, 10, .8);
  }
  .re-marquee-track .re-dot { -webkit-text-stroke: 0; }
}
/* Dots carry the gradient. */
.re-marquee-track .re-dot {
  background: var(--re-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes re-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .re-marquee-track { animation: none; }
}

/* ---- Services (4-up numbered cards) ---- */
.re-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
}
.re-service {
  background: var(--re-panel);
  border-radius: clamp(.75rem, 1.2vw, 1.1rem);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.re-service:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -32px rgba(10, 10, 10, .35);
}
.re-service-num {
  font-family: var(--font-block);
  font-weight: 800;
  font-size: clamp(1.75rem, 2.6vw, 2.4rem);
  line-height: 1;
  display: block;
  margin-bottom: 1.25rem;
  background: var(--re-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.re-service h3 { font-size: clamp(1.2rem, 1.7vw, 1.55rem); margin-bottom: .75rem; }
.re-service p { color: var(--re-grey); font-size: .95rem; }

/* ---- Work gallery ---- */
/* No heading here, so it doesn't need the full section padding — tighten the
   space above and below the reels. */
.re-page #work.section { padding-block: clamp(2rem, 4vw, 3.5rem); }
.re-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(.75rem, 1.5vw, 1.25rem);
}
.re-tile { margin: 0; }
.re-tile--wide { grid-column: span 3; }
.re-tile--tall { grid-column: span 2; }
.re-tile--full { grid-column: span 6; }

.ratio-9-16 { aspect-ratio: 9 / 16; }

.re-video {
  position: relative;
  overflow: hidden;
  border-radius: clamp(.75rem, 1.2vw, 1.1rem);
  background: linear-gradient(135deg, #ececec, #f7f7f7);
}
.re-video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
/* Vimeo embeds fill the phone screen. */
.re-video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.re-tile:hover .re-video video { transform: scale(1.04); }

/* Play/pause overlay: white glyphs over a soft dark scrim so they read on
   any footage (and on the light placeholder). */
.re-play {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease);
  background: rgba(10, 10, 10, .28);
}
.re-play::before {
  content: "";
  width: 64px; height: 64px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  position: absolute;
  transition: transform var(--dur) var(--ease);
}
.re-play::after {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #ffffff;
  margin-left: 4px;
}
.re-play:hover::before { transform: scale(1.1); }
.re-video.is-playing .re-play { opacity: 0; background: transparent; }
.re-video.is-playing .re-play:hover { opacity: 1; background: rgba(10, 10, 10, .3); }
.re-video.is-playing .re-play::after {
  border: 0;
  width: 5px; height: 20px;
  background: #ffffff;
  box-shadow: 10px 0 0 #ffffff;
  margin-left: -6px;
}

/* Mute / unmute toggle (added by real-estate.js to each reel). */
.re-mute {
  position: absolute;
  z-index: 3;
  right: clamp(.6rem, 1.5vw, 1rem);
  bottom: clamp(.6rem, 1.5vw, 1rem);
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 10, 10, .55);
  color: #ffffff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.re-mute:hover { background: rgba(10, 10, 10, .8); transform: scale(1.06); }
.re-mute svg { width: 18px; height: 18px; display: none; }
.re-video.is-muted .re-mute .ic-off { display: block; }
.re-video:not(.is-muted) .re-mute .ic-on { display: block; }

/* Phone frame around vertical reels. The SCREEN is exactly 9:16 so the reel
   fills it edge-to-edge (no letterbox bars); the bezel wraps it, leaving the
   mockup at a natural just-over-9:16. */
.re-phone {
  border: 1px solid rgba(10, 10, 10, .85);
  border-radius: clamp(1.6rem, 2.4vw, 2.4rem);
  padding: clamp(.5rem, .8vw, .75rem);
  background: #0a0a0a;
  box-shadow: 0 36px 70px -40px rgba(10, 10, 10, .55);
  position: relative;
}
.re-phone .re-video {
  aspect-ratio: 9 / 16;          /* screen is exactly 9:16 — the reel fills it */
  background: #0a0a0a;           /* black behind any edge, never the light placeholder */
  border-radius: clamp(1.1rem, 1.8vw, 1.8rem);
}
.re-phone::after {
  /* notch pill */
  content: "";
  position: absolute;
  top: clamp(1rem, 1.6vw, 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  width: 26%;
  height: 12px;
  background: #0a0a0a;
  border-radius: 999px;
  z-index: 3;
  pointer-events: none;
}

.re-tile-meta {
  margin-top: .8rem;
  font-family: var(--font-grotesk);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .68rem;
  color: var(--re-grey);
  transition: color var(--dur) var(--ease);
}
.re-tile:hover .re-tile-meta { color: var(--re-ink); }
.re-tile--tall .re-tile-meta { text-align: center; }

/* ---- Statement band: left-aligned poster type ---- */
.re-statement-section { padding-block: var(--space-lg); }
.re-statement {
  font-size: clamp(1.9rem, 4.6vw, 4rem);
  font-weight: 800;
  max-width: 26ch;
}

/* ---- Stats band ---- */
.re-stats {
  background: var(--re-panel);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.re-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  text-align: center;
}
.re-stat-num {
  display: block;
  font-family: var(--font-block);
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: clamp(2.25rem, 4.2vw, 3.6rem);
  line-height: 1;
  background: var(--re-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.re-stat-label {
  display: block;
  margin-top: .6rem;
  font-family: var(--font-grotesk);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .64rem;
  color: var(--re-grey);
}

/* ---- Process steps ---- */
.re-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  list-style: none;   /* it's an <ol>; the gradient bars do the counting */
  margin: 0;
  padding: 0;
}
.re-step { position: relative; padding-top: 1.5rem; }
.re-step::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 3rem; height: 3px;
  background: var(--re-grad);
  border-radius: 2px;
}
.re-step-num {
  font-family: var(--font-grotesk);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .64rem;
  color: var(--re-grey);
  display: block;
  margin-bottom: .75rem;
}
.re-step h3 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); margin-bottom: .6rem; }
.re-step p { color: var(--re-grey); font-size: .95rem; }

/* ---- Pricing ---- */
.re-pricing-intro {
  max-width: 52ch;
  color: var(--re-grey);
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
}
.re-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: start;
}
.re-package {
  position: relative;
  border: 1px solid var(--re-line);
  border-radius: clamp(.75rem, 1.2vw, 1.1rem);
  background: var(--re-bg);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.re-package:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -40px rgba(10, 10, 10, .4);
}
/* Featured card: hairline spectral border (gradient drawn in the border box). */
.re-package--featured {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--re-bg), var(--re-bg)) padding-box,
    var(--re-grad) border-box;
}
.re-flag {
  position: absolute;
  top: 0; right: clamp(1.75rem, 3vw, 2.75rem);
  transform: translateY(-50%);
  background: var(--re-grad);
  color: #ffffff;
  font-family: var(--font-grotesk);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .6rem;
  padding: .5em 1em;
  border-radius: 999px;
}
/* Soft flag: muted, for the availability tag — doesn't compete with "Most popular". */
.re-flag--soft {
  background: var(--re-bg);
  color: var(--re-grey);
  border: 1px solid var(--re-line);
}
.re-package h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: .6rem; }
.re-package-desc { color: var(--re-grey); font-size: .92rem; min-height: 3.2em; }
.re-package-price {
  font-family: var(--font-block);
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: clamp(2.1rem, 3.2vw, 3rem);
  line-height: 1;
  margin: 1.25rem 0 1.5rem;
  color: var(--re-ink);
}
.re-package-price span {
  display: block;
  font-family: var(--font-grotesk);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .6rem;
  color: var(--re-grey);
  margin-bottom: .5rem;
}
/* Word-based price (custom quote) reads smaller than the dollar figures. */
.re-package-price--custom { font-size: clamp(1.5rem, 2.4vw, 2rem); }
/* Availability note under the Essentials price. */
.re-package-note {
  margin: -.75rem 0 0;
  color: var(--re-grey);
  font-size: .8rem;
  line-height: 1.4;
}
.re-package-btn { margin-top: 1.75rem; align-self: flex-start; }
.re-custom-note {
  margin-top: var(--space-md);
  color: var(--re-grey);
  font-size: .98rem;
}
.re-custom-note a {
  color: var(--re-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--re-ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: opacity var(--dur) var(--ease);
}
.re-custom-note a:hover { opacity: .65; }

/* ---- <details> styling (packages + FAQ) ---- */
.re-page details {
  border-top: 1px solid var(--re-line);
  padding: .85rem 0;
}
.re-page details:last-of-type { border-bottom: 1px solid var(--re-line); }
.re-page summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-grotesk);
  font-weight: 500;
  font-size: .94rem;
  transition: color var(--dur) var(--ease);
}
.re-page summary::-webkit-details-marker { display: none; }
.re-page summary::after {
  content: "+";
  font-family: var(--font-grotesk);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--re-ink);
  flex: 0 0 auto;
  transition: transform var(--dur) var(--ease);
}
.re-page details[open] summary::after { transform: rotate(45deg); }
.re-page summary:hover { color: var(--re-grey); }
.re-page details p {
  margin: .75rem 0 .25rem;
  color: var(--re-grey);
  font-size: .9rem;
}

/* FAQ: a roomier single column. */
.re-faq { max-width: 70ch; }
.re-faq summary { font-size: 1.05rem; font-weight: 700; padding-block: .35rem; }

/* ---- Realtors grid ---- */
.re-realtors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.75rem, 1.5vw, 1.25rem);
}
.re-realtor {
  border: 1px solid var(--re-line);
  border-radius: clamp(.75rem, 1.2vw, 1.1rem);
  padding: 1.5rem 1.75rem;
}
.re-realtor-name {
  font-family: var(--font-grotesk);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--re-ink);
  margin-bottom: .35rem;
}
.re-realtor-brokerage {
  font-family: var(--font-grotesk);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .64rem;
  color: var(--re-grey);
}
/* CTA card: spectral hairline border + gradient text. */
.re-realtor--cta {
  display: block;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--re-bg), var(--re-bg)) padding-box,
    var(--re-grad) border-box;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.re-realtor--cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -28px rgba(10, 10, 10, .4);
}
.re-realtor--cta .re-realtor-brokerage {
  background: var(--re-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Full-width CTA: span every column and lay the copy out as a banner row. */
.re-realtor--full {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .35rem 1rem;
}
.re-realtor--full .re-realtor-name { margin-bottom: 0; }

/* ---- Testimonial strip ---- */
.re-testimonial-section {
  background: var(--re-panel);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.re-testimonial {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: center;
}
.re-testimonial-media { display: flex; justify-content: center; }
/* Circle-cropped headshot spot. */
.re-testimonial-photo {
  width: clamp(160px, 22vw, 240px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 24px 48px -28px rgba(10, 10, 10, .4);
}
.re-testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.re-testimonial-quote { margin: 0; }
.re-testimonial-quote p {
  font-family: var(--font-grotesk);
  font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.45;
  color: var(--re-ink);
}
.re-testimonial-name {
  margin-top: 1.5rem;
  font-family: var(--font-grotesk);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--re-ink);
}
.re-testimonial-role {
  margin-top: .25rem;
  font-family: var(--font-grotesk);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .64rem;
  color: var(--re-grey);
}
.re-testimonial-stat {
  margin-top: 1rem;
  font-family: var(--font-grotesk);
  font-weight: 600;
  font-size: .95rem;
  color: var(--re-ink);
}
.re-testimonial-stat .re-accent-text { font-weight: 800; }
.re-testimonial-links {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.re-testimonial-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--re-line);
  border-radius: 50%;
  color: var(--re-ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.re-testimonial-links a:hover {
  background: var(--re-ink);
  border-color: var(--re-ink);
  color: #ffffff;
  transform: translateY(-2px);
}
.re-testimonial-links svg { width: 18px; height: 18px; display: block; }
/* Flipped variant: photo on the right (desktop only; mobile stacks photo-first
   for both via the shared max-width:760 rule). */
@media (min-width: 761px) {
  .re-testimonial--reverse { grid-template-columns: 1fr auto; }
  .re-testimonial--reverse .re-testimonial-media { order: 2; }
  /* Mirror Kelsey: text hugs the photo, so right-align copy + icons. */
  .re-testimonial--reverse .re-testimonial-body { text-align: right; }
  .re-testimonial--reverse .re-testimonial-links { justify-content: flex-end; }
}

/* ---- Inquiry: the black block at the end ---- */
.re-inquire {
  background: #0a0a0a;
  color: #ffffff;
}
.re-inquire h2 {
  color: #ffffff;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
}
.re-inquire .eyebrow { color: rgba(255, 255, 255, .6); }
.re-inquire .prose p { color: rgba(255, 255, 255, .75); font-weight: 500; }
.re-inquire-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.re-inquire-intro .eyebrow { display: block; margin-bottom: 1rem; }
.re-inquire-intro h2 { margin-bottom: 1.5rem; }
.re-inquire .contact-detail dt { font-family: var(--font-grotesk); font-weight: 700; color: rgba(255, 255, 255, .55); }
.re-inquire .contact-detail dd { color: #ffffff; }
.re-inquire .link-underline { font-weight: 700; }
.re-inquire .link-underline::after { background: #ffffff; }
.re-inquire .form-field label {
  font-family: var(--font-grotesk);
  font-weight: 700;
  color: rgba(255, 255, 255, .6);
}
.re-inquire .form-field input,
.re-inquire .form-field textarea,
.re-inquire .form-field select {
  font-family: var(--font-grotesk);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
}
.re-inquire .form-field select option { color: var(--re-ink); }
.re-inquire .form-field input:focus,
.re-inquire .form-field textarea:focus,
.re-inquire .form-field select:focus { border-color: #ffffff; }
.re-inquire .btn {
  background: #ffffff;
  border-color: #ffffff;
  color: #0a0a0a;
}
.re-inquire .btn:hover {
  background: var(--re-grad);
  border-color: transparent;
  color: #ffffff;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .re-services { grid-template-columns: repeat(2, 1fr); }
  .re-steps { grid-template-columns: repeat(2, 1fr); }
  .re-pricing { grid-template-columns: 1fr; }
  .re-package-desc { min-height: 0; }
  .re-realtors { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  /* Single-column hero; drop the square image on mobile. */
  .re-hero { grid-template-columns: 1fr; }
  .re-hero-figure { display: none; }
  /* Testimonial stacks and centers. */
  .re-testimonial { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .re-testimonial-links { justify-content: center; }
  .re-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .re-inquire-grid { grid-template-columns: 1fr; }
  .re-gallery { grid-template-columns: repeat(2, 1fr); }
  .re-tile--wide, .re-tile--full { grid-column: span 2; }
  .re-tile--tall { grid-column: span 1; }
}

@media (max-width: 520px) {
  .re-services { grid-template-columns: 1fr; }
  .re-steps { grid-template-columns: 1fr; }
  .re-realtors { grid-template-columns: 1fr; }
  .re-gallery { grid-template-columns: 1fr; }
  .re-tile--tall { grid-column: span 1; }
}
