/* ==========================================================================
   Everest Safety Developments — site styles
   Design tokens first; brand colours are taken from the logo (confirm exact
   values against the original logo file before launch).
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-variable.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* brand */
  --navy: #2b2d6e;
  --navy-900: #1b1c47;
  --navy-800: #23245a;
  --navy-100: #e3e5f0;
  --navy-50: #f1f2f8;
  --maroon: #6b1220;
  --maroon-800: #520d18;
  --maroon-on-dark: #e8bcc3;
  /* neutrals */
  --ink: #0a0a0a;
  --text: #2a2b36;
  --muted: #595c6e;
  --line: #d9dce6;
  --paper: #f2f3f7;
  --white: #fff;
  /* type */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* layout */
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
  --radius: 6px;
  --section: clamp(3.5rem, 7vw, 6rem);
  --shadow-sm: 0 1px 2px rgba(27, 28, 71, .06), 0 6px 18px -10px rgba(27, 28, 71, .22);
  --shadow: 0 2px 6px rgba(27, 28, 71, .06), 0 18px 40px -18px rgba(27, 28, 71, .32);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--maroon); text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .5em; color: var(--ink); font-weight: 800; font-stretch: 106%; line-height: 1.08; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 1.15rem + 3.1vw, 3.55rem); font-stretch: 112%; }
h2 { font-size: clamp(1.65rem, 1.15rem + 1.6vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 750; font-stretch: 100%; line-height: 1.22; letter-spacing: -.004em; }
::selection { color: var(--white); background: var(--navy); }
:focus-visible { outline: 3px solid var(--maroon); outline-offset: 3px; }
.process :focus-visible, .contact-band :focus-visible, .site-footer :focus-visible, .utility :focus-visible { outline-color: var(--white); }

.wrap, .section-wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 16px; color: var(--white); background: var(--navy-900); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.icon { flex: none; }

.eyebrow { margin: 0 0 .9rem; color: var(--maroon); font-size: .76rem; font-weight: 700; font-stretch: 118%; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }

/* ---------- buttons & links ---------- */
.button, .nav-cta { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 50px; padding: 0 1.35rem; border: 2px solid transparent; border-radius: var(--radius); font-size: .97rem; font-weight: 700; line-height: 1.1; text-decoration: none; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.button-primary { color: var(--white); background: var(--navy); }
.button-primary:hover { background: var(--navy-900); }
.button-ghost, .button-outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.button-ghost:hover, .button-outline:hover { color: var(--white); background: var(--navy); }
.button-block { width: 100%; }
.nav-cta { color: var(--white); background: var(--maroon); white-space: nowrap; }
.nav-cta:hover { background: var(--maroon-800); }
.text-link, .underlined-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--maroon); font-weight: 700; text-decoration: none; }
.text-link:hover, .underlined-link:hover { text-decoration: underline; }
.text-link svg { transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- utility bar ---------- */
.utility { color: rgba(255, 255, 255, .82); background: var(--navy-900); font-size: .82rem; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.utility-note { margin: 0; font-weight: 600; font-stretch: 110%; letter-spacing: .02em; }
.utility-links { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.utility-links a { display: inline-flex; align-items: center; gap: .4rem; color: var(--white); font-weight: 600; text-decoration: none; }
.utility-links a span { color: rgba(255, 255, 255, .65); font-weight: 500; }
.utility-links a:hover { text-decoration: underline; }

/* ---------- header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2)); background: var(--white); box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgba(27, 28, 71, .35); }
.brand { display: block; flex: none; width: 168px; }
.brand img { width: 100%; }
.site-header > .nav-cta { margin-left: auto; }
.nav { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.nav-list { display: flex; align-items: stretch; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.nav-item { display: flex; align-items: center; }
.nav-link { display: inline-flex; align-items: center; min-height: var(--header-h); padding: 0 .55rem; border-bottom: 3px solid transparent; color: var(--ink); font-size: .96rem; font-weight: 650; text-decoration: none; transition: border-color .2s ease, color .2s ease; }
.nav-link:hover, .nav-item.is-active .nav-link, .has-panel.is-open .nav-link { border-bottom-color: var(--maroon); }
.nav-toggle { display: grid; place-items: center; width: 28px; height: 36px; margin-left: -.4rem; padding: 0; border: 0; color: var(--maroon); background: none; cursor: pointer; }
.nav-toggle svg { transition: transform .2s ease; }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-panel { position: absolute; top: 100%; left: max(var(--gutter), calc((100% - var(--max)) / 2)); right: max(var(--gutter), calc((100% - var(--max)) / 2)); display: none; grid-template-columns: 280px 1fr; gap: 2.5rem; padding: 2rem 2.25rem 2.25rem; border-top: 3px solid var(--maroon); border-radius: 0 0 var(--radius) var(--radius); background: var(--white); box-shadow: var(--shadow); }
.has-panel.is-open .nav-panel { display: grid; }
.nav-panel-intro p:not(.eyebrow) { color: var(--muted); font-size: .95rem; }
.nav-panel-list { columns: 2; column-gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.nav-panel-list li { break-inside: avoid; }
.nav-panel-list a { display: block; padding: .55rem .75rem; border-radius: 4px; color: var(--text); font-size: .95rem; font-weight: 600; line-height: 1.3; text-decoration: none; }
.nav-panel-list a:hover { color: var(--navy); background: var(--navy-50); }
.menu-toggle { display: none; align-items: center; gap: .45rem; min-height: 44px; margin-left: auto; padding: 0 .9rem; border: 2px solid var(--navy); border-radius: var(--radius); color: var(--navy); background: var(--white); font-weight: 700; cursor: pointer; }

@media (hover: hover) and (min-width: 1121px) {
  .has-panel:hover .nav-panel { display: grid; }
  .has-panel:hover .nav-link { border-bottom-color: var(--maroon); }
}

@media (max-width: 1120px) {
  :root { --header-h: 72px; }
  .brand { width: 150px; }
  .menu-toggle { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); padding: .5rem var(--gutter) 1.5rem; overflow-y: auto; background: var(--white); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-link { flex: 1; min-height: 54px; padding: 0; border: 0; font-size: 1.05rem; }
  .nav-toggle { width: 48px; height: 48px; margin: 0; }
  .nav-panel { position: static; width: 100%; grid-template-columns: 1fr; padding: 0 0 .75rem; border: 0; box-shadow: none; }
  .nav-panel-intro { display: none; }
  .nav-panel-list { columns: 1; }
  .nav-cta { margin-top: 1.25rem; }
}

/* ---------- sections ---------- */
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1rem 3rem; align-items: end; margin-bottom: 2.25rem; }
.section-head h2 { margin: 0; }
.section-head > p { max-width: 54ch; margin: 0; color: var(--muted); }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

.card { border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }

/* ---------- hero with illustrated building ---------- */
.hero { padding-top: clamp(1.75rem, 3.5vw, 3rem); background: var(--paper); }
.hero-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1.25rem clamp(2rem, 4vw, 4rem); align-items: end; }
.hero-copy h1 { margin: 0; font-size: clamp(2rem, 1.1rem + 2.6vw, 3.1rem); }
.hero-side { padding-bottom: .3rem; }
.hero-lede { max-width: 60ch; margin: 0 0 1.25rem; font-size: 1.04rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 960px) { .hero-head { grid-template-columns: 1fr; } }

.scene-wrap { margin-top: clamp(1rem, 2.5vw, 2rem); }
.scene, .scene-canvas { position: relative; }
.scene-svg { display: block; width: 100%; height: auto; }
.spot { position: absolute; z-index: 2; top: var(--y); left: var(--x); display: grid; place-items: center; width: 34px; height: 34px; margin: -17px 0 0 -17px; padding: 0; border: 3px solid var(--white); border-radius: 50%; color: var(--white); background: var(--maroon); box-shadow: 0 4px 12px rgba(107, 18, 32, .35); font-size: .88rem; font-weight: 800; cursor: pointer; transition: transform .2s ease, background-color .2s ease; }
.spot::before { content: ""; position: absolute; inset: -9px; border: 2px solid rgba(107, 18, 32, .4); border-radius: 50%; animation: spot-pulse 2.6s ease-out infinite; }
.spot:hover, .spot[aria-expanded="true"] { background: var(--navy); transform: scale(1.1); }
.spot[aria-expanded="true"]::before { animation: none; opacity: 0; }
@keyframes spot-pulse { 0% { opacity: .9; transform: scale(.75); } 70%, 100% { opacity: 0; transform: scale(1.3); } }

.spot-pop { position: absolute; z-index: 5; top: var(--y); left: var(--x); width: min(300px, 80vw); padding: 1.1rem 1.25rem 1.15rem; border-top: 3px solid var(--maroon); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); transform: translate(-50%, calc(-100% - 28px)); }
.spot-pop.pop-start { transform: translate(-26px, calc(-100% - 28px)); }
.spot-pop.pop-end { transform: translate(calc(-100% + 26px), calc(-100% - 28px)); }
.spot-pop.pop-below { transform: translate(-50%, 28px); }
.spot-pop.pop-start.pop-below { transform: translate(-26px, 28px); }
.spot-pop.pop-end.pop-below { transform: translate(calc(-100% + 26px), 28px); }
.spot-pop[hidden] { display: none; }
.spot-pop .eyebrow { margin-bottom: .45rem; padding-right: 2rem; }
.spot-pop h3 { margin-bottom: .35rem; font-size: 1.1rem; }
.spot-pop p:not(.eyebrow) { margin-bottom: .75rem; font-size: .93rem; }
.spot-close { position: absolute; top: .35rem; right: .35rem; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; color: var(--muted); background: none; cursor: pointer; }
.spot-close:hover { color: var(--ink); }

.scene-foot { display: grid; gap: 1rem; padding: 1.25rem 0 2.5rem; border-top: 1px solid var(--line); }
.scene-hint { display: flex; align-items: center; gap: .6rem; margin: 0; color: var(--muted); font-size: .9rem; }
.scene-hint-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--maroon); }
.scene-legend { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.scene-legend a { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: .35rem .85rem .35rem .4rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--white); font-size: .88rem; font-weight: 600; text-decoration: none; transition: border-color .2s ease; }
.scene-legend a:hover { border-color: var(--navy); }
.legend-num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--white); background: var(--maroon); font-size: .75rem; font-weight: 800; }

@media (max-width: 760px) {
  .scene { margin-inline: calc(-1 * var(--gutter) + 4px); }
  .spot { width: 24px; height: 24px; margin: -12px 0 0 -12px; border-width: 2px; font-size: .7rem; }
  .spot::before { inset: -5px; }
  .spot-pop { margin-inline: calc(var(--gutter) - 4px); }
  .spot-pop, .spot-pop.pop-start, .spot-pop.pop-end, .spot-pop.pop-below, .spot-pop.pop-start.pop-below, .spot-pop.pop-end.pop-below { position: relative; top: auto; left: auto; width: auto; margin-top: .75rem; transform: none; }
  .scene-legend a { font-size: .82rem; }
}

/* ---------- "What can we do for you?" ---------- */
.intent { padding-bottom: var(--section); background: var(--paper); }
.intent-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.75rem; }
.intent-card { padding: clamp(1.5rem, 3.2vw, 2.6rem); }
.intent-card > p:not(.intent-label) { color: var(--muted); }
.intent-label { margin: 1.4rem 0 .5rem; color: var(--ink); font-weight: 750; }
.intent-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.intent-list a { position: relative; display: flex; align-items: center; gap: 1rem; padding: .9rem .5rem .9rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background-color .2s ease, padding .2s ease; }
.intent-list a::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--maroon); transform: scaleY(0); transition: transform .2s ease; }
.intent-list a:hover { padding-left: .85rem; background: var(--navy-50); }
.intent-list a:hover::before { transform: scaleY(1); }
.intent-icon { display: grid; flex: none; place-items: center; width: 46px; height: 46px; border-radius: var(--radius); color: var(--white); background: var(--navy); }
.intent-text { display: flex; flex: 1; flex-direction: column; }
.intent-text strong { font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.intent-text small { color: var(--muted); font-size: .88rem; }
.intent-arrow { color: var(--maroon); }
.plan-card { display: flex; flex-direction: column; overflow: hidden; }
.plan-media img { width: 100%; height: clamp(220px, 24vw, 300px); object-fit: cover; }
.plan-body { padding: clamp(1.5rem, 3.2vw, 2.6rem); }
.plan-body p:not(.eyebrow) { margin-bottom: 1.5rem; }
@media (max-width: 960px) { .intent-grid { grid-template-columns: 1fr; } }

/* ---------- solution groups ---------- */
.groups { padding-block: var(--section); background: var(--white); }
.group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.group-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: box-shadow .25s ease, transform .25s ease; }
.group-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.group-media { display: block; overflow: hidden; }
.group-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.group-card:hover .group-media img { transform: scale(1.03); }
.group-body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem 1.5rem 1.75rem; }
.group-count { display: flex; align-items: center; gap: .75rem; margin: 0 0 .7rem; color: var(--muted); font-size: .76rem; font-weight: 700; font-stretch: 115%; letter-spacing: .1em; text-transform: uppercase; }
.group-count span { padding: .15rem .45rem; border-radius: 3px; color: var(--white); background: var(--maroon); letter-spacing: .04em; }
.group-body h3 { font-size: 1.35rem; }
.group-body h3 a { color: inherit; text-decoration: none; }
.group-body h3 a:hover { color: var(--navy); text-decoration: underline; }
.group-body > p { color: var(--muted); }
.group-links { margin: .25rem 0 1.4rem; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.group-links a { display: block; padding: .5rem 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: .93rem; line-height: 1.35; text-decoration: none; }
.group-links a:hover { color: var(--maroon); }
.group-body .text-link { margin-top: auto; }
@media (max-width: 1040px) {
  .group-grid { grid-template-columns: 1fr; }
  .group-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .group-media img { height: 100%; aspect-ratio: auto; }
  .group-links { columns: 2; column-gap: 1.5rem; }
  .group-links li { break-inside: avoid; }
}
@media (max-width: 680px) {
  .group-card { display: flex; }
  .group-media img { aspect-ratio: 16 / 10; }
  .group-links { columns: 1; }
}

/* ---------- process (dark band) ---------- */
.process { padding-block: var(--section); color: rgba(255, 255, 255, .8); background: var(--navy-900); }
.process h2, .process h3 { color: var(--white); }
.process .eyebrow { color: var(--maroon-on-dark); }
.process .section-head > p { color: rgba(255, 255, 255, .72); }
.process-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 2.5rem; padding: 0; border-top: 1px solid rgba(255, 255, 255, .18); list-style: none; }
.process-list li { padding: 1.75rem 1.5rem 1.5rem; border-right: 1px solid rgba(255, 255, 255, .18); }
.process-list li:first-child { padding-left: 0; }
.process-list li:last-child { border-right: 0; }
.process-list p { margin: 0; font-size: .96rem; }
.process-num { display: block; margin-bottom: 1rem; color: transparent; font-size: 3.2rem; font-weight: 800; font-stretch: 125%; line-height: 1; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .6); }
@media (max-width: 960px) {
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-list li, .process-list li:first-child { padding: 1.5rem 1.25rem 1.5rem 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
}
@media (max-width: 560px) { .process-list { grid-template-columns: 1fr; } }

.competent-note { max-width: 80ch; margin: 0; padding: 1rem 1.25rem; border-left: 3px solid var(--maroon); color: var(--text); background: var(--navy-50); font-size: .93rem; }
.process .competent-note { border-left-color: var(--maroon-on-dark); color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .06); }
.competent-note strong { color: inherit; }

/* ---------- project photos ---------- */
.projects { padding-block: var(--section); background: var(--paper); }
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 17vw, 230px); gap: 12px; }
.mosaic figure { position: relative; margin: 0; overflow: hidden; border-radius: 4px; background: var(--navy-100); }
.mosaic figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic figure:nth-child(6) { grid-column: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 2.5rem .9rem .75rem; color: var(--white); background: linear-gradient(transparent, rgba(15, 16, 40, .85)); font-size: .86rem; font-weight: 600; line-height: 1.3; }
.mosaic-compact { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); grid-auto-rows: 250px; }
.mosaic-compact figure:nth-child(n) { grid-column: auto; grid-row: auto; }
.mosaic-compact figure:first-child:nth-last-child(n+5) { grid-column: span 2; }
.projects-compact { background: var(--white); }
@media (max-width: 900px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
  .mosaic figure:nth-child(6) { grid-column: span 1; }
  .mosaic-compact { grid-auto-rows: 210px; }
}
@media (max-width: 520px) { .mosaic { grid-auto-rows: 150px; gap: 8px; } }

/* ---------- contact band ---------- */
.contact-band { padding-block: clamp(2.5rem, 5vw, 3.5rem); color: rgba(255, 255, 255, .82); background: var(--navy) repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 22px, transparent 22px 44px); }
.band-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center; }
.band-copy h2 { margin-bottom: .35rem; color: var(--white); }
.band-copy p { max-width: 52ch; margin: 0; }
.band-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: .75rem; min-height: 58px; padding: .55rem 1.15rem; border-radius: var(--radius); color: var(--navy); background: var(--white); font-weight: 750; line-height: 1.2; text-decoration: none; transition: transform .2s ease; }
.chip:hover { transform: translateY(-2px); }
.chip small { display: block; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.chip-solid { color: var(--white); background: var(--maroon); }
.chip-solid small { color: rgba(255, 255, 255, .78); }
@media (max-width: 960px) { .band-inner { grid-template-columns: 1fr; } }

/* ---------- clients ---------- */
.clients { padding-block: var(--section); background: var(--white); }
.client-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.client-logo { display: grid; place-items: center; aspect-ratio: 1; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .2s ease, box-shadow .2s ease; }
a.client-logo:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.client-logo img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 1000px) { .client-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- training partner ---------- */
.training { padding-block: var(--section); background: var(--paper); }
.training-inner { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.training-logo { aspect-ratio: 1; padding: 1.5rem; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.training-logo img { width: 100%; height: 100%; object-fit: contain; }
.training-copy { max-width: 62ch; }
.training-copy p:not(.eyebrow) { margin-bottom: 1.5rem; }
@media (max-width: 760px) { .training-inner { grid-template-columns: 1fr; } .training-logo { max-width: 180px; } }

/* ---------- FAQ ---------- */
.faq { padding-block: var(--section); background: var(--white); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem clamp(2rem, 5vw, 4rem); }
.faq-grid > div:first-child p:not(.eyebrow) { color: var(--muted); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; color: var(--ink); font-size: 1.06rem; font-weight: 700; line-height: 1.35; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { color: var(--maroon); transition: transform .2s ease; }
.faq-list details[open] summary svg { transform: rotate(180deg); }
.faq-list details p { max-width: 65ch; margin: 0 0 1.25rem; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- quote form ---------- */
.quote { padding-block: var(--section); background: var(--paper); }
.quote-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.quote-lead > p:not(.eyebrow) { color: var(--muted); }
.branch-list { display: grid; gap: 1rem; margin-top: 2rem; }
.branch { display: grid; gap: .35rem; padding: 1.1rem 1.25rem; border-left: 4px solid var(--navy); border-radius: var(--radius); background: var(--white); }
.branch-label { margin: 0 0 .15rem; color: var(--maroon); font-size: .78rem; font-weight: 800; font-stretch: 115%; letter-spacing: .1em; text-transform: uppercase; }
.branch a { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.branch a:hover { color: var(--maroon); text-decoration: underline; }
.form-panel { padding: clamp(1.5rem, 3.2vw, 2.6rem); border-top: 4px solid var(--maroon); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 20px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.form-grid label { display: block; color: var(--ink); font-size: .93rem; font-weight: 650; }
.form-wide { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { display: block; width: 100%; min-height: 50px; margin-top: .45rem; padding: .75rem .85rem; border: 1.5px solid #bfc3d2; border-radius: 4px; color: var(--ink); background: var(--white); font-size: 1rem; font-weight: 400; transition: border-color .2s ease; }
.form-grid textarea { min-height: 130px; resize: vertical; }
.form-grid input:hover, .form-grid select:hover, .form-grid textarea:hover { border-color: var(--navy); }
.form-grid input:focus-visible, .form-grid select:focus-visible, .form-grid textarea:focus-visible { border-color: var(--navy); outline: 3px solid rgba(43, 45, 110, .28); outline-offset: 0; }
.req { color: var(--maroon); }
.optional { margin-left: .35rem; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.consent { display: flex; align-items: flex-start; gap: .75rem; margin: 1.35rem 0 1.25rem; font-size: .93rem; cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: .9rem 0 0; color: var(--muted); font-size: .85rem; }
@media (max-width: 960px) { .quote-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- category hub pages ---------- */
.page-head { padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2.5rem, 5vw, 4rem); background: var(--paper); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem clamp(2rem, 4.5vw, 4.5rem); align-items: center; }
.page-head h1 { font-size: clamp(1.95rem, 1.2rem + 2.3vw, 3rem); }
.lede { max-width: 62ch; font-size: 1.08rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.75rem; padding: 0; font-size: .88rem; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--muted); }
.breadcrumb a { font-weight: 600; }
.head-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.25rem; }
.updated { margin: 0; color: var(--muted); font-size: .84rem; }
.head-figure { position: relative; margin: 0; }
.head-figure img { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.head-figure figcaption { position: absolute; bottom: 1rem; left: 1rem; padding: .4rem .75rem; border-radius: 4px; color: var(--ink); background: rgba(255, 255, 255, .94); font-size: .82rem; font-weight: 600; }
@media (max-width: 960px) { .page-head-grid { grid-template-columns: 1fr; } }

.chips { position: sticky; z-index: 30; top: var(--header-h); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); }
.chips ul { display: flex; gap: .5rem; margin: 0; padding: .7rem 0; overflow-x: auto; list-style: none; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.chips ul::-webkit-scrollbar { display: none; }
.chips li:last-child { padding-right: 40px; }
.chips a { display: inline-block; padding: .45rem .95rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .86rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chips a:hover { border-color: var(--navy); background: var(--navy-50); }

.catalogue { padding: 2.75rem 0 var(--section); background: var(--paper); }
.catalogue-title { margin-bottom: 1.5rem; font-size: 1.45rem; }
.catalogue-title span { color: var(--muted); font-weight: 600; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 1.25rem; margin-bottom: 2.25rem; }
.svc-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--header-h) + 76px); transition: box-shadow .25s ease, transform .25s ease; }
.svc-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.svc-card:target { outline: 3px solid var(--maroon); outline-offset: 3px; }
.svc-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-50); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-illus { display: grid; place-items: center; height: 100%; color: var(--navy); background: radial-gradient(circle at 50% 46%, var(--white) 0, var(--navy-50) 68%); }
.svc-icon { width: 84px; height: 84px; }
.svc-body { display: flex; flex: 1; flex-direction: column; padding: 0 1.25rem 1.4rem; }
.svc-body::before { content: ""; display: block; height: 3px; margin: 0 0 1rem; background: linear-gradient(90deg, var(--maroon) 0 40px, transparent 40px 46px, #cfd2dd 46px); }
.svc-num { margin: 0 0 .3rem; color: var(--muted); font-size: .74rem; font-weight: 800; font-stretch: 115%; letter-spacing: .12em; }
.svc-body h3 { margin-bottom: .5rem; font-size: 1.12rem; }
.svc-body p:not(.svc-num) { margin-bottom: 1.1rem; font-size: .94rem; }
.svc-cta { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; color: var(--maroon); font-weight: 700; text-decoration: none; }
.svc-cta:hover { text-decoration: underline; }

.related { padding-block: var(--section); background: var(--paper); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.related-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--white); text-decoration: none; transition: box-shadow .25s ease, transform .25s ease; }
.related-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.related-media { display: block; overflow: hidden; }
.related-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.related-logo { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--paper); }
.related-logo img { width: 38%; aspect-ratio: 1; object-fit: contain; }
.related-body { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.25rem 1.4rem; }
.related-body .eyebrow { margin: 0; }
.related-body strong { font-size: 1.12rem; font-weight: 800; line-height: 1.25; }
.related-body span:last-child, .related-body span:nth-last-child(2):not(.eyebrow) { color: var(--text); font-size: .93rem; }
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { padding-top: 3rem; color: rgba(255, 255, 255, .78); background: var(--navy-900); }
.footer-contact { display: flex; flex-wrap: wrap; gap: 1.75rem 4.5rem; padding-bottom: 2.25rem; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer-contact-item p { margin: 0 0 .3rem; color: var(--maroon-on-dark); font-size: .76rem; font-weight: 700; font-stretch: 115%; letter-spacing: .12em; text-transform: uppercase; }
.footer-big { display: flex; align-items: center; gap: .65rem; color: var(--white); font-size: clamp(1.4rem, 1rem + 1.2vw, 1.95rem); font-weight: 800; font-stretch: 108%; text-decoration: none; }
.footer-mail { display: inline-flex; align-items: center; gap: .5rem; margin-top: .35rem; color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer-big:hover, .footer-mail:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr .95fr; gap: 2.5rem; padding: 2.75rem 0; }
.footer-logo { display: inline-block; margin-bottom: 1.1rem; padding: 10px 14px; border-radius: var(--radius); background: var(--white); }
.footer-logo img { width: 168px; }
.footer-about p { max-width: 34ch; font-size: .94rem; }
.footer-h { margin: 0 0 1rem; color: var(--white); font-size: .8rem; font-weight: 700; font-stretch: 115%; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.footer-h a { color: inherit; text-decoration: none; }
.footer-h a:hover { text-decoration: underline; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li a { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem 0; color: rgba(255, 255, 255, .74); font-size: .92rem; line-height: 1.35; text-decoration: none; }
.footer-col li a:hover { color: var(--white); text-decoration: underline; }
.footer-company { margin-top: 1.25rem !important; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding: 1.25rem 0 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .86rem; }
.site-footer > .footer-bottom:not(.wrap) { padding-inline: var(--gutter); }
.footer-bottom a { color: rgba(255, 255, 255, .82); }
.footer-tagline { font-style: italic; }
@media (max-width: 1040px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- mobile quick-contact bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .utility { display: none; }
  .mobile-bar { position: fixed; z-index: 60; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1fr 1fr 1.15fr; padding-bottom: env(safe-area-inset-bottom); background: var(--white); box-shadow: 0 -4px 18px rgba(27, 28, 71, .14); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 56px; border-right: 1px solid var(--line); color: var(--navy); font-size: .9rem; font-weight: 700; text-decoration: none; }
  .mobile-bar .mobile-bar-cta { border: 0; color: var(--white); background: var(--maroon); }
  body { padding-bottom: 56px; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
