/* ==========================================================================
   Orbit — header, footer, CTA band, breadcrumbs, cards, shared page furniture
   Version: 1.4.3
   ========================================================================== */

/* ---- Hello Elementor's header and footer constraints -------------------

   The parent theme boxes BOTH bands at 1140px:

     .site-header:not(.dynamic-header),
     .site-footer:not(.dynamic-footer) { width:100%; margin-inline:auto }
     @media (min-width:1200px) { ... max-width: 1140px }

   .dynamic-header / .dynamic-footer are the classes Hello adds when
   Elementor's Theme Builder supplies the band. We build ours in PHP, so we
   never carried them and the constraint applied — which is why the header sat
   in a 1140px white box and the footer in a 1140px dark box while every
   Elementor section ran the full viewport. Measured on the live page: both
   bands exactly 390px to 1530px in a 1920px viewport.

   The selectors below match Hello's specificity (0,2,0) and load after it.
   They are written in the same shape as the rules they counter, so the reason
   is legible at the point of the override rather than in a commit message.
   W-08 defect L-07. */
.site-header:not(.dynamic-header),
.site-footer:not(.dynamic-footer) {
  max-width: none;
  width: 100%;
}

/* ---- Header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  /* Paper, not white. The design replaces pure white as the page ground
     everywhere, and a white header over a paper hero draws a seam that is not
     in the artboards. W-09 §7. */
  background: var(--paper);
  border-bottom: 0;
  transition: box-shadow var(--d-micro) var(--ease);

  /* Hello's header-footer.css makes .site-header a flex row with
     justify-content:space-between and 1rem of block padding. That turned
     .site-header__inner into a shrink-to-fit flex item, so the logo, the
     navigation and the CTA bunched together in the middle instead of the
     inner spanning 1280px with space between them. W-08 defect L-08. */
  display: block;
  padding-block: 0;
}
.site-header.is-scrolled { box-shadow: var(--e-1); }

/* W-06 P2-7 — min-height, never height. A fixed height on a row containing
   text breaks SC 1.4.12 the moment a visitor increases spacing. */
.site-header__inner {
  max-width: var(--container); margin-inline: auto;
  padding-inline: clamp(20px, 3vw, 24px);
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap;
  transition: min-height var(--d-micro) var(--ease);
}
.site-header.is-scrolled .site-header__inner { min-height: var(--header-h-sm); }

/* The lockup is the supplied artwork. Height is what is set — the intrinsic
   width and height on the element keep the aspect ratio and stop the header
   reflowing while it loads. W-10 §8. */
.site-logo { display: inline-flex; align-items: center; text-decoration: none; }
.site-logo:hover { text-decoration: none; }
.site-logo__img { display: block; width: auto; height: 40px; }
.site-header.is-scrolled .site-logo__img { height: 34px; }
.offcanvas .site-logo__img { height: 34px; }
@media (max-width: 480px) { .site-logo__img { height: 32px; } }

/* Only reached if the artwork is missing. */
.site-logo__word {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  letter-spacing: .06em; color: var(--ink); text-transform: uppercase;
}
.on-dark .site-logo__word { color: var(--white); }

.primary-nav { display: none; }
@media (min-width: 1025px) { .primary-nav { display: block; } }
/* 18px, and the gap breathes with the viewport rather than stepping. */
.primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: flex-end;
  gap: clamp(16px, 2vw, 32px);
}
.primary-nav a {
  display: inline-block; padding: var(--s-3) 0;
  font-size: var(--t-body); font-weight: 400; color: var(--ink);
  text-decoration: none; border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.primary-nav a:hover { color: var(--primary-hover); border-bottom-color: var(--primary); }
/* Current page: underline AND weight change — never colour alone. */
.primary-nav .current-menu-item > a,
.primary-nav [aria-current="page"] {
  font-weight: 600; color: var(--ink); border-bottom-color: var(--primary);
}

.site-header__cta { display: none; }
@media (min-width: 1025px) { .site-header__cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; flex: none;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: var(--r-input); cursor: pointer;
}
.nav-toggle:hover { background: var(--mist); }
@media (min-width: 1025px) { .nav-toggle { display: none; } }

/* ---- Breadcrumbs ------------------------------------------------------ */
.breadcrumb { font-size: var(--t-small); }
.breadcrumb ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--s-2); color: var(--slate);
}
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 500; }

/* ---- Page hero (interior pages) --------------------------------------- */
.page-hero {
  padding: var(--s-8) var(--page-pad) var(--s-7);
  border-bottom: 1px solid var(--line);
}
.page-hero__inner {
  max-width: var(--container); margin-inline: auto;
  display: flex; flex-direction: column; gap: var(--s-5);
}
.page-hero__lead { font-size: var(--t-lead); line-height: 1.55; max-width: var(--measure); }
.eyebrow {
  display: inline-block; font-size: var(--t-small); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--primary);
}

/* ---- CTA band --------------------------------------------------------- */
.cta-band {
  background: var(--gradient-safe);   /* text-safe ramp only — never the display gradient */
  color: var(--white);
  padding-block: clamp(72px, 8vw, 96px);
  position: relative; overflow: hidden;
}
.cta-band__inner {
  position: relative; z-index: 1;
  max-width: min(var(--container), 900px);
  margin-inline: auto; padding-inline: clamp(20px, 3vw, 24px);
  display: flex; flex-direction: column; gap: var(--s-5); align-items: flex-start;
}
/* The glow the artboard paints behind the band, offset left and running off
   the top edge. A background on a pseudo-element, so overflow clips it. */
.cta-band::after {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: no-repeat 20% -280px / 760px 760px
    radial-gradient(circle at 50% 50%, rgba(111,217,180,.28) 0%, rgba(111,217,180,0) 62%);
}
.cta-band h2 { font-size: var(--t-h2); font-weight: 700; }
.cta-band p { max-width: var(--measure); font-size: var(--t-lead); }

/* ---- Cards / tiles ---------------------------------------------------- */
.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: var(--s-6); background: var(--white);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.card h3 { font-size: var(--t-h3); }

.insight-card {
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: var(--s-6); background: var(--white);
  display: flex; flex-direction: column; gap: var(--s-3);
  transition: box-shadow var(--d-micro) var(--ease);
}
.insight-card:hover { box-shadow: var(--e-2); }
.insight-card__meta { font-size: var(--t-small); color: var(--slate); }
.insight-card h3 a { text-decoration: none; color: var(--ink); }
.insight-card h3 a:hover { color: var(--primary-hover); text-decoration: underline; }

.callout {
  background: var(--mist); border-left: 4px solid var(--primary);
  border-radius: 0 var(--r-input) var(--r-input) 0;
  padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3);
}

/* ---- Footer -----------------------------------------------------------
   padding-block:0 counters Hello's header-footer.css; the rhythm below is the
   footer's own. The ring field is a clipped background on a pseudo-element,
   the same mechanism the page sections use. W-09 §8. */
.site-footer {
  background: var(--deep-2); color: var(--white);
  padding: var(--s-5) clamp(20px, 3vw, 24px) var(--s-7);
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: no-repeat center -240px / 1100px 1100px
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 1200'><g fill='none' stroke='%236FD9B4' stroke-width='1.5' opacity='0.06'><circle cx='600' cy='600' r='180'/><circle cx='600' cy='600' r='330'/><circle cx='600' cy='600' r='480'/><circle cx='600' cy='600' r='630'/></g></svg>");
}
.site-footer > * { position: relative; z-index: 1; }
.site-footer a { color: var(--mint-light); }
.site-footer a:hover { color: var(--white); }

/* The development notice is a bordered panel inside the footer's own column,
   not a full-width band across it. */
.dev-notice {
  max-width: var(--container); margin-inline: auto;
  border: 1px solid rgba(143, 227, 198, .35);
  border-radius: var(--r-card);
  padding: 20px 24px;
  margin-bottom: var(--s-7);
  background: none;
}
.dev-notice__inner {
  margin: 0; font-size: var(--t-small); line-height: var(--lh-body);
  color: var(--white); max-width: 900px;
}

.gpc-notice {
  max-width: var(--container); margin: 0 auto var(--s-5);
  border: 1px solid rgba(143, 227, 198, .35);
  border-radius: var(--r-card);
  padding: 20px 24px;
  font-size: var(--t-small);
}
.gpc-notice__inner { max-width: 900px; }

.footer-cols {
  max-width: var(--container); margin-inline: auto;
  padding: 0;
  display: grid; gap: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Sora 600 at body size — a column label, not a small-caps eyebrow. It stays
   an <h2> for the same reason the nav stays a list: the outline is what a
   screen-reader user navigates by. */
.footer-col h2 {
  font-family: var(--font-display);
  font-size: var(--t-body); font-weight: 600; letter-spacing: 0;
  text-transform: none; color: var(--white); margin: 0 0 var(--s-3);
}
/* These three rules were lost when the footer was rewritten for 1.2.0, which
   is why every footer link came back with a disc marker and a browser's
   default indent. A navigation list is a list for the outline's sake, never
   for the bullet. W-09 §11 · defect L-13. */
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.footer-col li { margin: 0; }
.footer-col address { font-style: normal; font-size: var(--t-small); line-height: 1.8; color: var(--white); }
.footer-col a { font-size: var(--t-small); }

/* "Cookie preferences" is a real button, styled exactly like the links
   beside it — same size, weight and colour. Withdrawing consent must be as
   easy as giving it. */
.link-button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--mint-light);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.link-button:hover { color: var(--white); text-decoration-thickness: 2px; }

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, .18);
  margin-top: var(--s-7); padding: var(--s-5) 0 0;
  font-size: var(--t-small); color: var(--white);
}
.footer-base__inner {
  max-width: var(--container); margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between;
}

/* ---- Accessibility widget clearance -----------------------------------
   The bottom-right 96×96px belongs to the accessibility widget on every
   breakpoint. Nothing else may enter it. */
body { --reserved-corner: var(--widget-zone); }

/* ---- Decorative artwork slots ------------------------------------------
   A13 on the 404 and the empty Insights index. Both are decorative: the
   heading beside them already says what they say. */
.page-hero__art {
  display: block;
  max-width: 340px;
  margin-bottom: var(--s-5);
  opacity: .9;
}
.page-hero__art svg { width: 100%; height: auto; }

.empty-state {
  display: grid;
  gap: var(--s-6);
  justify-items: start;
  max-width: var(--measure);
}
.empty-state__art { display: block; width: 100%; max-width: 420px; }
.empty-state__art svg { width: 100%; height: auto; }

/* ---- Accessibility widget ----------------------------------------------
   INSULATION.

   The widget mounts on <html>, outside <body>, so page-wide filters cannot
   reach it — and its own reset is written with :where(), which has ZERO
   specificity. That is fine on a site with no element-level styles. Hello
   Elementor is not such a site. Its reset.css says, among other things:

     [type=button], [type=submit], button {
       border: 1px solid #c36; color: #c36; padding: .5rem 1rem; ... }
     button:hover, button:focus { background-color: #c36; color: #fff; }
     a { color: #c36 } a:hover { color: #336 }
     input, select, textarea { border: 1px solid #666; padding: .5rem 1rem;
       width: 100% }

   At (0,0,1) every one of those beats the widget's (0,0,0) reset, which
   produced three separate reported faults from one cause:

     · the pink rings around every switch, dropdown and close button — #c36;
     · the trigger's glyph squashed to 15 x 26 inside a 56px button, because
       .5rem 1rem left a 24 x 40 content box;
     · panel text turning white and vanishing on hover, because
       button:hover sets color:#fff and the widget's own hover rules only
       change background, so the white survived on a light surface.

   The reset below re-asserts what the widget intended, at exactly (0,0,1):
   :where() zeroes the id, the bare element carries the weight. That is high
   enough to beat Hello's element rules — ours loads after — and low enough
   that every .aw-* class rule the widget writes still wins, so the widget
   keeps control of its own appearance. W-10 §10 · defect L-22. */
:where(#aw-widget-root) :is(div, span, p, h1, h2, h3, h4, h5, h6,
                            ul, ol, li, dl, dt, dd, section, header, footer,
                            nav, form, fieldset, legend, label, small, strong) {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  background: none;
}

:where(#aw-widget-root) :is(button, input, select, textarea) {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  width: auto;
  font: inherit;
  color: inherit;
  background: none;
  text-align: inherit;
  text-transform: none;
  white-space: normal;
  box-shadow: none;
}

/* The same reset again at (0,1,0), and the extra weight is the whole point.
   Hello does not reach the trigger through `button` — it reaches it through
   `[type=button]`, and an attribute selector scores at class level. A bare
   element rule loses to it, which is why the first attempt at this block
   changed nothing and the glyph stayed squashed.
   
   (0,1,0) is also the ceiling. It ties with Hello's rule and wins on order,
   because this file loads after the parent theme's; it ties with the widget's
   own .aw-* rules and LOSES on order, because the widget injects its styles at
   runtime, after every stylesheet in the head. So the parent theme is shut out
   and the widget keeps control of itself — which is the only arrangement that
   is stable when either of them changes. */
:where(#aw-widget-root) :where(button, input, select, textarea)[type] {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  width: auto;
  font: inherit;
  color: inherit;
  background: none;
  text-align: inherit;
  text-transform: none;
  white-space: normal;
  box-shadow: none;
}

/* Hello turns buttons pink on hover with white text. Only the COLOUR is reset
   here, and dropping `background` from this rule is the correction to my own
   first attempt: at (0,2,0) it outranked the widget's `.aw-trigger` background
   at (0,1,0), so hovering or focusing the trigger stripped its green circle
   and left a white glyph floating on the page.
   
   Background does not need resetting anyway — every widget control that can be
   hovered defines its own hover background at (0,2,0), which ties with Hello's
   and wins on order. The trigger is the single exception, handled below. */
:where(#aw-widget-root) :is(button, input, select, textarea):is(:hover, :focus) {
  color: inherit;
}
:where(#aw-widget-root) :where(button, input, select, textarea)[type]:is(:hover, :focus) {
  color: inherit;
}

/* Background, on :focus only.
   
   On :hover every widget control defines its own background, which ties with
   Hello's and wins on order — so a hover reset is unnecessary and, as above,
   actively harmful. On :focus the widget defines nothing, so Hello's pink went
   straight through: the close button sat filled with #c36 from the moment the
   panel opened, because the widget moves focus to it. */
:where(#aw-widget-root) :is(button, input, select, textarea):focus,
:where(#aw-widget-root) :where(button, input, select, textarea)[type]:focus {
  background-color: transparent;
}

/* The trigger is the one control the widget paints at rest and leaves alone on
   hover — its hover rule changes only transform and shadow. That leaves Hello's
   pink hover background (0,2,0) outranking the widget's accent (0,1,0), which
   is why the button turned pink when the pointer touched it. Restored from the
   widget's own custom property rather than a copied hex, so re-theming the
   widget still re-themes this. */
#aw-widget-root .aw-trigger:is(:hover, :focus, :focus-visible) {
  background: var(--aw-accent);
  color: #fff;
}

:where(#aw-widget-root) a,
:where(#aw-widget-root) a:is(:hover, :active, :focus) {
  color: inherit;
  text-decoration: none;
  background: none;
}

/* Hand the focus ring back to the widget: Hello paints a black outline with a
   white halo, which is wrong on the widget's own surfaces and inconsistent
   with the accent ring it uses everywhere else. */
:where(#aw-widget-root) :is(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: none;
}

:where(#aw-widget-root) svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The trigger glyph, deliberately larger than the widget's 56% default. The
   button stays 56px, so the target size is untouched. */
#aw-widget-root .aw-trigger svg {
  width: 66%;
  height: 66%;
  stroke-width: 2.1;
}
