/* =====================================================================
   HOMEPAGE BUTTON SYSTEM (v3, Nov 16 2026), loaded only by index.html
   ---------------------------------------------------------------------
   THE RULE
   1. One shape everywhere: 8px radius, 48px tall, 0 22px padding,
      Poppins 600 16px, Title Case (never all caps: text-transform none).
   2. GOLD (#FDD300, dark blue text) = quote actions ONLY
      (Get a Quote, Get a Free Quote, Start My Free Quote, X Quote).
   3. RED = every other action (Call, View Recent Projects, Learn More,
      Request a Repair, See Our Process, ...).
   4. Outline variant (.hb-line) = same shape, outline in the SAME color
      family as its role (gold outline for quote, red outline for action).
      On dark blue: white text. On light: dark text (gold) / #B23A2F (red).
   Markup: <a class="hb hb-quote">  <a class="hb hb-action">  add .hb-line
   Contrast (WCAG): white on #EC0000 4.6:1; #EC0000 vs blue #001F51 3.5:1,
   vs cream #F2EFEA 4.0:1, vs stone #E9E4DA 3.6:1; blue on gold 11:1;
   #B23A2F on cream 5.2:1 / stone 4.7:1.
   Exceptions (not action buttons): menu toggle (same 8px radius),
   accordion/FAQ toggles, slider and lightbox controls, tile arrow icons.
   ===================================================================== */
:root{
 --btn-radius:8px;
 --btn-h:48px;
 --btn-pad-x:22px;
 --btn-font-family:Poppins,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
 --btn-font-size:16px;
 --btn-font-weight:600;
 --btn-gap:8px;
 --btn-border:2px;
 --btn-quote-bg:#FDD300;      --btn-quote-fg:#001F51;   --btn-quote-bg-hover:#FFE14D;
 --btn-action-bg:#EC0000;     --btn-action-fg:#FFFFFF;  --btn-action-bg-hover:#C90000;
 --btn-action-line-fg-light:#B23A2F;   /* red outline text on light backgrounds */
 --btn-on-dark-fg:#FFFFFF;             /* outline text on blue */
}
a.hb{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:var(--btn-gap)!important;
 min-height:var(--btn-h)!important;height:auto!important;padding:0 var(--btn-pad-x)!important;border-radius:var(--btn-radius)!important;
 border:var(--btn-border) solid transparent!important;box-shadow:none!important;
 font-family:var(--btn-font-family)!important;font-size:var(--btn-font-size)!important;font-weight:var(--btn-font-weight)!important;
 line-height:1.15!important;letter-spacing:0!important;text-transform:none!important;text-decoration:none!important;text-align:center!important;
 white-space:nowrap;opacity:1!important;cursor:pointer;transition:background-color .15s,color .15s,border-color .15s,transform .15s}
a.hb:active{transform:translateY(1px)}
a.hb svg{width:18px;height:18px;flex:none}
/* quote = gold */
a.hb.hb-quote{background:var(--btn-quote-bg)!important;color:var(--btn-quote-fg)!important;border-color:var(--btn-quote-bg)!important}
a.hb.hb-quote:hover,a.hb.hb-quote:focus-visible{background:var(--btn-quote-bg-hover)!important;border-color:var(--btn-quote-bg-hover)!important;color:var(--btn-quote-fg)!important}
/* action = red */
a.hb.hb-action{background:var(--btn-action-bg)!important;color:var(--btn-action-fg)!important;border-color:var(--btn-action-bg)!important}
a.hb.hb-action:hover,a.hb.hb-action:focus-visible{background:var(--btn-action-bg-hover)!important;border-color:var(--btn-action-bg-hover)!important;color:var(--btn-action-fg)!important}
/* outline variants: light backgrounds */
a.hb.hb-line{background:transparent!important}
a.hb.hb-quote.hb-line{border-color:var(--btn-quote-bg)!important;color:var(--btn-quote-fg)!important}
a.hb.hb-action.hb-line{border-color:var(--btn-action-bg)!important;color:var(--btn-action-line-fg-light)!important}
a.hb.hb-line:hover,a.hb.hb-line:focus-visible{color:var(--btn-action-fg)!important}
a.hb.hb-quote.hb-line:hover,a.hb.hb-quote.hb-line:focus-visible{background:var(--btn-quote-bg)!important;color:var(--btn-quote-fg)!important}
a.hb.hb-action.hb-line:hover,a.hb.hb-action.hb-line:focus-visible{background:var(--btn-action-bg)!important}
/* outline variants: on dark blue */
.cx-hero a.hb.hb-line,.band-navy a.hb.hb-line,.cx-band a.hb.hb-line,.wb a.hb.hb-line,.rp-card a.hb.hb-line{color:var(--btn-on-dark-fg)!important}
.cx-hero a.hb.hb-quote.hb-line:hover,.band-navy a.hb.hb-quote.hb-line:hover{color:var(--btn-quote-fg)!important}
/* header */
.hdr .nav a.q.hb{margin-left:10px}
.hdr a.hdr-tel.hb{margin:0}
.menu-btn{border-radius:var(--btn-radius)!important;width:var(--btn-h)!important;height:var(--btn-h)!important}
@media (max-width:767px){
 .hdr a.hdr-tel.hb{width:var(--btn-h);padding:0!important}
 .hdr a.hdr-tel.hb>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
}
/* header fit (homepage only): bigger buttons need room, so
   1024-1279 keeps the gold Get a Quote and moves the text links into the menu button, 1280-1439 shows an icon-only call button,
   1440+ widens the header row to fit the number. Prevents the horizontal scroll the old header had at 1024. */
.hdr a.hdr-tel.hb>span{white-space:nowrap}
@media (min-width:1024px) and (max-width:1279px){.hdr .nav>a:not(.q),.hdr .nav>.nav-dd{display:none!important}.hdr .nav{margin-left:auto}.hdr .menu-btn{display:inline-flex!important;align-items:center;justify-content:center}}
@media (min-width:1024px) and (max-width:1439px){.hdr a.hdr-tel.hb{width:var(--btn-h)!important;padding:0!important}.hdr a.hdr-tel.hb>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}}
@media (min-width:1440px){.hdr .wrap{max-width:1360px}}
/* sticky mobile bar */
.dock a.hb{width:100%;padding:0 12px!important}
/* rows of buttons wrap cleanly */
.btns,.cx-btns{gap:12px!important}
@media (max-width:767px){
 .cx-btns a.hb,.cx-band a.hb,.btns a.hb,.wb a.hb{width:100%}
}
@media (max-width:359px){a.hb{white-space:normal}}
