/* ==========================================================================
   Immalex — design tokens
   Load this BEFORE any other custom stylesheet. Every page we upgrade reads
   from here, so a colour change happens once, not in six files.
   ========================================================================== */

:root {
  /* Surfaces — cool concrete, so photography and the brand blue both sit well */
  --ims-paper:      #ffffff;
  --ims-surface:    #f4f6f8;
  --ims-surface-2:  #eaeef2;
  --ims-deep:       #0f1c26;

  /* Rules — hairlines carry the structure across every section */
  --ims-rule:       #dde4ea;
  --ims-rule-dark:  rgba(255, 255, 255, 0.14);

  /* Ink */
  --ims-ink:        #16232e;
  --ims-ink-soft:   #6a7b88;
  --ims-ink-invert: #ffffff;
  --ims-ink-invert-soft: rgba(255, 255, 255, 0.66);

  /* Brand — the existing site blue, plus a darker tone for hover states */
  --ims-brand:      #1c94dc;
  --ims-brand-dark: #12699c;
  --ims-brand-tint: #e6f2fb;

  /* Rhythm */
  --ims-section:    90px;
  --ims-section-sm: 60px;

  --ims-gap-xs: 8px;
  --ims-gap-sm: 14px;
  --ims-gap-md: 24px;
  --ims-gap-lg: 40px;

  /* Type */
  --ims-eyebrow-size: 11px;
  --ims-eyebrow-track: 0.2em;
}

/* Shared primitives ------------------------------------------------------- */

.ims-eyebrow {
  margin: 0 0 10px;
  font-size: var(--ims-eyebrow-size);
  font-weight: 700;
  letter-spacing: var(--ims-eyebrow-track);
  text-transform: uppercase;
  color: var(--ims-brand);
}

.ims-title {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--ims-ink);
}

.ims-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ims-ink-soft);
}

.ims-link {
  font-weight: 600;
  color: var(--ims-brand);
}

.ims-link:hover,
.ims-link:focus {
  color: var(--ims-ink);
  text-decoration: none;
}

/* Buttons — one set, used on every page ----------------------------------- */

.ims-btn {
  display: inline-block;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.ims-btn--solid {
  color: var(--ims-ink-invert);
  background: var(--ims-brand);
}

.ims-btn--solid:hover,
.ims-btn--solid:focus {
  color: var(--ims-ink-invert);
  background: var(--ims-brand-dark);
  text-decoration: none;
}

/* For dark backgrounds */
.ims-btn--ghost {
  color: var(--ims-ink-invert);
  border-color: rgba(255, 255, 255, 0.34);
}

.ims-btn--ghost:hover,
.ims-btn--ghost:focus {
  color: var(--ims-ink);
  background: var(--ims-ink-invert);
  text-decoration: none;
}

/* For light backgrounds */
.ims-btn--outline {
  color: var(--ims-ink);
  border-color: var(--ims-ink);
}

.ims-btn--outline:hover,
.ims-btn--outline:focus {
  color: var(--ims-ink-invert);
  background: var(--ims-ink);
  text-decoration: none;
}

.ims-btn:focus-visible,
.ims-link:focus-visible {
  outline: 2px solid var(--ims-brand);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .ims-btn { transition: none; }
}

/* Page banner — used by every inner page --------------------------------- */

.ims-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 340px;
  padding: 110px 0 44px;
  background-color: var(--ims-deep);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.ims-banner__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 28, 38, 0.92) 0%,
    rgba(15, 28, 38, 0.55) 100%
  );
}

.ims-banner__inner {
  position: relative;
}

.ims-banner__title {
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--ims-ink-invert);
}

.ims-banner__lead {
  max-width: 560px;
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ims-ink-invert-soft);
}

.ims-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  list-style: none;
  color: var(--ims-ink-invert-soft);
}

.ims-crumbs li + li::before {
  content: '/';
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.4);
}

.ims-crumbs a {
  color: var(--ims-ink-invert-soft);
}

.ims-crumbs a:hover,
.ims-crumbs a:focus {
  color: var(--ims-brand);
  text-decoration: none;
}

@media (max-width: 767px) {
  .ims-title { font-size: 26px; }

  .ims-banner {
    min-height: 0;
    padding: 90px 0 34px;
  }

  .ims-banner__title { font-size: 26px; }
  .ims-banner__lead  { font-size: 15px; }
}

@media (max-width: 991px) {
  .ims-banner__title { font-size: 32px; }
}
