/* ==========================================================================
   Sinnott Executive Consulting — Global Stylesheet
   Mobile-first, logical-property based, WCAG AA oriented.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette derived from the original logo and theme assets */
  --navy-900: #0e1021;
  --navy-800: #181b31;
  --navy-700: #22263f;
  --navy-600: #2e3350;
  --navy-500: #163967;
  --brand-700: #9d0f30;
  --brand-600: #b8123a;
  --brand-500: #d11742;
  --brand-400: #ef3d5b;
  --brand-100: #fdecef;

  /* Neutrals */
  --ink-900: #14161f;
  --ink-700: #33384a;
  --ink-600: #4b5164;
  --ink-500: #626a80;
  --line: #e2e5ec;
  --line-strong: #c9cedb;
  --surface: #ffffff;
  --surface-alt: #f6f7fa;
  --surface-tint: #eef1f6;

  /* Typography */
  --font-sans: "Source Sans 3", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;

  --fs-xs: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --fs-sm: clamp(0.88rem, 0.85rem + 0.14vw, 0.95rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --fs-lg: clamp(1.12rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-xl: clamp(1.3rem, 1.18rem + 0.6vw, 1.6rem);
  --fs-2xl: clamp(1.55rem, 1.35rem + 1vw, 2.1rem);
  --fs-3xl: clamp(1.9rem, 1.55rem + 1.7vw, 2.9rem);
  --fs-4xl: clamp(2.2rem, 1.6rem + 3vw, 3.9rem);

  /* Space + shape */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section-y: clamp(3rem, 2rem + 5vw, 6rem);
  --wrap: 1240px;
  --wrap-narrow: 860px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(14, 16, 33, 0.06), 0 2px 8px rgba(14, 16, 33, 0.05);
  --shadow: 0 4px 12px rgba(14, 16, 33, 0.08), 0 12px 28px rgba(14, 16, 33, 0.07);
  --shadow-lg: 0 10px 22px rgba(14, 16, 33, 0.1), 0 24px 56px rgba(14, 16, 33, 0.12);

  --header-h: 78px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Never use overflow:hidden/auto here — it would break position: sticky. */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink-700);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  min-height: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
svg,
iframe {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  color: var(--navy-800);
  line-height: 1.18;
  margin: 0 0 var(--space-4);
  font-weight: 700;
  letter-spacing: -0.012em;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-base); }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 var(--space-4); padding-inline-start: 1.25rem; }
li { margin-bottom: var(--space-2); }

a {
  color: var(--brand-600);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--brand-700); }

blockquote { margin: 0; }

strong { color: var(--ink-900); font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.wrap--narrow { max-width: var(--wrap-narrow); }

.section {
  padding-block: var(--section-y);
}

.section--tint { background: var(--surface-alt); }
.section--tint-2 { background: var(--surface-tint); }

.section--navy {
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(239, 61, 91, 0.22), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #dfe3ee;
}
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: #ffffff; }
.section--navy a { color: #ffbcc8; }
.section--navy a:hover { color: #ffffff; }

.skip-link {
  position: absolute;
  inset-inline-start: var(--space-4);
  inset-block-start: -100px;
  z-index: 200;
  background: var(--navy-800);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: inset-block-start 0.2s var(--ease);
}
.skip-link:focus {
  inset-block-start: var(--space-3);
  color: #fff;
}

.section-head {
  max-width: 62ch;
  margin-inline: auto;
  margin-block-end: clamp(2rem, 1rem + 3vw, 3.25rem);
  text-align: center;
}
.section-head p { color: var(--ink-600); font-size: var(--fs-lg); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-block-end: var(--space-3);
}
.section--navy .eyebrow { color: #ff93a6; }

.lead {
  font-size: var(--fs-lg);
  color: var(--ink-600);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand-600);
  --btn-fg: #ffffff;
  --btn-bd: var(--brand-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy-800);
  --btn-bd: var(--line-strong);
}
.btn--ghost:hover {
  --btn-bg: var(--navy-800);
  --btn-fg: #ffffff;
  --btn-bd: var(--navy-800);
}

.btn--light {
  --btn-bg: #ffffff;
  --btn-fg: var(--navy-800);
  --btn-bd: #ffffff;
}
.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: #ffffff;
  --btn-bd: rgba(255, 255, 255, 0.55);
}
.btn--outline-light:hover {
  --btn-bg: #ffffff;
  --btn-fg: var(--navy-800);
  --btn-bd: #ffffff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
}
.text-link .chev {
  transition: transform 0.2s var(--ease);
  display: inline-block;
}
.text-link:hover .chev { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-block-end: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.site-header.is-stuck {
  box-shadow: 0 6px 24px rgba(14, 16, 33, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.topbar {
  display: none;
  background: var(--navy-800);
  color: #c9cfe1;
  font-size: var(--fs-xs);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 38px;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #ffbcc8; }
.topbar-contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 900px) {
  .topbar { display: block; }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
  padding-block: 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
}
.brand img {
  width: clamp(170px, 34vw, 260px);
  height: auto;
  aspect-ratio: 600 / 100;
  object-fit: contain;
}

/* Desktop navigation */
.primary-nav { display: none; }

@media (min-width: 1060px) {
  .primary-nav {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
  }
  .nav-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(0.25rem, 0.8vw, 1rem);
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nav-list > li { margin: 0; position: relative; }

  .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.6rem;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy-800);
    text-decoration: none;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    position: relative;
    background: none;
    border: 0;
    font-family: inherit;
    cursor: pointer;
  }
  .nav-link::after {
    content: "";
    position: absolute;
    inset-inline: 0.6rem;
    inset-block-end: 0.28rem;
    height: 2px;
    background: var(--brand-500);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.22s var(--ease);
  }
  .nav-link:hover::after,
  .nav-link:focus-visible::after,
  .nav-item.is-active > .nav-link::after { transform: scaleX(1); }
  .nav-item.is-active > .nav-link { color: var(--brand-600); }

  .nav-caret { font-size: 0.6em; transition: transform 0.2s var(--ease); }
  .nav-item.has-menu:hover .nav-caret,
  .nav-item.has-menu:focus-within .nav-caret { transform: rotate(180deg); }

  .sub-menu {
    position: absolute;
    inset-block-start: calc(100% + 0.35rem);
    inset-inline-start: 0;
    min-width: 260px;
    list-style: none;
    margin: 0;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .nav-item.has-menu:hover > .sub-menu,
  .nav-item.has-menu:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .sub-menu li { margin: 0; }
  .sub-menu a {
    display: block;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--ink-700);
    text-decoration: none;
  }
  .sub-menu a:hover,
  .sub-menu a:focus-visible {
    background: var(--brand-100);
    color: var(--brand-700);
  }

  .header-cta { display: inline-flex; }
}

.header-cta { display: none; flex: 0 0 auto; }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1060px) {
  .nav-toggle { display: none; }
}

/* Mobile drawer */
.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(14, 16, 33, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
  z-index: 110;
}
.drawer-scrim.is-open { opacity: 1; visibility: visible; }

.mobile-drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(92vw, 380px);
  max-width: 100%;
  background: #fff;
  z-index: 120;
  transform: translateX(105%);
  transition: transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(14, 16, 33, 0.25);
}
[dir="rtl"] .mobile-drawer { transform: translateX(-105%); }
.mobile-drawer.is-open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  border-block-end: 1px solid var(--line);
}
.drawer-head img { width: 165px; height: auto; aspect-ratio: 600 / 100; }

.drawer-close {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--navy-800);
  cursor: pointer;
}
.drawer-close:hover { background: var(--brand-100); color: var(--brand-700); }

.drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: var(--space-4) var(--space-4) var(--space-6);
  -webkit-overflow-scrolling: touch;
}

.drawer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.drawer-nav > ul > li { border-block-end: 1px solid var(--line); }
.drawer-nav li { margin: 0; }

.drawer-link,
.drawer-disclosure {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 0.25rem;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-800);
  background: none;
  border: 0;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}
.drawer-link.is-active { color: var(--brand-600); }
.drawer-disclosure .nav-caret { transition: transform 0.2s var(--ease); }
.drawer-disclosure[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.drawer-sub {
  display: none;
  padding-inline-start: var(--space-3);
  padding-block-end: var(--space-3);
  border-inline-start: 2px solid var(--brand-100);
  margin-inline-start: var(--space-2);
}
.drawer-sub.is-open { display: block; }
.drawer-sub a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-600);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
}
.drawer-sub a:hover,
.drawer-sub a.is-active { color: var(--brand-600); }

.drawer-foot {
  margin-block-start: var(--space-5);
  display: grid;
  gap: var(--space-3);
}
.drawer-foot .btn { width: 100%; }
.drawer-contact {
  font-size: var(--fs-sm);
  color: var(--ink-600);
  display: grid;
  gap: var(--space-1);
}
.drawer-contact a { text-decoration: none; font-weight: 600; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  color: #e9ecf5;
  background: var(--navy-900);
  overflow: clip;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(14, 16, 33, 0.95) 0%, rgba(24, 27, 49, 0.88) 45%, rgba(24, 27, 49, 0.6) 100%);
}
.hero .wrap {
  padding-block: clamp(3.5rem, 2rem + 9vw, 7.5rem);
  position: relative;
}
.hero-content { max-width: 40rem; }
.hero h1 { color: #fff; margin-block-end: var(--space-5); }
.hero h1 .accent {
  display: block;
  color: var(--brand-400);
  font-style: italic;
}
.hero p { font-size: var(--fs-lg); color: #cdd3e4; }
.hero .btn-row { margin-block-start: var(--space-6); }

.hero-stats {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  margin-block-start: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  padding-block-start: var(--space-6);
  border-block-start: 1px solid rgba(255, 255, 255, 0.18);
  max-width: 62rem;
}
.hero-stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.hero-stat .label {
  display: block;
  font-size: var(--fs-sm);
  color: #b7bfd6;
}

/* Page banner (interior pages) */
.page-banner {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--navy-800);
  color: #e6e9f3;
}
.page-banner .banner-media { position: absolute; inset: 0; z-index: -2; }
.page-banner .banner-media img { width: 100%; height: 100%; object-fit: cover; }
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(14, 16, 33, 0.94), rgba(24, 27, 49, 0.78));
}
.page-banner .wrap { padding-block: clamp(2.75rem, 2rem + 5vw, 5rem); }
.page-banner h1 { color: #fff; font-size: var(--fs-3xl); margin-block-end: var(--space-3); }
.page-banner p { color: #c6cde0; max-width: 58ch; font-size: var(--fs-lg); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.breadcrumb li { margin: 0; color: #9aa4c0; }
.breadcrumb a { color: #ffbcc8; text-decoration: none; font-weight: 700; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: #6b7599; }

/* --------------------------------------------------------------------------
   7. Grids and cards
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: clamp(1rem, 0.6rem + 1.5vw, 2rem);
}
.grid > * { min-width: 0; }

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
  min-width: 0;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.card h3 { margin-block-end: var(--space-3); }
.card p { color: var(--ink-600); }
.card .text-link { margin-block-start: auto; padding-block-start: var(--space-4); }

.card--flat { box-shadow: none; }
.card--flat:hover { transform: none; box-shadow: var(--shadow-sm); }

.card-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand-100);
  margin-block-end: var(--space-4);
}
.card-icon img { width: 32px; height: 32px; object-fit: contain; }

.card-num {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-pill);
  background: var(--navy-800);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-block-end: var(--space-4);
}

.card--media { padding: 0; overflow: hidden; }
.card--media .media { margin: 0; }
.card--media .card-body { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); display: flex; flex-direction: column; flex: 1 1 auto; }

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-tint);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--3x2 { aspect-ratio: 3 / 2; }

.tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-100);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-block-end: var(--space-3);
}

/* Split feature rows */
.split {
  display: grid;
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--media-end .split-media { order: 2; }
}
.split > * { min-width: 0; }
.split-media .media { box-shadow: var(--shadow); }

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  display: grid;
  gap: var(--space-3);
}
.check-list li {
  position: relative;
  padding-inline-start: 2rem;
  margin: 0;
}
.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--brand-500);
  transform: rotate(45deg);
}
.section--navy .check-list li::before { background: var(--brand-400); }

/* --------------------------------------------------------------------------
   8. Quotes and testimonials
   -------------------------------------------------------------------------- */
.quote-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--brand-500);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.quote-card blockquote {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--navy-800);
  line-height: 1.5;
}
.quote-card figcaption {
  font-size: var(--fs-sm);
  color: var(--ink-600);
  margin-block-start: auto;
}
.quote-card figcaption .name {
  display: block;
  font-weight: 700;
  color: var(--navy-800);
  text-transform: none;
  letter-spacing: 0;
}

.pull-quote {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-style: italic;
  line-height: 1.45;
  color: var(--navy-800);
  border-inline-start: 4px solid var(--brand-500);
  padding-inline-start: clamp(1rem, 0.6rem + 1.5vw, 1.75rem);
  margin-block: var(--space-5);
}
.section--navy .pull-quote { color: #fff; border-color: var(--brand-400); }

/* --------------------------------------------------------------------------
   9. Comparison table
   -------------------------------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
table.compare {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
table.compare caption {
  caption-side: top;
  text-align: start;
  padding: var(--space-4);
  font-weight: 700;
  color: var(--ink-600);
  font-size: var(--fs-sm);
}
table.compare th,
table.compare td {
  padding: 0.9rem 1rem;
  text-align: start;
  border-block-end: 1px solid var(--line);
  vertical-align: top;
}
table.compare thead th {
  background: var(--navy-800);
  color: #fff;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
table.compare tbody tr:nth-child(even) { background: var(--surface-alt); }
table.compare tbody th { font-weight: 700; color: var(--navy-800); }

/* --------------------------------------------------------------------------
   10. Accordions (FAQ / disclosures)
   -------------------------------------------------------------------------- */
.accordion {
  display: grid;
  gap: var(--space-3);
}
.acc-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  min-height: 56px;
  padding: 1rem 1.25rem;
  background: none;
  border: 0;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--navy-800);
  text-align: start;
  cursor: pointer;
}
.acc-trigger:hover { background: var(--surface-alt); }
.acc-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}
.acc-trigger[aria-expanded="true"] .acc-icon { transform: rotate(45deg); }
.acc-panel {
  padding: 0 1.25rem 1.25rem;
  color: var(--ink-600);
}
.acc-panel[hidden] { display: none; }

/* --------------------------------------------------------------------------
   11. Lists of links / directories
   -------------------------------------------------------------------------- */
.pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.pill-list li { margin: 0; }
.pill-list li span,
.pill-list li a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: var(--fs-sm);
  color: var(--ink-700);
  text-decoration: none;
}
.pill-list li a:hover { border-color: var(--brand-500); color: var(--brand-700); }

.book-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.book-list li {
  margin: 0;
  padding-inline-start: 1.1rem;
  position: relative;
  font-size: var(--fs-sm);
  color: var(--ink-600);
}
.book-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
}
.book-list cite { font-style: italic; color: var(--navy-800); font-weight: 600; }

/* --------------------------------------------------------------------------
   12. Books / press
   -------------------------------------------------------------------------- */
.book {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 640px) {
  .book { grid-template-columns: minmax(140px, 200px) minmax(0, 1fr); }
}
.book-cover {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 3;
  background: var(--surface-tint);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   13. Forms
   -------------------------------------------------------------------------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.field-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--navy-800);
}
.field .hint { font-size: var(--fs-xs); color: var(--ink-500); font-weight: 400; }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--ink-900);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(209, 23, 66, 0.15);
  outline: none;
}
::placeholder { color: var(--ink-500); opacity: 1; }

.form-status {
  margin-block-start: var(--space-4);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--brand-100);
  color: var(--brand-700);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.form-status[hidden] { display: none; }

/* Quiz */
.quiz-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 0.75rem + 1vw, 1.75rem);
  margin: 0 0 var(--space-5);
  background: #fff;
  min-width: 0;
}
.quiz-group legend {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--navy-800);
  padding-inline: 0.5rem;
}
.quiz-row {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 1fr;
  padding-block: var(--space-3);
  border-block-end: 1px solid var(--line);
}
.quiz-row:last-child { border-block-end: 0; }
@media (min-width: 720px) {
  .quiz-row { grid-template-columns: minmax(0, 1fr) 170px; align-items: center; }
}
.quiz-row label { font-size: var(--fs-sm); color: var(--ink-700); font-weight: 600; }

.quiz-result {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5);
  border-radius: var(--radius);
  background: var(--navy-800);
  color: #dfe3ee;
}
.quiz-result .score {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  color: #fff;
}
.quiz-result p { color: #c6cde0; }

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(239, 61, 91, 0.28), transparent 65%),
    linear-gradient(140deg, var(--navy-800), var(--navy-900));
  color: #dfe3ee;
}
.cta-band .wrap {
  padding-block: clamp(2.75rem, 2rem + 4vw, 4.5rem);
  display: grid;
  gap: var(--space-5);
  align-items: center;
}
@media (min-width: 900px) {
  .cta-band .wrap { grid-template-columns: minmax(0, 1fr) auto; }
}
.cta-band h2 { color: #fff; margin-block-end: var(--space-2); }
.cta-band p { color: #c6cde0; max-width: 60ch; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: #a9b1c9;
  font-size: var(--fs-sm);
}
.footer-top {
  display: grid;
  gap: clamp(1.75rem, 1rem + 3vw, 3rem);
  padding-block: clamp(2.75rem, 2rem + 4vw, 4.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.footer-top > * { min-width: 0; }
.footer-brand img {
  width: 240px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 600 / 100;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
}
.footer-brand p { margin-block-start: var(--space-4); color: #98a1ba; }

.footer-col h2 {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-block-end: var(--space-4);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.footer-col li { margin: 0; }
.footer-col a {
  display: inline-block;
  padding-block: 0.4rem;
  color: #a9b1c9;
  text-decoration: none;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }

.footer-contact { display: grid; gap: var(--space-3); }
.footer-contact div { display: grid; gap: 0.1rem; }
.footer-contact .k {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7f89a6;
}
.footer-contact a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-contact a:hover { color: #ffbcc8; }

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-block-start: var(--space-4);
  padding: 0;
  list-style: none;
}
.social-row li { margin: 0; }
.social-row a {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #d5dae8;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.social-row a:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}
.social-row svg { width: 20px; height: 20px; fill: currentColor; }

.footer-bottom {
  border-block-start: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: #8b95b0;
}
.footer-bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   16. Back to top
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  inset-block-end: clamp(1rem, 3vw, 1.75rem);
  inset-inline-end: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--navy-800);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    visibility 0.25s, background-color 0.2s var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--brand-600); }
.back-to-top svg { width: 20px; height: 20px; fill: currentColor; }

/* --------------------------------------------------------------------------
   17. Modal
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: var(--space-4);
  background: rgba(14, 16, 33, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-dialog {
  width: min(100%, 560px);
  max-height: min(85vh, 720px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.25s var(--ease);
}
.modal.is-open .modal-dialog { transform: translateY(0) scale(1); }
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}
.modal-head h2 { font-size: var(--fs-xl); margin-block-end: var(--space-2); }
.modal-close {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--navy-800);
  cursor: pointer;
}
.modal-close:hover { background: var(--brand-100); color: var(--brand-700); }

/* Scroll containment for overlays. We deliberately do NOT set overflow on
   html or body — that would disable the sticky header. */
.mobile-drawer,
.modal,
.modal-dialog,
.drawer-body {
  overscroll-behavior: contain;
}

/* --------------------------------------------------------------------------
   18. Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-6 { margin-block-start: var(--space-6); }
.mt-5 { margin-block-start: var(--space-5); }
.mb-0 { margin-block-end: 0; }
.stack { display: grid; gap: var(--space-4); }
.stack-lg { display: grid; gap: var(--space-6); }
.prose > * + * { margin-block-start: var(--space-4); }
.prose h3 { margin-block-start: var(--space-6); }
