/* ==========================================================================
   QSHD site chrome — header (topbar + nav + mobile drawer), footer, and the
   scroll-reveal / sticky-header helpers. These are template parts (header.php /
   footer.php), not blocks, so this is hand-authored static CSS enqueued on the
   front end only (inc/enqueue.php). Consumes --qs-* tokens from design-system.css.
   Ported from designs/qsha/index.html.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Topbar (slim dark utility strip)
   -------------------------------------------------------------------------- */
.qs-topbar { background: var(--qs-ink); color: var(--qs-muted); font-size: 13px; }
.qs-topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 9px; }
.qs-topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.qs-topbar__item svg { width: 15px; height: 15px; color: var(--qs-blue-400); }
.qs-topbar__sep { color: var(--qs-line-strong); }
.qs-topbar__right { display: inline-flex; align-items: center; gap: 18px; }
.qs-topbar__phone { color: #fff; font-weight: 600; }
.qs-topbar__phone:hover { color: var(--qs-blue-400); }
@media (max-width: 760px) { .qs-topbar__hide { display: none; } }

/* --------------------------------------------------------------------------
   Header / primary nav (white, sticky)
   -------------------------------------------------------------------------- */
.qs-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(255, 255, 255, .9);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .25s ease, box-shadow .25s ease;
}
.qs-header.is-stuck { border-color: var(--qs-line-ink); box-shadow: 0 10px 26px -18px rgba(16, 28, 40, .4); }
.qs-header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 13px; }

.qs-logo { display: inline-flex; align-items: center; gap: 12px; }
.qs-logo__icon { width: 44px; height: 44px; flex: none; }
.qs-logo__text { display: flex; flex-direction: column; line-height: 1; }
.qs-logo__mark {
	font-family: var(--qs-font-display); font-weight: 800; font-style: italic;
	font-size: 26px; text-transform: uppercase; letter-spacing: .5px; color: var(--qs-steel);
}
.qs-logo__mark b { color: var(--qs-blue); font-weight: 800; }
.qs-logo__sub {
	font-family: var(--qs-font-display); font-weight: 600; font-size: 9.5px;
	letter-spacing: .34em; text-transform: uppercase; color: var(--qs-ink-muted); margin-top: 3px;
}

.qs-nav { display: flex; align-items: center; gap: 30px; }
.qs-nav__link {
	font-family: var(--qs-font-display); font-weight: 600; font-size: 16px;
	letter-spacing: .05em; text-transform: uppercase; color: var(--qs-ink-text);
	padding: 6px 0; position: relative;
}
.qs-nav__link::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--qs-blue); transition: width .2s ease; }
.qs-nav__link:hover { color: var(--qs-blue-600); }
.qs-nav__link:hover::after { width: 100%; }

.qs-header__cta { display: flex; align-items: center; gap: 14px; }
.qs-header__phone { display: inline-flex; align-items: center; gap: 9px; font-family: var(--qs-font-display); font-weight: 700; font-size: 20px; color: var(--qs-ink-text); }
.qs-header__phone svg { width: 18px; height: 18px; color: var(--qs-blue); }

.qs-burger { display: none; background: transparent; border: 1.5px solid var(--qs-line-ink-2); border-radius: 8px; padding: 9px; cursor: pointer; }
.qs-burger svg { width: 22px; height: 22px; color: var(--qs-ink-text); }

@media (max-width: 1040px) { .qs-nav, .qs-header__phone { display: none; } .qs-burger { display: inline-flex; } }

/* mobile drawer */
.qs-mobile {
	position: fixed; inset: 0 0 0 auto; width: min(86vw, 340px); z-index: 80;
	background: var(--qs-white); border-left: 1px solid var(--qs-line-ink);
	transform: translateX(100%); transition: transform .3s ease;
	padding: 24px; display: flex; flex-direction: column; gap: 6px; box-shadow: -20px 0 50px -30px rgba(16, 28, 40, .5);
}
.qs-mobile.is-open { transform: translateX(0); }
.qs-mobile__top { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.qs-mobile__close { background: transparent; border: 0; color: var(--qs-ink-text); cursor: pointer; }
.qs-mobile__close svg { width: 26px; height: 26px; }
.qs-mobile__link { font-family: var(--qs-font-display); font-weight: 600; font-size: 21px; text-transform: uppercase; padding: 13px 6px; border-bottom: 1px solid var(--qs-line-ink); color: var(--qs-ink-text); }
.qs-mobile .qs-btn { margin-top: 18px; }
.qs-scrim { position: fixed; inset: 0; background: rgba(12, 17, 22, .5); z-index: 70; opacity: 0; visibility: hidden; transition: .3s; }
.qs-scrim.is-open { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   Footer (dark anchor)
   -------------------------------------------------------------------------- */
.qs-footer { background: var(--qs-ink-800); border-top: 1px solid var(--qs-line); }
.qs-footer__map { display: grid; grid-template-columns: 1.6fr 1fr; }
.qs-footer__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(.25) contrast(1.04); display: block; }
.qs-footer__contact { background: var(--qs-blue-700); padding: clamp(34px, 4vw, 52px); }
.qs-footer__contact h3 { font-family: var(--qs-font-display); font-weight: 800; font-size: 28px; text-transform: uppercase; color: #fff; margin: 0 0 6px; }
.qs-footer__contact p { color: #dcebf7; font-size: 14px; margin: 0 0 24px; }
.qs-footer__line { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 16px; color: #fff; }
.qs-footer__line svg { width: 20px; height: 20px; flex: none; color: #bfe0f6; margin-top: 3px; }
.qs-footer__line b { font-family: var(--qs-font-display); font-weight: 700; font-size: 18px; display: block; }
.qs-footer__line span { font-size: 13.5px; color: #dcebf7; }
.qs-footer__social { display: flex; gap: 10px; margin-top: 26px; }
.qs-footer__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); transition: .2s; color: #fff; }
.qs-footer__social a:hover { background: #fff; color: var(--qs-blue-700); transform: translateY(-2px); }
.qs-footer__social svg { width: 19px; height: 19px; }

.qs-footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-block: 52px; }
.qs-footer__brand .qs-logo { margin-bottom: 18px; }
.qs-footer .qs-logo__mark { color: #fff; }
.qs-footer .qs-logo__sub { color: var(--qs-muted); }
.qs-footer__brand p { color: var(--qs-muted); font-size: 14.5px; max-width: 38ch; margin: 0; }
.qs-footer h5 { font-family: var(--qs-font-display); font-weight: 700; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin: 0 0 18px; }
.qs-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.qs-footer__links a { color: var(--qs-muted); font-size: 14.5px; }
.qs-footer__links a:hover { color: var(--qs-blue-400); }
.qs-footer__bar { border-top: 1px solid var(--qs-line); padding-block: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--qs-muted); }
.qs-footer__bar a:hover { color: var(--qs-blue-400); }
@media (max-width: 880px) { .qs-footer__map { grid-template-columns: 1fr; } .qs-footer__cols { grid-template-columns: 1fr 1fr; } .qs-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .qs-footer__cols { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Scroll-reveal (opt-in: add class "qs-reveal" to any element)
   -------------------------------------------------------------------------- */
.qs-reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.qs-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.qs-reveal { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
}
