/* Site header: one clean nav (Home, Services ▾, Projects, About, Shop button), Login ▾, phone and a single
   primary CTA ("Request a Free Site Survey") that opens the survey form (js/site-header.js).
   Markup is generated by tools/site_header.py and shared by every public page.
   Class prefix qh- so no page's older inline nav styles can clash with it. */
:root {
  --qh-h: 128px;
  --qh-green: #7AB23A;
  --qh-green-dark: #3F6B12;
  --qh-ink: #1A2124;
  --qh-muted: #5c6468;
  --qh-line: #e6e8eb;
  --qh-bg: #ffffff;
}
@media (max-width: 1024px) { :root { --qh-h: 92px; } }
html:has(.qh.scrolled) { --qh-h: 76px; }
@media (max-width: 1024px) { html:has(.qh.scrolled) { --qh-h: 64px; } }

.qh { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--qh-h); background: var(--qh-bg); border-bottom: 1px solid var(--qh-line); font-family: inherit; transition: box-shadow .2s; }
.qh.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.qh * { box-sizing: border-box; }
.qh a { text-decoration: none; }
.qh__inner { max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 20px; }

.qh__logo { display: flex; align-items: center; flex-shrink: 0; color: var(--qh-ink); }
.qh__logo img { height: 116px; width: auto; object-fit: contain; display: block; transition: height .2s; }
.qh.scrolled .qh__logo img { height: 64px; }
.qh__logo span { font-weight: 800; font-size: 18px; letter-spacing: -.2px; color: var(--qh-ink); white-space: nowrap; }
.qh__logo b { color: var(--qh-green-dark); font-weight: 800; }

.qh__menu { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.qh__link { display: inline-flex; align-items: center; gap: 5px; padding: 9px 13px; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--qh-ink); background: none; border: 0; cursor: pointer; font-family: inherit; line-height: 1.2; white-space: nowrap; }
.qh__link:hover, .qh__dd.open > .qh__link { background: #f2f4f1; color: var(--qh-ink); }
.qh__link.is-active { color: var(--qh-green-dark); }
.qh__link svg { width: 14px; height: 14px; transition: transform .2s; }
.qh__dd.open > .qh__link svg { transform: rotate(180deg); }
.qh__link:focus-visible, .qh__cta:focus-visible, .qh__icon:focus-visible, .qh__toggle:focus-visible, .qh__mega a:focus-visible { outline: 2px solid var(--qh-green-dark); outline-offset: 2px; }

.qh__dd { position: relative; }
.qh__mega { position: absolute; top: calc(100% + 10px); left: -120px; width: min(860px, calc(100vw - 40px)); background: #fff; border: 1px solid var(--qh-line); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.14); padding: 22px 24px; display: none; grid-template-columns: repeat(4, 1fr); gap: 8px 24px; }
.qh__dd.open > .qh__mega { display: grid; }
.qh__mega-col h3, .qh__mega-col .qh__hd { margin: 0 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--qh-green-dark); }
.qh__mega-col a { display: block; padding: 7px 8px; margin: 0 -8px; border-radius: 7px; font-size: 14.5px; color: var(--qh-ink); font-weight: 500; }
.qh__mega-col a:hover { background: #f2f4f1; }
.qh__mega-foot { grid-column: 1 / -1; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--qh-line); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13.5px; color: var(--qh-muted); flex-wrap: wrap; }
.qh__mega-foot a { color: var(--qh-green-dark); font-weight: 700; }

.qh__drop { position: absolute; top: calc(100% + 10px); right: 0; min-width: 210px; background: #fff; border: 1px solid var(--qh-line); border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.14); padding: 8px; display: none; }
.qh__dd.open > .qh__drop { display: block; }
.qh__drop a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14.5px; color: var(--qh-ink); font-weight: 600; }
.qh__drop a small { display: block; font-weight: 400; color: var(--qh-muted); font-size: 12.5px; margin-top: 2px; }
.qh__drop a:hover { background: #f2f4f1; }

.qh__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.qh__icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--qh-ink); border: 1px solid var(--qh-line); background: #fff; }
.qh__icon:hover { background: #f2f4f1; }
.qh__icon svg { width: 18px; height: 18px; }
.qh__phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14.5px; color: var(--qh-ink); padding: 8px 6px; white-space: nowrap; }
.qh__phone svg { width: 16px; height: 16px; color: var(--qh-green-dark); }
.qh__cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--qh-green); color: #1A2124; border: 0; border-radius: 10px; padding: 11px 18px; font-size: 14.5px; font-weight: 800; cursor: pointer; font-family: inherit; white-space: nowrap; transition: background .15s, transform .15s; }
.qh__cta:hover { background: #88c046; transform: translateY(-1px); }

/* Shop: dark pill with a cart so it stands out from the text links and the green survey CTA.
   Desktop: in the menu. Tablet/phone (menu hidden): its own button in the bar; icon-only on small phones. */
/* Shop button: brand green, white ring, soft pulse and an arrow so it reads as a button, not a label (every page with the shared header) */
@keyframes qhShopPulse { 0% { box-shadow: 0 0 0 0 rgba(122,178,58,.6); } 70% { box-shadow: 0 0 0 12px rgba(122,178,58,0); } 100% { box-shadow: 0 0 0 0 rgba(122,178,58,0); } }
.qh__shop { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-left: 4px; padding: 10px 18px; border-radius: 10px; border: 2px solid #fff; background: linear-gradient(180deg, #8ccb43, #6aa52a); color: #10210a !important; font-size: 15.5px; font-weight: 800; line-height: 1.2; white-space: nowrap; box-shadow: 0 4px 14px rgba(122,178,58,.5); animation: qhShopPulse 2s infinite; transition: background .15s, transform .15s; }
.qh__shop:hover { background: linear-gradient(180deg, #9bd856, #78b534); transform: translateY(-2px) scale(1.04); animation: none; box-shadow: 0 8px 22px rgba(122,178,58,.6); }
.qh__shop:focus-visible { outline: 3px solid var(--qh-ink); outline-offset: 2px; }
.qh__shop svg { width: 19px; height: 19px; flex-shrink: 0; color: #10210a; }
.qh__shop:not(.qh__shop--bar):not(.qh__shop--panel) span::after { content: " \2192"; }
@media (prefers-reduced-motion: reduce) { .qh__shop { animation: none; } }
.qh__shop--bar { display: none; margin-left: 0; }
.qh__mobile .qh__shop--panel { display: flex; width: 100%; margin: 0 0 14px; padding: 14px; font-size: 16px; }
.qh__mob-call { display: none; }
.qh__toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--qh-line); background: #fff; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; }
.qh__toggle span { display: block; width: 20px; height: 2px; background: var(--qh-ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.qh__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.qh__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.qh__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu panel */
.qh__mobile { display: none; position: fixed; top: var(--qh-h); left: 0; right: 0; bottom: 0; background: #fff; overflow-y: auto; padding: 16px 20px 40px; border-top: 1px solid var(--qh-line); }
.qh__mobile.open { display: block; }
.qh__mobile .qh__cta { width: 100%; padding: 14px; font-size: 16px; margin-bottom: 14px; }
.qh__mob-main a { display: block; padding: 13px 2px; font-size: 17px; font-weight: 700; color: var(--qh-ink); border-bottom: 1px solid var(--qh-line); }
.qh__mob-group { margin-top: 18px; }
.qh__mob-group h3, .qh__mob-group .qh__hd { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--qh-green-dark); }
.qh__mob-group a { display: block; padding: 9px 2px; font-size: 15.5px; color: var(--qh-ink); }
.qh__mob-row { display: flex; gap: 10px; margin-top: 22px; }
.qh__mob-row a, .qh__mob-row button { flex: 1; text-align: center; padding: 12px; border-radius: 10px; border: 1px solid var(--qh-line); font-weight: 700; font-size: 14.5px; color: var(--qh-ink); background: #fff; font-family: inherit; }
.qh__mob-row [hidden] { display: none; }

@media (max-width: 1180px) { .qh__phone span { display: none; } .qh__phone { padding: 8px; } .qh__link { padding: 9px 10px; } .qh__menu { margin-left: 4px; } }
@media (max-width: 1024px) {
  .qh__menu, .qh__login, .qh__actions > .qh__cta, .qh__phone { display: none; }
  .qh__toggle, .qh__mob-call, .qh__shop--bar { display: inline-flex; }
  .qh__shop--bar { padding: 9px 12px; }
  .qh__logo img { height: 82px; }
  .qh.scrolled .qh__logo img { height: 52px; }
  .qh__logo { padding: 3px 8px 6px; border-radius: 0 0 14px 14px; }
  .qh__inner { padding: 0 14px; gap: 10px; }
}
@media (max-width: 380px) { .qh__shop--bar { padding: 0; width: 42px; height: 40px; } .qh__shop--bar span { display: none; } }
@media (max-width: 360px) { .qh__logo span { font-size: 16px; } .qh__actions { gap: 6px; } .qh__inner { gap: 8px; } }

/* Keep in-page anchors clear of the fixed header */
html { scroll-padding-top: calc(var(--qh-h) + 12px); }

/* Survey modal */
.qs { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; background: rgba(10,12,14,.6); padding: 16px; }
.qs.open { display: flex; }
.qs__box { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; color: var(--qh-ink); border-radius: 16px; padding: 26px 24px 22px; box-shadow: 0 24px 70px rgba(0,0,0,.35); font-family: inherit; }
.qs__close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; background: none; font-size: 24px; cursor: pointer; color: var(--qh-muted); border-radius: 8px; }
.qs__box h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: var(--qh-ink); }
.qs__box p.qs__sub { margin: 0 0 16px; font-size: 14.5px; color: var(--qh-muted); line-height: 1.5; }
.qs__box label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 5px; color: var(--qh-ink); }
.qs__box input, .qs__box select, .qs__box textarea { width: 100%; padding: 11px 12px; border: 1px solid #cfd4d9; border-radius: 9px; font-size: 15px; font-family: inherit; color: var(--qh-ink); background: #fff; }
.qs__box input:focus, .qs__box select:focus, .qs__box textarea:focus { outline: 2px solid var(--qh-green); border-color: var(--qh-green-dark); }
.qs__box label.qs__opt { display: flex; gap: 9px; align-items: flex-start; font-weight: 500; font-size: 13px; color: var(--qh-muted); margin: 14px 0 0; cursor: pointer; line-height: 1.45; }
.qs__box label.qs__opt input { width: 17px; height: 17px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--qh-green); }
.qs__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qs__box .qh__cta { width: 100%; margin-top: 18px; padding: 14px; font-size: 16px; }
.qs__err { color: #b42318; font-size: 13.5px; margin-top: 10px; min-height: 1em; }
.qs__trust { margin-top: 12px; font-size: 12.5px; color: var(--qh-muted); text-align: center; }
