/* ============================================================
   Shared site header, nav, social rail, modals, carousel
   ============================================================ */

:root {
  --head-h: 104px;
  --head-gap: 42px;
  --nav-bar-h: 66px;
  --car-pad: 48px;
  --quick-pad-y: 52px;
  --quick-pad-b: 110px;
  --promo-hi: #00B4F0;
}

/* ---------- Sticky header shell ---------- */
.site-head { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line-2); box-shadow: 0 1px 0 rgba(11,27,43,.02); }

/* Top utility strip */
.util { background: var(--ink); color: #B9CCDD; font-size: 14px; overflow: hidden; transition: max-height .28s ease, opacity .2s ease; max-height: 44px; }
.util-inner { display: flex; align-items: center; gap: 26px; height: 44px; }
.util a { color: #B9CCDD; }
.util .u-item { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; white-space: nowrap; }
.util .u-item svg { width: 15px; height: 15px; color: #5FC7F0; flex: none; }
.util .u-item b { color: #fff; font-weight: 700; }
.util .u-right { margin-left: auto; display: inline-flex; align-items: center; gap: 22px; }
.util .u-sep { width: 1px; height: 16px; background: rgba(255,255,255,.14); }

/* ---------- Floating social rail (fixed, scroll-independent) ---------- */
.social-rail { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 120; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.social-rail a { position: relative; display: flex; align-items: center; justify-content: flex-end; height: 48px; width: 48px; border-radius: 24px; overflow: hidden; color: #fff; text-decoration: none; box-shadow: 0 6px 18px rgba(11,27,43,.22); transition: width .26s cubic-bezier(.4,0,.2,1), box-shadow .2s ease, transform .15s ease; will-change: width; }
.social-rail a:hover { width: var(--w, 150px); box-shadow: 0 10px 26px rgba(11,27,43,.34); color: #fff; }
.social-rail a .lbl { position: absolute; right: 40px; top: 0; height: 48px; display: flex; align-items: center; padding-right: 0; padding-left: 15px; font-size: 14px; font-weight: 700; white-space: nowrap; opacity: 0; transform: translateX(6px); transition: opacity .2s ease .04s, transform .22s ease .04s; }
.social-rail a:hover .lbl { opacity: 1; transform: translateX(0); }
.social-rail a .ic { flex: none; width: 48px; height: 48px; display: grid; place-items: center; }
.social-rail a .ic svg { width: 22px; height: 22px; }
.social-rail .soc-fb { background: #1877F2; }
.social-rail .soc-ms { background: linear-gradient(135deg, #0A7CFF 0%, #A21BF7 100%); }
.social-rail .soc-zl { background: #0068FF; }
.social-rail .soc-yt { background: #FF0000; }
.social-rail .soc-tt { background: #111; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 6px 18px rgba(11,27,43,.22); }
.social-rail .soc-tt:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 10px 26px rgba(11,27,43,.34); }

/* Main header row */
.head-main { display: flex; align-items: center; gap: var(--head-gap); height: var(--head-h); transition: height .26s ease, gap .26s ease; }
.logo-lock { display: flex; align-items: center; gap: 13px; flex: none; }
.logo-lock img { width: 50px; height: 50px; object-fit: contain; flex: none; }
.logo-lock .lt { display: flex; flex-direction: column; line-height: 1; gap: 5px; }
.logo-lock .lt b { font-size: 22px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); }
.logo-lock .lt span { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: var(--blue-600); text-transform: uppercase; }

/* Search */
.search { flex: 1; max-width: 560px; }
.search form { display: flex; align-items: center; height: 48px; border: 1.6px solid var(--line); border-radius: var(--r-pill); background: var(--bg-2); overflow: hidden; transition: .16s; }
.search form:focus-within { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(0,145,230,.1); }
.search .s-ico { display: grid; place-items: center; padding: 0 6px 0 18px; color: var(--muted); }
.search .s-ico svg { width: 19px; height: 19px; }
.search input { flex: 1; border: none; background: none; outline: none; font-family: inherit; font-size: 15px; color: var(--ink); padding: 0 8px; }
.search input::placeholder { color: var(--muted); }
.search button { height: 48px; padding: 0 24px; border: none; background: var(--blue); color: #fff; font-family: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; transition: .15s; }
.search button:hover { background: var(--blue-600); }

/* Header right cluster */
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
.auth { display: flex; align-items: center; gap: 4px; }
.btn-text { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); padding: 10px 14px; border-radius: var(--r-pill); transition: .15s; }
.btn-text:hover { color: var(--blue-600); background: var(--sky-2); }
.btn-text svg { width: 17px; height: 17px; }
.btn-signup { color: var(--blue-700); }
.head-divider { width: 1px; height: 30px; background: var(--line); margin: 0 4px; }
.btn-consult { background: var(--blue); color: #fff; box-shadow: var(--sh-blue); }
.btn-consult:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn-feedback { background: #fff; color: var(--accent); border: 1.5px solid var(--accent-soft); }
.btn-feedback:hover { background: var(--accent-soft); border-color: var(--accent); }
.head-actions .btn { padding: 12px 20px; font-size: 14.5px; }
.head-actions .btn svg { width: 17px; height: 17px; }

/* ---------- Nav bar ---------- */
.mainnav { background: #fff; border-top: 1px solid var(--line-2); }
.mainnav-inner { display: flex; align-items: stretch; gap: 4px; height: var(--nav-bar-h); transition: height .26s ease; }
.navlink { display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; font-size: 14.5px; font-weight: 700; letter-spacing: .01em; color: var(--ink); text-transform: uppercase; position: relative; transition: .15s; }
.navlink::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px; background: var(--blue); border-radius: 3px 3px 0 0; transform: scaleX(0); transition: transform .18s ease; }
.navlink:hover { color: var(--blue-600); }
.navlink:hover::after, .navlink.active::after { transform: scaleX(1); }
.navlink.active { color: var(--blue-700); }
.navlink .chev { width: 15px; height: 15px; transition: transform .2s ease; }
.navlink .home-ico { width: 17px; height: 17px; }

/* Campaign highlight link */
.navlink.campaign { color: var(--accent); margin-left: 6px; }
.navlink.campaign::after { background: var(--accent); }
.navlink.campaign:hover { color: #C0421E; }
.navlink.campaign .pill0 { font-size: 10px; font-weight: 900; background: var(--accent); color: #fff; padding: 3px 7px; border-radius: var(--r-pill); letter-spacing: .04em; }

/* Dropdown */
.has-drop { position: relative; display: flex; align-items: stretch; }
.has-drop:hover .chev { transform: rotate(180deg); }
.drop { position: absolute; top: 100%; left: 0; min-width: 290px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); box-shadow: var(--sh-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s ease; z-index: 70; }
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop a { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 600; font-size: 15px; text-transform: none; letter-spacing: 0; transition: .13s; }
.drop a .d-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--sky); color: var(--blue-600); display: grid; place-items: center; flex: none; }
.drop a .d-ico svg { width: 19px; height: 19px; }
.drop a:hover { background: var(--sky-2); color: var(--blue-700); }
.drop a:hover .d-ico { background: var(--blue); color: #fff; }
.drop .d-foot { margin-top: 6px; border-top: 1px solid var(--line-2); padding: 12px 14px 6px; }
.drop .d-foot a { padding: 0; color: var(--blue-600); font-weight: 700; font-size: 14px; }
.drop .d-foot a:hover { background: none; gap: 11px; }
.drop .d-foot svg { width: 16px; height: 16px; }

/* Scrolled / condensed state */
.site-head.scrolled .util { max-height: 0; opacity: 0; }
.site-head.scrolled .head-main { height: 66px; }
.site-head.scrolled .logo-lock img { width: 42px; height: 42px; }

/* ---------- Carousel ---------- */
.carousel { padding: var(--car-pad) 0 8px; transition: padding .26s ease; }
.car-stage { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); }
.car-track { display: flex; transition: transform .6s cubic-bezier(.6,.01,.05,1); }
.car-slide { flex: 0 0 100%; aspect-ratio: 1560/520; position: relative; }

/* designed slide */
.car-slide .promo { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 clamp(40px,6vw,96px); }
.car-slide .promo-copy { max-width: 560px; color: #fff; position: relative; z-index: 2; }
.car-slide .promo .ey { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); padding: 7px 15px; border-radius: var(--r-pill); margin-bottom: 22px; backdrop-filter: blur(4px); }
.car-slide .promo h2 { font-size: clamp(30px,4.4vw,52px); line-height: 1.06; margin-bottom: 18px; text-shadow: 0 2px 20px rgba(0,0,0,.12); }
.car-slide .promo p { font-size: clamp(16px,1.4vw,20px); color: rgba(255,255,255,.92); margin-bottom: 30px; max-width: 460px; }
.car-slide .promo .btn { box-shadow: 0 12px 30px rgba(0,0,0,.22); }
.car-slide .promo .pbtns { display: flex; gap: 14px; flex-wrap: wrap; }
.promo-a { background: linear-gradient(115deg, var(--blue-700) 0%, var(--blue) 55%, var(--promo-hi) 100%); }
.promo-b { background: linear-gradient(115deg, #0B1B2B 0%, #123859 55%, #1E5C8A 100%); }
.car-slide .deco { position: absolute; border-radius: 50%; }
.promo-a .deco.d1 { width: 460px; height: 460px; right: -120px; top: -160px; background: rgba(255,255,255,.08); }
.promo-a .deco.d2 { width: 280px; height: 280px; right: 180px; bottom: -160px; background: rgba(255,255,255,.06); }
.promo-b .deco.d1 { width: 420px; height: 420px; right: -90px; bottom: -180px; background: rgba(95,199,240,.12); }
.car-slide .promo-shot { position: absolute; right: clamp(40px,6vw,90px); top: 50%; transform: translateY(-50%); width: 38%; max-width: 440px; aspect-ratio: 4/3.2; border-radius: var(--r); background-color: rgba(255,255,255,.08); background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.07) 0 12px, transparent 12px 24px); border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; z-index: 1; }
.car-slide .promo-shot::after { content: attr(data-label); font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: rgba(255,255,255,.85); background: rgba(0,0,0,.22); padding: 6px 12px; border-radius: var(--r-pill); text-align: center; max-width: 80%; }
.promo-b .car-slide-tag { color: #5FC7F0; }

/* placeholder slide */
.car-slide .slot { position: absolute; inset: 0; background-color: var(--bg-3); background-image: repeating-linear-gradient(-45deg, rgba(0,114,204,.06) 0 14px, transparent 14px 28px); display: grid; place-items: center; }
.car-slide .slot .lbl { font-family: ui-monospace, Menlo, monospace; font-size: 13px; font-weight: 600; color: #5E7B96; background: rgba(255,255,255,.85); padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid rgba(0,114,204,.16); text-align: center; }

/* controls */
.car-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.92); border: none; box-shadow: var(--sh); display: grid; place-items: center; cursor: pointer; z-index: 5; transition: .15s; color: var(--ink); }
.car-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); color: var(--blue-600); }
.car-arrow svg { width: 24px; height: 24px; }
.car-arrow.prev { left: 22px; }
.car-arrow.next { right: 22px; }
.car-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.car-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; transition: .18s; padding: 0; }
.car-dots button.active { background: #fff; width: 30px; border-radius: 6px; }

/* ---------- Quick category chips (minimal body) ---------- */
.quicks { padding: var(--quick-pad-y) 0 var(--quick-pad-b); transition: padding .26s ease; }
.quicks-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.qchip { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-align: center; transition: .18s ease; }
.qchip:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; }
.qchip .qi { width: 56px; height: 56px; border-radius: 16px; background: var(--sky); color: var(--blue-600); display: grid; place-items: center; transition: .18s; }
.qchip:hover .qi { background: var(--blue); color: #fff; }
.qchip .qi svg { width: 27px; height: 27px; }
.qchip b { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(11,27,43,.55); backdrop-filter: blur(3px); z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity .22s ease; }
.modal-overlay.open { display: flex; opacity: 1; }
.modal { background: #fff; border-radius: var(--r-lg); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; box-shadow: var(--sh-lg); transform: translateY(16px) scale(.98); transition: transform .26s cubic-bezier(.2,.8,.2,1); }
.modal-overlay.open .modal { transform: none; }
.modal-head { padding: 28px 32px 0; position: relative; }
.modal-head .eyebrow { margin-bottom: 12px; }
.modal-head h2 { font-size: 26px; margin-bottom: 8px; }
.modal-head p { color: var(--ink-2); font-size: 15px; }
.modal-close { position: absolute; top: 20px; right: 22px; width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--bg-2); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; transition: .15s; }
.modal-close:hover { background: var(--line); color: var(--ink); }
.modal-close svg { width: 19px; height: 19px; }
.modal-body { padding: 24px 32px 32px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea { width: 100%; font-family: inherit; font-size: 15px; color: var(--ink); padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--bg-2); outline: none; transition: .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(0,145,230,.1); }
.field textarea { resize: vertical; min-height: 92px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal .btn-block { margin-top: 8px; }
.modal-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 14px; }

/* Searchable combobox (province/city) */
.combo { position: relative; }
.combo .combo-input { padding-right: 40px; cursor: text; }
.combo-caret { position: absolute; right: 14px; top: 22px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; transition: transform .18s ease; }
.combo.open .combo-caret { transform: rotate(180deg); }
.combo-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--sh-lg); max-height: 210px; overflow-y: auto; z-index: 8; display: none; padding: 6px; }
.combo.open .combo-list { display: block; }
.combo-opt { padding: 9px 12px; border-radius: var(--r-sm); font-size: 14.5px; cursor: pointer; color: var(--ink); }
.combo-opt:hover, .combo-opt.active { background: var(--sky); color: var(--blue); }
.combo-empty { padding: 11px 12px; font-size: 13.5px; color: var(--muted); }

/* Multi-select checkbox grid (concerns) */
.chk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-body .chk-item { display: grid; grid-template-columns: 18px 1fr; align-items: center; gap: 10px; margin: 0; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.3; transition: border-color .14s ease, background .14s ease, box-shadow .14s ease; }
.modal-body .chk-item:hover { border-color: var(--blue); background: var(--bg-2); }
.modal-body .chk-item input { appearance: auto; accent-color: var(--blue); width: 18px; height: 18px; flex: none; cursor: pointer; margin: 0; }
.modal-body .chk-item:has(input:checked) { border-color: var(--blue); background: var(--sky); box-shadow: 0 0 0 3px rgba(0,145,230,.08); }
.other-wrap { margin-top: 10px; }
.other-wrap .other-input { margin-top: 10px; }
.other-wrap .other-input:disabled { background: var(--bg-2); color: var(--muted); cursor: not-allowed; opacity: .65; box-shadow: none; }

/* star rating */
.stars { display: flex; gap: 6px; }
.stars button { background: none; border: none; padding: 2px; cursor: pointer; color: var(--line); transition: .12s; }
.stars button svg { width: 34px; height: 34px; }
.stars button.on svg { fill: #FFB020; color: #FFB020; }

/* compact multi-criteria product rating */
.stars-sm button svg { width: 24px; height: 24px; }
.rating-group { display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--bg-2); padding: 2px 14px; }
.rating-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; }
.rating-row + .rating-row { border-top: 1px solid var(--line); }
.rating-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rating-name { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.rating-hint { font-size: 12px; color: var(--muted); line-height: 1.3; }
.stars-sm { flex: none; }

/* success state */
.modal-success { display: none; padding: 44px 32px 40px; text-align: center; }
.modal-success.show { display: block; }
.modal-success .chk { width: 72px; height: 72px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 22px; }
.modal-success .chk svg { width: 38px; height: 38px; }
.modal-success h2 { font-size: 24px; margin-bottom: 10px; }
.modal-success p { color: var(--ink-2); font-size: 15px; margin-bottom: 24px; }

/* ---------- Mobile menu ---------- */
.burger { display: none; background: none; border: none; padding: 6px; color: var(--ink); }
.burger svg { width: 28px; height: 28px; }
.mnav { display: none; position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); background: #fff; z-index: 110; padding: 22px; flex-direction: column; gap: 4px; box-shadow: var(--sh-lg); overflow-y: auto; transform: translateX(100%); transition: transform .26s ease; }
.mnav.open { display: flex; transform: none; }
.mnav .m-close { align-self: flex-end; background: var(--bg-2); border: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; margin-bottom: 8px; }
.mnav .m-close svg { width: 20px; height: 20px; }
.mnav a { padding: 14px 6px; font-size: 16px; font-weight: 700; border-bottom: 1px solid var(--line-2); text-transform: uppercase; }
.mnav .m-sub a { font-size: 14.5px; font-weight: 600; text-transform: none; padding-left: 18px; color: var(--ink-2); }
.mnav .m-cta { margin-top: 16px; display: grid; gap: 10px; }
.mbackdrop { display: none; position: fixed; inset: 0; background: rgba(11,27,43,.4); z-index: 105; }
.mbackdrop.open { display: block; }

@media (max-width: 1180px) {
  .quicks-grid { grid-template-columns: repeat(3, 1fr); }
  .search { max-width: 360px; }
  .util .u-item:first-child { display: none; }
}
@media (max-width: 1024px) {
  .mainnav, .auth, .head-divider, .btn-feedback span, .search { display: none; }
  .burger { display: block; }
  .head-main { gap: 18px; }
  .head-actions { gap: 8px; }
}
@media (max-width: 720px) {
  .social-rail { right: 10px; gap: 8px; }
  .social-rail a { height: 44px; width: 44px; }
  .social-rail a:hover { width: 44px; }
  .social-rail a .lbl { display: none; }
  .social-rail a .ic { width: 44px; height: 44px; }
  .util .u-right { display: none; }
  .util-inner { gap: 18px; }
  .quicks-grid { grid-template-columns: repeat(2, 1fr); }
  .car-arrow { width: 42px; height: 42px; }
  .car-slide .promo-shot { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .chk-grid { grid-template-columns: 1fr; }
}
