/* Site header (components/Header.astro). Overrides the original design's
   generic header/nav rules in site.css. */
html{scroll-padding-top:88px}
html.hd-lock{overflow:hidden}
header.hd{position:sticky;top:0;z-index:900;display:block;height:auto;padding:0;gap:0;background:rgba(255,255,255,.86);backdrop-filter:saturate(1.6) blur(14px);-webkit-backdrop-filter:saturate(1.6) blur(14px);border-bottom:1px solid transparent;transition:box-shadow .25s,border-color .25s,background .25s}
header.hd.is-scrolled,header.hd.mega-open{background:rgba(255,255,255,.96);border-bottom-color:#e6edf8;box-shadow:0 10px 30px -18px #0b1f4d40}
.hd .hd-bar{max-width:1320px;margin:0 auto;height:76px;padding:0 28px;display:flex;align-items:center;gap:28px}
.hd .hd-logo{display:flex;align-items:center;flex-shrink:0}
.hd .hd-logo img{width:168px;height:auto;display:block}

/* Desktop links */
.hd .hd-nav{position:static;display:flex;align-items:center;gap:4px;margin:0 auto;padding:0;background:none;box-shadow:none;font-size:15px;flex-wrap:nowrap}
.hd .hd-link{position:relative;display:inline-flex;align-items:center;gap:6px;padding:9px 13px;border:0;border-radius:10px;background:none;color:#1b2a4e;font:inherit;font-weight:500;text-decoration:none;white-space:nowrap;cursor:pointer;transition:color .15s,background .15s}
.hd .hd-link:hover,.hd .hd-link[aria-expanded=true]{color:#005cff;background:#eef4ff}
.hd .hd-link[aria-current=page]{color:#005cff;font-weight:600}
.hd .hd-link[aria-current=page]::after{content:"";position:absolute;left:13px;right:13px;bottom:-1px;height:2px;border-radius:2px;background:#005cff}
.hd .hd-caret{width:12px;height:12px;transition:transform .2s}
.hd .hd-link[aria-expanded=true] .hd-caret{transform:rotate(180deg)}
.hd .hd-dot{width:6px;height:6px;border-radius:50%;background:#f59e0b;box-shadow:0 0 0 3px #f59e0b33}
.hd .hd-services{position:static;display:flex}

/* Actions */
.hd .hd-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.hd .hd-cta{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 20px;border-radius:12px;background:linear-gradient(135deg,#0a66ff,#0047d6);color:#fff;font-weight:700;font-size:15px;text-decoration:none;white-space:nowrap;box-shadow:0 10px 22px -10px #005cffaa;transition:transform .15s,box-shadow .15s}
.hd .hd-cta:hover{transform:translateY(-1px);box-shadow:0 14px 28px -12px #005cffcc}
.hd .hd-cta span{transition:transform .15s}.hd .hd-cta:hover span{transform:translateX(3px)}
.hd .hd-cta.wide{width:100%;padding:15px 20px;font-size:16px}
.hd .hd-burger{display:none;width:44px;height:44px;border:1px solid #dfe7f5;border-radius:12px;background:#fff;padding:0;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;font-size:0;color:#0b1f4d}
.hd .hd-burger span{display:block;width:20px;height:2px;border-radius:2px;background:currentColor}

/* Mega-menu */
.hd .hd-mega{position:absolute;left:0;right:0;top:100%;background:#fff;border-top:1px solid #e6edf8;box-shadow:0 30px 60px -30px #0b1f4d55;animation:hd-in .18s ease-out}
.hd .hd-mega[hidden]{display:none}
@keyframes hd-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.hd .hd-mega-inner{max-width:1320px;margin:0 auto;padding:26px 28px 30px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 300px;gap:10px 22px}
.hd .hd-mega-label{margin:0 0 8px 12px;font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#7a88a8;display:flex;flex-direction:column;gap:3px}
.hd .hd-mega-label small{font-size:12px;font-weight:500;letter-spacing:0;text-transform:none;color:#9aa6c0}
.hd .hd-svc{display:flex;gap:12px;align-items:flex-start;padding:10px 12px;border-radius:12px;text-decoration:none;color:#13224a;transition:background .15s}
.hd .hd-svc:hover,.hd .hd-svc:focus-visible,.hd .hd-svc[aria-current=page]{background:#f1f6ff}
.hd .hd-svc-ico{flex-shrink:0;display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#eaf1ff;color:#0a5cff;transition:background .15s,color .15s}
.hd .hd-svc:hover .hd-svc-ico{background:#0a5cff;color:#fff}
.hd .hd-svc-ico svg{width:20px;height:20px}
.hd .hd-svc-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.hd .hd-svc-txt b{font-size:14.5px;font-weight:650;display:flex;align-items:center;gap:8px}
.hd .hd-svc-txt small{font-size:12.5px;line-height:1.4;color:#63708e}
.hd em{font-style:normal;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#0f7a43;background:#e3f7ec;border-radius:99px;padding:2px 7px}
.hd .hd-mega-promo{align-self:stretch;display:flex;flex-direction:column;gap:10px;padding:22px;border-radius:18px;color:#fff;background:radial-gradient(120% 120% at 100% 0%,#5b8cff 0%,transparent 55%),linear-gradient(150deg,#0b1f4d,#0a3fb8)}
.hd .hd-mega-kicker{font-size:18px;font-weight:750;line-height:1.25}
.hd .hd-mega-promo p{margin:0;color:#c8d6ff;font-size:14px;line-height:1.5}
.hd .hd-promo-btn{margin-top:auto;border:0;border-radius:12px;background:#fff;color:#0b2d8f;font:inherit;font-weight:750;padding:12px 16px;cursor:pointer;text-align:left;display:flex;justify-content:space-between}
.hd .hd-promo-btn:hover{background:#eef4ff}
.hd .hd-promo-wa{color:#c8d6ff;font-size:13px;text-decoration:none}.hd .hd-promo-wa:hover{color:#fff;text-decoration:underline}

/* Slide-in panel (tablet & phone) */
.hd .hd-drawer{position:fixed;inset:0;z-index:1000;background:#0b1f4d00;transition:background .25s}
.hd .hd-drawer[hidden]{display:none}
.hd .hd-drawer.is-open{background:#0b1f4d66}
.hd .hd-drawer-panel{position:absolute;top:0;right:0;bottom:0;width:min(420px,100%);background:#fff;display:flex;flex-direction:column;transform:translateX(100%);transition:transform .28s cubic-bezier(.2,.8,.2,1);box-shadow:-20px 0 60px -20px #0b1f4d66}
.hd .hd-drawer.is-open .hd-drawer-panel{transform:none}
.hd .hd-drawer-top{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #eef2f9}
.hd .hd-drawer-top img{width:140px;height:auto;display:block}
.hd .hd-close{width:42px;height:42px;border-radius:12px;border:1px solid #dfe7f5;background:#fff;font-size:26px;line-height:1;color:#0b1f4d;cursor:pointer}
.hd .hd-drawer-body{flex:1;overflow:auto;padding:10px 12px;overscroll-behavior:contain}
.hd .hd-d-link{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 12px;border-bottom:1px solid #f0f3f9;color:#13224a;font-size:17px;font-weight:600;text-decoration:none;list-style:none;cursor:pointer}
.hd .hd-d-link::-webkit-details-marker{display:none}
.hd .hd-d-link[aria-current=page]{color:#005cff}
.hd .hd-d-link .hd-dot{margin-right:auto}
.hd details[open] > .hd-d-link{color:#005cff;border-bottom-color:transparent}
.hd details[open] > .hd-d-link .hd-caret{transform:rotate(180deg)}
.hd .hd-d-link .hd-caret{width:14px;height:14px;transition:transform .2s}
.hd .hd-d-services{border-bottom:1px solid #f0f3f9}
.hd .hd-d-group{padding:4px 4px 10px}
.hd .hd-d-group p{margin:8px 8px 6px;font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#8592ad}
.hd .hd-d-svc{display:flex;align-items:center;gap:12px;padding:9px 8px;border-radius:12px;color:#13224a;font-size:15px;font-weight:550;text-decoration:none}
.hd .hd-d-svc:hover,.hd .hd-d-svc[aria-current=page]{background:#f1f6ff;color:#005cff}
.hd .hd-d-svc .hd-svc-ico{width:34px;height:34px;border-radius:10px}
.hd .hd-d-svc .hd-svc-ico svg{width:18px;height:18px}
.hd .hd-drawer-foot{padding:16px 20px calc(16px + env(safe-area-inset-bottom));border-top:1px solid #eef2f9;display:grid;gap:12px;background:#fbfcff}
.hd .hd-quick{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:8px}
.hd .hd-quick a{display:flex;justify-content:center;padding:11px 8px;border:1px solid #dfe7f5;border-radius:12px;background:#fff;color:#13224a;font-weight:650;font-size:14px;text-decoration:none}
.hd .hd-quick a:first-child{color:#128c4a;border-color:#bfe8cf;background:#f1fbf5}

/* Breakpoints */
@media (max-width:1399px){.hd .hd-bar{gap:18px}.hd .hd-link{padding:9px 10px;font-size:14.5px}.hd .hd-mega-inner{grid-template-columns:repeat(3,minmax(0,1fr)) 260px}}
@media (max-width:1199px){
  .hd .hd-nav,.hd .hd-mega{display:none!important}
  .hd .hd-burger{display:flex}
  .hd .hd-actions{margin-left:auto}
}
@media (max-width:640px){
  .hd .hd-bar{height:66px;padding:0 16px;gap:10px}
  .hd .hd-logo img{width:132px}
  .hd .hd-actions .hd-cta{padding:10px 14px;font-size:13.5px;border-radius:11px}
  .hd .hd-actions .hd-cta span{display:none}
  .hd .hd-burger{width:42px;height:42px}
  html{scroll-padding-top:76px}
}
@media (max-width:360px){.hd .hd-actions .hd-cta{display:none}}
@media (prefers-reduced-motion:reduce){.hd .hd-drawer-panel,.hd .hd-mega,.hd .hd-drawer{transition:none;animation:none}}
.hd-drawer-root{position:static;display:contents}
.hd .hd-promo-list{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:9px}
.hd .hd-promo-list li{position:relative;padding-left:26px;font-size:13.5px;color:#e4ecff}
.hd .hd-promo-list li::before{content:"";position:absolute;left:0;top:1px;width:17px;height:17px;border-radius:50%;background:#ffffff22 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/10px no-repeat}
