/* 00-base.css */
/* WiseLink — base tokens and shared components.
   Brand guide (Canva "WiseLink Brand Guide"): blue #002fa7, coral #ff6f61,
   paper #f6f6f5, white, black; Quicksand for display; rounded tiles and pills.
   Meaning: blue = automation / data flow, coral = human approval / exceptions.
   Coral fails text contrast (~2.6:1) — use it for shapes, fills and outlines only. */

@font-face {
  font-family: "Quicksand";
  src: url("/fonts/quicksand-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;

  --blue: #002fa7;
  --blue-deep: #00237d;
  --blue-tint: #e5eaf6;
  --coral: #ff6f61;
  --coral-tint: #ffe9e6;
  --paper: #f6f6f5;
  --white: #ffffff;
  --black: #000000;
  --text-2: #3d3d3d;   /* secondary text, 10.6:1 on paper */
  --text-3: #636363;   /* meta text, 5.6:1 on paper */
  --line: #dddddb;
  --line-strong: #bdbdb9;
  --line-input: #86867f; /* form field borders: 3.7:1 on white (WCAG 1.4.11) */
  --on-blue-2: #c9d3f0; /* secondary text on blue, 7.9:1 */

  --display: "Quicksand", ui-rounded, "Avenir Next", system-ui, sans-serif;
  --body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: 1.625rem;
  --t-2xl: clamp(1.875rem, 1.35rem + 2vw, 2.75rem);
  --t-3xl: clamp(2.375rem, 1.5rem + 3.6vw, 4.125rem);

  --r-sm: 8px;
  --r-md: 14px;
  --r-tile: 24px;
  --r-pill: 999px;

  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 5vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: var(--body);
  font-size: var(--t-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 0.9em; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--t-3xl); letter-spacing: -0.025em; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); line-height: 1.25; letter-spacing: -0.005em; }
h4 { font-size: var(--t-md); line-height: 1.3; letter-spacing: 0; }

a { color: var(--blue); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.section--blue :focus-visible, .cta-band :focus-visible { outline-color: var(--white); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--blue); color: var(--white); padding: 0.5rem 0.875rem; border-radius: var(--r-pill);
}
.skip:focus { top: 1rem; }

/* ---------- Buttons: pills, per brand guide ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.875rem; padding: 0.625rem 1.375rem;
  border: 1.5px solid transparent; border-radius: var(--r-pill);
  font-family: var(--display); font-size: var(--t-sm); font-weight: 700; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); color: var(--white); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue-tint); color: var(--blue-deep); }
/* For use on blue backgrounds */
.btn-light { background: var(--white); color: var(--blue); }
.btn-light:hover { background: var(--blue-tint); color: var(--blue-deep); }
.btn-outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.3) blur(10px);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.75rem; }

.logo { display: inline-flex; align-items: center; gap: 0.625rem; text-decoration: none; color: var(--blue); }
.logo-mark { width: 2.25rem; height: 2.25rem; fill: var(--blue); flex: none; }
.logo-word { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; line-height: 1; letter-spacing: -0.01em; }

.site-nav { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.nav-links {
  display: flex; gap: 0.25rem; padding: 0.3125rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill);
}
.nav-links a {
  padding: 0.5rem 0.9375rem; border-radius: var(--r-pill);
  font-family: var(--display); font-size: var(--t-sm); font-weight: 600;
  color: var(--black); text-decoration: none;
}
.nav-links a:hover { background: var(--paper); color: var(--black); }
.nav-links a[aria-current="page"] { background: var(--blue-tint); color: var(--blue); }

.menu-toggle {
  display: none; margin-left: auto; min-height: 2.75rem; padding: 0.5rem 1.125rem;
  font-family: var(--display); font-size: var(--t-sm); font-weight: 700;
  color: var(--blue); background: var(--white); border: 1.5px solid var(--blue); border-radius: var(--r-pill); cursor: pointer;
}

@media (max-width: 64rem) {
  .header-inner { flex-wrap: wrap; gap: 0; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding: 0.5rem 0 1.5rem; }
  .site-nav.is-open { display: flex; }
  .nav-links { flex-direction: column; border-radius: var(--r-md); padding: 0.375rem; }
  .nav-links a { border-radius: var(--r-sm); padding: 0.875rem 1rem; font-size: var(--t-md); }
  .no-js .site-nav { display: flex; }
  .no-js .menu-toggle { display: none; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section--white { background: var(--white); }
.section--blue { background: var(--blue); color: var(--white); }
.section--blue a:not(.btn) { color: var(--white); }

.kicker {
  display: block; margin-bottom: 1rem;
  font-family: var(--display); font-size: var(--t-sm); font-weight: 700; color: var(--blue);
}
.section--blue .kicker { color: var(--white); }

.lead { font-size: var(--t-lg); line-height: 1.55; color: var(--text-2); max-width: 40rem; }
.section--blue .lead { color: var(--on-blue-2); }
.section-head { max-width: 48rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head .lead { margin-top: 1.25rem; }
.body-copy { color: var(--text-2); max-width: 40rem; }
.body-copy strong { color: var(--black); font-weight: 600; }
.note { margin-top: 1rem; font-size: var(--t-xs); color: var(--text-3); max-width: 42rem; }

/* Page hero for inner pages */
.page-hero { padding-block: clamp(3.5rem, 2rem + 5vw, 6.5rem) clamp(3rem, 2rem + 4vw, 5rem); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { margin-top: 1.5rem; }

/* Heading left, content right */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 60rem) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 52rem) { .split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 40rem) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Tiles (rounded cards) ---------- */

.tile {
  background: var(--white); border-radius: var(--r-tile);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.section--white .tile { background: var(--paper); }
.tile--blue,
.section--white .tile--blue { background: var(--blue); color: var(--white); }
.tile--blue p, .tile--blue li { color: var(--on-blue-2); }
.tile h3 + p { margin-top: 0.625rem; color: var(--text-2); }
.tile--blue h3 + p { color: var(--on-blue-2); }
.tile .caps { margin-top: 1.25rem; }
.tile .icon-tile { margin-bottom: 1.5rem; }

/* Brand icon: coral shape on a blue rounded square.
   Markup: <span class="icon-tile"><svg aria-hidden="true"><use href="/icons.svg#i-finance"/></svg></span> */
.icon-tile {
  display: inline-grid; place-items: center; flex: none;
  width: 3.5rem; height: 3.5rem; border-radius: 16px;
  background: var(--blue); color: var(--coral);
}
.icon-tile svg { width: 62%; height: 62%; fill: currentColor; }
.icon-tile--lg { width: 5rem; height: 5rem; border-radius: 22px; }
.icon-tile--on-blue { background: var(--white); color: var(--blue); }

/* ---------- Lists, chips ---------- */

.caps { display: grid; gap: 0.5rem; }
.caps li { display: flex; gap: 0.625rem; align-items: baseline; font-size: var(--t-sm); }
.caps li::before {
  content: ""; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--coral); transform: translateY(-0.05em);
}
.caps--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
@media (max-width: 30rem) { .caps--cols { grid-template-columns: minmax(0, 1fr); } }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-block; padding: 0.3125rem 0.875rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: var(--t-sm); font-weight: 500; color: var(--black);
}
.section--white .chip { background: var(--paper); }
.tile--blue .chip, .section--blue .chip { background: transparent; border-color: rgba(255,255,255,0.4); color: var(--white); }

/* ---------- Vertical step sequence ----------
   <ol class="steps-v"><li class="is-manual|is-auto|is-human">Step</li></ol> */

.steps-v { display: grid; }
.steps-v li { position: relative; padding: 0 0 1.125rem 2rem; line-height: 1.45; }
.steps-v li::before {
  content: ""; position: absolute; left: 0.25rem; top: 0.3em; z-index: 1;
  width: 0.75rem; height: 0.75rem; border-radius: 50%;
  border: 2px solid var(--blue); background: var(--white);
}
.steps-v li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(0.25rem + 5px); top: 1em; bottom: -0.15em;
  width: 2px; background: var(--blue);
}
.steps-v .is-auto::before { background: var(--blue); }
.steps-v .is-human::before { border-color: var(--coral); background: var(--coral); border-radius: 3px; }
.steps-v .is-manual { color: var(--text-2); }
.steps-v .is-manual::before { border-color: var(--line-strong); }
.steps-v .is-manual:not(:last-child)::after { background: var(--line-strong); }

/* ---------- Numbered process (a real sequence) ----------
   <ol class="process"><li><h3>Understand</h3><p>…</p></li></ol> */

.process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: p; }
.process > li { counter-increment: p; background: var(--white); border-radius: var(--r-tile); padding: 1.75rem; }
.section--white .process > li { background: var(--paper); }
.process > li::before {
  content: counter(p, decimal-leading-zero); display: block; margin-bottom: 1rem;
  font-family: var(--display); font-weight: 700; font-size: var(--t-xl); color: var(--blue);
}
.process p { margin-top: 0.5rem; color: var(--text-2); }
.process .caps { margin-top: 1rem; }
@media (max-width: 60rem) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .process { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Before / after ----------
   <div class="ba"><div class="ba-col ba-before"><h3>…</h3><ol class="steps-v">…</ol></div>
                   <div class="ba-col ba-after">…</div></div> */

.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.ba-col { border-radius: var(--r-tile); padding: clamp(1.5rem, 3vw, 2.25rem); }
.ba-col h3 { margin-bottom: 1.5rem; }
.ba-before { background: var(--white); border: 1.5px dashed var(--line-strong); }
.ba-after { background: var(--white); border: 1.5px solid var(--blue); }
.ba-label { display: inline-block; margin-bottom: 0.75rem; font-family: var(--display); font-weight: 700; font-size: var(--t-sm); color: var(--text-3); }
.ba-after .ba-label { color: var(--blue); }
@media (max-width: 48rem) { .ba { grid-template-columns: minmax(0, 1fr); } }

/* ---------- CTA band ---------- */

.cta-band { background: var(--blue); color: var(--white); padding-block: var(--section); border-radius: 0; }
.cta-band h2 { max-width: 22ch; }
.cta-band p { margin-top: 1.25rem; font-size: var(--t-lg); line-height: 1.5; color: var(--on-blue-2); max-width: 38rem; }
.cta-band .caps li { color: var(--white); }
.cta-band .caps li::before { background: var(--coral); }

/* ---------- Prose (legal pages) ---------- */

.prose { max-width: 42rem; color: var(--text-2); }
.prose h2 { font-size: var(--t-lg); color: var(--black); margin: 2.5rem 0 0.75rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-top: 0.75rem; }
.prose li + li { margin-top: 0.375rem; }
.prose p + ul, .prose ul + p { margin-top: 0.9em; }
.prose .updated { font-size: var(--t-sm); color: var(--text-3); }

/* ---------- Footer ---------- */

.site-footer { background: var(--white); padding-top: 4rem; font-size: var(--t-sm); color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.footer-brand p { margin-top: 1rem; max-width: 18rem; }
.site-footer h2 { font-size: var(--t-sm); margin-bottom: 0.875rem; color: var(--black); }
.site-footer li + li { margin-top: 0.5rem; }
.site-footer a:not(.logo) { color: var(--text-2); text-decoration: none; }
.site-footer a:not(.logo):hover { color: var(--blue); text-decoration: underline; }
.site-footer address { font-style: normal; }
.site-footer address + p { margin-top: 0.5rem; }
.footer-base { margin-top: 3.5rem; padding-block: 1.5rem; border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--text-3); }
@media (max-width: 52rem) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 1.25rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* 05-consent.css */
/* Cookie consent notice (site/assets/consent.js). Shared with wiselink.dev — keep identical.
   Deliberately small: a corner card that never blocks or covers page content. */

.consent {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: min(21rem, calc(100vw - 2rem));
}
.consent[hidden] { display: none; }
.consent-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem 0.875rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 6px 18px rgba(0, 20, 80, 0.12);
}
.consent-inner p { flex: 1 1 100%; margin: 0; font-size: var(--t-xs); line-height: 1.45; color: var(--text-2); }
.consent-actions { display: flex; gap: 0.375rem; }
.consent-actions .btn { min-height: 2.25rem; padding: 0.375rem 0.875rem; font-size: var(--t-xs); }

/* Footer "Cookie settings" — a button styled like the footer links. */
.footer-link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.footer-link-btn:hover { color: var(--blue); text-decoration: underline; }

/* 10-corporate.css */
/* Corporate components shared across pages: business-area cards and fact lists.
   One master visual system (blue tiles, coral shapes); the two business cards
   differ only subtly — Automation is structured (grid lines, chevrons),
   Branding is more product-like (stacked half-discs, a large disc).

   ---------- Business-area card ----------
   A third business area is added by appending one more <article> to .biz-grid;
   the grid reflows on its own. Give it a modifier (biz-card--<area>) only if
   its visual band needs its own shapes. Card titles are <h3> under a section
   <h2>, or <h2> when the page has no other section heading.

   <div class="biz-grid">
     <article class="biz-card biz-card--automation">        (+ biz-card--compact)
       <div class="biz-card-visual" aria-hidden="true">
         <svg><use href="/icons.svg#i-workflow"/></svg>
       </div>
       <div class="biz-card-body">
         <p class="biz-card-label">Category</p>
         <h3 class="biz-card-title">WiseLink Name</h3>
         <p class="biz-card-desc">One-sentence value proposition.</p>
         <ul class="caps caps--cols biz-card-caps"><li>Capability</li>…</ul>   (optional)
         <div class="biz-card-foot">
           <a class="btn btn-primary" href="https://…">Explore Name</a>
           <span class="biz-card-site">domain.example</span>                    (optional)
         </div>
       </div>
     </article>
   </div> */

.biz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.25rem;
}

.biz-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-tile);
  overflow: hidden;
}
.section--white .biz-card { background: var(--paper); }

.biz-card-visual {
  position: relative; overflow: hidden;
  height: clamp(7.5rem, 5rem + 6vw, 10rem);
  margin: 0.625rem 0.625rem 0;
  border-radius: 18px;
  background-color: var(--blue);
  color: var(--coral);
}
.biz-card-visual svg { position: absolute; fill: currentColor; }

/* Automation: a quiet line grid and the chevron shape, aligned to the grid. */
.biz-card--automation .biz-card-visual {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
}
.biz-card--automation .biz-card-visual svg {
  left: 1.5rem; top: 50%; width: auto; height: 56%; aspect-ratio: 1;
  transform: translateY(-50%);
}

/* Branding: stacked half-discs and a large disc rising from the bottom edge. */
.biz-card--branding .biz-card-visual svg {
  right: 1.5rem; top: 50%; width: auto; height: 64%; aspect-ratio: 1;
  transform: translateY(-50%);
}
.biz-card-disc {
  position: absolute; left: 1.5rem; bottom: 0;
  width: clamp(6rem, 4rem + 6vw, 8.5rem); aspect-ratio: 1;
  border-radius: 50%; background: var(--coral);
  transform: translateY(50%);
}

.biz-card-body {
  display: flex; flex-direction: column; flex: 1;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.biz-card-label {
  font-family: var(--display); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue);
}
.biz-card-title { margin-top: 0.5rem; font-size: var(--t-xl); line-height: 1.2; letter-spacing: -0.01em; }
.biz-card-desc { margin-top: 0.75rem; color: var(--text-2); max-width: 34rem; }
.biz-card-caps { margin-top: 1.5rem; color: var(--text-2); }
.biz-card-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem;
  margin-top: auto; padding-top: 2rem;
}
.biz-card-site { font-size: var(--t-sm); color: var(--text-3); }

.biz-card--compact .biz-card-visual { height: clamp(5.5rem, 4rem + 4vw, 7rem); }
.biz-card--compact .biz-card-foot { padding-top: 1.5rem; }

/* ---------- Facts list ----------
   <dl class="facts"><div><dt>Location</dt><dd>Eindhoven, Netherlands</dd></div></dl> */

.facts { max-width: 30rem; border-top: 1px solid var(--line); }
.facts > div {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1.5rem;
  padding-block: 0.875rem; border-bottom: 1px solid var(--line);
}
.facts dt { font-family: var(--display); font-size: var(--t-sm); font-weight: 600; color: var(--text-3); }
.facts dd { margin: 0; font-weight: 500; color: var(--black); overflow-wrap: anywhere; }

@media (max-width: 30rem) {
  .biz-card-foot .btn { width: 100%; white-space: normal; text-align: center; }
}

/* 20-home.css */
/* Homepage (site/pages/index.html). Selectors are home-specific:
   .home-*, .brand-comp (hero composition), .routes / .route (business routing). */

/* ---------- Hero ---------- */

.home-hero { padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(3.5rem, 2rem + 5vw, 7rem); }
.home-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem); align-items: center;
}
.home-hero h1 { max-width: 16ch; font-size: clamp(2.375rem, 1.6rem + 2.9vw, 3.75rem); }
.home-hero .lead { margin-top: 1.5rem; }
.home-hero-meta { margin-top: 1.75rem; font-size: var(--t-sm); color: var(--text-3); }

@media (min-width: 60rem) {
  .home-hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}

/* Brand composition: blue tiles with coral brand shapes, plus the drop mark.
   Decorative and static (aria-hidden, no motion). 3×3 grid:
   mark spans 2×2, two single tiles on the right, a white tile and a wide tile below. */
.brand-comp {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.4vw, 0.875rem);
  width: 100%; max-width: 30rem; aspect-ratio: 1;
  justify-self: center;
}
.brand-comp-cell {
  display: grid; place-items: center; min-width: 0; min-height: 0;
  border-radius: clamp(14px, 2.6vw, var(--r-tile));
  background: var(--blue); color: var(--coral);
}
.brand-comp-cell svg { width: 54%; height: 54%; fill: currentColor; }

.brand-comp-mark { grid-column: 1 / 3; grid-row: 1 / 3; color: var(--white); }
.brand-comp-mark svg { width: 42%; height: 42%; }
.brand-comp-a { grid-column: 3; grid-row: 1; }
.brand-comp-b { grid-column: 3; grid-row: 2; }
.brand-comp-c { grid-column: 1; grid-row: 3; background: var(--white); border: 1px solid var(--line); color: var(--blue); }
.brand-comp-d { grid-column: 2 / 4; grid-row: 3; }
.brand-comp-d svg { width: auto; aspect-ratio: 1; }

@media (max-width: 59.99rem) {
  .brand-comp { max-width: 22rem; justify-self: start; }
}

/* ---------- Operating philosophy ---------- */

.home-ops { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line-strong); }
.home-ops h3 { margin-bottom: 0.625rem; color: var(--black); }

/* ---------- Business routing (inside .cta-band) ---------- */

.routes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem; margin-top: 2.5rem;
}
.route {
  display: flex; flex-direction: column; gap: 0.375rem; min-width: 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: var(--r-tile);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white); text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.route:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); color: var(--white); }
.route-need { font-family: var(--display); font-size: var(--t-xl); font-weight: 700; line-height: 1.2; }
.route-what { color: var(--on-blue-2); }
.route-dest {
  display: inline-flex; align-items: center; gap: 0.625rem; margin-top: 0.875rem;
  font-family: var(--display); font-size: var(--t-sm); font-weight: 700;
  text-decoration: underline; text-underline-offset: 0.2em; overflow-wrap: anywhere;
}
/* Coral marker (shape only, never text) */
.route-dest::before {
  content: ""; flex: none; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--coral);
}

.cta-band .routes-other { margin-top: 2rem; font-size: var(--t-md); }
.cta-band .routes-other a { color: var(--white); font-weight: 600; }
.cta-band .routes-other a:hover { color: var(--blue-tint); }

/* 30-pages.css */
/* Inner pages: /businesses, /about, legal pages and 404.
   Most layout comes from base (.page-hero, .split, .section-head) and
   10-corporate.css (.biz-grid, .biz-card, .facts). */

/* Page hero kicker sits closer to the heading than in sections. */
.page-hero .kicker { margin-bottom: 0.75rem; }
.page-hero .lead a { font-weight: 500; }

/* Section headings in a .split column stay compact. */
.split > h2 { max-width: 16ch; }

/* /about: facts list with the contact action below. */
.split .facts + .actions { margin-top: 1.75rem; }

/* 40-forms.css */
/* Forms and the /contact page layout.
   Error red #b42318 is used instead of coral: coral fails text contrast. */

/* ---------- Contact layout ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 56rem) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

.contact-aside { display: grid; gap: 2rem; }
.contact-aside-title { font-size: var(--t-md); line-height: 1.3; letter-spacing: 0; margin-bottom: 0.625rem; }
.contact-block p { color: var(--text-2); }
.contact-block a { font-weight: 500; overflow-wrap: anywhere; }

/* Direct links to the business-area websites */
.contact-links { display: grid; gap: 0.625rem; margin-top: 1rem; }
.contact-link {
  display: flex; flex-direction: column; gap: 0.125rem;
  padding: 1rem 1.25rem; border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); text-decoration: none;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.contact-link:hover { border-color: var(--blue); background: var(--blue-tint); }
.contact-block .contact-link { font-weight: 400; }
.contact-link-name { font-family: var(--display); font-weight: 700; color: var(--blue); }
.contact-link-meta { font-size: var(--t-sm); color: var(--text-3); overflow-wrap: anywhere; }

/* ---------- Form ---------- */

.form { display: grid; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 40rem) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
}

.field { display: flex; flex-direction: column; gap: 0.4375rem; min-width: 0; }
.field label {
  font-family: var(--display); font-weight: 600; font-size: var(--t-sm);
  line-height: 1.35; color: var(--black);
}
.field .optional { font-weight: 500; color: var(--text-3); }
.field .hint { font-size: var(--t-xs); color: var(--text-3); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.6875rem 0.9375rem;
  font: inherit;
  font-size: var(--t-md);
  color: var(--black);
  background: var(--white);
  border: 1.5px solid var(--line-input);
  border-radius: var(--r-md);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.field textarea { min-height: 10rem; resize: vertical; line-height: 1.5; }
.field ::placeholder { color: var(--text-3); opacity: 1; }

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--blue) 50%),
    linear-gradient(135deg, var(--blue) 50%, transparent 50%);
  background-position: calc(100% - 1.375rem) 52%, calc(100% - 1rem) 52%;
  background-size: 0.375rem 0.375rem;
  background-repeat: no-repeat;
  cursor: pointer;
}

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--text-3); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
}
/* Keep a visible indicator in forced-colors mode, where box-shadow is dropped. */
@media (forced-colors: active) {
  .field input:focus,
  .field select:focus,
  .field textarea:focus { outline: 2px solid CanvasText; outline-offset: 2px; }
}

.field [aria-invalid="true"] { border-color: #b42318; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px #fdecea; }

.field-error { font-size: var(--t-xs); font-weight: 500; color: #b42318; }
.field-error:empty { display: none; }

/* Honeypot: off-screen, not display:none, so simple bots still fill it in. */
.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.form-privacy { font-size: var(--t-xs); color: var(--text-3); max-width: 28rem; }

/* ---------- Status message ---------- */

.form-status {
  margin-bottom: 1.5rem;
  padding: 1.125rem 1.375rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  font-size: var(--t-md);
  line-height: 1.5;
}
.form-status[hidden] { display: none; }
.form-status.is-success { background: var(--blue-tint); border-color: var(--blue); color: var(--black); }
.form-status.is-error { background: #fdecea; border-color: #b42318; color: #b42318; }

@media (max-width: 30rem) {
  .form-actions .btn { width: 100%; }
}
