/* ==========================================================================
   Real Estate — Founding Partner Program landing page

   Everything is prefixed .cfp- and scoped under .cfp-page. This page shares its
   layout, navbar and footer with the other landing pages, so unprefixed rules
   would leak straight into them.

   Palette and type match the approved design:
     navy   #0C2536    canvas #F6F7F9    orange #FF5900
     deep   #081926    line   #2C4C5E    ink    #1B2631
   Poppins 700 for headings, Inter for body copy.

   NOTE: url() paths here are relative to THIS file
   (public/assets/css/real-estate/), so images need ../../img/...
   ========================================================================== */

.cfp-page {
    --cfp-navy:        #0c2536;
    --cfp-navy-deep:   #081926;
    --cfp-line:        #2c4c5e;
    --cfp-canvas:      #f6f7f9;
    --cfp-orange:      #ff5900;
    --cfp-orange-dark: #e64f00;
    --cfp-ink:         #1b2631;
    --cfp-body:        #566a7f;
    --cfp-invert:      #b8c7d3;
    --cfp-hairline:    #e7e9ee;
    --cfp-radius:      1rem;

    /* The navbar sits above the hero in normal flow rather than over it. The
       hero subtracts this to fill exactly what is left of the screen. Brand
       logo 54px + navbar padding + 1px border ~= 72px. */
    --cfp-navbar-h: 72px;

    background-color: #fff;
    color: var(--cfp-ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cfp-page h1,
.cfp-page h2,
.cfp-page h3 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cfp-page .cfp-accent {
    color: var(--cfp-orange);
}

/* ------------------------------- Sections ------------------------------- */
.cfp-page .cfp-section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.cfp-page .cfp-section-canvas {
    background-color: var(--cfp-canvas);
}

.cfp-page .cfp-section-navy {
    background-color: var(--cfp-navy);
}

/* --------------------------------- Hero --------------------------------- */
/* The photograph is a requirement of this page, so the navy of the reference
   design is layered over it as a gradient rather than replacing it: the image
   still reads, and the white headline keeps its contrast. */
.cfp-page .cfp-hero {
    position: relative;
    background-image:
        linear-gradient(180deg, rgba(8, 25, 38, 0.92) 0%, rgba(12, 37, 54, 0.9) 55%, rgba(12, 37, 54, 0.95) 100%),
        url('../../img/real-estate/real-estate-hero.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--cfp-navbar-h));
    min-height: calc(100svh - var(--cfp-navbar-h));
    padding: clamp(3rem, 8vw, 6rem) 0;
    text-align: center;
}

.cfp-page .cfp-hero-title {
    /* Capped measure so the headline breaks across three lines the way the
       approved design does; without it the full-width container pulls it onto
       two very long lines on a wide screen. */
    max-width: 55rem;
    margin: 0 auto 1.25rem;
    color: #fff;
    font-size: clamp(2rem, 5.2vw, 3.75rem);
    line-height: 1.08;
}

.cfp-page .cfp-hero-sub {
    max-width: 42rem;
    margin: 0 auto 2rem;
    color: var(--cfp-invert);
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    line-height: 1.6;
}

.cfp-page .cfp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

/* Reassurance strip under the CTAs. */
.cfp-page .cfp-hero-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1rem, 4vw, 3rem);
    max-width: 48rem;
    margin: 0 auto;
    padding: 1.125rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--cfp-radius);
    background-color: rgba(255, 255, 255, 0.04);
}

.cfp-page .cfp-hero-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #e6edf3;
    font-size: 0.9375rem;
}

.cfp-page .cfp-hero-check i {
    color: var(--cfp-orange);
}

.cfp-page .cfp-hero-remaining {
    margin: 1.5rem 0 0;
    color: var(--cfp-orange);
    font-size: 0.9375rem;
    font-weight: 600;
}

/* -------------------------- Badges and eyebrows -------------------------- */
.cfp-page .cfp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.4375rem 1rem;
    border: 1px solid rgba(255, 89, 0, 0.45);
    border-radius: 999px;
    background-color: rgba(255, 89, 0, 0.1);
    color: var(--cfp-orange);
    font-size: 0.8125rem;
    font-weight: 600;
}

.cfp-page .cfp-badge-dark {
    border-color: transparent;
    background-color: var(--cfp-navy);
}

.cfp-page .cfp-badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--cfp-orange);
}

.cfp-page .cfp-eyebrow {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--cfp-orange);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cfp-page .cfp-kicker {
    display: block;
    margin-bottom: 1rem;
    color: var(--cfp-orange);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ------------------------------ Section type ----------------------------- */
.cfp-page .cfp-h2 {
    margin-bottom: 1rem;
    color: var(--cfp-ink);
    font-size: clamp(1.75rem, 3.4vw, 2.75rem);
    line-height: 1.15;
}

.cfp-page .cfp-lead {
    margin-bottom: 0;
    color: var(--cfp-body);
    font-size: clamp(1rem, 1.3vw, 1.125rem);
    line-height: 1.6;
}

.cfp-page .cfp-lead strong {
    color: var(--cfp-ink);
    font-weight: 600;
}

.cfp-page .cfp-lead-invert {
    color: var(--cfp-invert);
}

.cfp-page .cfp-lead-invert strong {
    color: #fff;
}

/* -------------------------------- Buttons -------------------------------- */
.cfp-page .cfp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8125rem 2rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cfp-page .cfp-btn:hover {
    transform: translateY(-1px);
}

.cfp-page .cfp-btn-primary {
    background-color: var(--cfp-orange);
    color: #fff;
}

.cfp-page .cfp-btn-primary:hover {
    background-color: var(--cfp-orange-dark);
    color: #fff;
}

/* Outline button on the navy hero. */
.cfp-page .cfp-btn-ghost {
    border-color: rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.cfp-page .cfp-btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Quiet button on the light pricing cards. */
.cfp-page .cfp-btn-soft {
    background-color: #eceef2;
    color: var(--cfp-ink);
}

.cfp-page .cfp-btn-soft:hover {
    background-color: #e0e3e9;
    color: var(--cfp-ink);
}

.cfp-page .cfp-btn-block {
    width: 100%;
}

.cfp-page .cfp-btn-sm {
    padding: 0.5625rem 1.25rem;
    font-size: 0.875rem;
}

/* -------------------------------- Cards ---------------------------------- */
.cfp-page .cfp-card {
    height: 100%;
    padding: 1.75rem;
    border: 1px solid var(--cfp-hairline);
    border-radius: var(--cfp-radius);
    background-color: #fff;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.cfp-page .cfp-card:hover {
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
    transform: translateY(-2px);
}

.cfp-page .cfp-card-dark {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-color: transparent;
    background-color: var(--cfp-navy);
}

.cfp-page .cfp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1.25rem;
    border-radius: 0.75rem;
    background-color: var(--cfp-orange);
    color: #fff;
    font-size: 1.25rem;
}

.cfp-page .cfp-card-title {
    margin-bottom: 0.625rem;
    color: var(--cfp-ink);
    font-size: 1.0625rem;
    font-weight: 700;
}

.cfp-page .cfp-card-body {
    margin-bottom: 0;
    color: var(--cfp-body);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.cfp-page .cfp-card-body-invert {
    color: var(--cfp-invert);
}

/* ------------------------------ Phone mock ------------------------------- */
.cfp-page .cfp-phone {
    position: relative;
    max-width: 22rem;
    margin: 0 auto;
    padding: 1.5rem 1.125rem 1.75rem;
    border: 1px solid var(--cfp-line);
    border-radius: 2rem;
    background-color: #0f2c3f;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.cfp-page .cfp-phone-notch {
    display: block;
    width: 5.5rem;
    height: 0.3125rem;
    margin: 0 auto 1.25rem;
    border-radius: 999px;
    background-color: #24475c;
}

.cfp-page .cfp-phone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    border-radius: 0.75rem;
    background-color: rgba(255, 255, 255, 0.06);
}

.cfp-page .cfp-phone-title {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
}

.cfp-page .cfp-phone-sub {
    color: #8fa6b6;
    font-size: 0.75rem;
}

.cfp-page .cfp-live {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    background-color: rgba(255, 89, 0, 0.15);
    color: var(--cfp-orange);
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
}

.cfp-page .cfp-live-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background-color: var(--cfp-orange);
}

.cfp-page .cfp-phone-thread {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin: 1rem 0;
}

.cfp-page .cfp-bubble {
    max-width: 85%;
    padding: 0.6875rem 0.875rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.cfp-page .cfp-bubble--caller {
    align-self: flex-start;
    background-color: #fff;
    color: var(--cfp-ink);
}

.cfp-page .cfp-bubble--agent {
    align-self: flex-end;
    background-color: var(--cfp-orange);
    color: #fff;
}

.cfp-page .cfp-phone-booked {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6875rem 0.875rem;
    border: 1px dashed var(--cfp-line);
    border-radius: 0.75rem;
    color: #8fa6b6;
    font-size: 0.8125rem;
}

.cfp-page .cfp-booked-tag {
    color: var(--cfp-orange);
    font-weight: 700;
}

.cfp-page .cfp-phone-home {
    display: block;
    width: 2rem;
    height: 2rem;
    margin: 1.25rem auto 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.06);
}

.cfp-page .cfp-phone-caption {
    margin: 1rem 0 0;
    color: #7e93a3;
    font-size: 0.8125rem;
    text-align: center;
}

/* --------------------------- Call outcome cards -------------------------- */
.cfp-page .cfp-outcome-card {
    padding: 1.75rem;
    border: 1px solid var(--cfp-line);
    border-radius: var(--cfp-radius);
    background-color: rgba(255, 255, 255, 0.03);
}

.cfp-page .cfp-outcome-arrow {
    margin: 0.875rem 0;
    color: var(--cfp-orange);
    font-size: 1.25rem;
    text-align: center;
}

/* -------------------------------- Pricing -------------------------------- */
.cfp-page .cfp-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem 1.75rem;
    border: 1px solid var(--cfp-hairline);
    border-radius: var(--cfp-radius);
    background-color: #fff;
}

.cfp-page .cfp-plan--featured {
    border-color: var(--cfp-orange);
    box-shadow: 0 16px 40px rgba(255, 89, 0, 0.12);
}

.cfp-page .cfp-plan-flag {
    position: absolute;
    top: 0;
    left: 50%;
    padding: 0.3125rem 0.875rem;
    border-radius: 999px;
    background-color: var(--cfp-orange);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    transform: translate(-50%, -50%);
}

.cfp-page .cfp-plan-name {
    margin-bottom: 0.25rem;
    color: var(--cfp-ink);
    font-size: 1.125rem;
    font-weight: 700;
}

.cfp-page .cfp-plan-audience {
    margin-bottom: 1.25rem;
    color: var(--cfp-body);
    font-size: 0.875rem;
}

.cfp-page .cfp-plan-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.cfp-page .cfp-plan-was {
    color: #9aa6b2;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: line-through;
}

.cfp-page .cfp-plan-now {
    color: var(--cfp-ink);
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.cfp-page .cfp-plan-per {
    color: var(--cfp-body);
    font-size: 0.9375rem;
}

.cfp-page .cfp-plan-tag {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.3125rem 0.75rem;
    border-radius: 999px;
    background-color: rgba(255, 89, 0, 0.1);
    color: var(--cfp-orange);
    font-size: 0.75rem;
    font-weight: 600;
}

.cfp-page .cfp-plan-rows {
    margin: 0 0 1.5rem;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--cfp-hairline);
    list-style: none;
}

.cfp-page .cfp-plan-rows li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4375rem 0;
    font-size: 0.9375rem;
}

.cfp-page .cfp-plan-row-label {
    color: var(--cfp-body);
}

.cfp-page .cfp-plan-row-value {
    /* inline-flex keeps the tick beside its label - as plain inline content the
       two wrapped onto separate lines inside the narrow card column. */
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    color: var(--cfp-ink);
    white-space: nowrap;
}

.cfp-page .cfp-plan-row-value s {
    margin-right: 0.25rem;
    color: #9aa6b2;
}

/* Pushes the CTA to the bottom so all three cards align regardless of height. */
.cfp-page .cfp-plan .cfp-btn {
    margin-top: auto;
}

.cfp-page .cfp-offer-note {
    margin: 2.5rem 0 0;
    color: var(--cfp-body);
    font-size: 0.9375rem;
    text-align: center;
}

/* ----------------------------- Founding board ---------------------------- */
.cfp-page .cfp-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    margin-top: 2rem;
}

.cfp-page .cfp-counter-num {
    color: var(--cfp-orange);
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: clamp(2.75rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1;
}

.cfp-page .cfp-counter-label {
    color: var(--cfp-invert);
    font-size: 0.9375rem;
    text-align: left;
}

.cfp-page .cfp-slot {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding: 1rem 1.25rem;
    border: 1px dashed var(--cfp-line);
    border-radius: var(--cfp-radius);
    background-color: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cfp-page .cfp-slot:hover {
    border-color: rgba(255, 89, 0, 0.5);
    background-color: rgba(255, 255, 255, 0.04);
}

/* A taken seat is solid rather than dashed - the board reads as filling up. */
.cfp-page .cfp-slot--claimed {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.08);
    opacity: 0.75;
}

.cfp-page .cfp-slot-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--cfp-line);
    border-radius: 50%;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
}

.cfp-page .cfp-slot-body {
    flex: 1 1 auto;
    min-width: 0;
}

.cfp-page .cfp-slot-name {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
}

.cfp-page .cfp-slot-status {
    color: #8fa6b6;
    font-size: 0.8125rem;
}

.cfp-page .cfp-slot-taken {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
    color: var(--cfp-orange);
    font-size: 0.875rem;
    font-weight: 600;
}

.cfp-page .cfp-slot .cfp-btn {
    flex-shrink: 0;
}

/* ------------------------------ Closing CTA ------------------------------ */
.cfp-page .cfp-final {
    margin-top: 3rem;
    padding: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
    border: 1px solid var(--cfp-line);
    border-radius: 1.25rem;
    background-color: rgba(255, 255, 255, 0.03);
    text-align: center;
}

.cfp-page .cfp-final-title {
    margin-bottom: 0.75rem;
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.125rem);
}

.cfp-page .cfp-final-sub {
    max-width: 34rem;
    margin: 0 auto 1.75rem;
    color: var(--cfp-invert);
    font-size: 1rem;
    line-height: 1.6;
}

/* ------------------------------- Responsive ------------------------------ */
@media (max-width: 767.98px) {
    .cfp-page .cfp-hero-actions .cfp-btn {
        width: 100%;
    }

    .cfp-page .cfp-hero-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    /* The slot row wraps so the CTA keeps a full-width tap target instead of
       being squeezed beside the number and label. */
    .cfp-page .cfp-slot {
        flex-wrap: wrap;
    }

    .cfp-page .cfp-slot .cfp-btn,
    .cfp-page .cfp-slot-taken {
        flex-basis: 100%;
        justify-content: center;
    }
}

/* ----------------- AOS horizontal travel on small screens ---------------- */
/* AOS parks a fade-left element at translate3d(100px, 0, 0) until it scrolls
   into view. On a phone that start position sits past the right edge, which
   widens the document - and because the navbar is position:fixed against the
   initial containing block, the navbar stretches with it and hangs off the
   right of the screen.

   Below lg these become a plain fade: the entrance still reads, but nothing
   ever sits outside the viewport. Specificity (0,2,0) beats AOS's own
   [data-aos=fade-left] (0,1,0), so no !important is needed. */
@media (max-width: 991.98px) {
    .cfp-page [data-aos="fade-left"],
    .cfp-page [data-aos="fade-right"] {
        transform: translate3d(0, 0, 0);
    }
}

/* Above lg the horizontal travel is kept - there is room for it - but the
   parked start position still pokes past the right edge until the element
   scrolls in, so clip it at the page wrapper.

   overflow-x: clip, NOT hidden: `hidden` would make .cfp-page a scroll
   container, and that silently kills position:sticky on any descendant.
   `clip` creates no scroll container. (Pairing clip with overflow-y: visible
   is stable - the CSS computed-value fixup only rewrites `visible` when the
   other axis is scroll/auto/hidden.) */
.cfp-page {
    overflow-x: clip;
}
