/* ==========================================================================
   ISO Management Consultants — 2026 homepage refresh
   Their content, photos and colours; modern type, spacing and motion.
   One stylesheet, tokens at the top.
   ========================================================================== */

/* ---------- Fonts (self-hosted, Latin subset) ---------- */
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --brand: #1F3AC1;
  --brand-deep: #142A8F;
  --brand-tint: #EEF1FC;
  --accent: #FB8E28;
  --accent-deep: #E0741A;
  --ink: #0E1530;
  --text: #3B4360;
  --muted: #646C88;
  --paper: #FFFFFF;
  --page: #F5F6FA;
  --rule: #E3E6F0;
  --navy: #0B1640;
  --navy-deep: #070F2E;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(14, 21, 48, .05), 0 10px 30px -14px rgba(14, 21, 48, .2);
  --shadow-lg: 0 2px 4px rgba(14, 21, 48, .05), 0 30px 60px -24px rgba(14, 21, 48, .3);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --f-display: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 88px;
  --util-h: 38px;
  --slide: 7s;   /* time per hero photo */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--f-display);
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; text-wrap: pretty; }
a { color: var(--brand); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1240px; margin-inline: auto; padding-inline: 32px; }
@media (max-width: 600px) { .container { padding-inline: 16px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Shared components ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--alt { background: var(--page); }
.h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 700; }
.section-head { margin-bottom: clamp(36px, 4vw, 56px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 26px;
  border-radius: 10px; border: 1px solid transparent;
  font-family: var(--f-body); font-size: 16px; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s, color .25s;
}
.btn--sm { min-height: 46px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: var(--navy); }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn--light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--light:hover { background: #fff; color: var(--navy); }
.btn--outline { background: var(--paper); color: var(--ink); border-color: var(--rule); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }

.text-link { display: inline-flex; gap: 8px; font-weight: 600; text-decoration: none; color: var(--brand); }
.text-link span { transition: transform .25s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

/* ---------- Utility bar ---------- */
.util { height: var(--util-h); background: var(--navy); font-size: 13.5px; color: rgba(255, 255, 255, .78); }
.util-inner { height: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.util-links { display: flex; gap: 26px; }
.util a { color: #fff; text-decoration: none; font-weight: 500; }
.util a:hover { color: var(--accent); }
@media (max-width: 820px) { .util { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); box-shadow: 0 8px 24px -18px rgba(14, 21, 48, .35); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 72px; width: auto; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a,
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: 8px;
  font-family: var(--f-body); font-size: 15.5px; font-weight: 500; line-height: 1.2;
  color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
  transition: color .2s, background-color .2s;
}
.nav > a:hover, .nav-drop-btn:hover, .nav-drop.open .nav-drop-btn { color: var(--brand); background: var(--brand-tint); }
.caret { width: 10px; height: 6px; transition: transform .25s var(--ease); }
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 2;
  min-width: 220px; margin: 0; padding: 8px; list-style: none;
  background: var(--paper); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu,
.nav-drop.open .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop:hover .caret, .nav-drop.open .caret { transform: rotate(180deg); }
.nav-drop-menu a {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.nav-drop-menu a:hover { background: var(--brand-tint); color: var(--brand); }

.header-cta { margin-left: 12px; }
.nav > .nav-mobile-cta { display: none; }

.nav-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--rule); border-radius: 12px; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 0; content: ""; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.site-header.nav-open .nav-toggle-bars { background: transparent; }
.site-header.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.site-header.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1120px) {
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px 24px; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-header.nav-open .nav { display: flex; }
  .nav > a, .nav-drop-btn { width: 100%; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav-drop-menu {
    position: static; min-width: 0; box-shadow: none; padding: 0 0 6px 12px;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .nav-drop.open .nav-drop-menu { display: block; }
  .nav-drop-menu::before { display: none; }
  .nav > .nav-mobile-cta { display: inline-flex; justify-content: center; margin-top: 20px; width: 100%; border-bottom: 0; padding: 0 18px; border-radius: 10px; font-weight: 600; background: var(--accent); color: var(--navy); }
  .nav > .nav-mobile-cta:hover { background: var(--accent-deep); color: var(--navy); }
}
@media (max-width: 600px) { :root { --header-h: 76px; } .brand img { height: 60px; } }

/* ---------- Hero: their slider photos, crossfading with a slow zoom ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(560px, 78vh, 760px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 0 140px;
  background: var(--navy);
  color: #fff;
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slides { z-index: -2; }
.hero-slide { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; opacity: 0; }
.hero-slide[style*="--i:0"] { opacity: 1; }
/* Navy wash on the left only, so the photo stays bright on the right. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 15, 46, .88) 0%, rgba(7, 15, 46, .72) 38%, rgba(7, 15, 46, .15) 70%, rgba(7, 15, 46, 0) 100%),
    linear-gradient(0deg, rgba(7, 15, 46, .45) 0%, rgba(7, 15, 46, 0) 35%);
}
.hero-inner { position: relative; width: 100%; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em; color: rgba(255, 255, 255, .85);
}
.hero-kicker::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--accent); }
.hero-title {
  margin-top: 22px;
  font-size: clamp(2.5rem, 4.8vw, 4.3rem); font-weight: 800; line-height: 1.02; letter-spacing: -.03em;
  color: #fff;
}
.hero-title .line { display: block; }
.hero-title .line:last-child { color: var(--accent); }
.hero-sub { margin-top: 24px; max-width: 34em; font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.6; color: rgba(255, 255, 255, .86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Slide progress: three thin bars that fill in time with the photos. */
.hero-progress { position: absolute; left: 0; right: 0; bottom: 104px; display: flex; justify-content: flex-end; gap: 8px; }
.hero-progress .bar { width: 56px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.hero-progress .bar span { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.hero-progress .bar[style*="--i:0"] span { transform: none; }

/* ---------- Advisor prompt (overlaps the hero's bottom edge) ---------- */
.advisor {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  margin-top: -64px; padding: 30px 40px;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--accent);
}
.advisor-title { font-size: clamp(1.25rem, 1.9vw, 1.55rem); font-weight: 700; }
.advisor p { margin-top: 4px; color: var(--muted); }
.advisor-actions { display: flex; align-items: center; gap: 28px; flex-shrink: 0; }
.advisor-phone { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.advisor-phone:hover { color: var(--brand); }

/* ---------- Credentials + intro ---------- */
.creds { padding-top: clamp(64px, 7vw, 96px); }
.creds-title {
  max-width: 34em; margin: 0 auto; text-align: center;
  font-family: var(--f-body); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; line-height: 1.5; color: var(--muted);
}
.creds-logos {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 44px;
}
.creds-logos img { height: 62px; width: auto; }

.intro {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(64px, 7vw, 96px); padding-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--rule);
}
.intro-lead { font-family: var(--f-display); font-size: clamp(1.3rem, 1.9vw, 1.6rem); font-weight: 700; line-height: 1.4; letter-spacing: -.015em; color: var(--ink); }
.intro-body { padding-top: 6px; }

/* ---------- Why choose us ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.why-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.why-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.why-photo picture { display: block; height: 100%; }
.why-body > p { margin-top: 20px; }
.benefits {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px;
}
.benefits li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 0; border-top: 1px solid var(--rule);
  font-weight: 600; line-height: 1.45; color: var(--ink);
}
.check {
  flex: 0 0 26px; width: 26px; height: 26px; padding: 5px; margin-top: -1px;
  border-radius: 50%; background: var(--accent); color: var(--navy);
}

/* ---------- Integrated Management Systems: photo band ---------- */
.ims { position: relative; isolation: isolate; overflow: hidden; padding: clamp(96px, 12vw, 160px) 0; color: #fff; text-align: center; background: var(--navy); }
.ims-bg { position: absolute; inset: -12% 0; z-index: -2; width: 100%; height: 124%; object-fit: cover; object-position: 50% 40%; }
.ims::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7, 15, 46, .74); }
.ims-inner { max-width: 760px; }
.ims h2 { color: #fff; }
.ims p { margin: 18px auto 34px; max-width: 36em; font-size: 1.15rem; color: rgba(255, 255, 255, .86); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.service {
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-img { aspect-ratio: 4 / 3; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service:hover .service-img img { transform: scale(1.06); }
.service-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.service-tag { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--brand); }
.service h3 { margin-top: 6px; font-size: 1.3rem; font-weight: 700; }
.service-body > p:not(.service-tag) { margin-top: 12px; font-size: 15.5px; line-height: 1.65; }
.service-link { margin-top: auto; padding-top: 20px; font-weight: 600; text-decoration: none; }
.service-link span { display: inline-block; transition: transform .25s var(--ease); }
.service:hover .service-link span { transform: translateX(4px); }

/* ---------- Industries: one centred line of type ---------- */
.industries { text-align: center; }
.industries-text { max-width: 40em; margin: 18px auto 0; }
.industry-line {
  list-style: none; margin: clamp(40px, 5vw, 64px) auto 0; padding: 0;
  display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 10px 0;
}
.industry-line li {
  display: inline-flex; align-items: center;
  font-family: var(--f-display); font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: var(--ink);
  white-space: nowrap;
}
@media (max-width: 900px) {
  .industry-line { flex-direction: column; gap: 6px; }
  .industry-line li:not(:last-child)::after { display: none; }
  .industry-line li { font-size: 1.6rem; }
}
.industry-line li:not(:last-child)::after {
  content: ""; width: 10px; height: 10px; margin: 0 clamp(14px, 1.8vw, 26px); border-radius: 50%; background: var(--accent);
}

/* ---------- Our approach ---------- */
.approach { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.approach-lead { margin-top: 20px; font-size: 1.12rem; color: var(--ink); }
.approach-side .text-link { margin-top: 20px; }
.approach-photo { margin: 36px 0 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.approach-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.approach-photo picture { display: block; height: 100%; }
.approach-main { display: grid; gap: 20px; padding-top: 6px; }
.pull { margin: 0 0 12px; padding: 4px 0 4px 28px; border-left: 4px solid var(--accent); }
.pull p { font-family: var(--f-display); font-size: clamp(1.35rem, 2.1vw, 1.7rem); font-weight: 700; line-height: 1.35; letter-spacing: -.015em; color: var(--ink); }

/* ---------- Google reviews ---------- */
.reviews-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 32px; margin-bottom: 32px;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
}
.reviews-score { display: flex; align-items: center; gap: 18px; }
.reviews-score > .g-mark { width: 44px; height: 44px; }
.reviews-name { font-family: var(--f-body); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
.reviews-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 2px; color: var(--muted); font-size: 15px; }
.reviews-rating strong { font-family: var(--f-display); font-size: 1.6rem; color: var(--ink); line-height: 1; }
.reviews-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stars { display: inline-flex; gap: 2px; }
.star { width: 20px; height: 20px; fill: #FBBC05; }
.stars--sm .star { width: 16px; height: 16px; }

.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.review {
  margin: 0; padding: 26px;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
}
.review-top { display: flex; align-items: center; gap: 12px; }
.review-top .g-mark { width: 20px; height: 20px; margin-left: auto; }
.avatar {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand); font-weight: 700; font-size: 14px;
}
.review figcaption { display: grid; line-height: 1.3; }
.review figcaption strong { color: var(--ink); text-transform: capitalize; }
.review figcaption span { font-size: 13.5px; color: var(--muted); }
.review .stars { margin-top: 16px; }
.review blockquote { margin: 10px 0 0; }
.review blockquote p { font-size: 15.5px; line-height: 1.65; }

/* ---------- Request a call back (navy band, logo-free) ---------- */
.cta-band { position: relative; overflow: clip; isolation: isolate; padding: clamp(72px, 9vw, 120px) 0; background: var(--navy); color: rgba(255, 255, 255, .8); }
.cta-band::before {
  content: ""; position: absolute; top: -260px; right: -200px; width: 680px; height: 680px; z-index: -1;
  background: radial-gradient(circle, rgba(31, 58, 193, .55), transparent 62%);
  pointer-events: none;
}
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.cta-copy h2 { color: #fff; }
.cta-copy > p { margin-top: 18px; max-width: 30em; font-size: 1.1rem; }
.cta-contacts { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 0; max-width: 460px; }
.cta-contacts li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.cta-contacts span { font-size: 14px; color: rgba(255, 255, 255, .6); }
.cta-contacts a { color: #fff; text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.cta-contacts a:hover { color: var(--accent); }

.cta-form { display: grid; gap: 16px; padding: clamp(24px, 3vw, 36px); background: var(--paper); border-radius: var(--radius); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); color: var(--ink); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.field input,
.field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  background: var(--page); border: 1px solid var(--rule); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus { outline: none; background: var(--paper); border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 58, 193, .15); }
.form-status { min-height: 1.4em; font-size: 14px; color: var(--muted); }

/* ---------- Footer (navy, no logo) ---------- */
.site-footer { padding: clamp(56px, 7vw, 88px) 0 0; background: var(--navy-deep); color: rgba(255, 255, 255, .72); font-size: 15px; }
.site-footer :focus-visible { outline-color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 48px; }
.footer-name { margin-bottom: 14px; font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; color: #fff; }
.footer-col p { margin: 0; }
.footer-head { margin: 0 0 16px; font-family: var(--f-body); font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.4; color: #fff; }
.footer-head--gap { margin-top: 28px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-list a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer-list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-hours { margin: 0; display: grid; gap: 6px; }
.footer-hours div { display: flex; justify-content: space-between; gap: 16px; }
.footer-hours dt, .footer-hours dd { margin: 0; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
  margin-top: 56px; padding-top: 24px; padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-legal a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom .footer-credit { color: rgba(255, 255, 255, .78); }
.footer-credit .heart { color: #e5546b; }
.footer-credit a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer-credit a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 700; }

/* ---------- Page head: light band, breadcrumb, H1; photo on the right when the page has one ---------- */
.page-head {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(44px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
  background: var(--page);
}
.page-head::before {
  content: ""; position: absolute; z-index: -1; top: -320px; right: -240px; width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(31, 58, 193, .09), transparent 64%);
  pointer-events: none;
}
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.page-head--photo .page-head-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.crumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  font-size: 14.5px; font-weight: 600; color: var(--muted);
}
.crumbs ol::before { content: ""; width: 28px; height: 3px; margin-right: 4px; border-radius: 2px; background: var(--accent); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 10px; color: #B4BACD; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--ink); }
.page-title { margin-top: 20px; max-width: 17em; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.page-head--photo .page-title { font-size: clamp(2.1rem, 3.4vw, 3rem); }
.page-lead { margin-top: 20px; max-width: 40em; font-size: clamp(1.05rem, 1.4vw, 1.18rem); }
.page-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.page-head-photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 1 / 1; }
.page-head-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.page-head-photo figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: grid; padding: 14px 18px; line-height: 1.35;
  background: rgba(255, 255, 255, .95); border-radius: var(--radius-sm); border-left: 4px solid var(--accent);
}
.page-head-photo figcaption strong { font-family: var(--f-display); color: var(--ink); }
.page-head-photo figcaption span { font-size: 14.5px; color: var(--muted); }

/* ---------- Credentials strip (end of inner pages) ---------- */
.creds-strip { padding: clamp(56px, 6vw, 80px) 0; border-top: 1px solid var(--rule); }

/* ---------- About: intro, chapters, certificates ---------- */
.intro--flush { margin-top: 0; padding-top: 0; border-top: 0; }
.chapters { margin-top: clamp(56px, 7vw, 96px); }
.chapter {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 5vw, 80px);
  padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--rule);
}
.chapter-body { display: grid; gap: 16px; }

.certs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.certs a {
  display: block; padding: 10px; background: var(--paper); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.certs a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ---------- Service pages: content + sticky quote form ---------- */
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(40px, 5vw, 72px); align-items: start; }
.svc-main { display: grid; gap: clamp(48px, 5vw, 64px); }
.svc-block { display: grid; gap: 16px; }
.svc-figure { margin: 8px 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 7; }
.svc-figure img { width: 100%; height: 100%; object-fit: cover; }

.points { margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.points > div { padding: 20px 0; border-top: 1px solid var(--rule); }
.points dt { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 1.12rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.points dt::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.points dd { margin: 6px 0 0; font-size: 15.5px; line-height: 1.65; }

.section--tight { padding-block: clamp(24px, 3vw, 40px); }
.standout {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 5vw, 64px); border-radius: var(--radius); background: var(--brand-tint);
}
.standout-head { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.standout-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; }
.standout-list li { display: flex; gap: 14px; align-items: flex-start; }
.standout-list h3 { font-size: 1.1rem; font-weight: 700; }
.standout-list p { margin-top: 6px; font-size: 15.5px; line-height: 1.65; }

.svc-aside { display: grid; gap: 24px; align-self: stretch; align-content: start; }
.aside-card { padding: 26px 28px; border-radius: var(--radius); background: var(--page); }
.aside-title { font-size: 1.2rem; font-weight: 700; }
.aside-checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; }
.aside-checks li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--rule); font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.aside-checks li:first-child { border-top: 0; }
.aside-checks .check { flex-basis: 22px; width: 22px; height: 22px; padding: 4px; }
.quote-card {
  position: sticky; top: calc(var(--header-h) + 24px);
  display: grid; gap: 14px; padding: 28px;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg); border-top: 4px solid var(--accent);
}
.quote-title { font-size: 1.45rem; font-weight: 700; }
.quote-call { text-align: center; font-size: 15px; color: var(--muted); }
.quote-call a { font-weight: 700; color: var(--ink); text-decoration: none; }
.quote-call a:hover { color: var(--brand); }

.services--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- FAQ accordion (<details name> keeps one open, no JS) ---------- */
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; line-height: 1.35; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 30px; height: 30px; border-radius: 50%;
  background:
    linear-gradient(var(--brand), var(--brand)) center / 12px 2px no-repeat,
    linear-gradient(var(--brand), var(--brand)) center / 2px 12px no-repeat,
    var(--brand-tint);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--brand); }
.faq details > p { max-width: 46em; padding: 0 0 22px; }

@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-aside { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
  .quote-card { position: static; }
  .standout, .split { grid-template-columns: 1fr; }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .page-head--photo .page-head-grid { grid-template-columns: 1fr; }
  .page-head-photo { aspect-ratio: 4 / 3; }
  .page-head-photo:has(figcaption) { aspect-ratio: 5 / 6; max-width: 460px; }
  .chapter { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .points, .standout-list { grid-template-columns: 1fr; }
  .page-actions .btn { flex: 1 1 auto; }
  .certs { gap: 14px; }
}

/* ---------- Nav: current page ---------- */
.nav > a[aria-current="page"],
.nav-drop-btn.is-current { color: var(--brand); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 8px 8px 0 0; }

/* ---------- Shared bits for the remaining pages ---------- */
.page-meta { margin-top: 16px; font-size: 15px; font-weight: 600; color: var(--muted); }
.section-sub { max-width: 44em; margin-top: 14px; }
.split-side { display: grid; gap: 20px; align-content: start; justify-items: start; }
.split-side--sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.prose-col { display: grid; gap: 18px; }
.points--wide { margin-top: 0; }
.aside-text { margin-top: 8px; font-size: 15px; }
.aside-contacts { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; }
.aside-contacts li { display: grid; padding: 10px 0; border-top: 1px solid var(--rule); line-height: 1.4; }
.aside-contacts span { font-size: 13px; color: var(--muted); }
.aside-contacts a { font-weight: 700; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.aside-contacts a:hover { color: var(--brand); }
.split-side .aside-card { width: 100%; }
.standout-head > p { font-size: 15.5px; }
.faq-a { display: grid; gap: 12px; max-width: 46em; padding: 0 0 22px; }
.faq-a ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.faq-a li::marker { color: var(--accent); }

/* Numbered stages (14001 process, implementation services) */
.stages { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: stage; display: grid; gap: 0; }
.stages li { position: relative; counter-increment: stage; padding: 22px 0 22px 64px; border-top: 1px solid var(--rule); }
.stages li::before {
  content: counter(stage); position: absolute; left: 0; top: 20px;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; color: var(--brand); background: var(--brand-tint);
}
.stages h3 { font-size: 1.15rem; font-weight: 700; }
.stages p { margin-top: 6px; font-size: 15.5px; }

/* 45001: Plan / Do / Check / Act */
.pdca-band { border-top: 1px solid var(--rule); }
.pdca { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.pdca li { position: relative; padding: 30px 28px 32px; border-top: 4px solid var(--brand); background: var(--page); }
.pdca li:nth-child(even) { background: var(--brand-tint); }
.pdca li:last-child { border-top-color: var(--accent); }
.pdca h3 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; }
.pdca li:not(:last-child)::after {
  content: ""; position: absolute; z-index: 1; top: -12px; right: -10px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 5l5 5-5 5' fill='none' stroke='%231F3AC1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 0 0 1px var(--rule);
}
.pdca p { margin-top: 12px; font-size: 15.5px; }

/* ---------- Support plans ---------- */
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(40px, 6vw, 88px); align-items: start; }
.plan-copy { display: grid; gap: 18px; }
.plan-kicker { font-weight: 600; color: var(--brand); }
.plan-copy .intro-lead { margin-top: 8px; }
.field-set { margin: 0; padding: 0; border: 0; min-width: 0; }
.field-set legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--page);
  font-size: 14.5px; font-weight: 600; color: var(--ink); transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover span { border-color: var(--brand); }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.plan-intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 80px); margin-bottom: clamp(36px, 4vw, 56px); }
.plan-intro-body { display: grid; gap: 16px; }

/* ---------- Action points ---------- */
.action-list { list-style: none; margin: clamp(56px, 7vw, 88px) 0 0; padding: 0; }
.action-list li {
  display: grid; grid-template-columns: 96px minmax(0, .9fr) minmax(0, 1.5fr); gap: 12px clamp(24px, 4vw, 56px); align-items: start;
  padding: clamp(28px, 3vw, 40px) 0; border-top: 1px solid var(--rule);
}
.action-num { font-family: var(--f-display); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 800; line-height: .9; letter-spacing: -.04em; color: var(--accent); }
.action-list h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 700; padding-top: 4px; }
.action-body { display: grid; gap: 12px; }

.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); }
.quote { margin: 0; display: flex; flex-direction: column; gap: 22px; padding-top: 26px; border-top: 4px solid var(--accent); }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: 16px; line-height: 1.7; color: var(--ink); }
.quote blockquote p::before { content: "“"; display: block; height: .5em; margin-bottom: 4px; font-family: var(--f-display); font-size: 3.2rem; font-weight: 800; line-height: 1; color: var(--brand); }
.quote figcaption { margin-top: auto; display: grid; line-height: 1.4; }
.quote figcaption strong { font-family: var(--f-display); color: var(--ink); }
.quote figcaption span { font-size: 14.5px; color: var(--muted); }

/* ---------- Implementation process ---------- */
.std-table { margin: 6px 0 0; display: grid; border-top: 1px solid var(--rule); }
.std-table div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.std-table dt { font-family: var(--f-display); font-weight: 700; color: var(--brand); }
.std-table dd { margin: 0; font-size: 15.5px; }
.std-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.std-link {
  display: grid; gap: 12px; align-content: start; padding: 30px 32px;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--text);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.std-link strong { font-family: var(--f-display); font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.std-link p { font-size: 15.5px; }
.std-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.std-link:hover .text-link span { transform: translateX(4px); }
.flow-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.flow-grid .stages { margin-top: 28px; }
.flowchart { margin: 0; }
.flowchart a { display: block; padding: 12px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.flowchart figcaption { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.flowchart figcaption span { font-weight: 600; color: var(--brand); white-space: nowrap; }

/* ---------- Certifications ---------- */
.certs--large { gap: clamp(16px, 2.4vw, 32px); }
.certs-note { margin-top: 24px; text-align: center; font-size: 14.5px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-list { max-width: none; margin-top: 24px; }
.contact-list li { border-top-color: var(--rule); }
.contact-list span { color: var(--muted); }
.contact-list a, .contact-list address { color: var(--ink); font-style: normal; font-weight: 600; font-size: 1.1rem; text-align: right; text-decoration: none; }
.contact-list a:hover { color: var(--brand); }
.contact-list li:last-child { border-bottom: 1px solid var(--rule); }
.contact-list li { flex-wrap: nowrap; }
.contact-list address { flex: 1 1 0; min-width: 0; text-wrap: balance; }
.contact-sub { margin-top: 40px; font-family: var(--f-body); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.contact-hours { margin: 12px 0 0; display: grid; gap: 6px; max-width: none; }
.contact-hours div { display: flex; justify-content: space-between; gap: 16px; }
.contact-hours dt, .contact-hours dd { margin: 0; }
.contact-hours dd { font-weight: 600; color: var(--ink); }
.map-band { height: clamp(320px, 40vw, 460px); background: var(--page); }
.map-band iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- Blog ---------- */
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--muted); }
.post-cat { padding: 3px 10px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-weight: 600; font-size: 13px; }
.post-feature {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center;
  background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.post-feature-img { display: block; overflow: hidden; }
.post-feature-img img { width: 100%; transition: transform .8s var(--ease); }
.post-feature:hover .post-feature-img img { transform: scale(1.04); }
.post-feature-body { display: grid; gap: 16px; justify-items: start; padding: clamp(28px, 4vw, 52px); }
.post-feature h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 800; }
.post-feature h2 a, .post-card h3 a { color: inherit; text-decoration: none; }
.post-feature h2 a:hover, .post-card h3 a:hover { color: var(--brand); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; margin-top: clamp(48px, 5vw, 72px); }
.post-card { display: grid; gap: 12px; align-content: start; }
.post-card-img { display: block; margin-bottom: 6px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.post-card > p:last-child { font-size: 15.5px; line-height: 1.65; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: clamp(48px, 5vw, 72px); }
.pager a, .pager span {
  display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--rule); font-weight: 600; color: var(--ink); text-decoration: none;
}
.pager [aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .pager-next { display: inline-flex; gap: 8px; }

/* Single post */
.post { padding-top: clamp(40px, 5vw, 64px); }
.post-hero { margin: 0 0 clamp(40px, 5vw, 64px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post-hero img { width: 100%; }
.recent { list-style: none; margin: 14px 0 0; padding: 0; display: grid; }
.recent li { border-top: 1px solid var(--rule); }
.recent li:first-child { border-top: 0; }
.recent a { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; text-decoration: none; }
.recent img { width: 76px; height: 56px; object-fit: cover; border-radius: 8px; }
.recent strong { display: block; font-size: 14.5px; line-height: 1.35; color: var(--ink); }
.recent time { font-size: 13px; color: var(--muted); }
.recent a:hover strong { color: var(--brand); }
.post-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-top: clamp(48px, 5vw, 72px); padding-top: 28px; border-top: 1px solid var(--rule); }
.post-nav a { display: grid; gap: 2px; max-width: 30em; font-weight: 700; color: var(--ink); text-decoration: none; }
.post-nav a:first-child { display: inline-flex; gap: 8px; align-items: center; color: var(--brand); }
.post-nav a:last-child { text-align: right; }
.post-nav a span { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.post-nav a:hover { color: var(--brand); }

/* Long-form text: blog posts and policies */
.prose { min-width: 0; max-width: 46em; font-size: 17.5px; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2em; font-size: clamp(1.45rem, 2.2vw, 1.85rem); font-weight: 700; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { margin-top: 1.6em; font-size: 1.2rem; font-weight: 700; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h4 { margin-top: 1.4em; font-family: var(--f-display); font-size: 1.05rem; color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose h2 + *, .prose h3 + * { margin-top: .5em; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .4em; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose a { text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose table:not(:has(thead)) tr:first-child td, .prose th { background: var(--page); font-weight: 600; color: var(--ink); }

/* Policies: contents list beside the text */
.toc { gap: 12px; }
.toc-title { font-size: 13.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; border-left: 2px solid var(--rule); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--brand); border-left-color: var(--accent); }
.legal { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }

@media (max-width: 1080px) {
  .pdca { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdca li:nth-child(2)::after { display: none; }
  .quotes { grid-template-columns: 1fr; max-width: 720px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-grid, .flow-grid, .contact-grid { grid-template-columns: 1fr; }
  .plan-grid .plan-form { max-width: 620px; }
  .flowchart { max-width: 620px; }
}
@media (max-width: 900px) {
  .plan-intro, .legal { grid-template-columns: 1fr; }
  .split-side--sticky { position: static; }
  .action-list li { grid-template-columns: 64px minmax(0, 1fr); }
  .action-body { grid-column: 2; }
  .post-feature { grid-template-columns: 1fr; }
  .std-links { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 600px) {
  .pdca { grid-template-columns: 1fr; }
  .pdca li::after { display: none; }
  .post-grid { grid-template-columns: 1fr; }
  .std-table div { grid-template-columns: 1fr; gap: 2px; }
  .action-list li { grid-template-columns: 1fr; }
  .action-body { grid-column: auto; }
  .action-num { font-size: 2.2rem; }
  .contact-list li { flex-direction: column; gap: 2px; }
  .contact-list a, .contact-list address { text-align: left; }
  .contact-list address { flex: 0 0 auto; }
  .post-nav a:last-child { text-align: left; }
  .std-link { padding: 24px; }
  /* Policy tables: each row becomes a labelled block instead of a sideways scroll. */
  .prose table:has(thead), .prose table:has(thead) tbody, .prose table:has(thead) tr, .prose table:has(thead) td { display: block; }
  .prose table:has(thead) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .prose table:has(thead) tr { border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 4px 16px; }
  .prose table:has(thead) tr + tr { margin-top: 12px; }
  .prose table:has(thead) td { border: 0; padding: 10px 0; }
  .prose table:has(thead) td + td { border-top: 1px solid var(--rule); }
  .prose table:has(thead) td::before { content: attr(data-label); display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
}

/* ==========================================================================
   Motion. Base styles above are the finished state; html.anim (set in <head>
   only when motion is allowed and ?shot=1 is absent) layers the movement on.
   ========================================================================== */

/* Hero: three photos, each fades in and slowly zooms; bars fill in step. */
html.anim .hero-slide { animation: slide calc(var(--slide) * 3) linear infinite; animation-delay: calc(var(--slide) * var(--i) - 1s); }
html.anim .hero-progress .bar span { transform: scaleX(0); animation: bar calc(var(--slide) * 3) linear infinite; animation-delay: calc(var(--slide) * var(--i) - 1s); }
@keyframes slide {
  0%      { opacity: 0; transform: scale(1.0); }
  6%      { opacity: 1; }
  33.33%  { opacity: 1; }
  40%     { opacity: 0; transform: scale(1.09); }
  100%    { opacity: 0; transform: scale(1.09); }
}
@keyframes bar {
  0%      { transform: scaleX(0); }
  33.33%  { transform: scaleX(1); opacity: 1; }
  36%     { transform: scaleX(1); opacity: 0; }
  100%    { transform: scaleX(0); opacity: 0; }
}

/* Hero text: lines rise in on load. */
html.anim .hero-kicker,
html.anim .hero-title .line,
html.anim .hero-sub,
html.anim .hero-actions { animation: rise .9s var(--ease) both; }
html.anim .hero-title .line { animation-delay: calc(.12s + var(--i) * .1s); }
html.anim .hero-sub { animation-delay: .38s; }
html.anim .hero-actions { animation-delay: .5s; }
html.anim .advisor { animation: rise .9s .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Inner page head: copy and photo rise in on load. */
html.anim .page-head-copy > * { animation: rise .9s var(--ease) both; }
html.anim .page-head-copy > :nth-child(2) { animation-delay: .08s; }
html.anim .page-head-copy > :nth-child(3) { animation-delay: .18s; }
html.anim .page-head-copy > :nth-child(4) { animation-delay: .28s; }
html.anim .page-head-photo { animation: rise 1s .2s var(--ease) both; }

/* Scroll reveal (one IntersectionObserver in main.js adds .is-in). */
html.anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
html.anim .reveal.is-in { opacity: 1; transform: none; }

/* IMS band: gentle parallax on the photo where scroll-driven animation exists. */
@supports (animation-timeline: view()) {
  html.anim .ims-bg { animation: drift linear both; animation-timeline: view(); }
  @keyframes drift { from { transform: translateY(-8%); } to { transform: translateY(8%); } }
}

/* Shot mode: header doesn't repeat in full-page captures. */
html.shot .site-header { position: relative; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { padding: 64px 0 150px; }
  .hero::before { background: linear-gradient(90deg, rgba(7, 15, 46, .86), rgba(7, 15, 46, .55)); }
  .hero-progress { justify-content: flex-start; bottom: 110px; padding-inline: 16px; }
  .advisor { flex-direction: column; align-items: flex-start; padding: 26px 24px; gap: 20px; }
  .advisor-actions { flex-wrap: wrap; gap: 18px; }
  .intro, .why-grid, .approach, .cta-grid { grid-template-columns: 1fr; }
  .why-photo { aspect-ratio: 16 / 11; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .benefits { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .creds-logos { gap: 16px 28px; }
  .creds-logos img { height: 50px; }
  .reviews-head { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-title .line { display: inline; }
}

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

.iso-turnstile { display: flex; justify-content: center; margin: 4px 0 16px; min-height: 65px; }
