
:root{--blue:#0b25c9;--blue2:#071b9d;--orange:#ff5a00;--ink:#07144b;--muted:#5d6889;--soft:#f2f5ff;--line:#dce3f7;--white:#fff;--green:#dff9e7;--yellow:#fff1b9;--radius:10px;--shadow:0 12px 30px rgba(7,27,157,.12)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:#fff;line-height:1.6}img{max-width:100%;height:auto;display:block}a{color:inherit;text-decoration:none}.container{width:min(1140px,92%);margin:auto}.topbar{background:var(--blue);color:#fff;font-size:13px;text-align:right;padding:6px 0}.site-header{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid #e8ebf7}.header-inner{height:72px;display:flex;align-items:center;gap:28px}.brand img{width:205px;height:auto}.nav{display:flex;gap:22px;align-items:center;margin-left:auto;font-size:13px;font-weight:700}.nav a:hover,.nav a.active{color:var(--orange)}.header-call{background:var(--orange);color:#fff;padding:11px 16px;border-radius:5px;font-weight:800}.menu-btn{display:none;margin-left:auto;border:0;background:transparent;font-size:28px}.hero{background:linear-gradient(135deg,var(--blue2),var(--blue));color:#fff;padding:68px 0}.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:48px;align-items:center}.eyebrow{display:inline-block;background:var(--orange);color:#fff;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.hero h1{font-size:clamp(36px,5vw,62px);line-height:1.06;margin:15px 0}.hero p{font-size:18px;color:#e8ecff}.btns{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 20px;border-radius:5px;font-weight:800;border:1px solid transparent}.btn-primary{background:var(--orange);color:#fff}.btn-outline{border-color:#fff;color:#fff}.hero-card,.card,.form-card,.panel{background:#fff;color:var(--ink);border-radius:var(--radius);box-shadow:var(--shadow);padding:26px}.hero-card h3{margin-top:0}.hero-card input,.hero-card select,.hero-card textarea,.form-card input,.form-card select,.form-card textarea{width:100%;padding:12px;border:1px solid var(--line);border-radius:5px;margin:6px 0 10px;font:inherit}.hero-card button,.form-card button{width:100%;border:0}.trust-row{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:rgba(255,255,255,.2);margin-top:34px}.trust-row div{padding:14px;text-align:center;background:rgba(0,0,0,.08);font-weight:700;font-size:13px}.section{padding:76px 0}.section.soft{background:var(--soft)}.section.dark{background:var(--blue);color:#fff}.section.orange{background:linear-gradient(135deg,#f04b00,#ff6900);color:#fff}.section-head{text-align:center;max-width:760px;margin:0 auto 38px}.section-head h2{font-size:clamp(28px,4vw,42px);line-height:1.15;margin:8px 0}.section-head p{color:var(--muted)}.dark .section-head p,.orange .section-head p{color:#e9edff}.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:28px}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.grid-6{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{border:1px solid var(--line);box-shadow:none}.card.featured{border-color:var(--orange);box-shadow:0 8px 28px rgba(255,90,0,.13)}.icon{width:42px;height:42px;border-radius:9px;background:linear-gradient(135deg,var(--blue),#385dff);color:#fff;display:grid;place-items:center;font-weight:900;margin-bottom:14px}.card h3{margin:8px 0}.card p{color:var(--muted);font-size:15px}.mini-link{color:var(--blue);font-weight:800;font-size:14px}.media-card{border-radius:12px;overflow:hidden;box-shadow:var(--shadow);background:#fff}.media-card .visual{height:270px;background:linear-gradient(135deg,#dce7ff,#fff1e8);display:grid;place-items:center;font-size:90px}.media-card .body{padding:24px}.table-wrap{overflow:auto;background:#fff;border-radius:10px;box-shadow:var(--shadow)}table{width:100%;border-collapse:collapse;min-width:680px}th{background:var(--blue);color:#fff;text-align:left}th,td{padding:14px;border-bottom:1px solid var(--line)}.highlight{background:var(--green);font-weight:800}.steps{counter-reset:step}.step{display:grid;grid-template-columns:56px 1fr;gap:18px;padding:22px;border:1px solid var(--line);border-radius:10px;background:#fff;margin-bottom:14px}.step:before{counter-increment:step;content:counter(step);width:38px;height:38px;border-radius:50%;background:var(--blue);color:#fff;display:grid;place-items:center;font-weight:900}.warning{background:var(--yellow);border-radius:12px;padding:28px}.faq details{background:#fff;border:1px solid var(--line);padding:16px 18px;margin-bottom:8px;border-radius:6px}.faq summary{font-weight:800;cursor:pointer}.cta-band{text-align:center;padding:58px 0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;text-align:center}.stat strong{font-size:36px;color:var(--orange)}.footer{background:#071b9d;color:#fff;padding:56px 0 22px}.footer-grid{display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:28px}.footer h4{margin-top:0}.footer a{display:block;color:#dfe5ff;margin:7px 0;font-size:14px}.footer .brand img{filter:brightness(0) invert(1);width:220px}.legal{font-size:12px;color:#c9d2ff;border-top:1px solid rgba(255,255,255,.15);margin-top:30px;padding-top:18px}.mobile-sticky{display:none}.badge-line{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.pill{padding:7px 10px;border-radius:999px;background:#eef2ff;color:var(--blue);font-weight:700;font-size:12px}.quote{border-left:4px solid var(--orange);padding:12px 18px;background:#fff}.calculator{display:grid;grid-template-columns:1fr 1fr;gap:22px}.calc-output{background:var(--blue);color:#fff;border-radius:10px;padding:28px}.calc-output strong{font-size:40px}.person{display:grid;grid-template-columns:.9fr 1.1fr;gap:30px;align-items:center}.person-photo{min-height:350px;border-radius:12px;background:linear-gradient(135deg,#dce7ff,#fff0e7);display:grid;place-items:center;font-size:120px}.notice{font-size:12px;color:#667198;background:#eef2f8;padding:16px;border-radius:6px}
@media(max-width:900px){.nav{display:none;position:absolute;left:0;right:0;top:72px;background:#fff;padding:18px;flex-direction:column;box-shadow:var(--shadow)}.nav.open{display:flex}.menu-btn{display:block}.header-call{display:none}.hero-grid,.grid-2,.calculator,.person{grid-template-columns:1fr}.grid-3,.grid-4,.grid-6,.stats,.footer-grid{grid-template-columns:1fr 1fr}.hero{padding:48px 0}.hero-card{order:-1}.trust-row{grid-template-columns:1fr 1fr}}
@media(max-width:600px){body{padding-bottom:72px}.brand img{width:165px}.header-inner{height:64px}.nav{top:64px}.hero h1{font-size:38px}.section{padding:54px 0}.grid-3,.grid-4,.grid-6,.stats,.footer-grid{grid-template-columns:1fr}.btns .btn{width:100%}.mobile-sticky{display:block;position:fixed;z-index:90;left:12px;right:12px;bottom:10px;background:var(--orange);color:#fff;text-align:center;padding:14px;border-radius:8px;font-weight:900;box-shadow:0 10px 30px rgba(0,0,0,.25)}.trust-row{grid-template-columns:1fr}.hero-card{padding:20px}.person-photo{min-height:260px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}

/* 2026-07 exact-layout alignment fixes */
.container{width:min(1180px,calc(100% - 40px))}
.topbar{padding:4px 0;font-size:12px}
.header-inner{height:78px;gap:18px}
.brand{flex:0 0 auto;display:flex;align-items:center}
.brand img{width:200px;max-width:200px;height:auto;object-fit:contain}
.nav{gap:0;margin-left:auto;justify-content:flex-end;white-space:nowrap}
.nav a{display:flex;align-items:center;justify-content:center;min-height:78px;padding:0 13px;font-size:12px;line-height:1.25;text-align:center;position:relative}
.nav a.active{color:var(--blue)}
.nav a.active:after{content:"";position:absolute;left:13px;right:13px;bottom:0;height:3px;background:var(--orange)}
.header-call{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;white-space:nowrap}
.section{padding:70px 0}
.grid-3{align-items:stretch}
.card{height:100%;display:flex;flex-direction:column;padding:24px}
.card .mini-link{margin-top:auto;padding-top:12px}
.comparison-panel{max-width:820px;margin:0 auto;text-align:center;border:1px solid var(--line);box-shadow:none}
.house-visual{width:180px;max-width:55%;filter:drop-shadow(0 16px 20px rgba(7,27,157,.16))}
.person-photo{overflow:hidden;background:linear-gradient(145deg,#eef3ff,#fff4ed)}
@media(max-width:1120px){.header-inner{gap:10px}.brand img{width:170px;max-width:170px}.nav a{padding:0 8px;font-size:11px}.header-call{padding:0 13px;font-size:13px}}
@media(max-width:960px){.container{width:min(100% - 28px,1180px)}.header-inner{height:68px}.brand img{width:180px;max-width:180px}.nav{top:68px;max-height:calc(100vh - 68px);overflow:auto;align-items:stretch}.nav a{min-height:48px;padding:10px 18px;text-align:left;justify-content:flex-start;font-size:14px}.nav a.active:after{left:18px;right:auto;width:40px}.menu-btn{display:block}.header-call{display:none}}
@media(max-width:600px){.header-inner{height:64px}.brand img{width:155px;max-width:155px}.container{width:min(100% - 24px,1180px)}.section{padding:52px 0}.card{padding:20px}}


/* Global include cleanup */
.topbar{display:none!important}
#global-header,#global-footer{display:contents}
/* =========================================================
   FINAL FOOTER LOGO FIX
   Removes white box/border and aligns logo correctly
   ========================================================= */

.site-footer .footer-brand,
.site-footer .footer-logo,
.site-footer .footer-brand a {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.site-footer .footer-brand img,
.site-footer .footer-logo img {
  display: block;
  width: 320px;
  max-width: 100%;
  height: auto;
  max-height: 95px;
  margin: 0 0 18px;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  object-fit: contain;
  object-position: left center;
  filter: none !important;
}

/* Remove any inherited bordered logo wrapper */
.site-footer .footer-brand > div,
.site-footer .footer-logo > div {
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Keep footer text directly under logo */
.site-footer .footer-brand p {
  margin-top: 0;
  max-width: 420px;
}

/* Tablet */
@media (max-width: 900px) {
  .site-footer .footer-brand img,
  .site-footer .footer-logo img {
    width: 270px;
    max-height: 85px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .site-footer .footer-brand img,
  .site-footer .footer-logo img {
    width: 235px;
    max-height: 75px;
    margin-bottom: 14px;
  }
}
/* =========================================================
   FINAL GLOBAL FOOTER FIX
   Separate footer logo styling from header .brand styling
   ========================================================= */

.footer {
  background: #1028b8;
  color: #ffffff;
  padding: 58px 0 24px;
}

.footer .footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.9fr 1fr;
  gap: 42px;
  align-items: start;
}

/* Footer logo column */
.footer .footer-brand-column {
  min-width: 0;
}

/* Footer logo link */
.footer .footer-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  max-width: 320px;
  height: auto;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

/* Footer logo image */
.footer .footer-brand-image {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  max-height: 96px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  object-position: left center;
  filter: none;
}

/* Footer text */
.footer .footer-brand-column p {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.7;
}

/* Footer columns */
.footer .footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer h4 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.3;
}

.footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 180ms ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: #ffffff;
}

.footer .footer-column p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

/* Legal row */
.footer .legal {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.7;
}

/* Tablet */
@media (max-width: 1000px) {
  .footer .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px;
  }

  .footer .footer-brand-link {
    max-width: 280px;
  }

  .footer .footer-brand-image {
    width: 270px;
    max-height: 88px;
  }
}

/* Mobile */
@media (max-width: 680px) {
  .footer {
    padding: 44px 0 20px;
  }

  .footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer .footer-brand-link {
    display: flex;
    max-width: 240px;
    margin-bottom: 16px;
  }

  .footer .footer-brand-image {
    width: 230px;
    max-height: 78px;
  }

  .footer .footer-brand-column p {
    font-size: 14px;
  }

  .footer .legal {
    margin-top: 30px;
    padding-top: 18px;
    font-size: 11px;
  }
}
/* =========================================================
   HERO FORM NOTE VISIBILITY FIX
   ========================================================= */

.hero-card .form-note,
.hero-card .lead-form .form-note,
.hero-card .lead-form p {
  color: #536277 !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-size: 12px;
  line-height: 1.55;
  margin: 14px 0 0;
}

.hero-card .form-note a,
.hero-card .lead-form p a {
  color: #1737d1 !important;
  font-weight: 700;
  text-decoration: none;
}

.hero-card .form-note a:hover,
.hero-card .lead-form p a:hover {
  text-decoration: underline;
}



/* =========================================================
   FINAL PRODUCTION FIXES — 2026-07
   ========================================================= */
.hp-field{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.include-error{padding:14px;background:#fff4f4;color:#991b1b;text-align:center;font-weight:700}

/* Keep text readable on every white card/panel. */
.hero-card,.card,.form-card,.panel,.faq details,.table-wrap,.trustindex-widget-host,.trustindex-fallback{color:#07144b!important}
.hero-card p,.card p,.form-card p,.panel:not([style*="background:#071b9d"]):not([style*="background: #071b9d"]) p,.faq details p,.trustindex-widget-host p{color:#4b5874!important;opacity:1!important}
.panel[style*="background:#071b9d"],.panel[style*="background: #071b9d"]{color:#fff!important}
.panel[style*="background:#071b9d"] h3,.panel[style*="background:#071b9d"] p,.panel[style*="background: #071b9d"] h3,.panel[style*="background: #071b9d"] p{color:#fff!important;opacity:1!important}

/* Trustindex section */
.trustindex-reviews-section{background:#fff}
.trustindex-widget-host{min-height:180px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;box-shadow:var(--shadow)}
.trustindex-loading,.trustindex-fallback{text-align:center;padding:34px 20px;color:#536277!important}

/* Footer compliance logos shown on every page */
.compliance-strip{margin-top:38px;padding:28px 20px;background:#fff;color:#435274;border-radius:10px;text-align:center}
.compliance-logos{display:flex;align-items:center;justify-content:center;gap:26px;margin-bottom:18px}
.compliance-logos img{display:block;object-fit:contain;filter:none!important}
.compliance-strip p{margin:0;color:#435274!important;font-size:13px;line-height:1.65}
.footer .legal{margin-top:20px}

@media(max-width:600px){
  .compliance-strip{padding:22px 14px}
  .compliance-logos{gap:16px}
  .compliance-logos img:first-child{width:68px;height:auto}
  .compliance-logos img:last-child{width:98px;height:auto}
  .compliance-strip p{font-size:11px}
}
.trustindex-widget-host {
  width: 100%;
  overflow: hidden;
  background: transparent;
}

.trustindex-widget-frame {
  display: block;
  width: 100%;
  height: 430px;
  border: 0;
  background: transparent;
}

@media (max-width: 767px) {
  .trustindex-widget-frame {
    height: 580px;
  }
}
/* =========================================================
   FINAL LIVE RATES + COMPLIANCE SECTION
   ========================================================= */
.live-rates-section{background:#f1f4ff!important}
.live-rates-kicker{display:inline-block;color:#1733d4;font-size:12px;font-weight:900;letter-spacing:.14em;margin-bottom:8px}
.live-rates-updated{margin-top:10px!important;font-size:13px!important;font-weight:800;color:#64718d!important}
.live-rates-updated.is-live{color:#167647!important}
.live-rates-updated.is-fallback{color:#9a5d00!important}
.live-rates-card{max-width:1180px;margin:0 auto;border-radius:10px!important;overflow:hidden!important;box-shadow:0 18px 44px rgba(17,38,103,.10)!important}
.live-rates-card th{background:#1733d4!important;padding:17px 14px!important}
.live-rates-card td{padding:17px 14px!important}
.live-rates-card .highlight{background:#dcf7e7!important;color:#07144b!important;font-weight:900!important}
.live-rates-actions{display:flex;justify-content:center;align-items:center;gap:18px;flex-wrap:wrap;margin-top:26px}
.live-rates-source{color:#1733d4;font-weight:800}

.compliance-section{background:#fff;padding:34px 0}
.compliance-panel{background:#fff;border:1px solid #e3e8f1;border-radius:10px;min-height:194px;padding:27px 34px;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 12px 30px rgba(15,35,76,.07)}
.compliance-logo-row{display:flex;align-items:center;justify-content:center;gap:28px;margin-bottom:17px}
.compliance-logo-row img{display:block;object-fit:contain;filter:none!important}
.compliance-logo-row img:first-child{width:82px;height:98px}
.compliance-logo-row img:last-child{width:118px;height:98px}
.compliance-panel p{margin:0;text-align:center;color:#385380!important;font-size:13px;line-height:1.6}

/* Remove any chat launcher injected around the review area. */
.trustindex-reviews-section [class*="chat"],
.trustindex-reviews-section [id*="chat"],
.trustindex-reviews-section iframe[src*="chat"],
.trustindex-reviews-section iframe[title*="chat" i]{display:none!important}

@media(max-width:700px){
  .live-rates-card{margin-inline:-2px}
  .live-rates-card table{min-width:640px}
  .compliance-section{padding:18px 0}
  .compliance-panel{padding:23px 16px;min-height:0}
  .compliance-logo-row{gap:18px;margin-bottom:14px}
  .compliance-logo-row img:first-child{width:68px;height:auto}
  .compliance-logo-row img:last-child{width:96px;height:auto}
  .compliance-panel p{font-size:11px}
}

/* FINAL SHARED VICTOR IMAGE + LIVE RATES */
.person-photo img{width:100%;height:100%;min-height:350px;object-fit:cover;object-position:center top;border-radius:12px}
.live-rates-section{background:#f2f5ff!important}
.live-rates-kicker{display:inline-block;color:#1737d1;font-size:12px;font-weight:900;letter-spacing:.14em;margin-bottom:8px}
.live-rates-updated{font-size:13px!important;font-weight:800;margin-top:10px!important}
.live-rates-updated.is-live{color:#137333!important}.live-rates-updated.is-fallback{color:#9a6700!important}
.live-rates-card{border:1px solid #dbe3fb;box-shadow:0 18px 44px rgba(23,55,209,.10)}
.live-rates-disclaimer{text-align:center;max-width:850px;margin:16px auto 0;color:#65718a;font-size:12px}
.live-rates-actions{display:flex;justify-content:center;margin-top:22px}
@media(max-width:700px){.person-photo img{min-height:280px}.live-rates-actions .btn{width:100%}}


/* FINAL SHARED LIVE-RATES + REAL-TIME CALCULATOR */
.live-rates-section,.mortgage-calculator-section{scroll-margin-top:90px}
.live-rates-kicker{display:block;margin-bottom:10px;color:#173fd0;font-size:12px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.live-rates-updated{margin-top:9px;font-size:13px;font-weight:700;color:#63708a}
.live-rates-updated.is-live{color:#137333}.live-rates-updated.is-fallback{color:#9a6700}
.live-rates-card{border-radius:14px;box-shadow:0 15px 36px rgba(13,35,90,.09)}
.live-rates-actions{text-align:center;margin-top:24px}.live-rates-disclaimer{text-align:center;margin:16px auto 0;max-width:900px;font-size:12px;color:#68758a}
.realtime-calculator{align-items:stretch}
.calculator-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.calculator-fields label{display:flex;flex-direction:column;gap:8px;font-weight:800;color:#071a52}
.calculator-fields input,.calculator-fields select{width:100%;min-height:52px;padding:0 14px;border:1px solid #ced8ea;border-radius:9px;background:#fff;color:#071a52;font:inherit;outline:0}
.calculator-fields input:focus,.calculator-fields select:focus{border-color:#173fd0;box-shadow:0 0 0 3px rgba(23,63,208,.12)}
.calc-output [data-calc-payment]{display:block;margin:6px 0 14px;font-size:clamp(42px,6vw,72px);line-height:1;color:#fff}
.calc-breakdown{display:flex;flex-wrap:wrap;gap:10px 20px;margin-bottom:16px;color:rgba(255,255,255,.84);font-size:13px}.calc-breakdown b{color:#fff}
@media(max-width:720px){.calculator-fields{grid-template-columns:1fr}.live-rates-table{min-width:690px}.live-rates-card{overflow-x:auto}.calc-output [data-calc-payment]{font-size:44px}}


/* =========================================================
   FINAL LAPTOP HEADER WIDTH + RESPONSIVE NAV FIX
   Keeps the full desktop navigation inside the viewport and
   switches to the hamburger before the links can overflow.
   ========================================================= */
.site-header {
  overflow: visible;
}

.site-header .container.header-inner {
  width: min(1480px, calc(100% - 48px));
  max-width: 1480px;
  margin-inline: auto;
  padding-inline: 0;
}

.site-header .brand {
  flex: 0 0 auto;
  min-width: 0;
}

.site-header .brand img {
  width: 205px;
  max-width: 205px;
  height: auto;
}

.site-header .nav {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: auto;
  justify-content: flex-end;
  gap: 0;
}

.site-header .nav a {
  flex: 0 0 auto;
  padding-inline: 10px;
  font-size: 11.5px;
  white-space: nowrap;
}

.site-header .header-call {
  flex: 0 0 auto;
  min-width: 164px;
  padding-inline: 18px;
  font-size: 15px;
  white-space: nowrap;
}

@media (max-width: 1450px) and (min-width: 1281px) {
  .site-header .container.header-inner {
    width: calc(100% - 32px);
  }

  .site-header .brand img {
    width: 185px;
    max-width: 185px;
  }

  .site-header .header-inner {
    gap: 10px;
  }

  .site-header .nav a {
    padding-inline: 8px;
    font-size: 10.5px;
  }

  .site-header .header-call {
    min-width: 148px;
    padding-inline: 13px;
    font-size: 13px;
  }
}

/* Switch earlier so laptop/tablet widths never clip the phone button. */
@media (max-width: 1280px) {
  .site-header .container.header-inner {
    position: relative;
    width: min(100% - 32px, 1180px);
    height: 68px;
    gap: 12px;
  }

  .site-header .brand img {
    width: 185px;
    max-width: 185px;
  }

  .site-header .menu-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    color: var(--blue);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
  }

  .site-header .header-call {
    display: none !important;
  }

  .site-header .nav {
    display: none !important;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 100;
    max-height: calc(100vh - 82px);
    overflow-y: auto;
    margin: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0 0 10px 10px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .site-header .nav.open {
    display: flex !important;
  }

  .site-header .nav a {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    justify-content: flex-start;
    text-align: left;
    font-size: 14px;
    white-space: normal;
    border-radius: 5px;
  }

  .site-header .nav a:hover,
  .site-header .nav a:focus-visible {
    background: var(--soft);
  }

  .site-header .nav a.active::after {
    left: 14px;
    right: auto;
    bottom: 5px;
    width: 42px;
  }
}

@media (max-width: 600px) {
  .site-header .container.header-inner {
    width: calc(100% - 24px);
    height: 64px;
  }

  .site-header .brand img {
    width: 155px;
    max-width: 155px;
  }

  .site-header .nav {
    top: 64px;
  }
}
