/* ===================================================================
   OPEN TRAININGS : design system v2
   Restyled after thequantumwhale.com as the direct visual reference:
   Geist type, navy/cyan/amber on white, rounded shadowed cards, pill
   buttons and search, photographic hero carousel, sticky contact bar.
   =================================================================== */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

/* ---------- tokens ---------- */
:root{
  --navy-deep:  #002e55;
  --navy:       #004077;
  --blue:       #005294;
  --blue-mid:   #0d6fb8;
  --cyan:       #1ab0d6;
  --amber:      #f99c00;
  --green:      #22c55e;

  --bg:         #ffffff;
  --bg-tint:    #f4f9ff;
  --bg-tint-2:  #eef5ff;
  --ink:        #16181d;
  --ink-soft:   #55606e;
  --ink-faint:  #8891a0;
  --line:       #e3e9f1;

  --font-sans: "Geist", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  --w: min(1240px, 100% - 3rem);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(9,40,79,0.06);
  --shadow: 0 14px 34px -14px rgba(9,40,79,0.22);
  --shadow-lg: 0 24px 60px -20px rgba(9,40,79,0.28);
}

html{ scroll-behavior: smooth; }

body{
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 52px; /* room for the sticky contact bar */
  overflow-x: hidden; /* decorative .blob elements intentionally bleed past their section's edge */
}

::selection{ background: var(--cyan); color: #fff; }

/* ---------- type ---------- */
h1,h2,h3,h4{ font-family: var(--font-sans); font-weight: 800; letter-spacing: -0.02em; color: var(--navy-deep); line-height: 1.1; }

.display-1{ font-size: clamp(2.4rem, 4.6vw, 4.2rem); font-weight: 800; }
.display-2{ font-size: clamp(2rem, 3.2vw, 2.9rem); font-weight: 800; }
.display-3{ font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 700; }
.display-4{ font-size: clamp(1.15rem, 1.4vw, 1.3rem); font-weight: 700; }

.lede{ font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.65; color: var(--ink-soft); max-width: 48ch; }

.eyebrow{
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.eyebrow::before{ content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

em{ font-style: normal; color: var(--blue); }
.num{ font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.wrap{ width: var(--w); margin-inline: auto; }
.section{ padding: 5rem 0; }
.section--tight{ padding: 3rem 0; }
.section--tint{ background: var(--bg-tint); }
.section--navy{ background: linear-gradient(135deg, var(--navy-deep), var(--blue)); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3{ color: #fff; }
.section--navy .lede{ color: rgba(255,255,255,0.82); }
.section--navy .eyebrow{ color: var(--cyan); }

.grid{ display: grid; gap: 1.75rem; }
@media(min-width: 720px){ .grid-2{ grid-template-columns: 1fr 1fr; } .grid-4{ grid-template-columns: repeat(4,1fr); } }
@media(min-width: 860px){ .grid-3{ grid-template-columns: repeat(3,1fr); } }

.center{ text-align: center; margin-inline: auto; }

/* ---------- decorative blur blobs ---------- */
.blob{ position: absolute; border-radius: 50%; filter: blur(70px); z-index: 0; pointer-events: none; }
.blob--cyan{ background: rgba(26,176,214,0.28); }
.blob--amber{ background: rgba(249,156,0,0.22); }
.blob--blue{ background: rgba(0,82,148,0.22); }

/* ---------- buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content:center; gap: 0.55em;
  font-size: 0.94rem; font-weight: 700;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-navy{ background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-navy:hover{ background: var(--navy-deep); box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-outline{ background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover{ background: var(--bg-tint); transform: translateY(-1px); }
.btn-outline.on-navy{ background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline.on-navy:hover{ background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-white{ background: #fff; color: var(--navy-deep); box-shadow: var(--shadow-sm); }
.btn-white:hover{ box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-sm{ padding: 0.6em 1.2em; font-size: 0.82rem; }

/* ---------- navbar ---------- */
.site-header{ position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: var(--shadow-sm); }
.nav{ display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0; gap: 1.5rem; }
.wordmark{ display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }
.wordmark-badge{
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 0.95rem; letter-spacing: -0.02em;
  box-shadow: var(--shadow-sm);
}
.wordmark-text{ font-weight: 800; font-size: 1.12rem; color: var(--navy-deep); letter-spacing: -0.01em; line-height: 1.05; }
.wordmark-text small{ display: block; font-weight: 500; font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-top: 2px; }

.nav-links{ display: none; align-items: center; gap: 1.9rem; }
.nav-links > a{ font-size: 0.92rem; font-weight: 600; color: var(--ink); padding: 0.4rem 0; }
.nav-links > a:hover, .nav-links > a[aria-current="page"]{ color: var(--blue); }
.nav-item{ position: relative; }
.nav-item > button{ display:flex; align-items:center; gap:0.35em; font-size:0.92rem; font-weight:600; color: var(--ink); padding: 0.4rem 0; }
.nav-item:hover > button, .nav-item.is-open > button, .nav-item > button[aria-current="page"]{ color: var(--blue); }
.nav-caret{ font-size: 0.6rem; transition: transform .15s ease; }
.nav-item:hover .nav-caret, .nav-item.is-open .nav-caret{ transform: rotate(180deg); }
.nav-dropdown{
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 0.9rem; min-width: 260px;
  opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease;
}
.nav-item:hover .nav-dropdown, .nav-item.is-open .nav-dropdown{ opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dropdown a{ display: block; padding: 0.55rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 600; }
.nav-dropdown a:hover{ background: var(--bg-tint); color: var(--blue); }

.nav-search{ display: none; align-items: center; gap: 0.5rem; }
.nav-search input{
  width: 190px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0.55em 1.1em; font-size: 0.85rem; background: var(--bg-tint);
}
.nav-search input:focus{ outline: none; border-color: var(--blue); background: #fff; }
.nav-search button{ background: var(--blue); color: #fff; border-radius: 999px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.nav-toggle{ border: 1.5px solid var(--line); border-radius: 999px; padding: 0.5em 1em; font-size: 0.78rem; font-weight: 700; }
.nav-cta{ display: none; flex-shrink: 0; }
@media(min-width: 1020px){
  .nav-links{ display: flex; }
  .nav-search{ display: flex; }
  .nav-cta{ display: inline-flex; }
  .nav-toggle{ display: none; }
}

.mobile-panel{
  position: fixed; inset: 0; z-index: 70; background: #fff;
  transform: translateY(-100%); transition: transform .3s ease; overflow-y: auto;
}
.mobile-panel.is-open{ transform: translateY(0); }
.mobile-panel-head{ display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--line); }
.mobile-panel-links{ padding: 1.2rem 1.5rem; display: flex; flex-direction: column; }
.mobile-panel-links a{ font-size: 1.4rem; font-weight: 700; padding: 0.6rem 0; border-bottom: 1px solid var(--line); color: var(--navy-deep); }

/* ---------- hero carousel ---------- */
.hero{ position: relative; overflow: hidden; min-height: 620px; display: flex; align-items: center; }
.hero-slide{
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .7s ease;
  display: flex; align-items: center;
  width: 100%; /* without this, .is-active (position:relative) shrinks to
                   its content's width as a flex item instead of filling
                   .hero, leaving the rest of the row blank */
}
.hero-slide.is-active{ opacity: 1; visibility: visible; position: relative; }
.hero-slide-bg{
  position: absolute; inset: 0; background-size: cover; background-position: right center;
}
.hero-slide-bg::after{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #fff 0%, #fff 32%, rgba(255,255,255,0.75) 50%, rgba(255,255,255,0.15) 68%, rgba(255,255,255,0) 82%);
}
.hero-slide-inner{ position: relative; z-index: 1; padding: 6rem 0 5rem; }
/* Deliberately no width here: this element also carries the .wrap class,
   and .wrap's own `width: min(1240px, 100% - 3rem)` is what centers the
   hero text in a proper gutter instead of it sitting flush against the
   viewport edge. A `width: 100%` here (added by mistake while chasing the
   *separate* .hero-slide flex bug above) has equal CSS specificity to
   .wrap and comes later in the file, so it silently overrode .wrap's
   width and killed the centering -- this is what read as "strictly left
   aligned." .hero-slide-inner doesn't need its own width: as a flex item
   of .hero-slide it has no flex-grow, so .wrap's own width is already
   respected as-is with room to spare, no override required. */
.hero-content{ max-width: 560px; }
.hero-eyebrow{ font-weight: 700; font-size: 0.85rem; color: var(--blue); letter-spacing: 0.03em; }
.hero h1{ margin-top: 0.9rem; max-width: 14ch; }
.hero-sub{ margin-top: 1.1rem; color: var(--ink-soft); max-width: 44ch; font-size: 1.05rem; }
.hero-stat-line{ margin-top: 0.9rem; font-weight: 700; color: var(--navy-deep); font-size: 0.95rem; }
.hero-search{
  margin-top: 1.8rem; display: flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 0.4rem; max-width: 460px;
  box-shadow: var(--shadow);
}
.hero-search input{ flex: 1; min-width: 0; border: none; background: transparent; padding: 0.6em 1em; font-size: 0.92rem; }
.hero-search input:focus{ outline: none; }
.hero-search button{ background: var(--blue); color: #fff; border-radius: 999px; padding: 0.75em 1.6em; font-weight: 700; font-size: 0.88rem; flex-shrink: 0; }
.hero-or{ text-align: center; margin: 0.9rem 0; font-size: 0.82rem; color: var(--ink-faint); }
.hero-actions{ display: flex; justify-content: flex-start; }

.hero-dots{ position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 2; }
.hero-dots button{ width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: all .2s ease; }
.hero-dots button.is-active{ background: var(--blue); width: 26px; border-radius: 999px; }

/* tablet: hero photo gets less room, content gets more, everything scales down a notch */
@media(max-width: 960px){
  .hero{ min-height: 560px; }
  .hero-slide-inner{ padding: 4.5rem 0; }
  .hero-content{ max-width: 480px; }
  .hero-slide-bg::after{
    background: linear-gradient(100deg, #fff 0%, #fff 46%, rgba(255,255,255,0.82) 62%, rgba(255,255,255,0.4) 80%);
  }
}

/* mobile: stack into a centred banner: the photo becomes a soft full-bleed
   backdrop behind full-width, centred content instead of a left column
   fighting a cropped photo for space. */
@media(max-width: 640px){
  .hero{ min-height: 0; }
  .hero-slide{ display: block; }
  .hero-slide-inner{ padding: 3rem 0 2.4rem; }
  .hero-content{ max-width: none; width: 100%; text-align: center; margin-inline: auto; }
  .hero h1{ max-width: none; margin-inline: auto; }
  .hero-sub{ max-width: 40ch; margin-inline: auto; }
  .hero-search{ max-width: none; width: 100%; }
  .hero-actions{ justify-content: center; }
  .hero-slide-bg::after{
    background: linear-gradient(180deg, rgba(255,255,255,0.93) 0%, rgba(255,255,255,0.93) 55%, rgba(255,255,255,0.86) 100%);
  }
  .hero-dots{ bottom: 1rem; }
}

/* ---------- page header (sub-pages) ---------- */
.page-hero{ position: relative; overflow: hidden; padding: 4.5rem 0 4rem; }
.page-hero-bg{ position: absolute; inset: 0; background-size: cover; background-position: right center; }
.page-hero-bg::after{ content:""; position:absolute; inset:0; background: linear-gradient(100deg, #fff 0%, #fff 40%, rgba(255,255,255,0.82) 58%, rgba(255,255,255,0.35) 78%); }
.page-hero-inner{ position: relative; z-index: 1; }
@media(max-width: 640px){
  .page-hero{ padding: 3rem 0 2.5rem; text-align: center; }
  .page-hero .eyebrow{ justify-content: center; }
  .page-hero .display-1{ max-width: none !important; margin-inline: auto; }
  .page-hero .lede{ max-width: 40ch; margin-inline: auto; }
  .page-hero-bg::after{ background: linear-gradient(180deg, rgba(255,255,255,0.93) 0%, rgba(255,255,255,0.93) 55%, rgba(255,255,255,0.86) 100%); }
}
.page-hero .display-1{ margin-top: 0.8rem; max-width: 18ch; }

/* ---------- logo / accreditation strip ---------- */
.logo-strip-head{ text-align: center; font-weight: 700; color: var(--ink-soft); margin-bottom: 2rem; }
.logo-strip-viewport{
  overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.logo-strip{
  display: flex; align-items: center; gap: 3.2rem; width: max-content;
  animation: logo-scroll 26s linear infinite;
}
.logo-strip-viewport:hover .logo-strip{ animation-play-state: paused; }
@keyframes logo-scroll{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
.logo-badge{ font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; color: var(--ink-faint); opacity: 0.75; white-space: nowrap; transition: opacity .15s ease, color .15s ease; }
.logo-badge:hover{ opacity: 1; color: var(--blue); }

/* ---------- stat cards ---------- */
.stat-card{
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  padding: 1.8rem; text-align: center;
}
.stat-icon{
  width: 52px; height: 52px; border-radius: var(--radius-sm); margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.stat-card .num{ font-size: 1.9rem; font-weight: 800; color: var(--navy-deep); display:inline-flex; align-items:center; gap:0.3rem; }
.stat-up{ color: var(--green); font-size: 0.95rem; }
.stat-card .label{ margin-top: 0.4rem; color: var(--ink-soft); font-size: 0.9rem; font-weight: 600; }

/* ---------- feature grid ---------- */
.feature-card{ padding: 1.6rem 0.2rem; }
.feature-icon{
  width: 46px; height: 46px; border-radius: 50%; background: var(--bg-tint-2);
  display: flex; align-items: center; justify-content: center; color: var(--blue); margin-bottom: 1rem;
}
.feature-card h3{ font-size: 1.05rem; }
.feature-card p{ margin-top: 0.5rem; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- mode cards ---------- */
.mode-card{
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, transform .15s ease;
}
.mode-card:hover{ box-shadow: var(--shadow); transform: translateY(-3px); }
.mode-icon{ width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-deep), var(--blue-mid)); color:#fff; display:flex; align-items:center; justify-content:center; margin-bottom: 1.1rem; }
.mode-card h3{ font-size: 1.05rem; }
.mode-card p{ margin-top: 0.5rem; color: var(--ink-soft); font-size: 0.9rem; }
.mode-card a{ display: inline-block; margin-top: 0.9rem; font-size: 0.84rem; font-weight: 700; color: var(--blue); }

/* ---------- programme / course cards ---------- */
.course-card{
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, transform .15s ease; display: flex; flex-direction: column;
}
.course-card:hover{ box-shadow: var(--shadow); transform: translateY(-3px); }
.course-card-top{ padding: 1.5rem 1.5rem 0; }
.course-pill{ display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.35em 0.9em; border-radius: 999px; background: var(--bg-tint-2); color: var(--blue); }
.course-pill--level{ background: #fff7e8; color: var(--amber); margin-left: 0.4rem; }
.course-card h3{ margin-top: 0.9rem; font-size: 1.12rem; }
.course-card p{ margin-top: 0.5rem; color: var(--ink-soft); font-size: 0.88rem; }
.course-meta{ display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 1rem; font-size: 0.78rem; color: var(--ink-faint); font-weight: 600; }
.course-card-bottom{ margin-top: auto; padding: 1.2rem 1.5rem 1.5rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.course-cohort{ font-size: 0.78rem; color: var(--ink-soft); }
.course-cohort b{ color: var(--navy-deep); }

/* programme catalogue accordion (rounded card version) */
.accordion-item{ background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.9rem; box-shadow: var(--shadow-sm); overflow: hidden; }
.accordion-trigger{ width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; text-align: left; }
.accordion-trigger:hover{ background: var(--bg-tint); }
.accordion-trigger-title{ display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-weight: 700; color: var(--navy-deep); }
.accordion-plus{ width: 28px; height: 28px; border-radius: 50%; background: var(--bg-tint-2); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .2s ease; font-weight: 700; }
.accordion-item.is-open .accordion-plus{ transform: rotate(45deg); background: var(--blue); color: #fff; }
.accordion-panel{ max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.accordion-panel-inner{ padding: 0 1.5rem 1.5rem; color: var(--ink-soft); }
.accordion-panel-inner ul{ margin-top: 0.8rem; }
.accordion-panel-inner li{ padding: 0.4rem 0 0.4rem 1.4rem; position: relative; font-size: 0.92rem; }
.accordion-panel-inner li::before{ content: ""; position: absolute; left: 0; top: 0.85rem; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

/* ---------- small tag badges (used in roster meta rows) ---------- */
.tag{ display: inline-block; font-size: 0.74rem; font-weight: 700; padding: 0.32em 0.85em; border-radius: 999px; background: var(--bg-tint-2); color: var(--blue); }
.tag--alt{ background: #fff7e8; color: var(--amber); }

/* ---------- roster (simple lists: team, offices, roles, faq) ---------- */
.roster-row{ display: flex; gap: 1.3rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.roster-avatar{ width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; flex-shrink: 0; }
.roster-body h3{ font-size: 1.02rem; }
.roster-body p{ color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.2rem; }
.roster-meta{ display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 0.6rem; font-size: 0.78rem; color: var(--ink-faint); font-weight: 600; }

/* ---------- case study cards ---------- */
.case-card{ background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 2.2rem; margin-bottom: 1.8rem; }
.case-card .course-pill{ margin-bottom: 0.9rem; }
.case-stats{ display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; margin-top: 1.8rem; }
.case-stat{ background: var(--bg-tint); border-radius: var(--radius-sm); padding: 1.1rem; text-align: center; }
.case-stat .num{ font-size: 1.5rem; font-weight: 800; color: var(--blue); display: block; }
.case-stat .label{ font-size: 0.74rem; color: var(--ink-soft); margin-top: 0.3rem; display: block; }
@media(max-width: 640px){ .case-stats{ grid-template-columns: 1fr; } }

/* ---------- testimonials ---------- */
.testimonial-card{ background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; box-shadow: var(--shadow-sm); height: 100%; }
.testimonial-quote{ font-size: 1.02rem; color: var(--ink); line-height: 1.55; }
.testimonial-quote::before{ content: "\201C"; color: var(--cyan); font-weight: 800; font-size: 1.4rem; }
.testimonial-attr{ display: flex; align-items: center; gap: 0.8rem; margin-top: 1.3rem; }

/* ---------- ledger table (engagement models) ---------- */
.ledger-wrap{ background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.ledger{ width: 100%; border-collapse: collapse; }
.ledger th, .ledger td{ text-align: left; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.9rem; }
.ledger thead th{ font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); background: var(--bg-tint); }
.ledger tbody tr:last-child td{ border-bottom: none; }
.ledger tbody tr:hover{ background: var(--bg-tint); }

/* ---------- forms ---------- */
.field{ margin-bottom: 1.4rem; }
.field label{ display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--navy-deep); }
.field input, .field textarea, .field select{
  width: 100%; background: var(--bg-tint); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.8rem 1rem; font-size: 0.95rem; font-family: var(--font-sans);
}
.field input:focus, .field textarea:focus, .field select:focus{ outline: none; border-color: var(--blue); background: #fff; }
.field textarea{ resize: vertical; min-height: 110px; }
.field.has-error input, .field.has-error textarea{ border-color: #e0553d; }
.field-error{ display: none; font-size: 0.78rem; color: #d1451c; margin-top: 0.45rem; font-weight: 600; }
.field.has-error .field-error{ display: block; }
.field-note{ font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.4rem; }
.form-status{ margin-top: 1.2rem; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); display: none; font-size: 0.85rem; font-weight: 600; }
.form-status.is-visible{ display: block; }
.form-status.is-success{ background: #e9f9ef; color: #16793f; }
.form-status.is-sending{ background: var(--bg-tint); color: var(--ink-soft); }

/* ---------- skeleton loaders ---------- */
.skeleton{ position: relative; overflow: hidden; background: var(--line); border-radius: var(--radius-sm); }
.skeleton::after{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.9) 50%, transparent 70%);
  transform: translateX(-100%); animation: shimmer 1.4s infinite;
}
@keyframes shimmer{ to{ transform: translateX(100%); } }
.sk-card{ padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.9rem; }
.sk-line{ height: 14px; margin-bottom: 0.9rem; width: 70%; }
.sk-line.short{ width: 35%; }
.sk-line.tiny{ height: 10px; width: 22%; }

/* ---------- CTA band ---------- */
.cta-band{ border-radius: var(--radius-lg); padding: 3.2rem; position: relative; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer{ background: var(--navy-deep); color: rgba(255,255,255,0.82); padding-top: 4rem; }
.site-footer a:hover{ color: var(--cyan); }
.footer-grid{ display: grid; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.14); }
@media(min-width: 800px){ .footer-grid{ grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer-grid h4{ font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; font-weight: 700; }
.footer-grid ul li{ padding: 0.4rem 0; font-size: 0.9rem; }
.footer-grid p{ max-width: 32ch; font-size: 0.92rem; }
.footer-socials{ display: flex; gap: 0.6rem; margin-top: 1.3rem; }
.footer-socials a{ width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; }
.footer-socials a:hover{ background: var(--blue); }
.footer-socials svg{ width: 16px; height: 16px; fill: #fff; }
.footer-base{ display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding: 1.5rem 0; font-size: 0.78rem; color: rgba(255,255,255,0.55); }
.footer-legal{ display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* ---------- sticky contact bar ---------- */
.contact-bar{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: var(--navy-deep); color: #fff;
  display: flex;
}
.contact-bar a{ flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.3rem; font-size: 0.82rem; font-weight: 600; white-space: nowrap; border-right: 1px solid rgba(255,255,255,0.12); }
.contact-bar a:hover{ background: rgba(255,255,255,0.08); color: #fff; }
.contact-bar a:last-child{ border-right: none; }
.contact-bar svg{ width: 15px; height: 15px; flex-shrink: 0; }
.contact-bar a.is-primary{ background: var(--blue); }
.contact-bar .cb-short{ display: none; }

/* under ~860px the full phone number + email text no longer fit four-up
   without wrapping or scrolling, so switch to short icon labels laid out
   as an even grid -- fully visible, nothing to scroll. */
@media(max-width: 860px){
  .contact-bar a{ flex-direction: column; gap: 0.3rem; padding: 0.6rem 0.3rem; font-size: 0.66rem; }
  .contact-bar .cb-full{ display: none; }
  .contact-bar .cb-short{ display: inline; }
}
@media(max-width: 360px){
  .contact-bar a{ font-size: 0; }
  .contact-bar .cb-short{ font-size: 0.6rem; }
}

/* ---------- reveal on scroll ---------- */
html.js .reveal{ opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
html.js .reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ---------- misc ---------- */
.rule{ border: none; border-top: 1px solid var(--line); }
.pull{ font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 700; color: var(--navy-deep); line-height: 1.4; }
.two-up{ display: grid; gap: 1.6rem; }
@media(min-width: 700px){ .two-up{ grid-template-columns: 1fr 1fr; } }
.chev-list li{ padding: 0.5rem 0 0.5rem 1.5rem; position: relative; color: var(--ink-soft); }
.chev-list li::before{ content: ""; position: absolute; left: 0; top: 1.1rem; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.index-list{ counter-reset: idx; }
.index-list li{ counter-increment: idx; padding: 1rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 1.1rem; }
.index-list li::before{ content: counter(idx); flex-shrink:0; width:30px; height:30px; border-radius:50%; background:var(--bg-tint-2); color:var(--blue); font-weight:800; font-size:0.85rem; display:flex; align-items:center; justify-content:center; }
.panel{ background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }

.cert{ background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 2.4rem; position: relative; }
.cert::before{ content: ""; position: absolute; inset: 10px; border: 1.5px dashed var(--line); border-radius: calc(var(--radius-lg) - 6px); pointer-events: none; }
.cert-head{ display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; position: relative; z-index: 1; }
.cert-name{ font-size: 1.6rem; font-weight: 800; color: var(--navy-deep); margin: 1.2rem 0 0.2rem; }
.cert-foot{ display: flex; justify-content: space-between; align-items: flex-end; margin-top: 2rem; gap: 1rem; flex-wrap: wrap; position: relative; z-index: 1; }
.cert-seal{ width: 78px; height: 78px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 0.6rem; font-weight: 700; line-height: 1.3; }

@media(max-width: 700px){
  .section{ padding: 3.2rem 0; }
  .hero{ min-height: 0; }
  .hero-slide-inner{ padding: 3.5rem 0; }
  .case-stats{ grid-template-columns: 1fr; }
}
