/* Superior Mortgage Experts — Prototype Stylesheet
   Review prototype only — not production/compliance-approved.
   Baseline: original modern-fintech visual system, refined with a premium
   floating header carrying the official logo, and precision component fixes. */

:root{
  --navy: #142A5C;
  --navy-2: #1E3A78;
  --navy-deep: #0D1B3D;
  --cyan: #2FA6E0;
  --cyan-soft: #EAF6FC;
  --sand: #EFE7DA;
  --terracotta: #C9633B;
  --bg: #FAF9F6;
  --bg-alt: #F3F1EC;
  --ink: #1F2430;
  --ink-soft: #4B5165;
  --line: #E4E1D8;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(20,42,92,0.08);
  --shadow-sm: 0 2px 10px rgba(20,42,92,0.06);
  --header-h: 70px;
  --banner-h: 0px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  padding-top: var(--header-h);
}
h1,h2,h3,h4{
  font-family:"Fraunces", "Iowan Old Style", "Georgia", serif;
  color: var(--navy-deep);
  line-height:1.08;
  font-weight:600;
  letter-spacing:-0.01em;
}
.eyebrow, .lang-toggle, .btn, nav.primary-nav a.top-link, .badge, .tag-pill, .chip, .step .n{
  font-family:"Inter", ui-sans-serif, system-ui, sans-serif;
}
a{color:inherit;}

/* Scroll-reveal (used sitewide for a more alive, editorial feel).
   Guarded behind html.js so content stays fully visible if JS fails to load. */
html.js .reveal{opacity:0;transform:translateY(22px);transition:opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);}
html.js .reveal.in{opacity:1;transform:translateY(0);}
@media (prefers-reduced-motion: reduce){html.js .reveal{opacity:1;transform:none;transition:none;}}
.container{max-width:1200px;margin:0 auto;padding:0 24px;}
.container-narrow{max-width:860px;margin:0 auto;padding:0 24px;}

body{padding-top: calc(var(--banner-h) + var(--header-h) + 26px);}

/* ===== Floating Header ===== */
header.site-header{
  position:fixed; top:calc(var(--banner-h) + 10px); left:16px; right:16px; z-index:1000;
  max-width:1400px; margin:0 auto;
  background:rgba(255,255,255,0.86);
  backdrop-filter: blur(14px);
  border:1px solid rgba(20,42,92,0.08);
  border-radius:20px;
  box-shadow:0 10px 34px rgba(20,42,92,0.12);
  transition:.2s ease;
}
.header-row{display:flex;align-items:center;justify-content:space-between;padding:8px 16px;gap:12px;min-height:60px;}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none;flex:none;}
.logo img{height:36px;width:auto;display:block;}
nav.primary-nav{display:flex;align-items:center;gap:0;flex:1;justify-content:center;min-width:0;}
nav.primary-nav > .navitem{position:relative;}
nav.primary-nav a.top-link, nav.primary-nav button.top-link{
  font-size:13.5px; font-weight:600; color:var(--navy); background:none;border:none;cursor:pointer;
  padding:9px 10px;border-radius:8px;display:inline-flex;align-items:center;gap:3px;text-decoration:none;
  white-space:nowrap;
}
nav.primary-nav a.top-link:hover, nav.primary-nav button.top-link:hover{background:var(--cyan-soft);}
.dropdown{
  position:absolute; top:120%; left:0; background:#fff; border:1px solid var(--line);
  border-radius:14px; box-shadow:var(--shadow); padding:10px; min-width:260px;
  opacity:0; visibility:hidden; transform:translateY(6px); transition:.15s ease; z-index:1010;
}
.navitem:hover .dropdown, .navitem:focus-within .dropdown, .navitem.menu-open .dropdown{opacity:1;visibility:visible;transform:translateY(0);}
.dropdown a{display:block;padding:9px 12px;border-radius:9px;font-size:14px;color:var(--ink);text-decoration:none;}
.dropdown a:hover{background:var(--bg-alt);color:var(--navy);}
.dropdown .cond{color:#9AA0AE;font-size:12px;}
.dropdown:not(.dropdown-mega){max-height:calc(100vh - 140px); overflow-y:auto;}
/* The main "Loan Options" list can be taller than the screen, so it scrolls
   internally. Its nested flyouts (Refinance, Commercial, etc.) are
   position:fixed and positioned in true viewport coordinates by JS (see
   initNavFlyouts() in main.js), so this container's own scroll/overflow
   never clips them — but that only works if THIS element has no CSS
   `transform`, since a transformed ancestor becomes the containing block
   for position:fixed descendants (and would then clip them too). The base
   .dropdown/.navitem:hover rules animate open with a transform; cancel it
   here for the mega specifically, in both its closed and open states. */
.dropdown-mega{width:380px;padding:8px;max-height:calc(100vh - 140px);overflow-y:auto;transform:none;}
.navitem:hover .dropdown-mega, .navitem:focus-within .dropdown-mega, .navitem.menu-open .dropdown-mega{transform:none;}
.dropdown-mega a{padding:7px 12px;font-size:13.5px;}
.dropdown-mega a.dd-featured{font-weight:800;color:var(--navy);background:var(--bg-alt);margin-bottom:4px;}
.mnav-links a.sub-link{padding-left:18px;font-size:13.5px;color:#8891A8;}
.navsub{position:relative;}
.navsub .dd-parent{display:flex;align-items:center;justify-content:space-between;gap:6px;}
.navsub .fly-arrow{color:#9AA0AE;font-size:15px;}
.dropdown-flyout{
  position:fixed; top:-8px; left:0; background:#fff; border:1px solid var(--line);
  border-radius:14px; box-shadow:var(--shadow); padding:8px; min-width:230px;
  opacity:0; visibility:hidden; transform:translateX(6px); transition:.15s ease; z-index:1020;
  max-height:calc(100vh - 140px); overflow-y:auto;
}
.navsub:hover .dropdown-flyout, .navsub:focus-within .dropdown-flyout{opacity:1;visibility:visible;transform:translateX(0);}
.dropdown-flyout a{display:block;padding:9px 12px;border-radius:9px;font-size:13.5px;color:var(--ink);text-decoration:none;}
.dropdown-flyout a:hover{background:var(--bg-alt);color:var(--navy);}
.header-actions{display:flex;align-items:center;gap:8px;flex:none;}
.lang-toggle{
  display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;
  border:1px solid var(--line);border-radius:20px;padding:6px 12px;text-decoration:none;background:#fff;
  white-space:nowrap;
}
.lang-toggle:hover{border-color:var(--cyan);}
.lang-toggle .lang-current{color:var(--navy);}
.lang-toggle .lang-sep{color:var(--line);font-weight:400;}
.lang-toggle .lang-other{color:var(--ink-soft);font-weight:600;}
.lang-toggle:hover .lang-other{color:var(--cyan);}
.phone-link{font-size:13.5px;font-weight:600;color:var(--navy);text-decoration:none;display:none;align-items:center;gap:6px;white-space:nowrap;}
.phone-link svg{width:15px;height:15px;flex:none;}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-weight:700;font-size:14.5px;border-radius:999px;padding:12px 22px;text-decoration:none;
  transition:.15s ease; border:1.5px solid transparent; cursor:pointer;
}
.btn-primary{background:var(--navy);color:#fff;}
.btn-primary:hover{background:var(--navy-2);}
.btn-secondary{background:transparent;color:var(--navy);border-color:var(--navy);}
.btn-secondary:hover{background:var(--navy);color:#fff;}
.btn-cyan{background:var(--cyan);color:#fff;}
.btn-cyan:hover{background:#2593c8;}
.btn-sm{padding:9px 16px;font-size:13.5px;}
.btn-block{width:100%;}
.hamburger{display:none;background:none;border:none;cursor:pointer;padding:6px;}
.hamburger span{display:block;width:24px;height:2px;background:var(--navy-deep);margin:5px 0;border-radius:2px;}

/* Mobile floating header */
@media (max-width: 980px){
  header.site-header{left:12px;right:12px;border-radius:16px;}
  .header-row{padding:8px 14px;min-height:56px;}
  .logo img{height:32px;}
}

/* Mobile nav overlay */
.mobile-nav{
  position:fixed;inset:0;background:#fff;z-index:1100;display:none;flex-direction:column;
  overflow-y:auto;
}
.mobile-nav.open{display:flex;}
.mobile-nav-top{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid var(--line);}
.mobile-nav-top .logo img{height:32px;}
.mobile-nav-body{padding:14px 20px 100px;}
.mnav-group{border-bottom:1px solid var(--line);}
.mnav-head{width:100%;text-align:left;background:none;border:none;padding:16px 4px;font-size:17px;font-weight:700;color:var(--navy-deep);display:flex;justify-content:space-between;align-items:center;cursor:pointer;}
.mnav-links{display:none;padding:0 4px 14px 4px;}
.mnav-links.open{display:block;}
.mnav-links a{display:block;padding:9px 0;color:var(--ink-soft);text-decoration:none;font-size:15px;}
.mnav-quick{display:flex;gap:10px;padding:16px 4px;}

/* Sticky mobile action bar */
.sticky-actions{
  position:fixed;bottom:0;left:0;right:0;z-index:90;
  display:none;background:#fff;border-top:1px solid var(--line);
  box-shadow:0 -6px 18px rgba(20,42,92,0.08);
}
.sticky-actions .row{display:grid;grid-template-columns:1fr 1fr 1.3fr;}
.sticky-actions a{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  padding:10px 4px 12px;font-size:11.5px;font-weight:700;color:var(--navy);text-decoration:none;
  border-right:1px solid var(--line);
}
.sticky-actions a:last-child{border-right:none;background:var(--navy);color:#fff;}
.sticky-actions svg{width:18px;height:18px;}

/* ===== Sections / hero ===== */
.section{padding:76px 0;}
.section-tight{padding:52px 0;}
.section-alt{background:var(--bg-alt);}
.eyebrow{color:var(--cyan);font-weight:800;letter-spacing:.08em;text-transform:uppercase;font-size:12.5px;margin-bottom:10px;display:block;}
.hero{
  padding:56px 0 56px;
  margin-top:-260px; position:relative; z-index:3;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(47,166,224,0.10), transparent 60%),
    linear-gradient(180deg,rgba(251,250,247,0),#FBFAF7 32%,#F5F3ED);
}
@media (max-width:680px){.hero{margin-top:-150px;}}
.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:56px;align-items:center;}
h1.h1-hero{font-size:44px;margin:0 0 18px;line-height:1.15;}
.hero p.lead{font-size:18px;color:var(--ink-soft);margin:0 0 28px;max-width:560px;}
.hero-ctas{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:26px;}
.trust-row{display:flex;flex-wrap:wrap;gap:10px 22px;font-size:13px;color:var(--ink-soft);font-weight:600;}
.trust-row span{display:inline-flex;align-items:center;gap:7px;}
.dot{width:5px;height:5px;border-radius:50%;background:var(--cyan);display:inline-block;}

/* Hero video banner (top of homepage) — big, full-bleed, immersive. The page
   content (.hero, pulled up with a negative margin below) overlaps its
   bottom third, so the site visually blends up into the footage instead of
   sitting as a separate block underneath it. */
.hero-video-banner{
  position:relative; width:100%; height:84vh; max-height:760px; min-height:480px; overflow:hidden;
  border-radius:0 0 28px 28px; background:
    linear-gradient(135deg, var(--navy-deep), var(--navy) 55%, var(--navy-2));
}
.hero-video-banner video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:top center; display:block;
}
.hero-video-banner::before{
  /* stronger top shadow — blends the video into the fixed header above it */
  content:""; position:absolute; top:0; left:0; right:0; height:32%; z-index:2; pointer-events:none;
  background:linear-gradient(180deg, rgba(13,27,61,0.85) 0%, rgba(13,27,61,0.3) 65%, transparent 100%);
}
.hero-video-banner::after{
  /* bottom fade — this is the blend zone the hero content overlaps into */
  content:""; position:absolute; left:0; right:0; bottom:0; height:62%; z-index:2; pointer-events:none;
  background:linear-gradient(0deg, var(--bg) 0%, rgba(250,249,246,0.85) 22%, rgba(250,249,246,0.45) 46%, rgba(250,249,246,0.12) 72%, transparent 100%);
}
@media (max-width:680px){
  .hero-video-banner{height:66vh;min-height:360px;}
}
.hero-video-banner .hvb-placeholder{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; gap:10px; color:#fff; padding:24px;
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(47,166,224,0.28), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.05) 14px, transparent 14px, transparent 28px);
}
.hero-video-banner .hvb-placeholder .hvb-icon{
  width:64px;height:64px;border-radius:50%;background:rgba(255,255,255,0.12);border:1.5px solid rgba(255,255,255,0.35);
  display:flex;align-items:center;justify-content:center;
}
.hero-video-banner .hvb-placeholder .hvb-icon svg{width:26px;height:26px;}
.hero-video-banner .hvb-placeholder .hvb-tag{
  font-size:11.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#8FD4FF;
}
.hero-video-banner .hvb-placeholder p{margin:0;font-size:14.5px;color:#C9D2EA;max-width:440px;}
@media (max-width:680px){
  .hero-video-banner{border-radius:0 0 20px 20px;}
}

/* Editorial photo frame — real people photography */
.photo-frame{
  border-radius:20px; overflow:hidden; position:relative; background:var(--bg-alt);
  box-shadow:var(--shadow);
}
.photo-frame img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .6s cubic-bezier(.16,1,.3,1);}
.photo-frame:hover img{transform:scale(1.04);}
.photo-frame.square{aspect-ratio:1/1;}
.photo-frame.editorial{aspect-ratio:4/5;}

/* Photography placeholder block */
.photo-slot{
  border-radius:20px; border:1.5px dashed #C9CDE0; background:
    repeating-linear-gradient(135deg, #F3F1EC, #F3F1EC 10px, #EDEAE2 10px, #EDEAE2 20px);
  display:flex;align-items:center;justify-content:center;text-align:center;color:#7B8199;
  font-size:12.5px; font-weight:600; padding:30px; min-height:280px; position:relative;
}
.photo-slot .tag{
  position:absolute; top:10px; left:10px; background:#fff; border:1px solid var(--line);
  border-radius:999px; padding:4px 10px; font-size:10.5px; font-weight:700; color:var(--navy);
}
.photo-slot.round{border-radius:999px;}
.photo-slot.square{aspect-ratio:1/1;min-height:0;}
.photo-slot.editorial{min-height:420px;}

/* Credibility strip */
.credibility-strip{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff;}
.cred-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:18px;padding:20px 0;font-size:13.5px;font-weight:700;color:var(--navy);}
.cred-row span{display:flex;align-items:center;gap:8px;}
.cred-row svg{width:16px;height:16px;color:var(--cyan);flex:none;}

/* Intent cards */
.grid-6{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.intent-card{
  background:#fff;border:1px solid var(--line);border-radius:18px;padding:26px 22px;text-decoration:none;
  display:block; transition:.15s ease; box-shadow:var(--shadow-sm);
}
.intent-card:hover{transform:translateY(-3px); box-shadow:var(--shadow); border-color:#C9E6F5;}
.intent-card .ic{width:48px;height:48px;border-radius:12px;background:var(--cyan-soft);display:flex;align-items:center;justify-content:center;margin-bottom:16px;color:var(--navy);}
.intent-card .ic svg{width:24px;height:24px;}
.intent-card h3{font-size:17px;margin:0 0 6px;color:var(--navy-deep);}
.intent-card p{font-size:14px;color:var(--ink-soft);margin:0;}

/* Generic cards */
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.grid-3.grid-align-start{align-items:start;}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;}
@media (max-width:900px){.grid-4{grid-template-columns:repeat(2,1fr);}}
@media (max-width:520px){.grid-4{grid-template-columns:1fr;}}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:20px;}

/* Real people — simple 4-across grid of square headshots */
.grid-people-4{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.mini-person{text-align:center;}
.mini-person .photo-frame{margin-bottom:12px;}
.mini-person h4{font-size:14.5px;margin:0;}
.mini-person span{font-size:12px;color:var(--ink-soft);display:block;margin-top:2px;}
@media (max-width:900px){ .grid-people-4{grid-template-columns:repeat(2,1fr);} }
@media (max-width:480px){ .grid-people-4{grid-template-columns:repeat(2,1fr);gap:14px;} }

/* Caption under the founder's hero photo */
.hero-photo-caption{display:flex;flex-direction:column;align-items:center;text-align:center;margin-top:14px;}
.hero-photo-caption .hpc-name{font-family:"Fraunces",serif;font-size:17px;font-weight:600;color:var(--ink);}
.hero-photo-caption .hpc-role{font-size:12.5px;color:var(--ink-soft);margin-top:2px;}

/* Floating tilted team photo — used on About page, "polaroid" style.
   Anchored to the bottom of the hero and shifted down so it straddles the
   seam between the hero and the next section, sitting on top of both. */
.page-hero{position:relative;overflow:visible;}
.page-hero .floating-photo{
  position:absolute; right:420px; top:100%; margin-top:-150px; z-index:5;
  width:280px; border-radius:16px; overflow:hidden; background:#fff;
  box-shadow:0 26px 54px rgba(13,27,61,0.26); border:6px solid #fff; transform:rotate(-4deg);
  transition:transform .4s cubic-bezier(.16,1,.3,1);
}
.page-hero .floating-photo:hover{transform:rotate(-1deg) scale(1.03);}
.page-hero .floating-photo img{display:block;width:100%;height:auto;}
@media (max-width:1180px){ .page-hero .floating-photo{display:none;} }
.page-hero .floating-photo.mobile-only{display:none;}
@media (max-width:1180px){
  .page-hero .floating-photo.mobile-only{
    display:block; position:static; transform:rotate(-2deg); width:76%; max-width:320px; margin:28px auto 0; z-index:auto;
  }
  .page-hero .floating-photo.mobile-only:hover{transform:rotate(-2deg);}
}
.card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:var(--shadow-sm);}
.card h3{font-size:17px;margin:0 0 8px;}
.card p{color:var(--ink-soft);font-size:14.5px;margin:0;}
.card .arrow{color:var(--cyan);font-weight:800;font-size:13px;margin-top:12px;display:inline-block;}

/* Why-us list — numbered arrow anchors, scaled up and optically centered */
.why-list{display:grid;grid-template-columns:repeat(2,1fr);gap:26px;}
.why-item{display:flex;gap:18px;align-items:flex-start;}
.why-item .num{
  width:56px;height:56px;flex:none;
  background:linear-gradient(135deg,var(--navy),var(--cyan));
  color:#fff;font-weight:800;font-size:17px;
  display:flex;align-items:center;justify-content:center;
  clip-path: polygon(0 0, 70% 0, 100% 50%, 70% 100%, 0 100%, 22% 50%);
  padding-left:4px; /* optical compensation for the pointed right edge */
  box-shadow:0 6px 16px rgba(20,42,92,0.22);
}
.why-item h4{margin:0 0 5px;font-size:16px;color:var(--navy-deep);}
.why-item p{margin:0;color:var(--ink-soft);font-size:14.5px;}

/* Steps */
.steps{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;}
.step{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px 16px;text-align:left;}
.step .n{font-size:12px;font-weight:800;color:var(--cyan);letter-spacing:.05em;}
.step h4{font-size:14.5px;margin:8px 0 4px;}
.step p{font-size:13px;color:var(--ink-soft);margin:0;}

/* Testimonial */
.testimonial{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:var(--shadow-sm);}
.stars{color:#F5A623;font-size:14px;margin-bottom:10px;letter-spacing:2px;}
.testimonial p.quote{font-size:14.5px;color:var(--ink);margin:0 0 14px;}
.testimonial .who{font-size:12.5px;color:var(--ink-soft);font-weight:700;}
.tag-pill{display:inline-block;font-size:11px;font-weight:700;color:var(--navy);background:var(--cyan-soft);padding:3px 9px;border-radius:999px;margin-right:6px;}

/* Closing-speed badges (anonymized — no borrower names, per privacy/compliance) */
.closings-subhead{font-family:"Fraunces",serif;font-size:19px;font-weight:600;color:var(--ink);margin:34px 0 16px;text-align:center;}
.closings-subhead:first-of-type{margin-top:8px;}
.closing-badges{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.closing-badges.img-grid{align-items:center;}
.closing-badge.img-badge{padding:18px;display:flex;align-items:center;justify-content:center;}
.closing-badge.img-badge img{width:100%;height:auto;display:block;}
.closing-badge{background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px 22px;text-align:center;box-shadow:var(--shadow-sm);}
.closing-badge .cb-days{font-size:42px;font-weight:600;color:var(--navy-deep);line-height:1;font-family:"Fraunces",serif;}
.closing-badge .cb-label{font-size:11.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--cyan);margin-top:8px;}
.closing-badge .cb-type{font-size:13.5px;color:var(--ink-soft);margin-top:10px;}
.closing-badge.placeholder{border-style:dashed;background:var(--bg-alt);box-shadow:none;}
.closing-badge.placeholder .cb-days{color:#B8BECF;}
.closing-badge.placeholder .cb-type{color:#9AA0AE;}

/* Rolling "Speed to Close" marquee — a continuously scrolling strip of
   anonymized closing badges. The track is duplicated once in the markup so
   the loop is seamless (translateX(-50%) lands exactly on the repeat). */
.closing-marquee{
  background:var(--navy-deep); overflow:hidden; position:relative;
  padding:22px 0 22px 150px; border-top:1px solid rgba(255,255,255,0.08); border-bottom:1px solid rgba(255,255,255,0.08);
}
.closing-marquee .cm-label{
  position:absolute; top:0; left:0; bottom:0; width:150px; z-index:2; display:flex; align-items:center;
  padding:0 0 0 24px; background:linear-gradient(90deg, var(--navy-deep) 70%, transparent);
  font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#8FD4FF;
  pointer-events:none; line-height:1.4;
}
.closing-marquee::after{
  content:""; position:absolute; top:0; right:0; bottom:0; width:80px; z-index:2; pointer-events:none;
  background:linear-gradient(270deg, var(--navy-deep) 20%, transparent);
}
.cm-track{display:flex; align-items:center; gap:16px; width:max-content; animation:cm-scroll 46s linear infinite;}
.closing-marquee:hover .cm-track{animation-play-state:paused;}
.cm-badge{
  flex:none; display:flex; align-items:center; white-space:nowrap;
  background:#fff; border-radius:14px; padding:8px 14px; box-shadow:0 4px 14px rgba(13,27,61,0.18);
}
.cm-badge img{display:block; height:56px; width:auto;}
.cm-badge.placeholder{background:rgba(255,255,255,0.05); border:1px dashed rgba(255,255,255,0.25); box-shadow:none; padding:10px 20px;}
.cm-badge.placeholder .cm-days{font-family:"Fraunces",serif; font-size:20px; font-weight:600; color:#5E6D95;}
.cm-badge.placeholder .cm-type{font-size:12.5px; color:#5E6D95; font-weight:600; margin-left:10px;}
@keyframes cm-scroll{from{transform:translateX(0);}to{transform:translateX(-50%);}}
@media (max-width:680px){ .cm-badge img{height:44px;} }
@media (prefers-reduced-motion: reduce){.cm-track{animation:none;}}
@media (max-width:680px){
  .closing-marquee{padding-left:0;}
  .closing-marquee .cm-label{display:none;}
}

/* FAQ accordion */
.faq-item{border-bottom:1px solid var(--line);}
.faq-q{width:100%;display:flex;justify-content:space-between;align-items:center;gap:16px;background:none;border:none;text-align:left;padding:18px 2px;cursor:pointer;font-size:15.5px;font-weight:700;color:var(--navy-deep);}
.faq-q .plus{font-size:20px;color:var(--cyan);transition:.2s;flex:none;}
.faq-item.open .plus{transform:rotate(45deg);}
.faq-a{max-height:0;overflow:hidden;transition:.25s ease;font-size:14.5px;color:var(--ink-soft);}
.faq-item.open .faq-a{max-height:600px;}
.faq-a-inner{padding:0 2px 18px;}

/* CTA band */
.cta-band{background:var(--navy-deep);border-radius:26px;padding:52px 44px;text-align:center;color:#fff;position:relative;overflow:hidden;}
.cta-band::before{content:"";position:absolute;inset:0;background:radial-gradient(600px 260px at 80% 0%, rgba(47,166,224,0.35), transparent 60%);}
.cta-band h2{color:#fff;margin:0 0 12px;position:relative;}
.cta-band p{color:#C9D2EA;margin:0 0 26px;position:relative;font-size:15.5px;}
.cta-band .ctas{position:relative;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;}
.cta-band .stat-row{position:relative;display:flex;gap:36px;justify-content:center;flex-wrap:wrap;margin:0 0 26px;}
.cta-band .stat-row .stat-num{font-family:"Fraunces",serif;font-size:30px;font-weight:700;color:#fff;display:block;line-height:1.1;}
.cta-band .stat-row .stat-label{font-size:12.5px;color:#AEBBDB;display:block;margin-top:4px;}

/* Breadcrumbs */
.breadcrumbs{font-size:12.5px;color:var(--ink-soft);padding:16px 0 0;}
.breadcrumbs a{color:var(--ink-soft);text-decoration:none;}
.breadcrumbs a:hover{color:var(--navy);}

/* Page hero (interior pages) */
.page-hero{padding:36px 0 44px;border-bottom:1px solid var(--line);background:#fff;}
.page-hero h1{font-size:34px;margin:6px 0 12px;line-height:1.2;}
.page-hero p.lead{font-size:16px;color:var(--ink-soft);max-width:680px;margin:0 0 20px;}
.badge-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px;}
.badge{font-size:11.5px;font-weight:700;padding:4px 10px;border-radius:999px;}
.badge-cond{background:#FFF4E0;color:#8A5A00;border:1px solid #F1D9A2;}
.badge-confirm{background:#FCEBEB;color:#A1332B;border:1px solid #F2C9C6;}
.badge-live{background:var(--cyan-soft);color:var(--navy);border:1px solid #C9E6F5;}

/* Pull quote / credential strip (used on Jorge's page) */
.pull-quote{position:relative;padding:6px 0 6px 26px;margin:28px 0;border-left:4px solid var(--cyan);}
.pull-quote p{font-weight:600;font-style:italic;font-size:19px;line-height:1.5;color:var(--navy-deep);margin:0;}
.pull-quote cite{display:block;margin-top:12px;font-style:normal;font-size:13px;font-weight:700;color:var(--ink-soft);}
.credential-strip{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 4px;}
.credential-chip{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;color:var(--navy-deep);background:#fff;border:1px solid var(--line);border-radius:999px;padding:7px 13px;}

/* Confirm marker (internal note, kept inline/plain for any remaining legal-review flags) */
.confirm{background:none;border:none;color:inherit;padding:0;font-weight:inherit;font-size:inherit;}

/* Compare table */
table.compare{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;}
@media (max-width:760px){
  table.compare{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;white-space:nowrap;}
  table.compare th,table.compare td{white-space:normal;min-width:118px;}
  table.compare th:first-child,table.compare td:first-child{min-width:130px;position:sticky;left:0;background:#fff;box-shadow:1px 0 0 var(--line);}
  table.compare th:first-child{background:var(--bg-alt);}
}
table.compare th,table.compare td{padding:14px 16px;text-align:left;font-size:14px;border-bottom:1px solid var(--line);}
table.compare th{background:var(--bg-alt);color:var(--navy-deep);font-weight:800;}
table.compare tr:last-child td{border-bottom:none;}

/* Content prose */
.prose h2{font-size:23px;margin:34px 0 12px;}
.prose h3{font-size:18px;margin:24px 0 8px;}
.prose p{font-size:15.5px;color:var(--ink-soft);margin:0 0 14px;}
.prose ul{padding-left:20px;color:var(--ink-soft);font-size:15.5px;}
.prose li{margin-bottom:6px;}
.callout{background:var(--cyan-soft);border:1px solid #C9E6F5;border-radius:14px;padding:18px 20px;font-size:14.5px;color:var(--navy-deep);margin:22px 0;}
.callout.warn{background:#FFF4E0;border-color:#F1D9A2;color:#5C3D00;}

/* Sidebar layout */
.two-col{display:grid;grid-template-columns:1fr 300px;gap:44px;align-items:start;}
.side-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;position:sticky;top:calc(var(--header-h) + 24px);box-shadow:var(--shadow-sm);}
.side-card h4{font-size:14px;margin:0 0 10px;color:var(--navy-deep);}
.side-card a.side-link{display:block;font-size:13.5px;padding:8px 0;color:var(--ink-soft);text-decoration:none;border-bottom:1px solid var(--line);}
.side-card a.side-link:last-child{border-bottom:none;}
.side-card a.side-link:hover{color:var(--navy);}

/* Category chips */
.chip-row{display:flex;gap:8px;flex-wrap:wrap;}
.chip{font-size:13px;font-weight:700;padding:8px 15px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--ink-soft);text-decoration:none;cursor:pointer;user-select:none;transition:.15s ease;}
.chip.active{background:var(--navy);color:#fff;border-color:var(--navy);}
.chip:hover{border-color:var(--cyan);}

/* Article cards */
.article-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;text-decoration:none;display:block;box-shadow:var(--shadow-sm);}
.article-card:hover{border-color:#C9E6F5;box-shadow:var(--shadow);}
.article-cat{font-size:11px;font-weight:800;color:var(--cyan);text-transform:uppercase;letter-spacing:.05em;}
.article-card h3{font-size:15.5px;margin:8px 0 6px;color:var(--navy-deep);}
.article-card p{font-size:13.5px;color:var(--ink-soft);margin:0;}

/* Glossary */
.glossary-term{padding:16px 0;border-bottom:1px solid var(--line);}
.glossary-term dt{font-weight:800;color:var(--navy-deep);font-size:15px;}
.glossary-term dd{margin:6px 0 0;color:var(--ink-soft);font-size:14.5px;}
.alpha-jump{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:24px;}
.alpha-jump a{width:28px;height:28px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;border-radius:8px;background:#fff;border:1px solid var(--line);color:var(--ink-soft);text-decoration:none;}

/* Calculator */
.calc-shell{display:grid;grid-template-columns:1fr 1fr;gap:0;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:var(--shadow);}
.calc-inputs{padding:32px;border-right:1px solid var(--line);}
.calc-results{padding:32px;background:var(--navy-deep);color:#fff;}
/* Honeypot spam trap — invisible to real visitors, catches basic bots that
   fill in every field. Off-screen rather than display:none, since some bots
   skip hidden fields but not off-screen ones. */
.hp-field{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.field{margin-bottom:18px;}
.field label{display:block;font-size:13px;font-weight:700;color:var(--navy-deep);margin-bottom:6px;}
.req-star{color:#C9633B;}
.field input, .field select{
  width:100%;padding:11px 13px;border:1.5px solid var(--line);border-radius:10px;font-size:14.5px;
  font-family:inherit; background:#fff; color:var(--ink);
}
.field input:focus, .field select:focus{outline:none;border-color:var(--cyan);}
.result-num{font-size:38px;font-weight:800;margin:2px 0 4px;}
.result-label{font-size:12.5px;color:#9FB0D6;text-transform:uppercase;letter-spacing:.05em;font-weight:700;}
.result-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid rgba(255,255,255,0.14);font-size:13.5px;}
.result-row:last-child{border-bottom:none;}
.disclaimer-box{font-size:12px;color:#8FA0C9;margin-top:18px;line-height:1.6;padding-top:14px;border-top:1px solid rgba(255,255,255,0.14);}

/* Checklist */
.check-list{list-style:none;padding:0;margin:0;}
.check-list li{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14.5px;color:var(--ink-soft);}
.check-list li::before{content:"";width:18px;height:18px;border:1.5px solid var(--cyan);border-radius:5px;flex:none;margin-top:1px;}

/* Team grid */
.team-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;text-align:center;box-shadow:var(--shadow-sm);color:inherit;transition:.2s cubic-bezier(.16,1,.3,1);display:flex;flex-direction:column;}
a.team-card:hover{border-color:#C9E6F5;box-shadow:var(--shadow);transform:translateY(-4px);}
.team-card .photo-frame{aspect-ratio:4/5;margin-bottom:2px;}
.team-card h3{font-size:15.5px;margin:14px 0 2px;}
.team-card .role{font-size:12.5px;color:var(--cyan);font-weight:700;margin-bottom:8px;}
.team-card p.bio{font-size:13px;color:var(--ink-soft);}
.team-card .arrow{color:var(--cyan);font-weight:800;font-size:12.5px;margin-top:10px;display:inline-block;}
/* Cards in the same grid row are already stretched to equal height (grid's
   default align-items:stretch); pinning this to the bottom of the flex
   column (.team-card, above) with margin-top:auto keeps every icon row
   lined up along the same baseline across a row, regardless of how much
   bio/role text sits above it on any one card. */
.team-icons{display:flex;gap:8px;justify-content:center;margin-top:auto;padding-top:12px;}
.team-icon-btn{
  width:34px;height:34px;border-radius:50%;border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;color:var(--cyan);
  transition:.15s ease;flex:none;
}
.team-icon-btn svg{width:17px;height:17px;display:block;}
.team-icon-btn:hover{background:var(--cyan);color:#fff;border-color:var(--cyan);}
.team-icon-btn.confirm-icon{opacity:.4;cursor:default;}
.team-icon-btn.confirm-icon:hover{background:none;color:var(--cyan);border-color:var(--line);}

/* Form */
.form-shell{background:#fff;border:1px solid var(--line);border-radius:20px;padding:34px;box-shadow:var(--shadow);}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.form-full{grid-column:1/-1;}
.option-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:6px;}
.option-btn{border:1.5px solid var(--line);border-radius:12px;padding:14px 10px;text-align:center;font-size:13px;font-weight:700;color:var(--ink-soft);cursor:pointer;background:#fff;}
.option-btn.selected{border-color:var(--cyan);background:var(--cyan-soft);color:var(--navy);}
.secure-handoff{border:1.5px dashed #C9CDE0;border-radius:16px;padding:26px;text-align:center;background:var(--bg-alt);}
.secure-handoff .lock{font-size:26px;margin-bottom:10px;}

/* Footer */
footer.site-footer{background:var(--navy-deep);color:#C9D2EA;padding:56px 0 26px;margin-top:60px;}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:36px;}
footer.site-footer h4{color:#fff;font-size:13px;text-transform:uppercase;letter-spacing:.06em;margin:0 0 16px;}
footer.site-footer a{color:#AEBBDB;text-decoration:none;display:block;font-size:13.5px;margin-bottom:10px;}
footer.site-footer a:hover{color:#fff;}
footer.site-footer .logo img{height:44px;width:auto;filter:none;}
.footer-bottom{border-top:1px solid rgba(255,255,255,0.12);margin-top:40px;padding-top:22px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:12.5px;color:#8FA0C9;}
.footer-legal-badges{display:flex;gap:10px;flex-wrap:wrap;font-size:11.5px;color:#8FA0C9;}
.footer-legal-badges span{border:1px solid rgba(255,255,255,0.18);padding:4px 10px;border-radius:999px;}

/* Utility */
.mt-0{margin-top:0;}
.text-center{text-align:center;}
.small-muted{font-size:12.5px;color:var(--ink-soft);}
.section-head{max-width:680px;margin:0 auto 40px;text-align:center;}
.section-head.left{text-align:left;margin:0 0 34px;}

/* ===== Responsive ===== */
@media (min-width: 1180px){
  .phone-link{display:inline-flex;}
}
@media (min-width: 981px) and (max-width: 1179px){
  .btn-sm{padding:9px 13px;font-size:12.5px;}
}
@media (max-width: 980px){
  nav.primary-nav{display:none;}
  .hamburger{display:block;}
  .header-actions .btn.js-get-started{display:none;} /* mobile nav drawer + sticky bar already offer this */
  .hero-grid{grid-template-columns:1fr;}
  .grid-6{grid-template-columns:repeat(2,1fr);}
  .grid-3{grid-template-columns:repeat(2,1fr);}
  .closing-badges{grid-template-columns:repeat(2,1fr);}
  .why-list{grid-template-columns:1fr;}
  .steps{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .two-col{grid-template-columns:1fr;}
  .side-card{position:static;}
  .calc-shell{grid-template-columns:1fr;}
  .sticky-actions{display:block;}
  body{padding-bottom:0;}
}
@media (max-width: 400px){
  .lang-toggle{padding:6px 9px;gap:4px;font-size:11.5px;}
  .header-actions{gap:6px;}
}
@media (max-width: 680px){
  h1.h1-hero{font-size:30px;}
  .grid-6{grid-template-columns:1fr;}
  .grid-3{grid-template-columns:1fr;}
  /* team.html / es/equipo.html: the "Jorge's Team" grid alone has 11 people.
     Collapsing it to a single column (like grid-3 normally does on phones)
     makes that one section roughly 6400px tall — about 7-8 phone screens
     of scrolling before Yakelin's Team or Behind the Scenes ever appear,
     which reads as those sections being missing entirely. Keeping 2
     columns here cuts that section's height roughly in half. */
  .grid-3.team-grid{grid-template-columns:repeat(2,1fr); gap:12px;}
  .team-grid .team-card{padding:12px 10px;}
  .team-grid .team-card .photo-frame{aspect-ratio:1/1;}
  .team-grid .team-card h3{font-size:13px;margin:10px 0 2px;}
  .team-grid .team-card .role{font-size:11px;margin-bottom:4px;}
  .team-grid .team-card p.bio,
  .team-grid .team-card .small-muted{font-size:11.5px;}
  .team-grid .team-icons{margin-top:auto;padding-top:8px;gap:6px;}
  .team-grid .team-icon-btn{width:29px;height:29px;}
  .grid-2{grid-template-columns:1fr;}
  .closing-badges{grid-template-columns:1fr;}
  .steps{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
  .cred-row{justify-content:center;text-align:center;gap:14px 22px;}
  .cta-band{padding:38px 22px;}
  .option-grid{grid-template-columns:1fr 1fr;}
  .form-row{grid-template-columns:1fr;}
  .calc-inputs, .calc-results{padding:22px;}
  .page-hero h1{font-size:27px;}
  .why-item .num{width:48px;height:48px;font-size:15px;}
}

/* ===== Cookie consent banner ===== */
.cookie-banner{
  position:fixed; left:0; right:0; bottom:0; z-index:999;
  background:var(--navy-deep); color:#fff;
  box-shadow:0 -8px 30px rgba(0,0,0,0.22);
  padding:16px 20px; display:none;
}
.cookie-banner.is-visible{display:block;}
.cookie-banner-inner{
  max-width:1180px; margin:0 auto; display:flex; align-items:center; gap:20px; flex-wrap:wrap;
}
.cookie-banner p{
  margin:0; font-size:13.5px; line-height:1.5; color:#D9E0F5; flex:1 1 380px;
}
.cookie-banner p a{color:#fff; text-decoration:underline;}
.cookie-banner-actions{display:flex; gap:10px; flex:0 0 auto; flex-wrap:wrap;}
.cookie-banner-actions button{
  border:0; border-radius:8px; padding:10px 18px; font-size:13.5px; font-weight:600;
  cursor:pointer; font-family:inherit;
}
.cookie-accept{background:var(--terracotta); color:#fff;}
.cookie-decline{background:transparent; color:#D9E0F5; border:1px solid rgba(255,255,255,0.3) !important;}
@media (max-width:640px){
  .cookie-banner-inner{flex-direction:column; align-items:stretch;}
  .cookie-banner p{flex:1 1 auto;}
  .cookie-banner-actions{justify-content:flex-end;}
}

/* ===== Footer: contact column (address / phone with icon badges) ===== */
.footer-contact-col{display:flex;flex-direction:column;gap:18px;}
.footer-contact-item{display:flex;align-items:flex-start;gap:12px;font-size:13.5px;color:#C9D2EA;line-height:1.45;}
a.footer-contact-item{text-decoration:none;margin-bottom:0;}
a.footer-contact-item:hover{color:#fff;}
a.footer-contact-item:hover .footer-contact-icon{background:var(--cyan);color:#fff;}
.footer-contact-icon{
  flex:none; width:34px; height:34px; border-radius:9px; background:rgba(58,168,224,0.16);
  color:var(--cyan); display:flex; align-items:center; justify-content:center;
}
.footer-contact-icon svg{width:17px;height:17px;}
.footer-contact-label{display:block;font-size:10.5px;letter-spacing:.06em;color:#7688B0;text-transform:uppercase;margin-bottom:2px;}

/* ===== Footer: byline row (NMLS credentials + BBB / Equal Housing badges) ===== */
.footer-byline-row{
  border-top:1px solid rgba(255,255,255,0.12); margin-top:40px; padding-top:22px;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px;
}
.footer-byline{display:flex; gap:32px; flex-wrap:wrap;}
.footer-byline .fb-name{display:block; font-size:12.5px; font-weight:700; color:#fff; letter-spacing:.03em; text-transform:uppercase;}
.footer-byline .fb-nmls{display:block; font-size:12px; color:#8FA0C9; margin-top:3px;}
.footer-byline .fb-nmls b{color:#C9D2EA; font-weight:600;}
/* The real BBB Accredited Business logo and the real Equal Housing Lender
   logo, sitting side by side — not the generic inline SVG house icon this
   briefly got swapped for. */
.footer-badges{display:flex; align-items:center; gap:20px; flex-wrap:wrap;}
.footer-bbb-badge{height:58px; width:auto; display:block;}
.footer-eho-inline{
  display:inline-flex; align-items:center; gap:9px; margin-bottom:0;
  color:#C9D2EA !important; font-size:13px;
}
.footer-eho-inline:hover{color:#fff !important;}
.footer-eho-icon-img{flex:none; height:58px; width:auto; display:block;}

/* ===== Footer: disclaimer + bottom bar links ===== */
.footer-disclaimer{
  font-size:11.5px; line-height:1.6; color:#7688B0; margin:22px 0 0; max-width:1020px;
}
.footer-bottom-links{display:flex; gap:20px; flex-wrap:wrap;}
.footer-bottom-links a{margin-bottom:0; display:inline;}

@media (max-width:640px){
  .footer-bottom{justify-content:flex-start;}
  .footer-byline-row{flex-direction:column; align-items:flex-start;}
}

/* ===== Get Started modal ===== */
.gs-modal-overlay{
  position:fixed; inset:0; z-index:1200; background:rgba(13,27,61,0.55);
  display:none; align-items:center; justify-content:center; padding:20px;
  backdrop-filter:blur(2px);
}
.gs-modal-overlay.is-open{display:flex;}
.gs-modal{
  background:#fff; border-radius:22px; max-width:480px; width:100%;
  padding:34px 30px 28px; box-shadow:0 30px 70px rgba(13,27,61,0.35);
  position:relative; max-height:90vh; overflow-y:auto;
}
.gs-modal-close{
  position:absolute; top:18px; right:18px; width:34px; height:34px; border-radius:50%;
  border:1px solid var(--line); background:#fff; cursor:pointer; font-size:18px; line-height:1;
  color:var(--ink-soft); display:flex; align-items:center; justify-content:center;
}
.gs-modal-close:hover{background:var(--bg-alt);}
.gs-modal h3{font-size:23px;margin:0 0 4px;text-align:center;}
.gs-modal .gs-sub{text-align:center;color:var(--ink-soft);font-size:14px;margin:0 0 22px;}
.gs-option{
  display:flex; align-items:center; gap:14px; padding:16px; border-radius:16px;
  border:1.5px solid var(--line); text-decoration:none; color:inherit; margin-bottom:12px;
  transition:.15s ease;
}
.gs-option:hover{border-color:var(--cyan);background:var(--cyan-soft);}
.gs-option.gs-featured{border-color:var(--terracotta);background:#FBF1EC;}
.gs-option-icon{
  flex:none; width:42px;height:42px;border-radius:12px;background:var(--bg-alt);
  display:flex;align-items:center;justify-content:center;color:var(--navy);
}
.gs-option.gs-featured .gs-option-icon{background:#F3DED2;color:var(--terracotta);}
.gs-option-icon svg{width:20px;height:20px;}
.gs-option-body{flex:1;min-width:0;}
.gs-option-body strong{display:block;font-size:15px;color:var(--navy-deep);margin-bottom:2px;}
.gs-option-body span{display:block;font-size:12.5px;color:var(--ink-soft);line-height:1.4;}
.gs-option-arrow{flex:none;color:var(--ink-soft);font-size:18px;}
.gs-option[aria-disabled="true"]{opacity:.55;cursor:not-allowed;}
.gs-option[aria-disabled="true"]:hover{border-color:var(--line);background:none;}
.gs-modal-foot{text-align:center;color:var(--ink-soft);font-size:12px;margin-top:6px;}

/* ===== Rolling Google reviews marquee ===== */
.reviews-marquee{
  overflow:hidden; background:var(--bg-alt); padding:26px 0;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
}
.reviews-marquee-track{
  display:flex; gap:18px; width:max-content;
  animation:rm-scroll 42s linear infinite;
}
.reviews-marquee:hover .reviews-marquee-track{animation-play-state:paused;}
@keyframes rm-scroll{
  from{transform:translateX(0);}
  to{transform:translateX(-50%);}
}
.rm-card{
  flex:none; width:320px; background:#fff; border:1px solid var(--line); border-radius:16px;
  padding:20px 22px; box-shadow:var(--shadow-sm); text-decoration:none; color:inherit; display:block;
  transition:.15s ease;
}
.rm-card:hover{border-color:var(--cyan);box-shadow:0 6px 20px rgba(20,42,92,0.12);}
.rm-card .stars{color:#F0A93B; font-size:14px; letter-spacing:2px; margin-bottom:8px;}
.rm-card p{font-size:14px; color:var(--ink); line-height:1.55; margin:0 0 10px;}
.rm-card span{font-size:12px; color:var(--ink-soft); font-weight:600;}
.rm-card .rm-translated{font-style:normal;font-weight:500;color:#9AA6C2;}
@media (prefers-reduced-motion: reduce){
  .reviews-marquee-track{animation:none;}
  .reviews-marquee{overflow-x:auto;}
}

/* ===== Instagram reels strip (jorge.html "Featured content") =====
   These are real Instagram oEmbed widgets (see instagram.com/embed.js at
   the bottom of the page), not custom-built cards — each one is a live
   iframe Instagram renders itself, with its own branding/like-comment UI.
   Auto-loops using the same translateX(-50%) mechanic as the Google
   reviews marquee above (rm-scroll keyframe, defined there) — the 6 real
   reels are duplicated once in the HTML so the loop is seamless. Note
   this means 12 live Instagram embeds load on this page instead of 6;
   that's the accepted tradeoff for a self-playing loop vs. a lighter
   scroll-yourself strip. */
.reels-strip{
  overflow:hidden; padding:8px 0 18px;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent);
}
.reels-strip-track{
  display:flex; gap:20px; width:max-content;
  animation:rm-scroll 70s linear infinite;
}
.reels-strip:hover .reels-strip-track{animation-play-state:paused;}
.reel-embed-item{flex:none;}
@media (prefers-reduced-motion: reduce){
  .reels-strip-track{animation:none;}
  .reels-strip{overflow-x:auto;}
}

/* ===== Market Trends page ===== */
.market-chart-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px 24px 10px;box-shadow:var(--shadow-sm);}
.market-trend-svg{width:100%;height:220px;display:block;}
.market-chart-labels{display:flex;justify-content:space-between;font-size:12px;color:var(--ink-soft);padding:6px 4px 4px;}
.market-rate-table{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff;}
.mrt-row{display:grid;grid-template-columns:2fr 1fr 1fr;padding:13px 18px;font-size:14px;border-bottom:1px solid var(--line);}
.mrt-row:last-child{border-bottom:none;}
.obmmi-widget-card{padding:22px;display:flex;justify-content:center;}
.obmmi-embed{width:100%;max-width:750px;margin:0 auto;overflow-x:auto;border-radius:12px;}
.obmmi-embed iframe{display:block;width:750px;max-width:none;height:565px;border:0;border-radius:12px;}
@media (max-width:800px){
  .obmmi-widget-card{padding:14px;}
}
/* Compact section variant: keeps the live-rate module close enough to the fold that the full widget is visible without extra scrolling */
.section-tight{padding:34px 0 44px;}
.section-head.tight{margin:0 auto 18px;}
.section-head.tight p{margin:6px auto 0;max-width:620px;}
.mrt-head{background:var(--bg-alt);font-weight:700;color:var(--navy-deep);font-size:12.5px;text-transform:uppercase;letter-spacing:.03em;}

/* ===== Market Trends: Florida snapshot stat cards ===== */
.snapshot-stat{background:#fff;border:1px solid var(--line);border-radius:18px;padding:26px 20px;text-align:center;box-shadow:var(--shadow-sm);}
.snapshot-stat .snap-label{font-size:12.5px;font-weight:700;color:var(--ink-soft);text-transform:uppercase;letter-spacing:.03em;display:block;margin-bottom:10px;}
.snapshot-stat .snap-num{font-size:32px;font-weight:800;color:var(--navy-deep);display:block;line-height:1.1;}
.snapshot-stat .snap-trend{font-size:13px;font-weight:700;margin-top:8px;display:inline-block;padding:3px 10px;border-radius:999px;}
.snapshot-stat .snap-trend.up{color:#1a7a3c;background:#E7F6EC;}
.snapshot-stat .snap-trend.down{color:#B4472A;background:#FBEAE4;}
.snapshot-stat .snap-trend.flat{color:var(--navy);background:var(--cyan-soft);}

/* ===== Market Trends: editorial analysis blocks ===== */
.analysis-block{background:#fff;border:1px solid var(--line);border-radius:18px;padding:26px 24px;}
.analysis-block h3{font-size:17px;margin:0 0 10px;color:var(--navy-deep);}
.analysis-block p{font-size:14.5px;color:var(--ink-soft);margin:0 0 10px;}
.analysis-block p:last-child{margin-bottom:0;}
.analysis-block ul{margin:0 0 10px;padding-left:18px;color:var(--ink-soft);font-size:14.5px;}
.analysis-block li{margin-bottom:4px;}

/* ===== Market Trends: rate-by-loan-type cards ===== */
.rate-type-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;text-decoration:none;display:block;transition:.15s;box-shadow:var(--shadow-sm);}
.rate-type-card:hover{border-color:var(--cyan);transform:translateY(-2px);}
.rate-type-card .rtc-rate{font-size:26px;font-weight:800;color:var(--cyan);display:block;}
.rate-type-card .rtc-name{font-size:15px;font-weight:700;color:var(--navy-deep);display:block;margin:6px 0 6px;}
.rate-type-card .rtc-desc{font-size:13px;color:var(--ink-soft);display:block;}
.rate-type-card .rtc-arrow{color:var(--cyan);font-weight:800;font-size:13px;margin-top:10px;display:inline-block;}

/* ===== Market Trends: regional market cards ===== */
.region-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:var(--shadow-sm);}
.region-card.region-featured{border:2px solid var(--cyan);}
.region-card h3{font-size:17px;margin:10px 0 10px;color:var(--navy-deep);}
.region-card p{font-size:14px;color:var(--ink-soft);margin:0;}
.condition-badge{display:inline-block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;padding:4px 10px;border-radius:999px;}
.condition-badge.seller{color:#B4472A;background:#FBEAE4;}
.condition-badge.buyer{color:#1a7a3c;background:#E7F6EC;}
.condition-badge.balanced{color:var(--navy);background:var(--cyan-soft);}
.condition-badge.cooling{color:#8A6D1E;background:#FBF3DE;}

/* ===== Market Trends: FAQ human-expert CTA strip ===== */
.expert-cta-strip{background:var(--bg-alt);border-radius:20px;padding:32px 28px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;}
.expert-cta-strip h3{font-size:19px;margin:0 0 6px;color:var(--navy-deep);}
.expert-cta-strip p{margin:0;color:var(--ink-soft);font-size:14.5px;max-width:480px;}
.expert-cta-strip .ctas{margin:0;flex:none;}

@media (max-width:760px){
  .expert-cta-strip{flex-direction:column;align-items:flex-start;text-align:left;}
}
@media (max-width:640px){
  .mrt-row{grid-template-columns:1.4fr 1fr 1fr;font-size:13px;padding:11px 14px;}
}

/* ===== Easy call/consult CTA band (educational pages) ===== */
.easy-cta-band{
  background:linear-gradient(135deg,var(--navy) 0%,var(--navy-deep) 100%);
  border-radius:22px; padding:34px 30px; text-align:center; color:#fff; margin:8px 0;
}
.easy-cta-band h3{color:#fff;font-size:22px;margin:0 0 8px;}
.easy-cta-band p{color:#C7D3EE;font-size:14.5px;max-width:520px;margin:0 auto 20px;}
.easy-cta-band .ctas{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;}
.easy-cta-band .btn-cyan{background:var(--cyan);}
.easy-cta-band .btn-secondary{border-color:rgba(255,255,255,0.5);color:#fff;}
.easy-cta-band .btn-secondary:hover{background:rgba(255,255,255,0.12);}
.easy-cta-band .small-muted{color:#93A2C9;font-size:12.5px;margin-top:14px;}

/* ===== Contact page map ===== */
.contact-map-frame{border-radius:18px;overflow:hidden;border:1px solid var(--line);box-shadow:var(--shadow-sm);}
.contact-map-frame iframe{display:block;}

/* ===== Lead form consent checkboxes ===== */
.consent-field label{display:flex;align-items:flex-start;gap:10px;font-size:12.5px;color:var(--ink-soft);line-height:1.5;cursor:pointer;}
.consent-field input[type="checkbox"]{margin-top:3px;flex:none;width:16px;height:16px;accent-color:var(--navy);}

/* ===== Floating "Call Jorge" button (sitewide) ===== */
.call-jorge-float{
  position:fixed; right:40px; bottom:44px; z-index:95;
  display:inline-flex; align-items:center; gap:9px;
  background:var(--terracotta); color:#fff; text-decoration:none;
  padding:14px 20px 14px 16px; border-radius:999px; font-weight:700; font-size:14px;
  box-shadow:0 10px 28px rgba(201,99,59,0.4);
  transition:bottom .2s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.cookie-banner.is-visible ~ .call-jorge-float{ bottom:118px; }
.call-jorge-float:hover{background:#B4552F; transform:translateY(-2px);box-shadow:0 14px 32px rgba(201,99,59,0.48);}
.call-jorge-float svg{width:19px;height:19px;flex:none;}
.call-jorge-float .cjf-pulse{
  position:absolute; inset:0; border-radius:999px; background:var(--terracotta);
  opacity:.55; animation:cjf-pulse 2.2s ease-out infinite;
}
@keyframes cjf-pulse{
  0%{transform:scale(1);opacity:.5;}
  100%{transform:scale(1.35);opacity:0;}
}
@media (max-width:980px){
  .call-jorge-float{display:none;} /* sticky-actions mobile bar already offers Call */
}

/* ===== Footer: social + review icons ===== */
.footer-social{display:flex; gap:10px; margin-top:16px;}
footer.site-footer .footer-social a{
  width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,0.08);
  display:flex; align-items:center; justify-content:center; color:#fff; transition:.15s ease;
  margin-bottom:0; padding:0;
}
.footer-social a:hover{background:var(--cyan);}
.footer-social svg{width:16px;height:16px;display:block;}
.footer-social a.gicon img{width:16px;height:16px;display:block;}

/* ===== Loan-page visual components (icon cards, checklists, feature blocks) ===== */
.icon-circle{
  width:48px;height:48px;border-radius:12px;background:var(--cyan-soft);
  display:flex;align-items:center;justify-content:center;margin-bottom:16px;color:var(--navy);
  flex:none;
}
.icon-circle svg{width:24px;height:24px;}
.icon-circle.navy{background:var(--navy-deep);color:#fff;}
.card{position:relative;}
.card-top-accent{position:absolute;top:0;left:0;right:0;height:4px;border-radius:18px 18px 0 0;background:var(--cyan);}
.card.has-accent{padding-top:26px;}

.feature-block{display:flex;gap:16px;align-items:flex-start;}
.feature-block .icon-circle{margin-bottom:0;}
.feature-block h4{font-size:16px;margin:0 0 6px;color:var(--navy-deep);}
.feature-block p{font-size:14.5px;color:var(--ink-soft);margin:0;}

.icon-check-list{list-style:none;margin:0;padding:0;}
.icon-check-list li{
  display:flex; gap:14px; align-items:flex-start; padding:16px 4px;
  border-bottom:1px solid var(--line);
}
.icon-check-list li:last-child{border-bottom:none;}
.icon-check-list .ci{
  flex:none; width:26px;height:26px;border-radius:50%;background:var(--cyan-soft);color:var(--navy);
  display:flex;align-items:center;justify-content:center;margin-top:2px;
}
.icon-check-list .ci svg{width:14px;height:14px;}
.icon-check-list strong{color:var(--navy-deep);}

.flag-list{list-style:none;margin:0;padding:0;}
.flag-list li{
  display:flex; gap:14px; align-items:flex-start; padding:16px 4px;
  border-bottom:1px solid var(--line);
}
.flag-list li:last-child{border-bottom:none;}
.flag-list .ci{
  flex:none; width:26px;height:26px;border-radius:50%;background:#FBEAEA;color:#B4453B;
  display:flex;align-items:center;justify-content:center;margin-top:2px;
}
.flag-list .ci svg{width:13px;height:13px;}

.stat-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px 22px;text-align:center;box-shadow:var(--shadow-sm);}
.stat-card .icon-circle{margin:0 auto 14px;}
.stat-card h3{font-size:19px;margin:0 0 10px;color:var(--navy-deep);}
.stat-card p{font-size:13.5px;color:var(--ink-soft);margin:0;}

.section-photo{border-radius:20px;overflow:hidden;box-shadow:var(--shadow);}
.section-photo img{display:block;width:100%;height:100%;object-fit:cover;}

/* Bigger icon-circle variant for hero-weight sections */
.icon-circle.lg{width:60px;height:60px;border-radius:16px;}
.icon-circle.lg svg{width:30px;height:30px;}

/* Dark, high-contrast "feature" section — used sparingly for visual rhythm,
   the way a premium page alternates plain sections with a bold colored one. */
.section-dark{background:var(--navy-deep);color:#fff;position:relative;overflow:hidden;}
.section-dark::before{
  content:"";position:absolute;top:-30%;right:-10%;width:60%;height:160%;
  background:radial-gradient(circle,rgba(47,166,224,0.16) 0%,rgba(47,166,224,0) 70%);
  pointer-events:none;
}
.section-dark .eyebrow{color:#8FD4FF;}
.section-dark h2{color:#fff;}
.section-dark p{color:#C9D2EA;}
.section-dark .feature-block h4{color:#fff;}
.section-dark .feature-block p{color:#C9D2EA;}
.section-dark .icon-circle{background:rgba(255,255,255,0.12);color:#fff;}
.section-dark .analysis-block h3{color:var(--navy-deep);}
.section-dark .analysis-block p,
.section-dark .analysis-block li,
.section-dark .analysis-block .small-muted{color:var(--ink-soft);}

/* Numbered step badge — larger, more visual weight than plain small-caps text */
.step-badge{
  width:38px;height:38px;border-radius:50%;background:var(--navy-deep);color:#fff;
  display:flex;align-items:center;justify-content:center;font-family:"Fraunces",serif;
  font-weight:700;font-size:16px;margin-bottom:14px;
}

/* Section eyebrow with a short accent rule, for more visual anchoring */
.eyebrow-rule{display:flex;align-items:center;gap:10px;margin-bottom:14px;}
.eyebrow-rule .rule{width:36px;height:3px;border-radius:2px;background:var(--cyan);}
.eyebrow-rule span.eyebrow{margin-bottom:0;}
.section-dark .eyebrow-rule .rule{background:#8FD4FF;}

@media (max-width:680px){
  .feature-block{flex-direction:column;}
}
