/* RLRE home slider, free home evaluation and homebuyer's guide pages */
:root {
  --rlre-navy: #01273e;
  --rlre-navy-2: #0b3a57;
  --rlre-white: #ffffff;
  --rlre-sand: #e8c39a;
  --rlre-ink: #1d2b36;
  --rlre-muted: #5b6b77;
  --rlre-line: #d7dee4;
  --rlre-soft: #f3f6f8;
}

/* ---------- Home hero slider ---------- */
.slider_area.three.hero-slider {
  background-image: none;
  padding: 0;
}
.slider_area.three.hero-slider::before {
  display: none;
}
.hero-slider .rlre-hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--rlre-navy);
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s cubic-bezier(.4, 0, .2, 1), visibility 0s linear 1.1s;
}
/* Photo layer: a slow zoom-out while the slide is showing. */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.08);
  will-change: transform;
}
.hero-slide.is-active .hero-slide-bg {
  transform: scale(1);
  transition: transform 6.5s cubic-bezier(.25, .1, .25, 1);
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(1, 39, 62, .96) 0%, rgba(1, 39, 62, .82) 48%, rgba(1, 39, 62, .18) 100%);
}
.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity 1.1s cubic-bezier(.4, 0, .2, 1), visibility 0s;
}
.hero-slide-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 120px 7% 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .35s ease, transform .35s ease;
}
/* Old text leaves first, then the new slide's text glides in. */
.hero-slide.is-active .hero-slide-inner {
  opacity: 1;
  transform: none;
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1) .35s, transform .7s cubic-bezier(.22, .61, .36, 1) .35s;
}
.hero-slide-copy {
  max-width: 720px;
}
.hero-slide .banner-logo {
  display: block;
  width: min(300px, 35vw);
  padding: 0 !important;
  margin-bottom: 28px;
}
.hero-eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  color: var(--rlre-white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-slide .banner-title {
  margin: 0;
}
/* First slide: the header already shows the logo, so lead with the headline. */
.hero-slide .hero-title-lg {
  font-size: clamp(46px, 6.4vw, 92px);
  line-height: 1.02;
}
.hero-slide .banner-subtitle {
  max-width: 600px;
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-slide .hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 12px 26px;
  color: var(--rlre-navy) !important;
  background: var(--rlre-white) !important;
  border: 2px solid var(--rlre-white) !important;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
}
.hero-slide .hero-cta:hover,
.hero-slide .hero-cta:focus-visible {
  color: var(--rlre-white) !important;
  background: var(--rlre-navy) !important;
  outline: 2px solid var(--rlre-white);
  outline-offset: 3px;
}
.hero-slide .hero-cta.is-ghost {
  color: var(--rlre-white) !important;
  background: transparent !important;
}
.hero-slide .hero-cta.is-ghost:hover,
.hero-slide .hero-cta.is-ghost:focus-visible {
  color: var(--rlre-navy) !important;
  background: var(--rlre-white) !important;
}
.hero-guide-cover {
  flex: 0 0 auto;
  width: min(300px, 24vw);
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  transform: rotate(3deg);
}
.hero-controls {
  position: absolute;
  z-index: 3;
  left: 7%;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-controls button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: rgba(1, 39, 62, .35);
  color: var(--rlre-white);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.hero-controls button:hover,
.hero-controls button:focus-visible {
  background: var(--rlre-white);
  color: var(--rlre-navy);
  outline: none;
}
.hero-dots {
  display: flex;
  gap: 8px;
  margin: 0 6px;
}
.hero-controls .hero-dot {
  width: 12px;
  height: 12px;
  border-width: 2px;
  background: transparent;
}
.hero-controls .hero-dot[aria-current="true"] {
  width: 32px;
  border-radius: 999px;
  background: var(--rlre-white);
}
@media (max-width: 991px) {
  .hero-guide-cover {
    display: none;
  }
}
@media (max-width: 768px) {
  .slider_area.three.hero-slider {
    padding: 0;
  }
  .hero-slide {
    align-items: flex-start;
  }
  .hero-slide::before {
    background: linear-gradient(180deg, rgba(1, 39, 62, .96) 0%, rgba(1, 39, 62, .88) 55%, rgba(1, 39, 62, .5) 100%);
  }
  .hero-slide-inner {
    padding: 120px 6% 110px;
  }
  .hero-slide .hero-title-lg {
    font-size: clamp(38px, 11vw, 54px);
  }
  .hero-eyebrow {
    font-size: 12px;
  }
  /* Keep clear of the floating WhatsApp button in the bottom-left corner. */
  .hero-controls {
    left: auto;
    right: 5%;
    bottom: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide.is-active,
  .hero-slide-inner,
  .hero-slide.is-active .hero-slide-inner,
  .hero-slide-bg,
  .hero-slide.is-active .hero-slide-bg {
    transition: none;
    transform: none;
  }
}

/* ---------- Shared lead page layout ---------- */
.lead-page {
  padding: 72px 0 84px;
  background: var(--rlre-soft);
  color: var(--rlre-ink);
}
.lead-page h2,
.lead-page h3,
.lead-section h2,
.lead-section h3 {
  color: var(--rlre-navy) !important;
  font-weight: 700;
}
.lead-section h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  margin-bottom: 12px;
}
.lead-section h3 {
  font-size: 21px;
  margin-bottom: 10px;
}
.lead-section p {
  font-size: 17px;
  line-height: 1.6;
}
.lead-page h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  margin-bottom: 16px;
}
.lead-page h3 {
  font-size: 21px;
  margin-bottom: 10px;
}
.lead-page p,
.lead-page li {
  color: var(--rlre-ink);
  font-size: 17px;
  line-height: 1.6;
}
.lead-intro {
  font-size: 19px !important;
  color: var(--rlre-muted) !important;
}
.lead-checks {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
}
.lead-checks li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}
.lead-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rlre-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.6 2.5L12 5.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.lead-card {
  background: var(--rlre-white);
  border: 1px solid var(--rlre-line);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(1, 39, 62, .10);
  padding: clamp(22px, 4vw, 40px);
}
.lead-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--rlre-line);
}
.lead-trust img {
  flex: 0 0 auto;
  width: 140px;
  height: 82px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  background: var(--rlre-white);
}
.lead-trust p {
  margin: 0;
  font-size: 15px;
  color: var(--rlre-muted);
}

/* ---------- Form controls ---------- */
.lead-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.lead-form legend {
  float: none;
  width: auto;
  margin-bottom: 6px;
  color: var(--rlre-navy);
  font-size: 22px;
  font-weight: 700;
}
.lead-form .step-hint {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--rlre-muted);
}
.lead-field {
  margin-bottom: 16px;
}
.lead-field label,
.lead-field .field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--rlre-navy);
  font-size: 15px;
  font-weight: 700;
}
.lead-field .optional {
  font-weight: 400;
  color: var(--rlre-muted);
}
.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form select,
.lead-form textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid #b9c5ce;
  border-radius: 6px;
  background: var(--rlre-white);
  color: var(--rlre-ink);
  font-size: 16px;
  box-shadow: none;
}
.lead-form textarea {
  min-height: 96px;
  resize: vertical;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--rlre-navy);
  outline: 3px solid rgba(1, 39, 62, .18);
  outline-offset: 0;
}
.lead-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.lead-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.lead-choice {
  position: relative;
}
.lead-choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.lead-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px;
  border: 1.5px solid #b9c5ce;
  border-radius: 6px;
  background: var(--rlre-white);
  color: var(--rlre-navy);
  font-weight: 700;
  text-align: center;
}
.lead-choice input:checked + span {
  border-color: var(--rlre-navy);
  background: var(--rlre-navy);
  color: var(--rlre-white);
}
.lead-choice input:focus-visible + span {
  outline: 3px solid rgba(1, 39, 62, .35);
  outline-offset: 2px;
}
.lead-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.lead-consent input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--rlre-navy);
}
.lead-consent label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--rlre-ink);
}
.lead-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.lead-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.lead-actions .btns {
  cursor: pointer;
}
.lead-back {
  padding: 10px 4px;
  border: 0;
  background: none;
  color: var(--rlre-navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.lead-status {
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: #9b1c1c !important;
}
.lead-status:empty {
  display: none;
}
.lead-fineprint {
  margin: 18px 0 0;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: var(--rlre-muted) !important;
}

/* Step indicator and step visibility (only when JavaScript runs) */
.lead-steps {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  gap: 8px;
}
.js-steps .lead-steps {
  display: flex;
}
.lead-steps li {
  flex: 1;
  margin: 0;
  padding-top: 10px;
  border-top: 4px solid var(--rlre-line);
  color: var(--rlre-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.lead-steps li.is-done,
.lead-steps li[aria-current="step"] {
  border-color: var(--rlre-navy);
  color: var(--rlre-navy);
}
.lead-form fieldset + fieldset {
  margin-top: 28px;
}
.js-steps .lead-form fieldset {
  display: none;
}
.js-steps .lead-form fieldset.is-current {
  display: block;
  margin-top: 0;
}
.lead-form [hidden],
.lead-card [hidden] {
  display: none !important;
}

.lead-success {
  text-align: center;
  padding: 12px 0;
}
.lead-success[hidden] {
  display: none;
}
.lead-success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--rlre-navy);
  color: var(--rlre-white);
  font-size: 34px;
}

/* ---------- Info sections ---------- */
.lead-section {
  padding: 72px 0;
  background: var(--rlre-white);
}
.lead-section.is-soft {
  background: var(--rlre-soft);
}
.lead-section .section-intro {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}
.lead-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.lead-step-card {
  height: 100%;
  padding: 26px;
  border: 1px solid var(--rlre-line);
  border-radius: 10px;
  background: var(--rlre-white);
}
.lead-step-card .num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--rlre-navy);
  color: var(--rlre-white);
  font-weight: 700;
}
.lead-step-card p {
  margin: 0;
  color: var(--rlre-muted);
}
.lead-faq {
  max-width: 820px;
  margin: 0 auto;
}
.lead-faq details {
  border-bottom: 1px solid var(--rlre-line);
  padding: 18px 0;
}
.lead-faq summary {
  cursor: pointer;
  color: var(--rlre-navy);
  font-size: 18px;
  font-weight: 700;
  list-style-position: outside;
}
.lead-faq details p {
  margin: 12px 0 0;
  color: var(--rlre-ink);
}
.lead-cta-band {
  padding: 56px 0;
  background: var(--rlre-navy);
  text-align: center;
}
.lead-cta-band h2 {
  color: var(--rlre-white);
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 18px;
}
.lead-cta-band .btns {
  background: var(--rlre-white) !important;
  color: var(--rlre-navy) !important;
  border-color: var(--rlre-white) !important;
}
.guide-cover {
  display: block;
  width: min(360px, 80%);
  margin: 0 auto 28px;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(1, 39, 62, .28);
}
.lead-inline-cta {
  margin: 34px 0 10px;
  padding: 28px;
  border-radius: 10px;
  background: var(--rlre-navy);
  color: var(--rlre-white);
}
.lead-inline-cta h3,
.lead-inline-cta p {
  color: var(--rlre-white) !important;
}
.lead-inline-cta .btns {
  background: var(--rlre-white) !important;
  color: var(--rlre-navy) !important;
  border-color: var(--rlre-white) !important;
}

@media (max-width: 991px) {
  .lead-steps-grid {
    grid-template-columns: 1fr;
  }
  /* On smaller screens the form comes first, then the details. */
  .lead-page .order-1 {
    margin-bottom: 40px;
  }
}
@media (max-width: 575px) {
  .lead-page {
    padding: 48px 0 60px;
  }
  .lead-row,
  .lead-choices {
    grid-template-columns: 1fr;
  }
  .lead-steps li {
    font-size: 12px;
  }
  .lead-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .lead-actions .btns {
    width: 100%;
  }
}

/* ---------- Service page action panel (replaces the repeated banner photo) ---------- */
.service-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(26px, 4vw, 44px) clamp(24px, 4vw, 52px);
  border-radius: 10px;
  background: var(--rlre-white);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
}
.service-cta-kicker {
  margin: 0 0 8px !important;
  color: var(--rlre-muted) !important;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.service-cta-panel h2 {
  margin: 0 0 8px;
  color: var(--rlre-navy) !important;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.15;
  font-weight: 700;
}
.service-cta-copy p:last-child {
  margin: 0;
  color: var(--rlre-ink) !important;
  font-size: 17px;
  line-height: 1.55;
}
.service-cta-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.service-cta-panel .btns {
  min-height: 52px;
  padding: 13px 26px;
  cursor: pointer;
}
.service-cta-link {
  color: var(--rlre-navy) !important;
  font-weight: 700;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}
.service-cta-link:hover,
.service-cta-link:focus-visible {
  text-decoration-thickness: 2px !important;
}
@media (max-width: 767px) {
  .service-cta-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }
  .service-cta-actions {
    align-items: stretch;
    text-align: center;
  }
}

/* Service page section headings sit on navy, so they need to be white. */
.service-details-area .service_details_content h3,
.service-details-area .service-steps-list h3 {
  color: var(--rlre-white) !important;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.3;
  margin-bottom: 14px;
}
.service-details-area .row.mg-tp {
  margin-top: 56px;
}
