/* ==========================================================================
   ITology 2.0 — Header, navigation, mega menu, mobile drawer, footer
   ========================================================================== */

/* Announcement ----------------------------------------------------------- */
.it-announce {
  position: relative;
  z-index: 120;
  background: var(--it-ink);
  color: #C9D6E8;
  font-size: 12.5px;
  letter-spacing: .02em;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.it-announce__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.it-announce__group { display: flex; align-items: center; gap: 22px; }
.it-announce__item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.it-announce__item svg { width: 13px; height: 13px; color: var(--it-cyan); }
.it-announce a { color: #fff; font-weight: 600; }
.it-announce a:hover { color: var(--it-cyan); }
@media (max-width: 780px) {
  .it-announce__group:first-child .it-announce__item:nth-child(n+2) { display: none; }
  .it-announce__group:last-child .it-announce__item:nth-child(n+2) { display: none; }
}

/* Header ----------------------------------------------------------------- */
.it-header {
  position: sticky;
  top: 0;
  z-index: 110;
  background: rgba(6, 16, 31, .82);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: #E8EEF8;
  transition: background .3s var(--it-ease), box-shadow .3s var(--it-ease);
}
.it-header.is-scrolled {
  background: rgba(4, 9, 18, .94);
  box-shadow: 0 18px 46px -28px rgba(0,0,0,.8);
}
.it-header__inner {
  min-height: var(--it-header);
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Brand */
.it-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-family: var(--it-font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -.03em;
  line-height: 1;
  flex-shrink: 0;
}
.it-brand:hover { color: #fff; }
.it-brand__mark {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1D4ED8, #0EA5B7);
  box-shadow: 0 8px 18px -8px rgba(34,211,238,.7), inset 0 1px 0 rgba(255,255,255,.35);
  overflow: hidden;
}
.it-brand__mark::after {
  content: "";
  position: absolute;
  inset: -40% -60% auto auto;
  width: 80%;
  height: 160%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  transform: rotate(25deg);
  animation: it-sheen 6s var(--it-ease) infinite;
}
.it-brand__mark span { position: relative; z-index: 1; font-size: 15px; font-weight: 700; letter-spacing: -.05em; }
.it-brand__text small {
  display: block;
  font-family: var(--it-font);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #7DD3FC;
  font-weight: 600;
  margin-top: 5px;
}
@keyframes it-sheen {
  0%, 55% { transform: translateX(-160%) rotate(25deg); }
  75%, 100% { transform: translateX(260%) rotate(25deg); }
}

/* Navigation */
.it-nav { margin-left: auto; }
.it-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}
.it-nav__item { position: relative; }
.it-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 13px;
  border-radius: 9px;
  color: #C9D6E8;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.it-nav__link:hover, .it-nav__link[aria-expanded="true"], .it-nav__item.is-current > .it-nav__link {
  color: #fff;
  background: rgba(255,255,255,.07);
}
.it-nav__link svg { width: 12px; height: 12px; opacity: .55; transition: transform .25s var(--it-ease); }
.it-nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.it-nav__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--it-cyan);
  box-shadow: 0 0 0 4px rgba(34,211,238,.16);
  margin-left: 1px;
}

/* Tools */
.it-tools { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.it-tool {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #C9D6E8;
  transition: background .2s, color .2s, transform .2s;
}
.it-tool:hover { background: rgba(255,255,255,.08); color: #fff; transform: translateY(-1px); }
.it-tool svg { width: 19px; height: 19px; }
.it-tool__count {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--it-cyan);
  color: #041018;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(6,16,31,.9);
}
.it-tool__count[hidden] { display: none; }
.it-quote-btn { margin-left: 8px; }

.it-burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 11px;
  background: rgba(255,255,255,.04);
  color: #fff;
  place-items: center;
}
.it-burger span { display: block; width: 17px; height: 1.6px; background: currentColor; position: relative; }
.it-burger span::before, .it-burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.6px; background: currentColor;
}
.it-burger span::before { top: -5px; }
.it-burger span::after { top: 5px; }

/* Mega menu -------------------------------------------------------------- */
.it-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 109;
  background: #fff;
  color: var(--it-charcoal);
  border-top: 1px solid var(--it-line);
  box-shadow: 0 40px 80px -30px rgba(4,12,28,.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .28s var(--it-ease), transform .28s var(--it-ease), visibility .28s;
}
.it-mega.is-open { opacity: 1; visibility: visible; transform: none; }
.it-mega__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 38px;
  padding: 34px 0 38px;
}
.it-mega__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.it-mega__card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border-radius: 14px;
  color: var(--it-navy);
  border: 1px solid transparent;
  transition: background .2s, border-color .2s, transform .2s;
}
.it-mega__card:hover { background: var(--it-surface); border-color: var(--it-line); color: var(--it-blue); transform: translateY(-2px); }
.it-mega__icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--it-grad-soft);
  color: var(--it-blue);
  flex-shrink: 0;
}
.it-mega__icon svg { width: 21px; height: 21px; }
.it-mega__card b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.it-mega__card span { display: block; font-size: 11.5px; color: var(--it-muted); margin-top: 2px; }
.it-mega__promo {
  position: relative;
  border-radius: 18px;
  padding: 24px;
  overflow: hidden;
  background: var(--it-grad-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
}
.it-mega__promo .it-grid-bg { opacity: .8; }
.it-mega__promo > * { position: relative; z-index: 1; }
.it-mega__promo b { font-family: var(--it-font-display); font-size: 20px; line-height: 1.15; margin-bottom: 8px; }
.it-mega__promo p { font-size: 12.5px; color: #A9BBD4; margin-bottom: 14px; }
.it-mega__promo .it-link-arrow { color: var(--it-cyan); font-size: 13px; }
.it-mega__foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--it-line);
  margin-top: 6px;
  padding-top: 18px;
  font-size: 12.5px;
  color: var(--it-muted);
}
.it-mega__foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.it-mega__foot a { color: var(--it-navy); font-weight: 500; }
.it-mega__foot a:hover { color: var(--it-blue); }

/* Dropdown (Solutions) --------------------------------------------------- */
.it-drop {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, -8px);
  min-width: 300px;
  background: #fff;
  border: 1px solid var(--it-line);
  border-radius: 16px;
  box-shadow: var(--it-shadow);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: .25s var(--it-ease);
  z-index: 108;
}
.it-nav__item.is-open > .it-drop,
.it-nav__item--drop:hover > .it-drop,
.it-nav__item--drop:focus-within > .it-drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.it-drop a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--it-charcoal);
  font-size: 13.5px;
  font-weight: 500;
}
.it-drop a:hover { background: var(--it-surface); color: var(--it-blue); }
.it-drop a svg { width: 17px; height: 17px; color: var(--it-blue); flex-shrink: 0; }
.it-drop a > span { display: block; }
.it-drop a > span > span { display: block; font-size: 11.5px; color: var(--it-muted); font-weight: 400; }

/* Search overlay --------------------------------------------------------- */
.it-search {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 9, 18, .72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: .3s var(--it-ease);
  padding: clamp(18px, 8vh, 120px) var(--it-gutter);
}
.it-search.is-open { opacity: 1; visibility: visible; }
.it-search__panel {
  width: min(760px, 100%);
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--it-shadow-lg);
  transform: translateY(-16px);
  transition: transform .35s var(--it-ease-out);
}
.it-search.is-open .it-search__panel { transform: none; }
.it-search__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.it-search__head h2 { font-size: 1.25rem; margin: 0; }
.it-search__close { width: 38px; height: 38px; border: 1px solid var(--it-line); border-radius: 10px; background: #fff; display: grid; place-items: center; color: var(--it-slate); }
.it-search__form { position: relative; display: flex; }
.it-search__form svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--it-muted); }
.it-search__form input {
  width: 100%;
  padding: 16px 120px 16px 50px;
  border: 1px solid var(--it-line);
  border-radius: 14px;
  background: var(--it-surface);
  font-size: 16px;
  color: var(--it-navy);
}
.it-search__form input:focus { outline: none; border-color: var(--it-blue); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.1); }
.it-search__form button {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--it-navy);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}
.it-search__results { margin-top: 18px; max-height: 52vh; overflow: auto; }
.it-search__hint { font-size: 12px; color: var(--it-muted); margin: 14px 0 0; }
.it-search__group-title { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--it-muted); margin: 16px 0 8px; }
.it-search-result { display: flex; align-items: center; gap: 13px; padding: 9px; border-radius: 11px; color: var(--it-navy); }
.it-search-result:hover { background: var(--it-surface); }
.it-search-result img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--it-surface-2); }
.it-search-result b { display: block; font-size: 13.5px; }
.it-search-result span { font-size: 12px; color: var(--it-muted); }
.it-search__quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.it-search__quick a {
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 20px;
  background: var(--it-surface);
  color: var(--it-slate);
  border: 1px solid var(--it-line);
}
.it-search__quick a:hover { color: var(--it-blue); border-color: #BFD3FF; background: #F0F5FF; }

/* Mobile drawer ---------------------------------------------------------- */
.it-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 88vw);
  z-index: 210;
  background: #fff;
  transform: translateX(100%);
  transition: transform .4s var(--it-ease-out);
  display: flex;
  flex-direction: column;
  box-shadow: -40px 0 90px rgba(4,12,28,.28);
}
.it-drawer.is-open { transform: none; }
.it-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--it-line); }
.it-drawer__head .it-brand { color: var(--it-navy); font-size: 19px; }
.it-drawer__close { width: 40px; height: 40px; border: 1px solid var(--it-line); border-radius: 10px; background: #fff; display: grid; place-items: center; }
.it-drawer__body { padding: 8px 20px 24px; overflow: auto; flex: 1; }
.it-drawer__body ul { list-style: none; margin: 0; padding: 0; }
.it-drawer__body > ul > li > a,
.it-drawer__body > ul > li > button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 2px;
  border: 0;
  border-bottom: 1px solid var(--it-line);
  background: none;
  color: var(--it-navy);
  font-size: 15.5px;
  font-weight: 550;
  text-align: left;
}
.it-drawer__sub { display: none; padding: 4px 0 10px 10px; }
.it-drawer__sub.is-open { display: block; }
.it-drawer__sub a { display: block; padding: 9px 0; font-size: 13.5px; color: var(--it-slate); border: 0; }
.it-drawer__foot { padding: 18px 20px 30px; border-top: 1px solid var(--it-line); display: grid; gap: 10px; }
.it-drawer__tools { display: flex; gap: 8px; margin-bottom: 4px; }
.it-drawer__tools a { flex: 1; text-align: center; font-size: 12px; padding: 10px; border: 1px solid var(--it-line); border-radius: 10px; color: var(--it-slate); }
.it-drawer__contact { font-size: 12.5px; color: var(--it-muted); text-align: center; }
.it-scrim {
  position: fixed; inset: 0; z-index: 205;
  background: rgba(4,9,18,.55);
  opacity: 0; visibility: hidden;
  transition: .3s;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.it-scrim.is-open { opacity: 1; visibility: visible; }

/* Footer ----------------------------------------------------------------- */
.it-footer { position: relative; background: var(--it-ink); color: #94A8C2; overflow: hidden; }
.it-footer::before {
  content: "";
  position: absolute;
  top: -40%; left: 50%;
  width: 900px; height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(37,99,235,.22), transparent 65%);
  pointer-events: none;
}
.it-footer__cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: clamp(36px, 5vw, 58px);
  border-radius: var(--it-radius-xl);
  background: linear-gradient(120deg, rgba(37,99,235,.22), rgba(34,211,238,.08));
  border: 1px solid rgba(120,180,255,.18);
  margin-bottom: clamp(48px, 6vw, 80px);
  overflow: hidden;
}
.it-footer__cta::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.3), transparent 65%);
}
.it-footer__cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); margin-bottom: 10px; }
.it-footer__cta p { color: #A9BBD4; margin: 0; max-width: 56ch; }
.it-footer__cta > * { position: relative; z-index: 1; }
.it-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: 54px;
}
.it-footer h4 {
  color: #fff;
  font-family: var(--it-font);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 650;
  margin-bottom: 18px;
}
.it-footer p { font-size: 13.5px; line-height: 1.7; }
.it-footer a { color: #A9BBD4; }
.it-footer a:hover { color: var(--it-cyan); }
.it-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.it-footer ul a { font-size: 13.5px; }
.it-footer__brand p { max-width: 34ch; margin-top: 18px; }
.it-footer__contact { display: grid; gap: 10px; margin-top: 6px; }
.it-footer__contact a, .it-footer__contact span { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; }
.it-footer__contact svg { width: 15px; height: 15px; color: var(--it-cyan); flex-shrink: 0; margin-top: 3px; }
.it-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: #6F849F;
}
.it-footer__bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.it-footer__bottom a { color: #8FA4BF; }
.it-socials { display: flex; gap: 8px; margin-top: 18px; }
.it-socials a {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.1);
  color: #C9D6E8;
  transition: .2s;
}
.it-socials a:hover { background: var(--it-blue); border-color: var(--it-blue); color: #fff; transform: translateY(-2px); }
.it-socials svg { width: 15px; height: 15px; }

/* Responsive header ------------------------------------------------------ */
@media (max-width: 1180px) {
  .it-nav__link { padding: 11px 9px; font-size: 13px; }
  .it-tools .it-tool--optional { display: none; }
}
@media (max-width: 1020px) {
  .it-nav { display: none; }
  .it-header__inner .it-quote-btn { display: none; }
  .it-burger { display: grid; }
  .it-header__inner { justify-content: space-between; gap: 10px; }
  .it-tools { margin-left: auto; }
  .it-mega { display: none; }
}
@media (max-width: 760px) {
  :root { --it-header: 68px; }
  .it-announce { display: none; }
  .it-brand { font-size: 18px; min-width: 0; }
  .it-brand__mark { width: 34px; height: 34px; border-radius: 10px; }
  .it-tools .it-tool--hide-sm { display: none; }
  .it-footer__cta { grid-template-columns: 1fr; }
  .it-footer__grid { grid-template-columns: 1fr 1fr; }
  .it-footer__brand { grid-column: 1 / -1; }
  .it-footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .it-brand { font-size: 17px; gap: 9px; }
  .it-brand__text small { display: none; }
  .it-tools { gap: 2px; }
  .it-footer__grid { grid-template-columns: 1fr; }
}
