/* ==================================================================
   Baodigital — design system
   Loaded AFTER Bootstrap so these rules win.
   ================================================================== */

:root {
  --lime: #C8F135;
  --brand-white: #FFFFFF;
  /* Palette.
     Every colour in the site comes from here. The -rgb pairs exist because
     rgba() cannot read a hex variable, and much of the design uses tinted
     overlays. Change a colour under Dashboard > Design > Colours and the
     override is printed into the page, so this block is never edited by hand. */
  --ink:        #0F172A;
  --ink-rgb:    14, 17, 22;
  --ink-70:     #4A515C;
  --paper:      #F5F9FA;
  --mist:       #E4E6EC;
  --violet:     #8B5CF6;
  --violet-rgb: 75, 46, 240;
  --amber:      #FFC24B;
  --amber-rgb:  255, 194, 75;

  /* Type */
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body:    'Instrument Sans', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Rhythm */
  --gap:     clamp(4rem, 9vw, 7.5rem);
  --radius:  14px;
}

/* ------------------------------------------------------------------ base */

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}

.wn-section { padding-block: var(--gap); }
.wn-lead    { font-size: 1.15rem; color: var(--ink-70); max-width: 56ch; }
.wn-muted   { color: var(--ink-70); }

/* Small mono label that opens most sections */
.wn-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-70);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}
.wn-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--mist);
}

/* Signature: a skewed amber block sitting behind a word */
.wn-mark {
  position: relative;
  display: inline-block;
  z-index: 0;
}
.wn-mark::before {
  content: '';
  position: absolute;
  inset: 12% -0.3em 8% -0.3em;
  background: var(--amber);
  transform: skewX(-9deg) rotate(-1.2deg);
  z-index: -1;
}

/* ---------------------------------------------------------------- buttons */

.wn-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 100px;
  border: 1.5px solid var(--ink);
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.wn-btn:hover { transform: translateY(-2px); }

.wn-btn--solid  { background: var(--ink); color: var(--paper); }
.wn-btn--solid:hover  { background: var(--violet); border-color: var(--violet); color: #fff; }
.wn-btn--ghost  { background: transparent; color: var(--ink); }
.wn-btn--ghost:hover  { background: var(--ink); color: var(--paper); }
.wn-btn--light  { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.wn-btn--light:hover  { background: var(--amber); border-color: var(--amber); color: var(--ink); }

/* ----------------------------------------------------------------- header */

.wn-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(250, 250, 248, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mist);
}

.wn-logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.wn-logo span { color: var(--violet); }

/* An uploaded logo replaces the wordmark. The height is set from the
   dashboard, and the width follows so nothing is ever squashed. */
.wn-logo img {
  display: block;
  height: var(--logo-height, 32px);
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.wn-footer .wn-logo img { height: var(--logo-height-footer, var(--logo-height, 32px)); }

.wn-nav .nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.45rem 0.85rem;
  position: relative;
}
.wn-nav .nav-link::before {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.wn-nav .nav-link:hover::before,
.wn-nav .nav-link.active::before { transform: scaleX(1); }
.wn-nav .nav-link.active { color: var(--violet); }

.navbar-toggler { border: 1.5px solid var(--ink); border-radius: 10px; }
.navbar-toggler:focus { box-shadow: none; }

/* --------------------------------------------------- mobile menu drawer */

/* Under 992px the collapsed menu used to grow inside the header, so a long
   services list pushed the header taller than the screen and the page itself
   had to be scrolled. It is now a panel that hangs under the bar, fills the
   rest of the screen and scrolls on its own. --wn-header-h is measured in
   main.js; the value here is only the fallback before that runs. */

:root { --wn-header-h: 4.6rem; }

@media (max-width: 991.98px) {

  .wn-header .navbar { position: static; }

  #wnMenu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1029;
    max-height: calc(100vh - var(--wn-header-h));
    max-height: calc(100dvh - var(--wn-header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0 calc(var(--bs-gutter-x, 1.5rem) * 0.5) 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--mist);
    box-shadow: 0 26px 44px -28px rgba(var(--ink-rgb), 0.5);
  }

  /* Bootstrap animates height on .collapsing, so the cap sits on max-height
     or the panel would snap open at full size instead of sliding. */
  #wnMenu.collapsing { overflow: hidden; }

  #wnMenu .wn-nav { padding-top: 0.5rem !important; }

  .wn-nav > .nav-item + .nav-item { border-top: 1px solid var(--mist); }

  .wn-nav .nav-link {
    padding: 0.85rem 0;
    font-size: 1.02rem;
  }

  /* A short accent rule reads better here than a line across the whole row. */
  .wn-nav .nav-link::before {
    left: 0;
    right: auto;
    width: 26px;
    bottom: 0.45rem;
  }

  #wnMenu .wn-btn {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
  }

  /* The page underneath stays put while the drawer is open. */
  body.wn-nav-open { overflow: hidden; }
}

/* ------------------------------------------------------------------- hero */

.wn-hero { padding-block: clamp(3.5rem, 8vw, 7rem) var(--gap); }

.wn-hero h1 { max-width: 15ch; }

.wn-hero__meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-70);
}

.wn-stat__num {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
}

/* ------------------------------------------------------------------ cards */

.wn-card {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.wn-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 18px 40px -28px rgba(var(--ink-rgb), 0.5);
}
.wn-card__index {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--violet);
  letter-spacing: 0.1em;
}
.wn-card h3 { margin: 0.7rem 0 0.6rem; }
.wn-card p  { color: var(--ink-70); margin: 0; font-size: 0.97rem; }

/* Industry tile: image on top, name under it */
.wn-tile {
  display: block;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.wn-tile:hover { border-color: var(--ink); transform: translateY(-4px); }
.wn-tile__img {
  aspect-ratio: 4 / 3;
  background: var(--mist);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-70);
}
.wn-tile__name { padding: 0.9rem 1rem; font-weight: 600; font-size: 0.98rem; }

/* Software / tools logo grid */
.wn-tool {
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  background: #fff;
  padding: 1.4rem 1rem;
  text-align: center;
  transition: border-color 0.2s ease;
}
.wn-tool:hover { border-color: var(--violet); }
.wn-tool__logo {
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 0.6rem;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--violet);
}
.wn-tool__name { font-size: 0.85rem; font-weight: 500; }

/* -------------------------------------------------------------------- cta */

.wn-cta {
  background: var(--ink);
  color: var(--paper);
  border-radius: 24px;
  padding: clamp(2.5rem, 6vw, 4.5rem);
}
.wn-cta h2 { color: var(--paper); max-width: 18ch; }
.wn-cta p  { color: rgba(250, 250, 248, 0.7); }

/* ----------------------------------------------------------------- footer */

.wn-footer {
  background: var(--ink);
  color: rgba(250, 250, 248, 0.72);
  padding-block: 4.5rem 2rem;
}
.wn-footer a { color: rgba(250, 250, 248, 0.72); }
.wn-footer a:hover { color: var(--amber); }
.wn-footer .wn-logo { color: var(--paper); }

/* `.wn-footer a` is more specific than `.wn-btn--light`, so it was painting
   the button label the same near-white as its own background. Both states
   are restated here rather than fought with !important. */
.wn-footer .wn-btn--light,
.wn-footer .wn-btn--light:hover { color: var(--ink); }
.wn-footer .wn-btn--solid,
.wn-footer .wn-btn--solid:hover { color: var(--paper); }
.wn-footer .wn-btn--ghost { color: var(--paper); border-color: rgba(250, 250, 248, 0.35); }
.wn-footer .wn-btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.wn-footer h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.45);
  margin-bottom: 1.1rem;
}
.wn-footer ul { list-style: none; padding: 0; margin: 0; }
.wn-footer li { margin-bottom: 0.55rem; font-size: 0.95rem; }
.wn-footer__bottom {
  border-top: 1px solid rgba(250, 250, 248, 0.14);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

/* ---------------------------------------------------------- footer badges */

/* Award, listing and partner logos. The whole block is only ever in the page
   when a badge has been added, so none of this costs anything until then. */

.wn-badges {
  --badge-height: 44px;
  margin-top: 1.6rem;
}
.wn-badges--brand { margin-bottom: 0.4rem; }

/* `.wn-footer h4` and `.wn-footer li` are both one class plus one element, so
   the badge rules are written with the same weight to win on order. */
.wn-footer .wn-badges__title { margin-bottom: 0.85rem; }
.wn-footer .wn-badges__item  { margin: 0; }

.wn-badges__row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}
.wn-badges__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(250, 250, 248, 0.16);
  border-radius: 12px;
  background: rgba(250, 250, 248, 0.05);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.wn-badges__box img {
  display: block;
  height: var(--badge-height);
  width: auto;
  max-width: 170px;
  object-fit: contain;
}
a.wn-badges__box:hover {
  background: rgba(250, 250, 248, 0.1);
  border-color: rgba(250, 250, 248, 0.4);
  transform: translateY(-2px);
}

/* A solid light tile. The one to pick when the badge artwork is drawn in
   dark ink, which would otherwise disappear into the panel. */
.wn-badges--light .wn-badges__box {
  background: var(--paper);
  border-color: var(--paper);
}
.wn-badges--light a.wn-badges__box:hover {
  background: #fff;
  border-color: #fff;
}

/* No tile at all, for artwork that is already light and transparent. */
.wn-badges--none .wn-badges__row { gap: 1.5rem; }
.wn-badges--none .wn-badges__box {
  padding: 0;
  border: 0;
  background: none;
}
.wn-badges--none .wn-badges__box img {
  opacity: 0.78;
  transition: opacity 0.25s ease;
}
.wn-badges--none a.wn-badges__box:hover img { opacity: 1; }
.wn-badges--none a.wn-badges__box:hover { transform: none; }

/* Full width: a ruled band sitting just above the closing line. */
.wn-badges--strip {
  border-top: 1px solid rgba(250, 250, 248, 0.14);
  margin-top: 3rem;
  padding-top: 1.75rem;
}
.wn-badges--strip .wn-badges__row { gap: 0.9rem; }

/* The band draws its own rule, so the bar underneath must not draw a second
   one a few pixels below it. */
.wn-badges--strip + .wn-footer__bottom {
  border-top: 0;
  margin-top: 1.75rem;
}

@media (max-width: 575.98px) {
  .wn-badges { --badge-height: 36px; }
  .wn-badges__box { padding: 0.45rem 0.7rem; }
  .wn-badges__row { gap: 0.55rem; }
  .wn-badges--none .wn-badges__row { gap: 1.1rem; }
}

/* ------------------------------------------------------------- page intro */

.wn-pagehead {
  border-bottom: 1px solid var(--mist);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

/* ---------------------------------------------------------------- motion */

.wn-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.wn-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .wn-reveal { opacity: 1; transform: none; }
}

/* ==================================================================
   Centred section header — used by "Why us" and the blog carousel
   ================================================================== */

.wn-head { text-align: center; max-width: 780px; margin: 0 auto 3rem; }

.wn-head__eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 1rem;
}

.wn-head h2 { font-weight: 500; }
.wn-head h2 strong { font-weight: 700; }

.wn-head__sub {
  color: var(--ink-70);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 1.1rem auto 0;
}

.wn-head__rule {
  width: 74px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--violet), var(--amber));
  margin: 1.75rem auto 0;
}

/* ------------------------------------------------------- nav dropdown */

/* The caret. Reset first, because .nav-link::after carries the underline
   rules and both share the same pseudo-element. */
.wn-nav .dropdown-toggle::after {
  position: static;
  display: inline-block;
  width: 6px;
  height: 6px;
  border: 0;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  background: none;
  transform: rotate(45deg) translate(-2px, -2px);
  margin-left: 0.5rem;
  vertical-align: middle;
  transition: transform 0.22s ease;
}

.wn-nav .dropdown:hover > .dropdown-toggle::after,
.wn-nav .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.wn-drop {
  border: 1px solid var(--mist);
  border-radius: 14px;
  padding: 0.4rem;
  margin-top: 0.55rem;
  min-width: 210px;
  background: #fff;
  box-shadow: 0 24px 50px -30px rgba(var(--ink-rgb), 0.45);
}

.wn-drop .dropdown-item {
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.16s ease, color 0.16s ease, padding-left 0.16s ease;
}

.wn-drop .dropdown-item:hover {
  background: rgba(var(--violet-rgb), 0.07);
  color: var(--violet);
  padding-left: 1.05rem;
}

.wn-drop .dropdown-item.active {
  background: transparent;
  color: var(--violet);
  font-weight: 600;
}

/* ---- Desktop: open on hover, with a fade instead of a hard cut ---- */
@media (min-width: 992px) {

  .wn-nav .dropdown-menu {
    display: block;                /* always in the DOM so it can animate */
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  /* An invisible bridge so the menu does not close while the pointer
     crosses the gap between the link and the panel. */
  .wn-drop::before {
    content: '';
    position: absolute;
    top: -0.6rem;
    left: 0;
    right: 0;
    height: 0.6rem;
  }

  .wn-nav .dropdown:hover > .dropdown-menu,
  .wn-nav .dropdown:focus-within > .dropdown-menu,
  .wn-nav .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

/* On mobile the menu is already open, so drop the panel styling. */
@media (max-width: 991.98px) {
  .wn-drop {
    border: 0;
    box-shadow: none;
    padding: 0 0 0 0.9rem;
    margin: 0 0 0.8rem;
    border-left: 2px solid var(--mist);
    border-radius: 0;
    background: transparent;
  }

  .wn-drop .dropdown-item {
    padding: 0.55rem 0.6rem;
    white-space: normal;
  }
  .wn-drop .dropdown-item:hover { padding-left: 0.6rem; }
}

/* --------------------------------------------------------- services mega */

/* Not a Bootstrap dropdown on purpose. .dropdown-menu[data-bs-popper] is a
   two-class selector and kept overriding our left/top, which pushed the panel
   off the left edge. This is our own panel, driven by main.js. */

.wn-mega__wrap { position: static; }

.wn-mega__toggle {
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.wn-mega {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 1035;
  width: min(1140px, calc(100vw - 2.5rem));
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.6rem;
  border: 1px solid var(--mist);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 34px 70px -34px rgba(var(--ink-rgb), 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-0.4rem);
  transition: opacity 0.2s ease, transform 0.22s ease, visibility 0.22s;
}

.wn-mega.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0.55rem);
}

/* Two zones: the service columns, then the feature card. The columns wrap on
   their own, so adding a fourth or fifth group never breaks the layout. */
.wn-mega__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15.5rem;
  gap: 1.75rem;
  align-items: start;
}

.wn-mega__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.5rem 1.75rem;
}

.wn-mega__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.wn-mega__title .sv-icon { color: var(--violet); flex: none; }

.wn-mega__blurb {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-70);
  margin: 0.4rem 0 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--mist);
}

.wn-mega__list { list-style: none; margin: 0; padding: 0; }

.wn-mega__list a {
  display: block;
  padding: 0.5rem 0.7rem;
  margin-left: -0.7rem;
  border-radius: 10px;
  color: var(--ink);
  transition: background 0.16s ease, transform 0.16s ease;
}
.wn-mega__list a:hover { background: rgba(var(--violet-rgb), 0.07); transform: translateX(3px); }

.wn-mega__list a span {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}
.wn-mega__list a:hover span,
.wn-mega__list a.is-here span { color: var(--violet); }

.wn-mega__list a small {
  display: block;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--ink-70);
  margin-top: 0.15rem;
}

.wn-mega__feature {
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
}

.wn-mega__tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 0.6rem;
}

.wn-mega__pitch {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-70);
  margin: 0 0 1rem;
}

.wn-mega__cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.45rem 0;
  border-top: 1px solid var(--mist);
}
.wn-mega__cta:hover { color: var(--violet); }
.wn-mega__cta:hover .sv-arrow { transform: translateX(3px); }

.sv-arrow { transition: transform 0.18s ease; }

/* Narrow desktops: the feature card drops under the columns rather than
   squeezing them. */
@media (max-width: 1199.98px) {
  .wn-mega__grid { grid-template-columns: minmax(0, 1fr); }
  .wn-mega__feature { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0 1.5rem; align-items: center; }
  .wn-mega__feature .wn-mega__tag { grid-column: 1 / -1; }
  .wn-mega__pitch { margin-bottom: 0; }
  .wn-mega__cta { border-top: 0; }
}

/* Inside the collapsed mobile menu it is just a block that opens and closes. */
@media (max-width: 991.98px) {
  .wn-mega {
    position: static;
    display: none;
    width: auto;
    max-height: none;
    overflow: visible;
    padding: 1rem 0 0;
    margin-top: 0.5rem;
    border: 0;
    border-top: 1px solid var(--mist);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
  .wn-mega.is-open { display: block; transform: none; }

  .wn-mega__grid,
  .wn-mega__cols { grid-template-columns: minmax(0, 1fr); gap: 1rem; }

  /* Everything gets tighter here — nine services plus the card is a lot of
     rows on a phone, so each one gives back a few pixels. */
  .wn-mega__col + .wn-mega__col { border-top: 1px solid var(--mist); padding-top: 1rem; }

  .wn-mega__title { font-size: 0.94rem; }

  .wn-mega__blurb {
    font-size: 0.76rem;
    margin: 0.3rem 0 0.55rem;
    padding-bottom: 0.5rem;
  }

  .wn-mega__list a { padding: 0.42rem 0.6rem; margin-left: -0.6rem; }
  .wn-mega__list a span  { font-size: 0.9rem; }
  .wn-mega__list a small { font-size: 0.74rem; line-height: 1.4; }

  .wn-mega__feature { display: block; padding: 0.9rem 1rem; }
  .wn-mega__feature .wn-mega__pitch { font-size: 0.82rem; margin-bottom: 0.8rem; }
  .wn-mega__feature .wn-mega__cta { border-top: 1px solid var(--mist); }

  .wn-mega__toggle {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .wn-mega__toggle::after { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .wn-mega { transition: none; }
  .wn-mega__list a:hover { transform: none; }
}

/* A card that is also a link — used by the home services row. */
a.wn-card,
a.wn-card:hover { color: var(--ink); }
a.wn-card h3 { transition: color 0.2s ease; }
a.wn-card:hover h3 { color: var(--violet); }


/* ================================================================
   Baodigital header and logo refinement
   ================================================================ */
.wn-header {
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 4px 24px rgba(15,23,42,.035);
}
.wn-header .navbar {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
  min-height: 88px;
}
.wn-header .wn-logo { display:inline-flex; align-items:center; flex:0 0 auto; }
.wn-header .wn-logo img {
  height: var(--logo-height, 48px);
  max-width: 270px;
  width: auto;
  object-fit: contain;
}
.wn-logo__default { display:block; }
.wn-logo__default--header { height: 48px !important; }
.wn-footer .wn-logo { display:inline-flex; align-items:center; }
.wn-footer .wn-logo img {
  height: var(--logo-height-footer, 46px);
  max-width: 260px;
  width:auto;
  object-fit:contain;
}
.wn-logo__default--footer { height: 46px !important; }
@media (max-width: 767.98px) {
  .wn-header .navbar { min-height: 76px; padding-top: 14px !important; padding-bottom: 14px !important; }
  .wn-header .wn-logo img { height: 42px; max-width: 230px; }
  .wn-logo__default--header { height: 42px !important; }
  .wn-footer .wn-logo img { height: 42px; max-width: 235px; }
  .wn-logo__default--footer { height: 42px !important; }
}
