/* ============================================================================
   mazoea — brand stylesheet
   Design system distilled from brand_design/brand-manual.html
   "Tech dot" concept · navy #0B2540 · cyan #2FB6E8
   ==========================================================================*/

/* ---- Wordmark font (self-hosted, offline-safe) ------------------------- */
@font-face {
  font-family: "Montserrat Local";
  src: url("../fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens ----------------------------------------------------- */
:root {
  /* palette */
  --navy:        #0B2540;
  --navy-2:      #103A63;
  --navy-3:      #1A6FB2;
  --cyan:        #2FB6E8;
  --light-cyan:  #6FD3F2;
  --mist:        #F4F7FA;
  --slate:       #5B7187;
  --line:        #E3E9F0;
  --white:       #FFFFFF;
  --ink:         #0B2540;

  /* gradients */
  --grad-hero: linear-gradient(125deg, #08203A 0%, #103A63 55%, #1A6FB2 100%);

  /* type */
  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-display: "Montserrat", "Montserrat Local", "Segoe UI", system-ui, sans-serif;

  /* radius + shadow */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11,37,64,.05), 0 2px 8px rgba(11,37,64,.04);
  --shadow:    0 6px 24px rgba(11,37,64,.08);
  --shadow-lg: 0 18px 50px rgba(11,37,64,.16);

  /* layout */
  --wrap: 1120px;
  --gutter: 28px;
}

/* ---- Reset / base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-3); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--cyan); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

/* ---- Layout helpers ---------------------------------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--mist { background: var(--mist); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.lead { color: var(--slate); font-size: 1.12rem; max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--navy-3);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  margin: 0 0 14px;
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; border-radius: 3px;
  background: var(--cyan); display: inline-block;
}
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* the signature square "dot" */
.dot {
  display: inline-block; width: .32em; height: .32em;
  border-radius: .09em; background: var(--cyan);
  vertical-align: baseline; margin-left: .06em;
}

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font); font-weight: 600; font-size: .98rem;
  padding: 13px 24px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--cyan); color: #04263a; box-shadow: 0 8px 22px rgba(47,182,232,.32); }
.btn--primary:hover { background: #22a6d8; color: #04263a; box-shadow: 0 12px 28px rgba(47,182,232,.42); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--navy); }
.btn--on-dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(4px); }
.btn--on-dark:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn .arrow { transition: transform .16s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Header / navigation ---------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo img { height: 26px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--navy); font-weight: 500; font-size: .96rem;
  position: relative; padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--cyan); transition: right .22s ease;
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after,
.nav__links .current-menu-item > a::after,
.nav__links .current_page_item > a::after { right: 0; }
.nav__links a[aria-current="page"],
.nav__links .current-menu-item > a,
.nav__links .current_page_item > a { color: var(--navy-3); }
/* WordPress-generated menu markup normalisation */
.nav__links li { list-style: none; }
.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; border-radius: 2px; transition: .2s; }

/* ---- Hero -------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-hero); color: #fff;
  padding: 96px 0 104px;
}
.hero::before {
  /* faint square-dot grid — the "tech dot" motif */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(111,211,242,.16) 1.4px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(120deg, transparent 40%, #000 100%);
          mask-image: linear-gradient(120deg, transparent 40%, #000 100%);
  opacity: .7; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; right: -140px; top: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,182,232,.35), transparent 62%);
  filter: blur(10px); pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero__inner { max-width: 760px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--light-cyan); font-weight: 700;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero__eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--cyan); }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 .accent { color: var(--light-cyan); }
.hero__sub { color: rgba(255,255,255,.82); font-size: 1.2rem; max-width: 56ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 46px; margin-top: 58px; }
.hero__stat .num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: #fff; }
.hero__stat .lbl { color: rgba(255,255,255,.66); font-size: .9rem; letter-spacing: .02em; }

/* ---- Cards ------------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe6f5; }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: rgba(47,182,232,.12); color: var(--navy-3);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); margin-bottom: 18px; font-size: 1rem; }

/* ---- Tag chips --------------------------------------------------------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding: 0; list-style: none; }
.tag {
  font-size: .74rem; font-weight: 600; letter-spacing: .01em;
  color: var(--navy-3); background: var(--mist);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 11px;
}
.tag::before { content: "#"; opacity: .5; }

/* ---- Value list (square-dot bullets) ----------------------------------- */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.value { display: flex; gap: 16px; }
.value__mark {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px;
  background: var(--navy); position: relative; margin-top: 3px;
}
.value__mark::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 11px; height: 11px; border-radius: 3px; background: var(--cyan);
}
.value h3 { font-size: 1.08rem; margin-bottom: 4px; }
.value p { color: var(--slate); font-size: .98rem; margin: 0; }

/* ---- Case study block -------------------------------------------------- */
.case {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 40px; box-shadow: var(--shadow-sm); margin-bottom: 28px;
}
.case__num { font-family: var(--font-display); color: var(--cyan); font-size: .95rem; font-weight: 700; letter-spacing: .1em; }
.case h2, .case h3 { font-size: 1.5rem; margin: 6px 0 18px; }
.case__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 10px; }
.case__label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-3); margin-bottom: 10px; }
.result-list { list-style: none; margin: 0; padding: 0; }
.result-list li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--slate); }
.result-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px; border-radius: 3px; background: var(--cyan);
}

/* ---- Reference / client grid ------------------------------------------ */
.clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.client {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center;
  min-height: 108px; padding: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  color: var(--navy); font-weight: 600; font-size: .95rem; line-height: 1.35;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.client:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe6f5; }
.client small { display: block; color: var(--slate); font-weight: 500; font-size: .78rem; margin-top: 5px; }

/* Logo lockup inside a client card */
.client__logo { display: flex; align-items: center; justify-content: center; height: 52px; width: 100%; }
.client__logo img { max-height: 52px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
/* Small inline mark used in the "acquired by …" note */
.client small img { height: 15px; width: auto; vertical-align: -3px; margin-right: 3px; border-radius: 3px; }
/* Logo that only exists as a white/reversed asset — sits on a dark chip */
.client__logo--dark {
  height: auto; width: auto; max-width: 100%;
  background: var(--navy); border-radius: 10px; padding: 14px 18px;
}
.client__logo--dark img { max-height: 42px; }
/* "previously …" lockup for an acquired brand */
.client__prev {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 100%; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line);
}
.client__prev small { margin-top: 0; }
.client__prev img { max-height: 24px; max-width: 150px; width: auto; height: auto; object-fit: contain; }

/* ---- Contact ----------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: start; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px; box-shadow: var(--shadow-sm); }
.info-card + .info-card { margin-top: 22px; }
.info-row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .k { flex: 0 0 128px; color: var(--slate); font-size: .9rem; }
.info-row .v { color: var(--navy); font-weight: 500; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font); font-size: 1rem; color: var(--navy);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--mist); transition: border-color .16s ease, background .16s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.form-status { margin-top: 14px; color: var(--slate); font-size: .92rem; }

/* ---- CTA band ---------------------------------------------------------- */
.cta {
  background: var(--grad-hero); color: #fff; border-radius: var(--r-lg);
  padding: 58px 56px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta::after {
  content: ""; position: absolute; right: -80px; bottom: -120px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,182,232,.4), transparent 62%);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { color: rgba(255,255,255,.8); margin: 0; }

/* ---- Breadcrumb -------------------------------------------------------- */
.crumb { color: var(--slate); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.crumb a { color: var(--slate); }
.crumb a:hover { color: var(--cyan); }
.page-hero {
  position: relative; overflow: hidden;
  background: var(--grad-hero); color: #fff;
  padding: 84px 0 72px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(111,211,242,.16) 1.4px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(120deg, transparent 40%, #000 100%);
          mask-image: linear-gradient(120deg, transparent 40%, #000 100%);
  opacity: .7; pointer-events: none;
}
.page-hero::after {
  content: ""; position: absolute; right: -140px; top: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,182,232,.35), transparent 62%);
  filter: blur(10px); pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { margin: 12px 0 8px; color: #fff; }
.page-hero .lead { color: rgba(255,255,255,.82); max-width: 56ch; }
.page-hero .crumb { color: rgba(255,255,255,.72); }
.page-hero .crumb a { color: rgba(255,255,255,.88); }
.page-hero .crumb a:hover { color: var(--light-cyan); }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 66px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer img.flogo { height: 26px; margin-bottom: 18px; }
.site-footer p { color: rgba(255,255,255,.62); font-size: .95rem; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.72); font-size: .95rem; }
.footer-col a:hover { color: var(--light-cyan); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .85rem; color: rgba(255,255,255,.5);
}

/* ---- Reveal-on-scroll (progressive enhancement) ------------------------ */
/* Content is visible by default; only hidden-then-animated when JS is present
   (html.js is set by an inline script), so no-JS users and crawlers see everything. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 940px) {
  .grid-3, .grid-4, .clients { grid-template-columns: repeat(2, 1fr); }
  .case__cols, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__links {
    display: flex; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; gap: 4px; background: #fff;
    border-bottom: 1px solid var(--line); padding: 16px var(--gutter); box-shadow: var(--shadow);
  }
  .grid-2, .grid-3, .grid-4, .clients { grid-template-columns: 1fr; }
  .cta { padding: 40px 30px; }
  .hero { padding: 70px 0 76px; }
  .hero__stats { gap: 30px; }
}
