/* ---------------------------------------------------------------
   /real-estate — The Growing Family Blueprint
   Extends the shared system in /styles.css. Loaded only here.
---------------------------------------------------------------- */

.wrap { max-width: var(--wrap); margin: 0 auto; }

.section { padding: 5.5rem 1.5rem; }

/* Section rhythm (alternating depth, like the homepage) */
.problem   { background: var(--bg); }
.blueprint { background:
  radial-gradient(75% 50% at 50% 0%, rgba(138, 191, 92, 0.06), transparent 70%),
  var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about     { background: var(--bg); }
.testi     { background: var(--bg-2); border-top: 1px solid var(--line); }

/* --- Hero tweaks specific to this page --- */
/* Rendering behind the hero content, under a navy wash that keeps text readable.
   Overlay fades left→right so the house shows through beside the text. */
.hero__content {
  background:
    radial-gradient(120% 90% at 12% 8%, rgba(138, 191, 92, 0.14), transparent 55%),
    linear-gradient(115deg,
      rgba(28, 39, 49, 0.96) 0%,
      rgba(43, 56, 68, 0.88) 52%,
      rgba(57, 74, 90, 0.60) 100%),
    url('/images/re-hero-render.jpg') center right / cover no-repeat,
    var(--navy);
}
@media (max-width: 560px) {
  .hero__content {
    background:
      radial-gradient(120% 90% at 12% 8%, rgba(138, 191, 92, 0.12), transparent 55%),
      linear-gradient(160deg, rgba(28, 39, 49, 0.94) 0%, rgba(43, 56, 68, 0.88) 60%, rgba(28, 39, 49, 0.92) 100%),
      url('/images/re-hero-render-1000.jpg') center / cover no-repeat,
      var(--navy);
  }
}

.re-subhead { max-width: 40ch; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.25rem;
}
/* Real Broker logo (replaces text pill) */
.re-broker-logo {
  height: 48px;
  width: auto;
  display: block;
}

.hero__book {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 420px;      /* centre under the form's submit button */
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.15s ease;
}
@media (hover: hover) { .hero__book:hover { color: var(--green-bright); } }

/* --- Inline lead form (Netlify) --- */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 420px;
}
.lead-form--center { margin: 0 auto 1.5rem; }
.lead-form__trap { position: absolute; left: -9999px; opacity: 0; height: 0; margin: 0; }
.lead-form__input {
  width: 100%;
  padding: 0.95rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.lead-form__input::placeholder { color: rgba(255, 255, 255, 0.45); }
.lead-form__input:focus {
  outline: none;
  border-color: var(--green);
  background: rgba(255, 255, 255, 0.09);
}
.lead-form__submit { justify-content: center; width: 100%; }
.hero__actions { flex-direction: column; align-items: flex-start; }

/* ---------------------------------------------------------------
   2 · THE PROBLEM
---------------------------------------------------------------- */
.problem .section-head { margin-bottom: 2.5rem; }
.problem__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}
.problem__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 2.75rem 2.25rem;
  display: flex;
  align-items: center;
  min-height: 180px;
  position: relative;
}
.problem__card::before {
  content: "";
  position: absolute;
  top: 2.75rem; left: 0;
  width: 3px; height: 2.4rem;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--green-bright), var(--green-deep));
}
.problem__line {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--white);
}
.problem__close {
  max-width: 24ch;
  margin: 3.5rem auto 0;
  text-align: center;
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* ---------------------------------------------------------------
   3 · BLUEPRINT — numbered steps
---------------------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.9rem 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) {
  .step:hover { border-color: rgba(138, 191, 92, 0.35); transform: translateX(4px); }
}
.step__num {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  flex: none;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--green-bright), var(--green-deep));
  color: #10151b;
  font-weight: 800;
  font-size: 1.5rem;
  box-shadow: 0 10px 26px rgba(138, 191, 92, 0.28);
}
.step__title {
  margin: 0.35rem 0 0.55rem;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--white);
}
.step__desc {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}
.blueprint__cta { display: flex; justify-content: center; margin-top: 3rem; }

/* ---------------------------------------------------------------
   4 · ABOUT DAN
---------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
.about__media { position: relative; }
.about__media img {
  width: 100%;
  height: auto;              /* keep natural aspect ratio — attribute height was stretching it */
  max-width: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.about__title {
  margin: 1.25rem 0 1.5rem;
  font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--white);
}
.about__body p {
  margin: 0 0 1.25rem;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 60ch;
}
.pullquote {
  position: relative;
  margin: 2.5rem 0;
  padding: 2rem 2.25rem 2rem 2.5rem;
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(138, 191, 92, 0.10), transparent 60%),
    var(--card);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--white);
  max-width: none;
}
.pullquote__mark {
  position: absolute;
  top: 0.4rem; left: 1.4rem;
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(138, 191, 92, 0.35);
  font-family: Georgia, "Times New Roman", serif;
}
.about__note {
  font-size: 1.08rem;
  color: var(--muted);
}
.inline-link {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(138, 191, 92, 0.4);
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
@media (hover: hover) {
  .inline-link:hover { color: var(--green-bright); text-decoration-color: var(--green-bright); }
}

/* ---------------------------------------------------------------
   5 · TESTIMONIALS
---------------------------------------------------------------- */
.testi__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.testi__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) {
  .testi__card:hover { border-color: rgba(138, 191, 92, 0.35); transform: translateY(-4px); }
}
.testi__stars { color: var(--green); letter-spacing: 0.15em; font-size: 0.95rem; }
.testi__quote {
  margin: 0;
  flex: 1 1 auto;
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.6;
}
.testi__name {
  margin: 0;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

/* ---------------------------------------------------------------
   6 · SERVICE AREA
---------------------------------------------------------------- */
.area {
  background:
    radial-gradient(120% 120% at 10% 10%, rgba(138, 191, 92, 0.14), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, #2b3844 60%, #1c2731 100%);
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--line);
}
.area__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  flex-wrap: wrap;
}
.area__pin {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  flex: none;
  border-radius: 12px;
  background: rgba(138, 191, 92, 0.16);
  border: 1px solid rgba(138, 191, 92, 0.35);
  color: var(--green-bright);
}
.area__text {
  margin: 0;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--white);
}
.area__label {
  color: var(--green-bright);
  font-weight: 700;
  margin-right: 0.35rem;
}

/* ---------------------------------------------------------------
   7 · FINAL CTA
---------------------------------------------------------------- */
.final-cta {
  padding: 5.5rem 1.5rem 6rem;
  text-align: center;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(138, 191, 92, 0.10), transparent 70%),
    var(--bg);
}
.final-cta__inner { max-width: 760px; margin: 0 auto; }
.final-cta__title {
  margin: 0 0 2.25rem;
  font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--white);
}
.final-cta__row { justify-content: center; }
.final-cta__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2.25rem;
  color: var(--muted);
  font-weight: 600;
}
.final-cta__contact a {
  color: var(--text);
  transition: color 0.15s ease;
}
@media (hover: hover) { .final-cta__contact a:hover { color: var(--green); } }
.dot-sep { color: var(--faint); }

/* ---------------------------------------------------------------
   DESKTOP
---------------------------------------------------------------- */
@media (min-width: 901px) {
  .section { padding: 7rem 2rem; }

  .problem__grid { grid-template-columns: repeat(3, 1fr); }
  .problem__card { min-height: 240px; }

  .about__grid {
    grid-template-columns: 360px 1fr;
    gap: 4rem;
    align-items: center;
  }
  .about__media { position: sticky; top: 3rem; }

  .testi__grid { grid-template-columns: repeat(3, 1fr); }

  .final-cta { padding: 8rem 2rem; }
}

@media (min-width: 1100px) {
  .step { padding: 2.1rem 2.5rem; gap: 1.9rem; }
}
