/* We Market — shared header + footer styles (independent of each page's Tailwind config). */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  --wm-dark: #041710;
  --wm-deep: #020d07;
  --wm-card: #0c251b;
  --wm-border: #263930;
  --wm-mint: #9CF0D2;
  --wm-lime: #C7E554;
  --wm-text: #d2e8db;
  --wm-muted: #9bb0a5;
  --wm-faint: #759184;
  --wm-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --wm-mono: 'JetBrains Mono', ui-monospace, monospace;
}

html { scroll-padding-top: 96px; }
/* Decorative glow shapes on some pages are wider than a phone; stop them causing sideways scroll. */
html, body { overflow-x: clip; }

.wm-header, .wm-footer { font-family: var(--wm-sans); -webkit-font-smoothing: antialiased; }
.wm-header *, .wm-footer * { box-sizing: border-box; }
.wm-header a, .wm-footer a { text-decoration: none; }

/* Header */
.wm-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(4, 23, 16, 0.95);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(38, 57, 48, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.wm-header-inner {
  height: 80px; max-width: 1280px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
@media (min-width: 1024px) { .wm-header-inner { padding: 0 48px; } }

.wm-logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.wm-logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--wm-mint), var(--wm-lime));
  color: var(--wm-dark); font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 15px rgba(156, 240, 210, 0.4);
}
.wm-logo-text { color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }

.wm-nav { display: none; align-items: center; gap: 4px; }
.wm-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--wm-mono); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--wm-muted); padding: 7px 12px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.wm-link:hover { color: #fff; }
.wm-link.is-active {
  background: var(--wm-mint); color: var(--wm-dark); font-weight: 700;
  box-shadow: 0 0 12px rgba(156, 240, 210, 0.3);
}

/* Services dropdown */
.wm-dd { position: relative; }
.wm-dd-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 6px);
  width: 360px; padding: 10px; border-radius: 16px;
  background: var(--wm-card); border: 1px solid var(--wm-border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.wm-dd-panel::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.wm-dd:hover .wm-dd-panel, .wm-dd:focus-within .wm-dd-panel {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.wm-dd-all, .wm-dd-item { display: block; border-radius: 10px; padding: 10px 12px; }
.wm-dd-all {
  display: flex; justify-content: space-between;
  font-family: var(--wm-mono); font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--wm-mint);
  border-bottom: 1px solid var(--wm-border); border-radius: 10px 10px 0 0; margin-bottom: 6px;
}
.wm-dd-item strong { display: block; color: #fff; font-size: 14px; font-weight: 600; }
.wm-dd-item small { display: block; color: var(--wm-faint); font-size: 12px; margin-top: 2px; }
.wm-dd-all:hover, .wm-dd-item:hover, .wm-dd-item.is-active { background: rgba(156, 240, 210, 0.08); }
.wm-dd-item.is-active strong { color: var(--wm-mint); }

.wm-actions { display: flex; align-items: center; gap: 12px; }
.wm-cta {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  padding: 10px 20px; border-radius: 999px;
  background: var(--wm-mint); color: var(--wm-dark) !important;
  font-family: var(--wm-mono); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  box-shadow: 0 0 20px rgba(156, 240, 210, 0.35);
  transition: background .2s;
}
.wm-cta:hover { background: var(--wm-lime); }
.wm-cta-block { width: 100%; margin-top: 12px; padding: 14px 20px; }

.wm-burger {
  width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  background: rgba(156, 240, 210, 0.1); border: 1px solid rgba(156, 240, 210, 0.3);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.wm-burger span { width: 18px; height: 2px; border-radius: 2px; background: var(--wm-mint); transition: transform .2s, opacity .2s; }
.wm-menu-open .wm-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.wm-menu-open .wm-burger span:nth-child(2) { opacity: 0; }
.wm-menu-open .wm-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.wm-mobile {
  display: none; max-height: calc(100vh - 80px); overflow-y: auto;
  padding: 8px 16px 20px; border-top: 1px solid var(--wm-border); background: var(--wm-dark);
}
.wm-menu-open .wm-mobile { display: block; }
.wm-m-link {
  display: block; padding: 13px 4px; border-bottom: 1px solid rgba(38, 57, 48, 0.6);
  font-family: var(--wm-mono); font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--wm-text);
}
.wm-m-link.is-active { color: var(--wm-mint); }
.wm-m-sub { padding: 6px 0 6px 12px; border-left: 2px solid var(--wm-border); margin: 6px 0 6px 4px; }
.wm-m-sub .wm-dd-all { display: none; }
.wm-m-sub .wm-dd-item { padding: 8px 10px; }
.wm-m-sub .wm-dd-item small { display: none; }

@media (max-width: 520px) { .wm-actions .wm-cta { display: none; } }
@media (min-width: 1200px) {
  .wm-nav { display: flex; }
  .wm-burger, .wm-mobile, .wm-menu-open .wm-mobile { display: none; }
}

/* Footer */
.wm-footer { background: var(--wm-deep); border-top: 1px solid rgba(38, 57, 48, 0.6); color: #a2b8ad; }
.wm-footer-inner { max-width: 1280px; margin: 0 auto; padding: 56px 16px 32px; }
@media (min-width: 1024px) { .wm-footer-inner { padding: 64px 48px 32px; } }
.wm-f-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 720px) { .wm-f-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .wm-f-grid { grid-template-columns: 1.4fr 1.2fr 0.8fr 1fr; gap: 40px; } }
.wm-f-brand p { font-size: 13px; line-height: 1.7; color: var(--wm-faint); margin: 16px 0 20px; max-width: 340px; }
.wm-f-col h4 {
  margin: 0 0 14px; color: #fff; font-family: var(--wm-mono); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.wm-f-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wm-f-col li { font-size: 13px; color: var(--wm-faint); line-height: 1.5; }
.wm-f-col a { color: var(--wm-faint); transition: color .2s; }
.wm-f-col a:hover { color: #fff; }
.wm-f-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(38, 57, 48, 0.4);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-family: var(--wm-mono); font-size: 11px; color: #526a5e;
}
.wm-f-legal { display: flex; gap: 16px; }
.wm-f-legal a { color: #526a5e; }
.wm-f-legal a:hover { color: #fff; }

/* Clickable cards that link to a page (added on Services + Home) */
.wm-card { position: relative; cursor: pointer; }
.wm-card-link { color: inherit !important; text-decoration: none; }
.wm-card-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.wm-card:hover .wm-card-link { text-decoration: underline; text-underline-offset: 4px; }

/* Page headings (H1): same look on every page, taken from the About page.
   White Plus Jakarta Sans ExtraBold; the key words get the mint→lime gradient via .wm-h1-accent. */
.wm-h1 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-weight: 800 !important;
  color: #fff !important;
  font-size: clamp(2.25rem, 1.35rem + 4vw, 4.5rem) !important;   /* 36px → 72px */
  line-height: 1.08 !important;
  letter-spacing: -0.025em !important;
  margin-top: 0;
}
.wm-h1--compact { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem) !important; }  /* 36px → 60px, for side-by-side heroes */
.wm-h1--long { font-size: clamp(1.875rem, 1.4rem + 1.9vw, 2.875rem) !important; line-height: 1.15 !important; } /* long article titles */
.wm-h1-accent {
  background: linear-gradient(90deg, #9CF0D2 0%, #b6f5dc 45%, #C7E554 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* Card edges: dark cards on the dark page background get a faint mint outline so they don't
   merge into it. Outline (not border) so layout and existing shadows are unchanged. */
:is(.rounded-lg, .rounded-xl, .rounded-2xl, .rounded-3xl):is(.bg-surface-container-low, .bg-surface-container, .bg-surface-container-high, .bg-surface-container-lowest):not([class*="border"]) {
  outline: 1px solid rgba(156, 240, 210, 0.12);
  outline-offset: -1px;
}

/* Cards in a grid: brighten the outline, add a soft shadow and lift slightly on hover. */
.grid > :is(.rounded-lg, .rounded-xl, .rounded-2xl, .rounded-3xl):is(.bg-surface-container-low, .bg-surface-container, .bg-surface-container-high) {
  transition: outline-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.grid > :is(.rounded-lg, .rounded-xl, .rounded-2xl, .rounded-3xl):is(.bg-surface-container-low, .bg-surface-container, .bg-surface-container-high):hover {
  outline: 1px solid rgba(156, 240, 210, 0.65);
  outline-offset: -1px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35), 0 0 22px rgba(156, 240, 210, 0.12);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .grid > :is(.rounded-lg, .rounded-xl, .rounded-2xl, .rounded-3xl):hover { transform: none; }
}

/* Human check (maths question) injected into forms with data-human-check — same look as the Home form */
.wm-hc { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.wm-hc-label {
  font-family: var(--wm-mono); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--wm-text);
}
.wm-hc-row { display: flex; align-items: center; gap: 12px; }
.wm-hc-q {
  padding: 6px 16px; border-radius: 10px; white-space: nowrap;
  font-family: var(--wm-sans); font-size: 24px; font-weight: 800; line-height: 1.3;
  color: var(--wm-lime); background: rgba(199, 229, 84, 0.1); border: 1px solid rgba(199, 229, 84, 0.45);
}
.wm-hc-eq { font-family: var(--wm-sans); font-size: 24px; font-weight: 700; color: #fff; }
.wm-hc-input {
  width: 96px; padding: 10px 12px; border-radius: 10px; text-align: center;
  font-family: var(--wm-sans); font-size: 18px; font-weight: 700;
  color: #fff; background: #163a2c; border: 1px solid rgba(156, 240, 210, 0.3); outline: none;
}
.wm-hc-input:focus { border-color: var(--wm-mint); box-shadow: 0 0 0 2px rgba(156, 240, 210, 0.35); }
.wm-hc-input::placeholder { color: #8aa99b; }
.wm-hc-error { margin: 0; font-family: var(--wm-sans); font-size: 13px; color: #ffb4ab; }
.wm-hc-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wm-hc--light .wm-hc-label { color: #10261b; }
.wm-hc--light .wm-hc-q { color: #0f7058; background: #e8f6ef; border-color: #9cdcc2; }
.wm-hc--light .wm-hc-eq { color: #10261b; }
.wm-hc--light .wm-hc-input { color: #0a1f16; background: #e8f6ef; border-color: #a7dcc5; }
.wm-hc--light .wm-hc-input:focus { background: #fff; border-color: #059669; box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2); }
.wm-hc--light .wm-hc-input::placeholder { color: #6b8f7f; }
.wm-hc--light .wm-hc-error { color: #b42318; }

/* ---------- Home hero: animated channel hub ----------
   We Market "W" in the centre; channel logos fly out from it, then dots flow along the links. */
.wm-hub {
  position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 1.25rem; overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(156, 240, 210, 0.22), transparent 42%),
    radial-gradient(circle at 85% 12%, rgba(199, 229, 84, 0.16), transparent 38%),
    radial-gradient(circle at 10% 90%, rgba(16, 185, 129, 0.18), transparent 40%),
    linear-gradient(160deg, #123a2b 0%, #0a2419 55%, #051a11 100%);
}
.wm-hub-links { position: absolute; inset: 0; width: 100%; height: 100%; }
.wm-hub-line {
  stroke: rgba(156, 240, 210, 0.38); stroke-width: 0.35; fill: none;
  stroke-dasharray: 1.4 1.2; stroke-linecap: round;
  animation: wm-hub-dash 1.6s linear infinite, wm-hub-fadein 0.6s ease-out both;
  animation-delay: 0s, var(--d, 1.2s);
}
.wm-hub-dot { fill: #C7E554; opacity: 0; }
.wm-hub-node {
  position: absolute; width: 18%; aspect-ratio: 1 / 1; transform: translate(-50%, -50%);
  animation: wm-hub-out 0.9s cubic-bezier(0.22, 1.2, 0.36, 1) both; animation-delay: var(--d, 0s);
}
.wm-hub-tile {
  width: 100%; height: 100%; border-radius: 22%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14), 0 10px 24px rgba(0, 0, 0, 0.35);
  animation: wm-hub-float 5s ease-in-out infinite; animation-delay: var(--f, 0s);
}
.wm-hub-tile svg { width: 52%; height: 52%; }
.wm-hub-center {
  position: absolute; left: 50%; top: 50%; width: 24%; aspect-ratio: 1 / 1; transform: translate(-50%, -50%);
  animation: wm-hub-pop 0.7s cubic-bezier(0.22, 1.3, 0.36, 1) both;
}
.wm-hub-center-tile {
  position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 26%;
  background: linear-gradient(135deg, #9CF0D2, #C7E554);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px rgba(156, 240, 210, 0.18), 0 0 40px rgba(156, 240, 210, 0.45);
}
.wm-hub-center-tile svg { width: 58%; height: 58%; }
.wm-hub-ring {
  position: absolute; inset: 0; border-radius: 26%; border: 2px solid rgba(156, 240, 210, 0.55);
  animation: wm-hub-ring 2.8s ease-out infinite;
}
.wm-hub-ring:nth-child(2) { animation-delay: 1.4s; }

@keyframes wm-hub-out { from { left: 50%; top: 50%; opacity: 0; transform: translate(-50%, -50%) scale(0.2); } }
@keyframes wm-hub-pop { from { opacity: 0; transform: translate(-50%, -50%) scale(0.4); } }
@keyframes wm-hub-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5%); } }
@keyframes wm-hub-dash { to { stroke-dashoffset: -2.6; } }
@keyframes wm-hub-fadein { from { opacity: 0; } }
@keyframes wm-hub-ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.6); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .wm-hub-line, .wm-hub-node, .wm-hub-tile, .wm-hub-center, .wm-hub-ring { animation: none; }
  .wm-hub-dot { display: none; }
}

/* ---------- Client logos: moving strip (Home) + logo wall (About) ---------- */
.wm-logo-img { display: block; height: 56px; width: auto; max-width: 100%; object-fit: contain; }
.wm-logo-img--wide { height: 40px; }
.wm-logo-wall .wm-logo-img { height: 44px; }
.wm-logo-wall .wm-logo-img--wide { height: 28px; }

.wm-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.wm-marquee-track {
  display: flex; align-items: center; width: max-content;
  margin: 0; padding: 8px 0; list-style: none;
  animation: wm-marquee 45s linear infinite;
}
.wm-marquee-track li { flex: none; padding: 0 32px; }
.wm-marquee:hover .wm-marquee-track { animation-play-state: paused; }
@keyframes wm-marquee { to { transform: translateX(-50%); } }

@media (max-width: 640px) {
  .wm-marquee-track { animation-duration: 32s; }
  .wm-marquee-track li { padding: 0 20px; }
  .wm-marquee .wm-logo-img { height: 40px; }
  .wm-marquee .wm-logo-img--wide { height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .wm-marquee { -webkit-mask-image: none; mask-image: none; }
  .wm-marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 20px; }
  .wm-marquee-track li[aria-hidden="true"] { display: none; }
}
