/* ==========================================================================
   Willow Technology group — shared design system
   One stylesheet, three brands. Each site sets data-brand on <html>
   (willow | airzip | ailexiom) to pick up its own accent colours.
   Plain CSS, no build step. Copy this file into each site's assets/css/.
   ========================================================================== */

:root {
  /* neutral palette shared by the whole group */
  --ink: #1b2430;
  --ink-soft: #4a5565;
  --muted: #6b7686;
  --line: #dde3ea;
  --bg: #ffffff;
  --bg-alt: #f4f7f9;
  --group-bar-bg: #1b2430;
  --group-bar-ink: #d7dde6;
  --max: 1120px;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(27, 36, 48, 0.08);
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* default brand (Willow) */
  --brand: #007b8c;
  --brand-dark: #005f6d;
  --brand-tint: #e3f3f5;
  --brand-ink: #ffffff;
}

html[data-brand="airzip"] {
  --brand: #015ea3;
  --brand-dark: #03457a;
  --brand-tint: #e4eef8;
}

html[data-brand="ailexiom"] {
  --brand: #16305d;
  --brand-dark: #0d1e3d;
  --brand-tint: #e9eef7;
  --accent-2: #c9a44d; /* legal gold, kept from the aiLexiom draft */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; }

a { color: var(--brand-dark); }
a:hover { color: var(--brand); }

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.6rem;
  color: var(--ink);
  font-weight: 650;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
ul { padding-left: 1.2rem; }
li { margin-bottom: 0.3rem; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Group bar — identical on all three sites
   -------------------------------------------------------------------------- */
.group-bar {
  background: var(--group-bar-bg);
  color: var(--group-bar-ink);
  font-size: 0.82rem;
}
.group-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  min-height: 2.2rem;
  padding-block: 0.25rem;
}
.group-bar a {
  color: var(--group-bar-ink);
  text-decoration: none;
  padding: 0.15rem 0.1rem;
}
.group-bar a:hover,
.group-bar a:focus { color: #fff; text-decoration: underline; }
.group-bar nav { display: flex; gap: 1.1rem; }
.group-bar nav a[aria-current="true"] {
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid var(--brand);
}
.group-bar .group-label { opacity: 0.9; }

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  background: #fff;
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.9rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img { display: block; height: 52px; width: auto; }
/* aiLexiom horizontal lockup (SVG, 3103×1120) — a little taller so the wordmark reads at header size */
html[data-brand="ailexiom"] .brand img { height: 64px; }
.brand .wordmark {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--brand);
}
.brand .wordmark span { color: var(--accent-2, var(--brand-dark)); }
.brand .tagline {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.4rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus { color: var(--brand); }
.site-nav a[aria-current="page"] {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.site-nav a.cta {
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 1rem;
}
.site-nav a.cta:hover { background: var(--brand-dark); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .site-nav { width: 100%; display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.2rem; padding-top: 0.5rem; }
  .site-nav a { display: block; padding: 0.55rem 0; }
  .site-nav a.cta { display: inline-block; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background:
    linear-gradient(135deg, var(--brand-tint) 0%, #ffffff 65%),
    #fff;
  border-bottom: 1px solid var(--line);
}
.hero .container { padding-block: clamp(2.5rem, 7vw, 5rem); }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--brand);
  font-weight: 650;
  margin-bottom: 0.6rem;
}
.hero h1 { max-width: 20ch; }
.hero .lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 58ch;
}
.hero--dark {
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(201, 164, 77, 0.22), transparent 60%),
    linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
}
.hero--dark h1, .hero--dark .lead { color: #fff; }
.hero--dark .eyebrow { color: var(--accent-2, #fff); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.btn {
  display: inline-block;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--brand);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.btn:hover, .btn:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn.secondary { background: transparent; color: var(--brand-dark); }
.btn.secondary:hover { background: var(--brand-tint); }
.hero--dark .btn.secondary { color: #fff; border-color: rgba(255,255,255,0.7); }
.hero--dark .btn.secondary:hover { background: rgba(255,255,255,0.12); }

/* --------------------------------------------------------------------------
   Sections, cards, grids
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 62ch; margin-bottom: 1.6rem; }
.section-head p { color: var(--ink-soft); }

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card h3 { color: var(--brand-dark); }
.card p:last-child { margin-bottom: 0; }
.card .more { margin-top: auto; padding-top: 0.6rem; font-weight: 600; text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.card--brand { border-top: 4px solid var(--brand); }

/* division cards on the Willow home page carry their own accent */
.card[data-division="willow"]   { border-top: 4px solid #007b8c; }
.card[data-division="airzip"]   { border-top: 4px solid #015ea3; }
.card[data-division="ailexiom"] { border-top: 4px solid #16305d; }
.card .division-logo { height: 44px; width: auto; align-self: flex-start; margin-bottom: 0.8rem; }
.card[data-division="ailexiom"] .division-logo { height: 56px; margin-left: -0.4rem; }
.card .division-wordmark {
  font-size: 1.5rem; font-weight: 700; color: #16305d; margin-bottom: 0.8rem;
}
.card .division-wordmark span { color: #c9a44d; }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 0.65rem; height: 0.65rem;
  border-radius: 50%;
  background: var(--brand);
}

.platform-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
}
.platform-table th, .platform-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.platform-table th { background: var(--brand-tint); color: var(--brand-dark); }
.platform-table th[scope="row"] { background: transparent; color: var(--ink); font-weight: 600; width: 32%; }

.pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--brand-tint);
  color: var(--brand-dark);
}

.callout {
  border-left: 4px solid var(--brand);
  background: var(--brand-tint);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* visible review placeholders — remove before go-live */
.placeholder {
  border: 2px dashed #d29a00;
  background: #fff8e1;
  color: #6a4b00;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  font-size: 0.95rem;
}
.placeholder strong { color: #8a5a00; }
span.placeholder { display: inline; padding: 0.05rem 0.4rem; margin: 0; border-width: 1px; }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }

.stats { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 1.5rem; }
.stats div { font-size: 0.95rem; color: var(--ink-soft); }
.stats strong { display: block; font-size: 1.2rem; color: var(--brand-dark); }

/* --------------------------------------------------------------------------
   Contact & forms
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
address { font-style: normal; line-height: 1.7; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.contact-list li { margin-bottom: 0.35rem; }
.contact-list strong { display: inline-block; min-width: 10rem; }

form.enquiry {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid #b9c2cd;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.88rem; color: var(--muted); }
.form-status { display: none; margin-bottom: 1rem; padding: 0.75rem 1rem; border-radius: 6px; }
.form-status.error:target { display: block; background: #fdecea; color: #8a1c13; border: 1px solid #f3b9b3; }

/* --------------------------------------------------------------------------
   Footer — consistent across the group
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 2rem;
  background: var(--group-bar-bg);
  color: var(--group-bar-ink);
  font-size: 0.9rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .container { padding-block: 2.5rem 1.5rem; }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  margin-bottom: 2rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}
.site-footer .footer-logo { display: block; height: 48px; width: auto; margin: -0.2rem 0 1rem -0.4rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 0.82rem;
  color: #aab4c2;
}
.footer-bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.text-muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.mt-0 { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .group-bar, .site-nav, .nav-toggle, .actions, form.enquiry { display: none !important; }
  .site-footer { background: none; color: #000; }
  .site-footer .footer-logo { background: #0b0f1a; padding: 0.4rem 0.6rem; border-radius: 6px; }
}

/* Social Enterprise Statement (ailexiom.com/social-enterprise.html) */
.statement .commitments { margin: 1rem 0 1.5rem; }
.statement .commitments li { margin-bottom: 0.7rem; }
.statement .signoff {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 2px solid var(--accent-2, var(--brand));
  font-weight: 650;
  color: var(--brand-dark);
}
