/* Referral pages for architects, builders and realtors (Nov 18 2026). Copy from the Spacial Services Framer drafts,
   laid out in the current site style: home page type (40/600 headings, 22/500 statements, 18 body, 16/500 links),
   the Company page colours, no eyebrows. The closing band reuses the shared .sp-cta styles from site-cta.css. */
body:has(.rf-page){background:#080527}
.rf-page{--rf-navy:var(--sp-color-navy,#06004a);--rf-blue:var(--sp-color-brand-blue,#1705e5);--rf-night:#080527;--rf-muted:#646179;--rf-rule:#dde5ee;--rf-tint:#eef3fa;--rf-card:#f7f7f5;display:block;color:var(--rf-navy);background:#fff;font-family:var(--sp-font-family,Inter,Arial,sans-serif);overflow:clip}
.rf-page *,.rf-page *::before,.rf-page *::after{box-sizing:border-box}
.rf-page :is(h1,h2,h3,p,figure,ul,ol,dl,dd,table){margin:0}
.rf-page :is(h1,h2,h3){font-family:inherit;color:inherit;text-wrap:balance}
.rf-page img{display:block;max-width:100%}
.rf-wrap{width:var(--sp-page-width,min(100% - 8vw,1740px));margin-inline:auto}
.rf-section{padding:clamp(5rem,9vw,9rem) 0;background:#fff}
.rf-section--tint{background:var(--rf-tint)}
.rf-page h2{font-size:40px;font-weight:600;line-height:1.2;letter-spacing:-.025em}
.rf-page h3{font-size:22px;font-weight:500;line-height:1.3;letter-spacing:-.01em}
.rf-page p{font-size:18px;font-weight:400;line-height:1.45;letter-spacing:0;color:var(--rf-muted)}
.rf-page :is(.rf-btn,.rf-link,.rf-text-link):focus-visible{outline:2px solid var(--rf-blue);outline-offset:3px}

/* hero: night navy with the faint dot grid used across the site */
.rf-hero{position:relative;isolation:isolate;padding:clamp(6rem,10vw,10rem) 0 clamp(5rem,9vw,8.5rem);background:var(--rf-night);color:#fff;text-align:center}
.rf-hero::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:radial-gradient(circle,#ffffff1f .06rem,transparent .08rem);background-size:3.4rem 3.4rem;-webkit-mask-image:linear-gradient(90deg,#000 0%,transparent 30%,transparent 70%,#000 100%);mask-image:linear-gradient(90deg,#000 0%,transparent 30%,transparent 70%,#000 100%)}
.rf-hero h1{max-width:24ch;margin-inline:auto;color:#fff;font-size:40px;font-weight:600;line-height:1.2;letter-spacing:-.025em}
.rf-hero .rf-lede{max-width:46rem;margin:24px auto 0;color:#c9c8da;text-wrap:pretty}
.rf-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px 28px;margin-top:36px}
.rf-btn{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 24px;border-radius:6px;background:var(--rf-blue);color:#fff;font-size:16px;font-weight:500;line-height:1.2;text-decoration:none;transition:background-color .2s}
.rf-btn:hover{background:#3f69ff;color:#fff}
.rf-link{display:inline-flex;align-items:center;gap:8px;padding:12px 0;color:#fff;font-size:16px;font-weight:500;line-height:1.2;text-decoration:none;transition:color .2s}
.rf-link:hover{color:#a6b3ff}
.rf-hero :is(.rf-btn,.rf-link):focus-visible{outline-color:#a6b3ff}

/* heading on the left, copy on the right, like the Company page section heads */
.rf-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px clamp(32px,5vw,96px);align-items:start}
.rf-split>div>*+*{margin-top:20px}
.rf-statement{max-width:34ch;color:var(--rf-navy)!important;font-size:22px!important;font-weight:500!important;line-height:1.35!important;letter-spacing:-.01em!important}
.rf-page .rf-footnote{font-size:16px;color:var(--rf-muted)}
.rf-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px clamp(32px,5vw,96px);align-items:end;margin-bottom:clamp(32px,4vw,56px)}
.rf-head p{max-width:40ch}

/* services */
.rf-services{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:16px;padding:0;list-style:none}
.rf-service{display:flex;flex-direction:column;justify-content:space-between;gap:48px;min-height:12rem;padding:clamp(24px,2.5vw,36px);border-radius:8px;background:var(--rf-card)}
.rf-section--tint .rf-service{background:#fff}
.rf-service span{color:var(--rf-muted);font-size:16px;font-weight:500;font-variant-numeric:tabular-nums}
.rf-after{max-width:48ch;margin-top:clamp(28px,3vw,40px)!important}

/* reasons */
.rf-points{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(24px,3vw,48px);padding:0;list-style:none}
.rf-point{padding-top:24px;border-top:1px solid var(--rf-rule)}
.rf-point p{margin-top:12px;max-width:40ch}

/* our work */
.rf-work{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.rf-work figure{aspect-ratio:4/3;overflow:hidden;border-radius:8px;background:var(--rf-tint)}
.rf-work img{width:100%;height:100%;object-fit:cover}
.rf-text-link{display:inline-flex;align-items:center;justify-content:space-between;gap:2rem;margin-top:28px;padding:.65rem 0;min-height:2.75rem;color:var(--rf-blue);border-bottom:1px solid #b7aff7;font-size:16px;font-weight:500;line-height:1.2;text-decoration:none}
.rf-text-link:hover{border-color:var(--rf-blue)}

/* team */
.rf-team{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:16px;padding:0;list-style:none}
.rf-team figure{aspect-ratio:4/4.8;overflow:hidden;border-radius:8px;background:var(--rf-tint)}
.rf-team img{width:100%;height:100%;object-fit:cover;object-position:center 25%}
.rf-team h3{margin-top:16px;font-size:18px;font-weight:500;line-height:1.35}
.rf-team p{margin-top:4px;font-size:16px;line-height:1.4}

/* offer band */
.rf-offer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px clamp(32px,5vw,96px);align-items:center;padding:clamp(32px,4vw,64px);border-radius:8px;background:var(--rf-navy);color:#fff}
.rf-offer h2{color:#fff}
.rf-offer .rf-statement{color:#fff!important}
.rf-offer p:not(.rf-statement){margin-top:12px;color:#c9c8da}
.rf-offer .rf-btn{margin-top:28px}
.rf-offer .rf-btn:focus-visible{outline-color:#a6b3ff}

/* referral fees */
.rf-fees{width:100%;border-collapse:collapse;font-size:18px;line-height:1.45;text-align:left}
.rf-fees caption{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.rf-fees th{padding:0 24px 16px 0;text-transform:none;letter-spacing:0;border-bottom:1px solid var(--rf-navy);color:var(--rf-navy);font-size:16px;font-weight:500;vertical-align:bottom}
.rf-fees td{padding:20px 24px 20px 0;border-bottom:1px solid var(--rf-rule);color:var(--rf-muted);vertical-align:top}
.rf-fees td:first-child{color:var(--rf-navy);font-weight:500;white-space:nowrap}
.rf-fees td:nth-child(2){max-width:44ch}
.rf-fees-note{margin-top:20px!important;font-size:16px!important}
.rf-section .rf-btn{margin-top:32px}

/* realtor FAQ */
.rf-faq{border-top:1px solid var(--rf-rule)}
.rf-faq details{border-bottom:1px solid var(--rf-rule)}
.rf-faq summary{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:4.5rem;padding:20px 0;cursor:pointer;list-style:none;color:var(--rf-navy);font-size:22px;font-weight:500;line-height:1.3;letter-spacing:-.01em}
.rf-faq summary::-webkit-details-marker{display:none}
.rf-faq summary:hover{color:var(--rf-blue)}
.rf-faq summary:focus-visible{outline:2px solid var(--rf-blue);outline-offset:4px}
.rf-faq summary i{position:relative;flex:none;width:20px;height:20px}
.rf-faq summary i::before,.rf-faq summary i::after{content:"";position:absolute;top:50%;left:50%;background:currentColor;transform:translate(-50%,-50%)}
.rf-faq summary i::before{width:14px;height:2px}
.rf-faq summary i::after{width:2px;height:14px}
.rf-faq details[open] summary i::after{display:none}
.rf-faq details p{max-width:60ch;padding:0 44px 24px 0}

/* closing band: the shared .sp-cta, with the place the proposal and referral forms will go */
.rf-page .sp-cta{scroll-margin-top:96px}
.rf-form-slot{width:100%}
.rf-page .sp-cta .sp-cta__inner .rf-license{margin-top:28px;color:#8f8eab;font-size:14px}

@media (max-width:1100px){
  .rf-team{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:900px){
  .rf-split,.rf-head,.rf-offer{grid-template-columns:minmax(0,1fr)}
  .rf-points{grid-template-columns:minmax(0,1fr)}
  .rf-work{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rf-work figure:last-child{display:none}
}
@media (max-width:767px){
  .rf-page h2,.rf-hero h1{font-size:32px}
  .rf-page p{font-size:16px;line-height:1.5}
  .rf-statement{font-size:20px!important}
  .rf-team{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rf-work{grid-template-columns:minmax(0,1fr)}
  .rf-work figure:last-child{display:block}
  .rf-faq summary{font-size:18px}
  /* the fee table stacks: one card per service */
  .rf-fees,.rf-fees tbody,.rf-fees tr,.rf-fees td{display:block}
  .rf-fees thead{display:none}
  .rf-fees tr{padding:20px 0;border-bottom:1px solid var(--rf-rule)}
  .rf-fees td{padding:0;border:0;font-size:16px}
  .rf-fees td+td{margin-top:8px}
  .rf-fees td:not(:first-child)::before{content:attr(data-label) ": ";color:var(--rf-navy);font-weight:500}
  .rf-fees td:first-child{white-space:normal;font-size:18px}
}
