/* ============================================================
   Header + mega menu  (all classes prefixed wi-)
   Desktop: opens on hover.  Tablet/mobile (<=980px): drawer + accordion.
   ============================================================ */

.wi-header {
  --wi-h: 68px;
  --wi-accent: #0bbcf2;
  --wi-text: #1b1b1f;
  --wi-muted: #8a8f98;
  --wi-line: #ececf0;
  --wi-radius: 20px;

  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--wi-line);
  font-family: "Plus Jakarta Sans", "Inter", "Helvetica Neue", Arial, sans-serif;
}

.wi-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--wi-h);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wi-logo { display: block; flex-shrink: 0; }
.wi-logo img { height: 40px; width: auto; }

/* ── Desktop nav ── */
.wi-nav {
  display: flex;
  align-items: center;
  flex: 1;
  height: 100%;
}

.wi-nav__list {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 0.25rem;
  list-style: none;
}

.wi-has-mega {
  position: relative;
  display: flex;
  align-items: center;
}

.wi-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1.05rem;
  color: var(--wi-text);
  cursor: pointer;
  transition: color 0.15s;
}

.wi-nav__trigger i {
  font-size: 0.65rem;
  color: var(--wi-muted);
  transition: transform 0.2s, color 0.15s;
}

.wi-has-mega.is-open > .wi-nav__trigger,
.wi-nav__trigger:hover { color: var(--wi-accent); }

.wi-has-mega.is-open > .wi-nav__trigger i { transform: rotate(180deg); color: var(--wi-accent); }

.wi-nav__trigger:focus-visible,
.wi-btn:focus-visible,
.wi-item:focus-visible,
.wi-core:focus-visible,
.wi-burger:focus-visible {
  outline: 2px solid var(--wi-accent);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ── Action buttons ── */
.wi-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.wi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.wi-btn--ghost { color: var(--wi-text); border: 1px solid #d6d8de; background: #fff; }
.wi-btn--ghost:hover { border-color: var(--wi-accent); color: var(--wi-accent); }
.wi-btn--solid { color: #fff; background: var(--wi-accent); border: 1px solid var(--wi-accent); }
.wi-btn--solid:hover { background: #09a5d6; border-color: #09a5d6; }

/* ── Mega panel (desktop) ── */
.wi-mega {
  position: absolute;
  top: 100%;
  left: -1.75rem;
  z-index: 10;
  background: #fff;
  border: 1px solid var(--wi-line);
  border-radius: var(--wi-radius);
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
  overflow: hidden;

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.wi-has-mega.is-open > .wi-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wi-mega--products  { width: 770px; }
.wi-mega--solutions { width: 770px; left: -3.5rem; }

.wi-mega__top {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
}

.wi-mega__col { padding: 1.75rem 1.75rem 1.5rem; }

.wi-mega__col--side { border-left: 1px solid var(--wi-line); }

.wi-mega__bottom {
  padding: 1.25rem 1.75rem 1.5rem;
  border-top: 1px solid var(--wi-line);
}

.wi-label {
  margin-bottom: 1rem;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7b808a;
}

/* ── Core product tiles (Products panel, left) ── */
.wi-core-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}

.wi-core { display: block; text-decoration: none; }

.wi-core__title {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--wi-text);
}

.wi-core__title i { margin-top: 0.2rem; font-size: 0.8rem; }
.wi-core__title span { color: var(--wi-text); }
.wi-core:hover .wi-core__title span { color: var(--wi-accent); }

.wi-core__desc {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--wi-muted);
}

.wi-saas {
  position: relative;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--wi-line);
}

.wi-explore {
  position: absolute;
  top: 1.1rem;
  right: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--wi-accent);
}

.wi-explore i { margin-left: 0.2rem; font-size: 0.65rem; }

/* ── Icon + text rows ── */
.wi-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.4rem 0;
  text-decoration: none;
}

.wi-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  font-size: 0.85rem;
}

.wi-item__text { display: block; min-width: 0; }

.wi-item__title {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--wi-text);
  transition: color 0.15s;
}

.wi-item:hover .wi-item__title { color: var(--wi-accent); }

.wi-item__desc {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--wi-muted);
}

.wi-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 2rem;
}

/* ── Colour tones (icon + tinted chip) ── */
.wi-tone-green  { color: #16a368; }
.wi-tone-orange { color: #f08a1c; }
.wi-tone-blue   { color: #3b6ef5; }
.wi-tone-purple { color: #8b4df0; }
.wi-tone-cyan   { color: #0fa5c4; }
.wi-tone-pink   { color: #e5484d; }
.wi-tone-indigo { color: #5b5fe0; }
.wi-tone-slate  { color: #51607a; }

.wi-chip.wi-tone-green  { background: #e6f7ef; }
.wi-chip.wi-tone-orange { background: #fff1e0; }
.wi-chip.wi-tone-blue   { background: #e8eeff; }
.wi-chip.wi-tone-purple { background: #f1e8ff; }
.wi-chip.wi-tone-cyan   { background: #e1f6fb; }
.wi-chip.wi-tone-pink   { background: #ffe9ea; }
.wi-chip.wi-tone-indigo { background: #eaebff; }
.wi-chip.wi-tone-slate  { background: #eaeef5; }

/* ── Burger (hidden on desktop) ── */
.wi-burger { display: none; }

/* ── Narrow desktop: panels span the header width so they never overflow ── */
@media (max-width: 1160px) and (min-width: 981px) {
  .wi-has-mega { position: static; }
  .wi-mega--products,
  .wi-mega--solutions {
    left: 1.5rem;
    right: 1.5rem;
    width: auto;
  }
}

/* ── Tablet + mobile: drawer with accordions ── */
@media (max-width: 980px) {
  .wi-header__inner { justify-content: space-between; gap: 1rem; padding: 0 1rem; }
  .wi-logo img { height: 34px; }

  .wi-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid var(--wi-line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
  }

  .wi-burger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--wi-text);
    transition: transform 0.2s, opacity 0.2s;
  }

  .wi-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .wi-burger.is-open span:nth-child(2) { opacity: 0; }
  .wi-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .wi-nav {
    position: fixed;
    top: var(--wi-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 0.5rem 1rem 1.5rem;
    background: #fff;
    overflow-y: auto;
    overscroll-behavior: contain;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }

  .wi-nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .wi-nav__list { flex-direction: column; height: auto; gap: 0; }

  .wi-has-mega { display: block; border-bottom: 1px solid var(--wi-line); }

  .wi-nav__trigger {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 1rem 0.25rem;
    font-size: 1.05rem;
    font-weight: 600;
  }

  .wi-mega {
    position: static;
    width: auto !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;

    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .wi-has-mega.is-open > .wi-mega { display: block; padding-bottom: 0.75rem; }

  .wi-mega__top { grid-template-columns: 1fr; }
  .wi-mega__col { padding: 0.25rem 0.25rem 0.75rem; }
  .wi-mega__col--side { border-left: 0; border-top: 1px solid var(--wi-line); padding-top: 1rem; }
  .wi-mega__bottom { padding: 1rem 0.25rem 0.25rem; }

  .wi-actions {
    flex-direction: column;
    align-items: stretch;
    margin: 1.5rem 0 0;
  }

  .wi-btn { padding: 0.85rem 1.25rem; font-size: 0.95rem; }
}

@media (max-width: 560px) {
  .wi-core-grid,
  .wi-pair { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .wi-mega, .wi-nav, .wi-burger span, .wi-nav__trigger i { transition: none; }
}













/* Footer (classes prefixed wf-) */

.wf-footer {
  padding: 2.25rem 1.5rem 1.75rem;
  background: #f3f4f8;
  border-top: 1px solid #e3e5ec;
  font-family: "Plus Jakarta Sans", "Inter", Arial, sans-serif;
}

.wf-footer__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* ── Social icons ── */
.wf-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  list-style: none;
}

.wf-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-size: 0.8rem;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}

.wf-social:hover { transform: translateY(-2px); opacity: 0.9; }

.wf-social:focus-visible {
  outline: 2px solid #0bbcf2;
  outline-offset: 3px;
}

.wf-social--x         { background: none; color: #111; font-size: 1.05rem; }
.wf-social--facebook  { background: #1877f2; border-radius: 50%; }
.wf-social--youtube   { background: #ff0000; width: 29px; border-radius: 6px; }
.wf-social--linkedin  { background: #0a66c2; }
.wf-social--instagram { background: linear-gradient(45deg, #f9a43e 0%, #e1306c 50%, #833ab4 100%); }
.wf-social--blog      { background: #fbbc04; color: #1b1b1f; }

/* ── Legal links ──
   Each li has a left border; the ul clips the border of the first
   item on every wrapped row, so no stray separators. */
.wf-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e3e5ec;
  list-style: none;
  overflow: hidden;
}

.wf-legal li {
  margin: 0.2rem 0 0.2rem -1px;
  padding: 0 0.7rem;
  border-left: 1px solid #d3d6de;
  line-height: 1.1;
}

.wf-legal a {
  font-size: 0.82rem;
  color: #4b4f58;
  text-decoration: none;
  transition: color 0.15s;
}

.wf-legal a:hover { color: #0bbcf2; text-decoration: underline; }

.wf-legal a:focus-visible {
  outline: 2px solid #0bbcf2;
  outline-offset: 2px;
  border-radius: 3px;
}

.wf-copy {
  font-size: 0.72rem;
  color: #7b808a;
}

@media (max-width: 560px) {
  .wf-footer { padding: 1.75rem 1rem 1.5rem; }
  .wf-legal a { font-size: 0.78rem; }
  .wf-legal li { padding: 0 0.55rem; }
}