/* =========================================================================
   Beycome Mortgage — shared site styles (BEY-4382)
   Visual language of www.beycome.com: gunmetal ink, periwinkle accent,
   beycome-orange CTA with a gunmetal label, Roboto body, bold system titles,
   pill buttons, 16/24px cards; header and hero follow beycome.com/flat-fee-mls.
   Rules: mobile first (min-width queries only), no text below 14px,
   every text pair >= 4.5:1 (large headings >= 3:1).
   ========================================================================= */
:root{
  --gunmetal:#162432;     /* ink, 15.8:1 on white */
  --ink-2:#2b3742;        /* body copy */
  --muted:#4a5056;        /* secondary text, 8.2:1 on white */
  --periwinkle:#3850b7;   /* accent + primary buttons, 7.0:1 on white */
  --periwinkle-dk:#2c3f94;
  --peri-wash:#eef0fa;    /* periwinkle at ~6% */
  --orange:#ff9a75;       /* beycome orange: CTA fill, label stays gunmetal (7.6:1) */
  --orange-dk:#d4643a;    /* gradient end on white: 3.7:1, large text only */
  --cultured:#f7f6f6;     /* tinted section */
  --line:#e7e8ea;
  --line-2:#d1d5db;
  --green:#2f6d42;        /* 6.5:1 on white */
  --green-wash:#e6f4e9;
  --warn:#a14a1a;
  --warn-wash:#fdf0e7;
  --r:16px; --r-lg:24px; --pill:999px;
  --shell:1160px;
  --shadow:0 1px 2px rgba(22,36,50,.06),0 8px 24px rgba(22,36,50,.06);
  --shadow-lg:0 2px 6px rgba(22,36,50,.06),0 24px 48px rgba(22,36,50,.10);
  --font-body:Roboto,-apple-system,system-ui,"Segoe UI","Helvetica Neue",Arial,sans-serif;
  /* aliases for page-level inline styles written against the old tokens */
  --ink:var(--gunmetal); --ink-3:var(--muted); --brand:var(--periwinkle); --brand-deep:var(--periwinkle); --brand-wash:var(--peri-wash); --sand:var(--cultured); --white:#fff;
  --font-title:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:84px}
body{margin:0;background:#fff;color:var(--ink-2);font-family:var(--font-body);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:clip}
img,svg{max-width:100%}
img{display:block;height:auto}
a{color:var(--periwinkle)}
button,input,select,textarea{font:inherit;color:inherit}
p{margin:0}
h1,h2,h3,h4{font-family:var(--font-title);color:var(--gunmetal);font-weight:700;line-height:1.12;margin:0;letter-spacing:-.02em;text-wrap:balance}
h1{font-size:clamp(2.1rem,9vw,2.6rem)}
h2{font-size:1.75rem}
h3{font-size:1.15rem;line-height:1.3}
h4{font-size:1rem}
/* The old italic accent word becomes beycome.com's gradient word. Heading text is unchanged. */
.em,.txt-gradient{font-style:normal;background:linear-gradient(135deg,var(--periwinkle) 0%,var(--orange-dk) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:var(--periwinkle);padding-right:.06em}
:focus-visible{outline:3px solid var(--periwinkle);outline-offset:3px;border-radius:6px}
.shell{width:100%;max-width:var(--shell);margin:0 auto;padding:0 16px}
.narrow{max-width:760px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- buttons (pills, as on beycome.com) ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 26px;border-radius:var(--pill);border:1.5px solid transparent;font-family:var(--font-body);font-weight:700;font-size:16px;line-height:1.3;text-decoration:none;cursor:pointer;text-align:center;transition:opacity .15s,background .15s,border-color .15s,transform .15s}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--periwinkle);color:#fff}
.btn-primary:hover{background:var(--periwinkle-dk)}
.btn-cta{background:var(--periwinkle);color:#fff;box-shadow:0 10px 15px -3px rgba(56,80,183,.25),0 4px 6px -4px rgba(56,80,183,.2)}
.btn-cta:hover{background:var(--periwinkle-dk)}
.btn-ghost{background:#fff;color:var(--periwinkle);border-color:var(--periwinkle)}
.btn-ghost:hover{background:var(--peri-wash)}
.btn-lg{min-height:52px;padding:12px 30px;font-size:17px}
.btn-sm{min-height:44px;padding:8px 18px;font-size:15px}
.btn-block{width:100%}

/* ---------- header ---------- */


/* ---------- hero with the beycome.com line-art scene ---------- */
.hero{position:relative;background-color:#fff;background-image:radial-gradient(rgba(22,36,50,.09) 1px,transparent 1.2px);background-size:22px 22px;padding:28px 0 40px;text-align:center}
.hero > .shell{position:relative;z-index:1}
.hero h1{margin-bottom:14px}
.hero .lede,.hero > .shell > p{font-size:16px;color:var(--muted);max-width:62ch;margin:0 auto;text-wrap:pretty}
.hero .note{font-size:15px;color:var(--muted)}
.hero-ctas{display:grid;gap:12px;margin:24px auto 0;max-width:420px}
.hero-plain{padding-bottom:32px}

.crumbs{margin-bottom:14px}
.partner{margin:22px auto 0;font-size:14px;color:var(--muted);text-align:center}
.partner a{color:var(--periwinkle);font-weight:700;text-decoration:none}
.partner a:hover{text-decoration:underline}
.hero .shell .partner{margin-top:24px}
.calc-hero .partner{text-align:left;margin:14px 0 0}
.crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:6px;font-size:14px;color:var(--muted)}
.crumbs li + li::before{content:"/";margin-right:6px;color:var(--muted)}
.crumbs a{color:var(--periwinkle);text-decoration:underline;text-underline-offset:3px}
.crumbs.crumbs-left ol{justify-content:flex-start}

/* hero with the starter on the right (home, /pre-approval): stacked on phones, side by side from 1024px */
.hero-form{margin-top:28px}
.hero-form .starter{margin:0 auto}

/* ---------- 3-question pre-approval starter ---------- */
.starter{position:relative;z-index:2;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow-lg);padding:20px;text-align:left;max-width:520px;margin:0 auto}
.starter-wrap{margin-top:0;padding:8px 16px 16px;position:relative;z-index:2}
.starter .stepn{display:flex;justify-content:space-between;font-size:14px;font-weight:600;color:var(--periwinkle)}
.starter .stepn button{background:none;border:0;padding:0;color:var(--muted);font-weight:600;font-size:14px;cursor:pointer;min-height:24px;text-decoration:underline}
.starter .bar{height:6px;border-radius:6px;background:var(--line);margin:8px 0 16px;overflow:hidden}
.starter .bar i{display:block;height:100%;width:33.4%;background:var(--periwinkle);transition:width .25s}
.starter .st-h{font-family:var(--font-title);font-size:1.3rem;font-weight:700;line-height:1.2;color:var(--gunmetal);margin-bottom:14px;outline:none}
.starter .opts{display:grid;gap:10px;margin:0;padding:0;border:0}
.starter .opt{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:10px 16px;border:1.5px solid var(--line-2);border-radius:var(--r);background:#fff;font-weight:600;font-size:16px;color:var(--gunmetal);text-align:left;cursor:pointer}
.starter .opt:hover{border-color:var(--periwinkle)}
.starter .opt[aria-pressed="true"]{border-color:var(--periwinkle);background:var(--peri-wash)}
.starter .opt svg{flex:none;color:var(--periwinkle)}
.starter .fine{display:flex;gap:6px;align-items:center;margin-top:14px;font-size:14px;color:var(--muted)}
.starter .fine svg{flex:none}
.starter .done p{color:var(--ink-2);margin-bottom:14px}
.starter .done .btn{width:100%;margin-top:10px}
.starter [hidden]{display:none!important}

/* ---------- sections ---------- */
section{padding:48px 0}
.sec-cultured{background:var(--cultured)}
.sec-head{max-width:700px;margin-bottom:28px}
.sec-head-center{margin-left:auto;margin-right:auto;text-align:center}
.eyebrow{font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--periwinkle);margin-bottom:10px}
.lede{font-size:17px;color:var(--muted);margin-top:12px;max-width:64ch;text-wrap:pretty}
.dots{height:2px;border:0;margin:0;background-image:radial-gradient(circle,var(--line-2) 1px,transparent 1.5px);background-size:10px 2px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:22px;box-shadow:var(--shadow)}
.tag{display:inline-block;font-size:14px;font-weight:700;color:var(--periwinkle);background:var(--peri-wash);border-radius:var(--pill);padding:3px 12px}
.grid{display:grid;gap:14px}

/* ---------- article pages (pre-approval, FHA, VA, condo) ---------- */
.article{padding:28px 0 56px}
.article .shell{max-width:800px}
.article h2{font-size:1.6rem;margin:40px 0 12px}
.article h3{margin:24px 0 8px}
.article p{margin:12px 0}
.article ul,.article ol{margin:12px 0;padding-left:1.3em;display:grid;gap:8px}
.article li::marker{color:var(--periwinkle);font-weight:700}
.article a{color:var(--periwinkle);font-weight:500;text-decoration:underline;text-underline-offset:3px}
.article .answer{margin:0;padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--peri-wash);color:var(--gunmetal);font-size:16px;line-height:28px}
.article .answer p{margin:0}
.article .answer .answer-label{margin:0 0 12px;font-family:var(--font-title);font-size:20px;font-weight:700;line-height:28px}
.article .note,.note{font-size:14px;color:var(--muted)}
.article table{width:100%;border-collapse:collapse;margin:16px 0;font-size:15px;display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:var(--r);background:#fff}
.article th,.article td{border-bottom:1px solid var(--line);padding:12px 12px;text-align:left;vertical-align:top}
.article tr:last-child td,.article tr:last-child th{border-bottom:0}
.article th{color:var(--gunmetal);font-weight:700;background:var(--cultured)}
.article .qa summary{padding:18px 0}

/* ---------- FAQ accordion (shared) ---------- */
.qa{border-bottom:1px solid var(--line)}
.qa.hide{display:none}
.qa summary{cursor:pointer;font-weight:700;color:var(--gunmetal);font-size:16px;list-style:none;display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:18px 0;line-height:1.4;min-height:44px}
.qa summary::-webkit-details-marker{display:none}
.qa summary::after{content:"";flex:none;width:28px;height:28px;margin-top:-3px;border-radius:50%;background:var(--peri-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233850b7' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/14px no-repeat;transition:transform .2s}
.qa[open] summary::after{transform:rotate(45deg)}
.qa .a{padding:0 0 20px;font-size:16px;max-width:74ch}
.qa .a p + p{margin-top:12px}
.qa .a a{color:var(--periwinkle);font-weight:500;text-decoration:underline;text-underline-offset:3px}
mark{background:#f9e7b5;color:var(--gunmetal);border-radius:3px;padding:0 2px}

/* ---------- /faq page: search, chips, groups ---------- */
.controls{position:sticky;top:64px;z-index:60;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);padding:12px 0}
.search{position:relative;max-width:600px;margin:0 auto}
.search input{width:100%;min-height:50px;padding:12px 46px;border:1px solid var(--line-2);border-radius:var(--pill);font-size:16px;background:#fff}
.search input:focus{outline:none;border-color:var(--periwinkle);box-shadow:0 0 0 4px rgba(56,80,183,.15)}
.search .mag{position:absolute;left:17px;top:50%;transform:translateY(-50%);pointer-events:none;line-height:0}
.search .mag svg{stroke:var(--muted)}
.search .clr{position:absolute;right:6px;top:50%;transform:translateY(-50%);background:none;border:0;cursor:pointer;width:40px;height:40px;border-radius:50%;color:var(--muted);display:none;line-height:0;place-items:center}
.search .clr.show{display:grid}
.chips{display:flex;gap:8px;flex-wrap:nowrap;overflow-x:auto;margin:12px -16px 0;padding:0 16px 4px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;min-height:44px;padding:8px 16px;border-radius:var(--pill);border:1px solid var(--line-2);background:#fff;font-size:15px;font-weight:500;color:var(--gunmetal);cursor:pointer;white-space:nowrap}
.chip:hover{border-color:var(--gunmetal)}
.chip.active{background:var(--gunmetal);color:#fff;border-color:var(--gunmetal)}
.faq{padding:32px 0 56px}
.group{margin-bottom:14px;border:1px solid var(--line);border-radius:var(--r-lg);background:#fff;overflow:hidden}
.group.hide{display:none}
.group > .ghead{cursor:pointer;list-style:none;padding:18px 56px 18px 18px;display:flex;flex-direction:column;gap:4px;position:relative}
.group > .ghead::-webkit-details-marker{display:none}
.group > .ghead:hover{background:var(--cultured)}
.group > .ghead::after{content:"+";position:absolute;right:20px;top:18px;font-size:26px;line-height:1;color:var(--periwinkle);transition:transform .2s}
.group[open] > .ghead::after{transform:rotate(45deg)}
.group[open] > .ghead{border-bottom:1px solid var(--line)}
.gtitle{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.group h2{font-size:1.3rem;margin:0}
.group .n{font-size:14px;font-weight:700;color:var(--periwinkle);background:var(--peri-wash);border-radius:var(--pill);padding:2px 10px;flex:none}
.group .gsub{font-size:15px;color:var(--muted)}
.group .qa{margin:0 18px}
.group .qa:last-of-type{border-bottom:0}
.empty{display:none;text-align:center;padding:48px 20px;background:var(--cultured);border-radius:var(--r-lg)}
.empty.show{display:block}
.empty h3{margin-bottom:8px}
.empty p{color:var(--muted);max-width:46ch;margin:0 auto 18px}

/* ---------- closing CTA: "Why choose beycome?" pattern from beycome.com/flat-fee-mls ---------- */
.cta{padding:56px 0 64px;text-align:center;background:linear-gradient(180deg,#fff 0%,var(--peri-wash) 100%);border-top:1px solid var(--line)}
.cta > .shell{max-width:var(--shell)}
.cta h2{font-size:2rem;margin-bottom:12px}
.cta .lede,.cta > .shell > p:not(.cta-call){max-width:58ch;margin:0 auto;color:var(--muted);font-size:17px}
.why{list-style:none;margin:36px auto 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:28px 18px;max-width:1000px}
.why li{display:flex;flex-direction:column;align-items:center;gap:8px}
.why svg{color:var(--periwinkle);margin-bottom:4px}
.why b{font-family:var(--font-title);font-size:17px;color:var(--gunmetal);line-height:1.3}
.why span{font-size:15px;color:var(--muted);line-height:1.5;max-width:26ch}
.cta .row{display:grid;gap:12px;margin:36px auto 0;max-width:420px}
.cta-call{margin-top:16px;font-size:15px;color:var(--muted)}
.cta-call a{color:var(--periwinkle);font-weight:700;text-decoration:none}
.cta-call a:hover{text-decoration:underline}

/* ---------- footer ---------- */

/* ---------- sticky phone CTA bar ---------- */
.mbar{position:fixed;left:0;right:0;bottom:0;z-index:65;display:grid;grid-template-columns:1fr auto;gap:10px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:1px solid var(--line);box-shadow:0 -6px 20px rgba(22,36,50,.06)}
.mbar .btn{min-height:48px}
.mbar .call{width:48px;padding:0}


/* ---------- tablet and up ---------- */
@media (min-width:768px){
  .shell{padding:0 32px}
  html{scroll-padding-top:92px}
  h1{font-size:3.25rem}
  h2{font-size:2.25rem}
  .hero{padding:72px 0 56px}
  .hero.hero-plain{padding-bottom:48px}
  .hero .lede,.hero > .shell > p{font-size:18px}
  .hero-ctas,.cta .row{display:flex;justify-content:center;max-width:none}
  .starter{padding:28px}
  .starter-wrap{padding-top:16px}
  section{padding:72px 0}
  .sec-head{margin-bottom:40px}
  .grid-2{grid-template-columns:1fr 1fr}
  .grid-3{grid-template-columns:repeat(3,1fr)}
  .article h2{font-size:1.95rem}
  .article table{display:table}
  .controls{top:72px}
  .chips{flex-wrap:wrap;justify-content:center;overflow:visible;margin:12px 0 0;padding:0}
  .group > .ghead{padding:22px 64px 22px 26px}
  .group .qa{margin:0 26px}
  .cta{padding:88px 0 96px}
  .cta h2{font-size:3rem}
  .why{grid-template-columns:repeat(4,1fr);gap:32px}
  .mbar{display:none}
}
@media (min-width:1024px){
  h1{font-size:4rem}
  .hero{padding-top:88px}
}
@media (min-width:1024px){
  .hero-split{text-align:left;padding:64px 0 72px}
  .hero-split .shell{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);column-gap:56px;align-items:center}
  .hero-split .crumbs{grid-column:1/-1}
  .hero-split .crumbs ol{justify-content:flex-start}
  .hero-split h1{font-size:3.5rem}
  .hero-split .hero-copy > p{margin-left:0;margin-right:0}
  .hero-split .hero-ctas{justify-content:flex-start}
  .hero-split .hero-ctas .btn-cta{display:none}
  .hero-split .shell .partner{text-align:left}
  .hero-split .hero-form{margin-top:0}
  .hero-split .starter{max-width:none}
}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* =========================================================================
   Header + footer in the www.beycome.com style (BEY-4503).
   Values copied from www2 resources/views/partials/header.blade.php and
   footer.blade.php (Tailwind classes resolved): same sizes, spacing, colors,
   breakpoints (640 / 768 / 1024). Mobile first, min-width queries only.
   Contrast: white 65% on #1b1b1b = 8.1:1, #7593f5 on #1b1b1b = 5.96:1,
   #162432 on white = 15.8:1, #3850b7 on white = 7.0:1. No text under 14px.
   ========================================================================= */
.bc-hd, .bc-ft {
    --bc-gunmetal: #162432;
    --bc-accent: #3850b7;
    --bc-accent-wash: hsla(229, 53%, 47%, 0.1);
    --bc-cta: #ff9b77;
    --bc-line: #f3f4f6;
    --bc-ft-bg: #1b1b1b;
    --bc-ft-muted: hsla(0, 0%, 100%, 0.65);
    --bc-ft-link: #7593f5;
    --bc-ft-sep: #374151;
    --bc-ft-rule: #2a2a2a;
    font-family: Roboto, -apple-system, system-ui, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.bc-hd *, .bc-ft * { box-sizing: border-box; }
/* zero-specificity resets, so every .bc- rule below wins over them */
:where(.bc-hd, .bc-ft) :where(p, ul) { margin: 0; padding: 0; }
:where(.bc-hd, .bc-ft) svg { display: block; max-width: none; }
.bc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- header ---------- */
.bc-hd { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--bc-line); color: var(--bc-gunmetal); font-size: 16px; line-height: 24px; }
.bc-hd-in { max-width: 1536px; margin: 0 auto; padding: 0 16px; }
.bc-hd-row { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.bc-hd-logo { display: flex; align-items: center; gap: 4px; color: var(--bc-gunmetal); text-decoration: none; }
.bc-hd-logo img { display: block; height: 27px; width: auto; }
.bc-hd-logo-word { font-size: 18px; font-weight: 400; letter-spacing: 0.5px; color: var(--bc-gunmetal); line-height: 1; }
.bc-hd-logo--desk { display: none; }
.bc-hd-nav, .bc-hd-actions { display: none; }
.bc-hd-link { font-size: 16px; font-weight: 700; line-height: 24px; color: var(--bc-gunmetal); text-decoration: none; transition: color .15s; }
.bc-hd-link:hover, .bc-hd-link[aria-current="page"] { color: var(--bc-accent); }
.bc-hd-text { font-size: 14px; font-weight: 700; line-height: 20px; color: var(--bc-gunmetal); text-decoration: none; transition: color .15s; white-space: nowrap; }
.bc-hd-text:hover { color: var(--bc-accent); }
.bc-hd-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 9999px; background: var(--bc-cta); color: var(--bc-gunmetal); font-size: 16px; font-weight: 700; line-height: 1.5; text-decoration: none; white-space: nowrap; transition: opacity .15s; }
.bc-hd-cta:hover { opacity: .9; color: var(--bc-gunmetal); }
.bc-hd-burger { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; background: none; border: 0; color: var(--bc-gunmetal); cursor: pointer; transition: color .15s; }
.bc-hd-burger:hover { color: var(--bc-accent); }
.bc-hd-burger svg { width: 24px; height: 24px; }
.bc-hd-burger .bc-ico-close, .bc-hd-burger[aria-expanded="true"] .bc-ico-open { display: none; }
.bc-hd-burger[aria-expanded="true"] .bc-ico-close { display: block; }
.bc-hd-menu { position: relative; z-index: 50; background: #fff; border-top: 1px solid var(--bc-line); box-shadow: 0 10px 15px -3px hsla(0, 0%, 0%, 0.1), 0 4px 6px -4px hsla(0, 0%, 0%, 0.1); max-height: calc(100vh - 57px); max-height: calc(100dvh - 57px); overflow-y: auto; overscroll-behavior: contain; }
.bc-hd-menu[hidden] { display: none; }
.bc-hd-menu nav { padding: 16px; display: grid; gap: 4px; }
.bc-hd-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; font-size: 16px; font-weight: 700; line-height: 24px; color: var(--bc-gunmetal); text-decoration: none; transition: background-color .15s, color .15s; }
.bc-hd-item:hover, .bc-hd-item:focus-visible, .bc-hd-item[aria-current="page"] { background: var(--bc-accent-wash); color: var(--bc-accent); outline: none; }
.bc-hd-group { border-top: 1px solid var(--bc-line); margin-top: 8px; padding-top: 8px; display: grid; gap: 4px; }
.bc-hd-label { padding: 8px 16px; font-size: 14px; font-weight: 700; line-height: 20px; letter-spacing: .05em; text-transform: uppercase; color: hsla(210, 7%, 31%, 1); }
.bc-hd-menu .bc-hd-cta { margin: 8px 16px; }
@media (min-width: 640px) {
    .bc-hd-row { min-height: 80px; }
    .bc-hd-menu { max-height: calc(100vh - 81px); max-height: calc(100dvh - 81px); }
}
@media (min-width: 1200px) {
    .bc-hd-logo--mob, .bc-hd-burger, .bc-hd-menu { display: none; }
    .bc-hd-menu:not([hidden]) { display: none; }
    .bc-hd-nav { display: flex; align-items: center; gap: 32px; }
    .bc-hd-logo--desk { display: flex; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); width: fit-content; margin: 0 auto; }
    .bc-hd-actions { display: flex; align-items: center; gap: 20px; padding-right: 8px; position: relative; }
}

/* ---------- footer ---------- */
.bc-ft { background: var(--bc-ft-bg); color: #fff; padding: 80px 0 32px; font-size: 16px; line-height: 24px; border: 0; }
.bc-ft a { text-decoration: none; }
.bc-ft-in { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; }
.bc-ft-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 48px; max-width: 1200px; margin-bottom: 56px; }
.bc-ft-title { margin-bottom: 24px; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: normal; color: var(--bc-ft-muted); }
.bc-ft-col ul { list-style: none; display: grid; gap: 16px; }
.bc-ft-col a { font-size: 16px; font-weight: 400; color: #fff; transition: opacity .15s; }
.bc-ft-col a:hover { color: #fff; opacity: .85; }

.bc-ft-bar { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 20px; padding: 20px 0; }
.bc-ft-learn { display: none; font-size: 14px; color: var(--bc-ft-muted); }
.bc-ft-icons { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 0; }
.bc-ft-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: var(--bc-ft-muted); transition: color .15s; }
.bc-ft-icon:hover { color: #fff; }
.bc-ft-icon svg { width: 19px; height: 19px; }
.bc-ft-icon svg.bc-ai { width: 20px; height: 20px; }
.bc-ft-vsep { flex: none; width: 1px; height: 20px; background: var(--bc-ft-sep); }
.bc-ft-ctas { order: -1; width: 100%; display: flex; flex-wrap: nowrap; gap: 10px; margin-left: 0; }
.bc-ft-btn { display: inline-flex; flex: 1; min-width: 0; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; padding: 10px 12px; border-radius: 8px; border: 1px solid #3a3a3a; background: #2a2a2a; color: #fff; font-weight: 700; line-height: 1.3; transition: background-color .15s, border-color .15s; }
.bc-ft-btn:hover { background: #333; border-color: #666; color: #fff; }
.bc-ft-btn svg { flex: none; width: 22px; height: 22px; }

.bc-ft-rule { margin: 0 0 20px; border: 0; border-top: 1px solid var(--bc-ft-rule); }
.bc-ft-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 14px; line-height: 20px; color: var(--bc-ft-muted); }
.bc-ft-row a { color: var(--bc-ft-muted); transition: color .15s; }
.bc-ft-row a:hover { color: #fff; }
.bc-ft-sep { color: var(--bc-ft-sep); }
.bc-ft-sep--md { display: none; }
.bc-ft-links { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; row-gap: 4px; width: 100%; }
.bc-ft-links a { white-space: nowrap; font-size: 14px; }

.bc-ft-legal { display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.65; color: var(--bc-ft-muted); }
.bc-ft-legal p { margin: 0; }
.bc-ft-legal strong, .bc-ft-legal b { font-weight: 700; color: var(--bc-ft-muted); }
.bc-ft-legal a { color: var(--bc-ft-link); text-decoration: underline; }
.bc-ft-legal a:hover { color: #fff; }
.bc-ft-ehl { display: flex; align-items: center; gap: 10px; }
.bc-ft-ehl img { display: block; flex: none; width: 28px; height: 28px; filter: invert(1); opacity: .65; }

.bc-ft-copy { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; font-size: 14px; line-height: 20px; color: var(--bc-ft-muted); }
.bc-ft-copy-dot { display: none; }
.bc-ft-made { display: flex; align-items: center; gap: 6px; }
.bc-ft-heart { flex: none; width: 14px; height: 14px; color: #fd586b; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
    .bc-ft-heart { animation: bc-heartbeat 2.4s ease-in-out infinite; }
}
@keyframes bc-heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.25); }
    28% { transform: scale(1); }
    42% { transform: scale(1.18); }
    56% { transform: scale(1); }
}
@media (min-width: 640px) {
    .bc-ft-bar { column-gap: 20px; }
    .bc-ft-learn { display: inline; }
    .bc-ft-icons { flex: none; justify-content: flex-start; gap: 2px; }
    .bc-ft-icon { width: 44px; height: 44px; }
    .bc-ft-links { width: auto; }
}
@media (min-width: 768px) {
    .bc-ft-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px; margin-bottom: 80px; }
    .bc-ft-ctas { order: 0; width: auto; }
    .bc-ft-btn { flex: none; min-width: 180px; gap: 12px; padding: 10px 16px; }
    .bc-ft-sep--md { display: inline; }
    .bc-ft-copy { flex-direction: row; align-items: center; gap: 6px; }
    .bc-ft-copy-dot { display: inline; }
}
@media (min-width: 1024px) {
    .bc-ft-grid { max-width: 1054px; }
    .bc-ft-ctas { margin-left: auto; }
}
@media print { .bc-hd, .bc-ft { display: none; } }

/* Mortgage only: on phones the sticky call bar (.mbar) covers the bottom of the page. */
.bc-ft { padding-bottom: 104px; }
@media (min-width: 768px) {
    .bc-ft { padding-bottom: 32px; }
}
