/* ==========================================================================
   One Prime Solutions — "Emergency signage" design system
   Built for skim-readers: big type, one idea per block, giant tap targets,
   black + orange, no decoration that doesn't carry information.
   ========================================================================== */
:root {
  --ink: #0d0d0d;            /* black panels, header, footer */
  --ink-2: #1a1a1a;          /* raised surface on black */
  --paper: #ffffff;
  --paper-2: #f5f4f0;        /* alternate section band */
  --text: #111111;           /* headings on white */
  --body: #3a3a40;           /* body copy on white (high contrast) */
  --muted: #7a7a82;
  --accent: #f0811c;         /* brand orange — buttons, graphics */
  --accent-bright: #ff9a3c;  /* orange on black */
  --accent-deep: #c25f06;    /* orange for text on white (AA) */
  --line: rgba(0, 0, 0, 0.10);
  --line-dark: rgba(255, 255, 255, 0.14);
  --radius: 18px;
  --radius-panel: 28px 28px 28px 0;  /* signature: rounded with a square bottom-left */
  --sans: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --sec-pad: 72px;
  --nav-h: 84px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--body);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { overflow-wrap: break-word; color: var(--text); }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
::selection { background: var(--accent); color: #111; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Type scale ---------- */
h1 {
  font-weight: 800;
  font-size: clamp(2.7rem, 6.4vw, 4.8rem);
  line-height: 1.12; letter-spacing: -0.02em;
  margin-bottom: 28px; color: #fff;
}
h1 em { font-style: normal; color: var(--accent-bright); }
/* orange line keeps the original size; the white line is scaled up (set in .hero h1) */
.hero h1 em { display: block; font-size: clamp(2.5rem, 4.5vw, 3.75rem); margin-top: 0.08em; }
h2 {
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.08; letter-spacing: -0.025em;
}
h2 em { font-style: normal; color: var(--accent-deep); }
h3 { font-weight: 700; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-deep); font-weight: 700; margin-bottom: 16px;
}
.kicker::before { content: ''; width: 26px; height: 4px; background: var(--accent); border-radius: 2px; }
.lead { font-size: 1.35rem; line-height: 1.45; }

/* ---------- Emergency bar ---------- */
.topbar {
  background: var(--accent); color: #111;
  font-weight: 700; font-size: 1rem; text-align: center; padding: 11px 24px;
}
.topbar a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; white-space: nowrap; }

/* ---------- Nav ---------- */
header { position: sticky; top: 0; z-index: 100; background: var(--ink); border-bottom: 1px solid #2a2a2a; }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: flex; align-items: center; }
.brand-logo { height: 46px; width: auto; }
.foot-logo { height: 44px; width: auto; }
nav ul { display: flex; gap: 34px; list-style: none; align-items: center; }
nav a { font-size: 1.05rem; font-weight: 600; color: #f2f2f2; transition: color 0.2s; }
nav a:hover { color: var(--accent-bright); }
.has-drop { position: relative; display: flex; align-items: center; gap: 4px; }
.drop-caret {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; color: #f2f2f2; cursor: pointer;
  font-size: 0.8rem; line-height: 1; padding: 8px; border-radius: 6px; transition: color 0.2s, transform 0.25s;
}
.drop-caret:hover { color: var(--accent-bright); }
.has-drop.open > .drop-caret { transform: rotate(180deg); color: var(--accent-bright); }
.drop {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 16px;
  padding: 10px; min-width: 290px; display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 24px 50px rgba(0,0,0,0.4); z-index: 20;
}
.has-drop:hover .drop, .has-drop.open .drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
@media (min-width: 941px) { .drop::before { content: ''; position: absolute; top: -20px; left: 0; right: 0; height: 20px; } }
.drop a { padding: 14px 16px; border-radius: 10px; font-size: 1.02rem; white-space: nowrap; color: #ececec; }
.drop a:hover { background: rgba(240,129,28,0.16); color: var(--accent-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: #111;
  font-weight: 700; font-size: 1.1rem; line-height: 1.2;
  padding: 18px 32px; border-radius: 9999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--accent-bright); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(240,129,28,0.35); }
.btn-xl { font-size: 1.3rem; padding: 22px 40px; }
.btn-ghost { background: transparent; color: var(--text); border: 3px solid var(--accent); padding: 15px 29px; }
.btn-xl.btn-ghost { padding: 19px 37px; }
.hero-panel .btn-ghost, .sidecard .btn-ghost, footer .btn-ghost { color: #fff; }
.btn-ghost:hover { background: rgba(240,129,28,0.12); box-shadow: none; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.7rem; cursor: pointer; }
nav .btn { padding: 14px 24px; font-size: 1.02rem; }

/* ---------- Black panel (hero + page hero) ---------- */
.hero, .page-hero { padding: 40px 0 0; background: var(--paper); }
.hero-panel {
  position: relative; overflow: hidden;
  background: var(--ink);
  background-image:
    radial-gradient(900px 520px at 90% -10%, rgba(240,129,28,0.22), transparent 60%),
    linear-gradient(105deg, #000 30%, #161616 70%, #222 100%);
  border-radius: var(--radius-panel);
  padding: 88px 72px 80px; color: #fff;
}
.hero-panel > * { position: relative; }
/* home hero: copy left, stats stacked right — all above the fold */
.hero .hero-panel { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: center; padding: 72px 72px 64px; }
.hero h1 { font-size: clamp(2.9rem, 5.3vw, 4.5rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-bright); font-weight: 700; margin-bottom: 26px;
}
.eyebrow::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 5px rgba(240,129,28,0.22); }
.hero p.lead { color: #e2e2e2; max-width: 640px; margin-bottom: 36px; font-size: 1.25rem; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.l-short { display: none; }
.hero-trust { display: flex; flex-direction: column; border-left: 1px solid var(--line-dark); padding-left: 40px; }
.hero-trust div { display: flex; flex-direction: column; padding: 20px 0; border-bottom: 1px solid var(--line-dark); }
.hero-trust div:first-child { padding-top: 0; }
.hero-trust div:last-child { border-bottom: none; padding-bottom: 0; }
.hero-trust b { font-size: 2.2rem; line-height: 1; color: #fff; font-weight: 800; letter-spacing: -0.02em; }
.hero-trust small { font-size: 1rem; color: #b5b5b5; margin-top: 6px; }

/* staggered load — the one animation on the site */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-main > *, .hero-trust, .page-hero .hero-panel > * { animation: rise 0.6s ease both; }
.hero-main > *:nth-child(2), .page-hero .hero-panel > *:nth-child(2) { animation-delay: 0.08s; }
.hero-main > *:nth-child(3), .page-hero .hero-panel > *:nth-child(3) { animation-delay: 0.16s; }
.hero-main > *:nth-child(4), .page-hero .hero-panel > *:nth-child(4) { animation-delay: 0.24s; }
.hero-trust { animation-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { .hero-main > *, .hero-trust, .page-hero .hero-panel > * { animation: none; } }

/* inner-page hero */
.page-hero .hero-panel { padding: 64px 72px 68px; }
.crumbs { font-size: 0.95rem; color: #a8a8a8; margin-bottom: 22px; }
.crumbs a:hover { color: var(--accent-bright); }
.crumbs span { color: #ececec; }
/* 9vw floor keeps the longest single word ("Decontamination") inside the panel on every phone width */
.page-hero h1 { font-size: clamp(1.9rem, 9vw, 4rem); margin-bottom: 18px; max-width: 16ch; }
/* headings containing a 13+ letter word (e.g. "Decontamination") step down a little on phones */
.page-hero h1.long-word { font-size: clamp(1.5rem, 7.6vw, 4rem); }
.page-hero p { color: #e2e2e2; font-size: 1.3rem; line-height: 1.45; max-width: 720px; }
.page-ico {
  width: 64px; height: 64px; border-radius: 9999px; display: grid; place-items: center; margin-bottom: 22px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--line-dark); color: var(--cat-bright, var(--accent-bright));
}
.page-ico svg { width: 30px; height: 30px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 0.95rem; color: #b5b5b5; margin-bottom: 22px; }

/* ---------- Category colours ---------- */
.theme-trauma-cleaning, .cat-trauma-cleaning
  { --cat: #d9453c; --cat-bright: #ff7466; --cat-deep: #b02f27; --cat-glow: rgba(217,69,60,0.30); }
.theme-microbial-remediation, .cat-microbial-remediation
  { --cat: #79b53d; --cat-bright: #97d55a; --cat-deep: #4f7527; --cat-glow: rgba(121,181,61,0.28); }
.theme-flood-fire-cleaning, .cat-flood-fire-cleaning
  { --cat: #4b96cf; --cat-bright: #6fb4e8; --cat-deep: #2a6796; --cat-glow: rgba(75,150,207,0.30); }
.theme-biohazard-decontamination, .cat-biohazard-decontamination
  { --cat: #e5a417; --cat-bright: #ffc63e; --cat-deep: #8a6604; --cat-em: #ffc63e; --cat-glow: rgba(229,164,23,0.28); }
[class*="theme-"] .page-hero .hero-panel {
  background-image:
    radial-gradient(900px 520px at 90% -10%, var(--cat-glow), transparent 60%),
    linear-gradient(105deg, #000 30%, #161616 70%, #222 100%);
}
[class*="theme-"] .kicker, [class*="theme-"] .kicker::before { color: var(--cat-deep); }
[class*="theme-"] .kicker::before { background: var(--cat); }
[class*="theme-"] .svc-more, [class*="theme-"] section:not(.hero) .tick { color: var(--cat-deep); }
[class*="theme-"] h2 em { color: var(--cat-em, var(--cat-deep)); }
[class*="theme-"] .sidecard .tick { color: var(--cat-bright); }
[class*="theme-"] .crumbs a:hover, [class*="theme-"] .sidecard a:hover { color: var(--cat-bright); }

/* ---------- Sections ---------- */
section { padding: var(--sec-pad) 0; }
section.alt { background: var(--paper); }  /* alternate bands are plain white (client request) */
.sec-head { max-width: 760px; margin-bottom: 44px; }
/* Brand ring: sits in the heading's own flow, so it can never overlap content */
.sec-head::before {
  content: ''; display: block; width: 72px; height: 72px; margin: 0 0 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke-width='13'%3E%3Ccircle cx='70' cy='70' r='54' stroke='%23f0811c' stroke-dasharray='56.5 282.9'/%3E%3Ccircle cx='70' cy='70' r='54' stroke='%23e2504a' stroke-dasharray='56.5 282.9' transform='rotate(72 70 70)'/%3E%3Ccircle cx='70' cy='70' r='54' stroke='%23f5b91e' stroke-dasharray='56.5 282.9' transform='rotate(144 70 70)'/%3E%3Ccircle cx='70' cy='70' r='54' stroke='%237db83f' stroke-dasharray='56.5 282.9' transform='rotate(216 70 70)'/%3E%3Ccircle cx='70' cy='70' r='54' stroke='%234b96cf' stroke-dasharray='56.5 282.9' transform='rotate(288 70 70)'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  animation: ring-spin 52s linear infinite;
}
/* Centred rings are off everywhere (client request): the ring only appears
   on desktop, to the right of a left-aligned heading. */
.sec-head::before { display: none; }
section > .wrap { position: relative; }
@media (min-width: 1024px) {
  /* 120px ring centred in the gap between the panel above and the cards below:
     section padding-top (72) + heading block (~94) + heading gap (56) = ~222px */
  .sec-head:not(.center)::before {
    display: block; position: absolute; right: 40px; top: -22px; margin: 0;
    width: 120px; height: 120px;
  }
}
@keyframes ring-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sec-head::before { animation: none; } }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .kicker { justify-content: center; }
.sec-head p { font-size: 1.25rem; line-height: 1.5; margin-top: 18px; max-width: 640px; }
.sec-head.center p { margin-left: auto; margin-right: auto; }
.tick { color: var(--accent-deep); flex-shrink: 0; font-weight: 800; }
.hero .tick, .sidecard .tick { color: var(--accent-bright); }

/* ---------- Service cards (home + services page) ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.svc {
  display: flex; flex-direction: column;
  background: var(--ink);
  border: 2px solid var(--cat, rgba(255,255,255,0.1)); border-radius: 24px 24px 24px 0;
  padding: 40px; transition: transform 0.25s, box-shadow 0.25s; position: relative; overflow: hidden;
}
/* photo behind the text: greyscale, low opacity, under a dark left-to-right gradient
   so the copy stays readable; the category colour glow sits on top of the photo */
.svc-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0.34; filter: grayscale(1) contrast(1.05);
  transition: opacity 0.4s, transform 0.6s;
}
.svc::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(520px 300px at 90% -10%, var(--cat-glow, rgba(240,129,28,0.28)), transparent 65%),
    linear-gradient(100deg, rgba(13,13,13,0.97) 0%, rgba(13,13,13,0.86) 50%, rgba(13,13,13,0.45) 100%);
}
.svc > *:not(.svc-bg) { position: relative; z-index: 1; }
a.svc:hover .svc-bg { opacity: 0.48; transform: scale(1.04); }
a.svc:hover { transform: translateY(-5px); box-shadow: 0 24px 48px rgba(0,0,0,0.25), 0 0 30px var(--cat-glow, rgba(240,129,28,0.28)); }
.svc-ico {
  width: 68px; height: 68px; border-radius: 9999px; margin-bottom: 26px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08); border: 1px solid var(--line-dark); color: var(--cat-bright, var(--accent-bright));
}
.svc-ico svg { width: 34px; height: 34px; }
.svc h3 { font-size: clamp(1.35rem, 3.4vw, 1.85rem); margin-bottom: 12px; color: #fff; }
.svc p { color: #d6d6d6; font-size: 1.12rem; line-height: 1.5; margin-bottom: 22px; }
.svc-more { color: var(--accent-deep); font-weight: 700; font-size: 1.1rem; display: inline-flex; align-items: center; gap: 8px; margin-top: auto; }
.svc .svc-more, [class*="theme-"] .svc .svc-more { color: var(--cat-bright, var(--accent-bright)); }
.svc-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.svc-links a {
  font-size: 1rem; font-weight: 600; padding: 10px 18px; border-radius: 9999px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--line-dark); color: #eee;
  transition: border-color 0.2s, background 0.2s;
}
.svc-links a:hover { border-color: var(--cat, var(--accent)); background: rgba(255,255,255,0.14); }
/* plain value tiles (about page) reuse .svc without a category */
.svc.plain { border-color: rgba(255,255,255,0.1); }
.svc.plain h3 { font-size: 1.5rem; }

/* sub-service list on a category page */
.sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sub-card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 2px solid var(--line); border-left: 8px solid var(--cat, var(--accent));
  border-radius: var(--radius); padding: 30px 30px 28px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.sub-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(0,0,0,0.09); border-color: var(--cat, var(--accent)); border-left-color: var(--cat, var(--accent)); }
.sub-card h3 { font-size: 1.45rem; margin-bottom: 10px; }
.sub-card p { font-size: 1.05rem; line-height: 1.5; margin-bottom: 18px; }
.sub-card .svc-more { font-size: 1.02rem; }

/* ---------- Big list (service pages) ---------- */
.biglist { list-style: none; display: grid; gap: 14px; }
.biglist li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 24px; font-size: 1.2rem; font-weight: 600; color: var(--text); line-height: 1.4;
}
.biglist .tick { font-size: 1.3rem; line-height: 1.3; }

/* ---------- Trust row (service pages) ---------- */
.trust-row {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px;
  margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line);
}
.trust-row li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: 1.05rem; color: var(--text); line-height: 1.4; }
/* one black panel, four cells, hairlines between (the 1px grid gap shows the panel colour) */
.stats {
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 1px;
  background: rgba(255,255,255,0.18); border-radius: 26px 26px 26px 0; overflow: hidden;
}
.stat {
  background: var(--ink); color: #fff;
  padding: 44px 40px; min-height: 230px;
  display: flex; flex-direction: column; justify-content: center;
}
.stat b { font-size: 3.6rem; font-weight: 800; color: var(--accent-bright); display: block; line-height: 1; letter-spacing: -0.03em; }
.stat span { color: #d6d6d6; font-size: 1.12rem; margin-top: 14px; display: block; line-height: 1.35; white-space: nowrap; }

/* ---------- Prose (articles, cert pages) ---------- */
.content-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px; align-items: start; }
.prose { max-width: 740px; font-size: 1.15rem; line-height: 1.7; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 56px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.4rem; margin: 36px 0 14px; }
.prose p { margin-bottom: 22px; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--cat-deep, var(--accent-deep)); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose ul { list-style: none; display: grid; gap: 14px; margin: 8px 0 28px; }
.prose ul li { position: relative; padding-left: 34px; }
.prose ul li .tick { position: absolute; left: 0; top: 0; font-size: 1.2rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 10px 0 30px; font-size: 1.02rem; }
.prose th, .prose td { text-align: left; padding: 14px 16px; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--paper-2); color: var(--text); font-weight: 700; }
.prose .tbl-wrap { overflow-x: auto; }
.byline { font-size: 1rem; color: var(--muted); border-left: 4px solid var(--cat, var(--accent)); padding-left: 14px; margin-bottom: 32px; }
.takeaways {
  background: var(--ink); color: #fff; border-left: 8px solid var(--cat, var(--accent));
  border-radius: 18px 18px 18px 0; padding: 30px 32px; margin-bottom: 44px;
}
.takeaways h2 { font-size: 1.1rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cat-bright, var(--accent-bright)); margin: 0 0 18px; }
.takeaways ul { margin: 0; gap: 14px; }
.takeaways li { font-size: 1.12rem; font-weight: 600; color: #f2f2f2; line-height: 1.45; }
.takeaways .tick { color: var(--cat-bright, var(--accent-bright)); }
.cert-photo { margin: 0 0 36px; border-radius: 22px 22px 22px 0; overflow: hidden; }
.cert-photo img { width: 100%; }

/* FAQ */
.faq { border: 2px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: var(--paper); }
.faq summary {
  cursor: pointer; padding: 20px 60px 20px 24px; font-weight: 700; color: var(--text); font-size: 1.15rem; line-height: 1.35;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.8rem; font-weight: 400; color: var(--cat-deep, var(--accent-deep)); }
.faq[open] summary::after { content: '−'; }
.faq .faq-a { padding: 0 24px 22px; }
.faq .faq-a p { margin: 0; }
.sources { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.sources h3 { margin-top: 0; font-size: 1.15rem; }
.sources ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; margin: 12px 0 18px; }
.sources ul li { display: list-item; font-size: 0.95rem; padding-left: 0; }
.src-note { font-size: 0.9rem; color: var(--muted); }

/* ---------- Sticky call card ---------- */
.sidecard { background: var(--ink); color: #fff; border-radius: 24px 24px 24px 0; padding: 34px; position: sticky; top: calc(var(--nav-h) + 24px); }
.sidecard h4 { font-size: 1.6rem; font-weight: 800; margin-bottom: 10px; color: #fff; letter-spacing: -0.01em; }
.sidecard p { color: #c4c4c4; font-size: 1.05rem; margin-bottom: 22px; line-height: 1.5; }
.sidecard .btn { width: 100%; font-size: 1.2rem; padding: 20px; }
.side-alt { display: block; text-align: center; margin-top: 14px; font-size: 1rem; color: #e2e2e2; text-decoration: underline; text-underline-offset: 3px; }
.sidecard ul { list-style: none; display: grid; gap: 12px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.sidecard ul li { display: flex; gap: 12px; font-size: 1rem; color: #e6e6e6; }
.sidecard a:hover { color: var(--accent-bright); }
.side-related { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.side-related h5 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: #a0a0a0; margin-bottom: 14px; }
.side-related ul { border: none; padding: 0; margin: 0; gap: 10px; }
.side-related li { display: block; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px 30px; }
.step-num { font-size: 3.4rem; font-weight: 800; line-height: 1; color: var(--accent); letter-spacing: -0.04em; margin-bottom: 16px; }
.step h3 { font-size: 1.4rem; margin-bottom: 10px; }
.step p { font-size: 1.05rem; line-height: 1.5; }

/* ---------- Certifications ---------- */
.cert-logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 36px; }
.cert-logo { display: grid; place-items: center; min-height: 116px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.cert-logo img { max-height: 68px; max-width: 100%; width: auto; }
.cert-logo img.tall { max-height: 86px; }
.certs { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cert {
  background: var(--paper); border: 2px solid var(--line); border-radius: 9999px; padding: 16px 28px;
  font-weight: 700; font-size: 1.08rem; display: flex; align-items: center; gap: 12px; color: var(--text);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
a.cert:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 26px rgba(0,0,0,0.08); }
.cert .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }

/* ---------- Markets (flip cards: hover/focus turns the tile to show an example photo) ---------- */
.markets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.market { perspective: 1200px; height: 200px; outline: none; }
.market-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1); transform-style: preserve-3d;
}
.market:hover .market-inner, .market:focus-visible .market-inner { transform: rotateY(180deg); }
.market-front, .market-back {
  position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.market-front {
  background: var(--paper); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px 14px;
}
.market .m-ico { font-size: 2.4rem; line-height: 1; margin-bottom: 14px; }
.market h4 { font-weight: 700; font-size: 1.08rem; line-height: 1.25; }
.market-back { transform: rotateY(180deg); background: var(--ink); }
.market-back img { width: 100%; height: 100%; object-fit: cover; display: block; }
.market-back span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px;
  color: #fff; font-weight: 700; font-size: clamp(0.8rem, 4vw, 1rem); line-height: 1.2;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
}
@media (prefers-reduced-motion: reduce) { .market-inner { transition: none; } }

/* ---------- Client logo wall ---------- */
.clients { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.client { display: grid; place-items: center; min-height: 118px; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.client img { max-height: 44px; max-width: 100%; width: auto; }
.client img.lg { max-height: 58px; }
.client-sub { margin-top: 8px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--body); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bcard {
  display: flex; flex-direction: column;
  background: var(--paper); border: 2px solid var(--line); border-top: 8px solid var(--cat, var(--accent));
  border-radius: var(--radius); padding: 28px 28px 26px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.bcard:hover { transform: translateY(-5px); border-color: var(--cat, var(--accent)); box-shadow: 0 22px 44px rgba(0,0,0,0.10); }
.bchip {
  display: inline-flex; align-items: center; align-self: flex-start;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 9999px; background: var(--cat, var(--accent)); color: #111;
}
.page-hero .bchip { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid var(--line-dark); }
.bcard .bchip { margin-bottom: 18px; }
.bmeta { display: flex; gap: 8px; align-items: center; font-size: 0.92rem; color: var(--muted); margin-bottom: 12px; }
.bcard h3 { font-size: 1.4rem; line-height: 1.25; margin-bottom: 12px; }
.bcard p { font-size: 1.02rem; line-height: 1.5; margin-bottom: 18px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcard .svc-more { font-size: 1.02rem; }
.pagination { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 56px; flex-wrap: wrap; }
.pagination a, .pagination .cur {
  min-width: 54px; height: 54px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px; font-weight: 700; font-size: 1.05rem;
  background: var(--paper); border: 2px solid var(--line); color: var(--text); transition: transform 0.2s, border-color 0.2s;
}
.pagination a:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-deep); }
.pagination .cur { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-note { color: #a8a8a8; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-grid p { font-size: 1.2rem; line-height: 1.55; margin-bottom: 20px; }
.about-grid .btn { margin-top: 10px; }

/* ---------- About page ---------- */
.about-hero .hero-panel { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding: 64px 72px; }
.about-hero .hero-cta { margin-top: 32px; }
.about-photo { position: relative; margin: 0; border-radius: 22px 22px 22px 0; overflow: hidden; aspect-ratio: 4 / 3; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); }
.about-photo figcaption {
  position: absolute; left: 18px; bottom: 18px; background: var(--accent); color: #111;
  font-weight: 700; font-size: 0.92rem; padding: 9px 16px; border-radius: 9999px;
}
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 3px; background: var(--line); }
.tl { position: relative; padding-top: 40px; }
.tl::before { content: ''; position: absolute; left: 0; top: 0; width: 23px; height: 23px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--paper); }
.tl-label { font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--accent-deep); margin-bottom: 12px; }
.tl h3 { font-size: 1.5rem; margin-bottom: 10px; }
.tl p { font-size: 1.1rem; line-height: 1.5; }
.numbers-sec { padding-top: 0; }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.18); border-radius: 26px 26px 26px 0; overflow: hidden; }
.numbers div { background: var(--ink); color: #fff; padding: 40px 32px; }
.numbers b { display: block; font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--accent-bright); }
.numbers span { display: block; margin-top: 10px; font-size: 1.05rem; color: #d6d6d6; white-space: nowrap; }
.promises { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; border-bottom: 1px solid var(--line); }
.promise { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: start; padding: 30px 0; border-top: 1px solid var(--line); }
.promise b { font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.promise h3 { font-size: 1.45rem; margin-bottom: 6px; }
.promise p { font-size: 1.1rem; line-height: 1.5; }

/* ---------- Closing CTA strip (one row) ---------- */
.cta-strip { padding-top: 0; }
.cta-inner {
  background: var(--ink); color: #fff; border-radius: 22px 22px 22px 0;
  padding: 36px 44px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-text b { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 4px; }
.cta-text span { color: #c4c4c4; font-size: 1.05rem; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-inner .btn-ghost { color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.contact-info { display: grid; gap: 22px; }
.info-item { display: flex; gap: 18px; align-items: flex-start; }
.info-item .i-ico { width: 56px; height: 56px; border-radius: 9999px; flex-shrink: 0; display: grid; place-items: center; font-size: 1.4rem; background: rgba(240,129,28,0.12); border: 1px solid rgba(240,129,28,0.3); }
.info-item b { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 4px; }
.info-item a, .info-item span { color: var(--text); font-size: 1.2rem; font-weight: 600; line-height: 1.4; }
.info-item.big a { font-size: 2rem; font-weight: 800; color: var(--accent-deep); letter-spacing: -0.02em; }
.info-item a:hover { color: var(--accent-deep); }
form { background: var(--paper); border: 2px solid var(--line); border-radius: 24px; padding: 40px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.field input, .field textarea {
  width: 100%; background: var(--paper-2); border: 2px solid var(--line); border-radius: 12px;
  padding: 16px 18px; color: var(--text); font-family: var(--sans); font-size: 1.05rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(240,129,28,0.18); background: var(--paper); }
.field textarea { resize: vertical; min-height: 140px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
form .btn { width: 100%; margin-top: 8px; font-size: 1.2rem; padding: 20px; }
.form-note { font-size: 0.95rem; color: var(--muted); margin-top: 16px; text-align: center; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: #d6d6d6; padding: 72px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 52px; }
.foot-col h5 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: #9a9a9a; margin-bottom: 18px; }
.foot-col ul { list-style: none; display: grid; gap: 12px; }
.foot-col a { color: #e2e2e2; font-size: 1.02rem; transition: color 0.2s; }
.foot-col a:hover { color: var(--accent-bright); }
.foot-col a.foot-phone { font-size: 1.35rem; font-weight: 800; color: var(--accent-bright); }
.foot-about p { color: #b0b0b0; font-size: 1rem; margin-top: 18px; max-width: 320px; line-height: 1.5; }
.foot-bottom { border-top: 1px solid var(--line-dark); padding-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #9a9a9a; font-size: 0.92rem; }
footer .foot-col span { color: #b0b0b0 !important; }


/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .markets, .clients, .cert-logos { grid-template-columns: repeat(3, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 940px) {
  :root { --nav-h: 74px; --sec-pad: 56px; }
  body { font-size: 17px; }
  .about-grid, .contact-grid, .content-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-hero .hero-panel { grid-template-columns: 1fr; gap: 36px; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .promises { grid-template-columns: 1fr; }
  .services, .sub-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-panel, .hero .hero-panel { padding: 60px 36px 56px; grid-template-columns: 1fr; gap: 40px; }
  .page-hero .hero-panel { padding: 52px 36px 56px; }
  .hero-trust { border-left: none; padding-left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; border-top: 1px solid var(--line-dark); padding-top: 8px; }
  .hero-trust div, .hero-trust div:first-child { padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
  .hero-trust div:nth-last-child(-n+2) { border-bottom: none; }
  .sidecard { position: static; }

  /* mobile nav */
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 10px; }
  .nav-toggle:hover { background: rgba(255,255,255,0.08); }
  nav#nav { position: static; }
  nav ul {
    display: none; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--line-dark);
    padding: 8px 24px 24px; gap: 0; max-height: calc(100dvh - 100%); overflow-y: auto;
    box-shadow: 0 26px 44px rgba(0,0,0,0.45);
  }
  nav.open ul { display: flex; }
  nav ul > li { width: 100%; border-bottom: 1px solid var(--line-dark); }
  nav ul > li:last-child { border-bottom: none; padding-top: 18px; }
  nav ul > li > a { display: block; padding: 18px 4px; font-size: 1.2rem; }
  nav .btn { display: flex; width: 100%; justify-content: center; padding: 18px; font-size: 1.15rem; }
  .has-drop { flex-wrap: wrap; gap: 0; }
  .has-drop > .drop-link { flex: 1; }
  .drop-caret { padding: 18px 14px; font-size: 1rem; }
  nav .drop { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; background: transparent; padding: 0 0 14px 8px; min-width: 0; width: 100%; display: none; }
  .has-drop.open .drop { display: grid; }
  .has-drop:hover .drop, .has-drop.open .drop { transform: none; }
  .drop a { white-space: normal; padding: 14px; font-size: 1.08rem; }
  body.nav-locked { overflow: hidden; }

  .foot-col ul { gap: 2px; }
  .foot-col ul a, .foot-col ul span { display: inline-block; padding: 8px 0; }
}
@media (max-width: 640px) {
  :root { --sec-pad: 48px; }
  .wrap { padding: 0 18px; }
  .services, .sub-grid, .blog-grid, .stats, .row2, .foot-grid, .process { grid-template-columns: 1fr; }
  .markets, .clients, .cert-logos { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .market { height: 160px; }
  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .timeline::before { left: 10px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .tl { padding-top: 0; padding-left: 44px; }
  .numbers { grid-template-columns: 1fr; }
  .numbers div { padding: 28px 26px; }
  .numbers b { font-size: 2.4rem; }
  .numbers span { white-space: normal; }
  .promise { grid-template-columns: 56px 1fr; }
  .promise b { font-size: 2rem; }
  .client { min-height: 92px; padding: 18px 20px; }
  .client img { max-height: 34px; }
  .cert-logo { min-height: 88px; }
  .cert-logo img { max-height: 50px; }
  .cert { font-size: 1rem; padding: 14px 22px; }
  .brand-logo { height: 38px; }
  .topbar { font-size: 0.9rem; padding: 10px 14px; line-height: 1.4; }
  .hero, .page-hero { padding-top: 20px; }
  .hero-panel, .hero .hero-panel { padding: 44px 24px 40px; border-radius: 22px 22px 22px 0; gap: 28px; }
  .page-hero .hero-panel { padding: 40px 24px 44px; }
  .page-hero h1 { max-width: none; }
  /* phones: headline and buttons only — the eyebrow and lead are desktop-only */
  .hero .eyebrow, .hero p.lead { display: none; }
  .hero h1 { margin-bottom: 24px; }
  .hero-cta { gap: 10px; flex-wrap: nowrap; }
  .hero-cta .btn { flex: 1 1 0; min-width: 0; font-size: 0.98rem; padding: 13px 8px; white-space: nowrap; }
  .hero-cta .btn-ghost { padding: 10px 6px; }
  .l-full { display: none; }
  .l-short { display: inline; }
  .hero-trust div { min-width: 0; }
  .hero-trust b { font-size: clamp(1.2rem, 5.6vw, 1.7rem); }
  .hero-trust { gap: 0 20px; }
  .hero-trust small { font-size: 0.92rem; }
  .svc { padding: 30px 26px; }
  .sub-card { padding: 24px 22px; }
  .biglist li { font-size: 1.1rem; padding: 16px 18px; }
  .prose { font-size: 1.08rem; }
  .takeaways { padding: 24px 22px; }
  .stats { border-radius: 22px 22px 22px 0; }
  .stat { padding: 30px 26px; min-height: 0; }
  .stat b { font-size: 2.8rem; }
  .stat span { white-space: normal; }
  .cta-inner { padding: 28px 22px; border-radius: 20px 20px 20px 0; }
  .cta-row { flex-direction: column; width: 100%; }
  .cta-row .btn { width: 100%; }
  .trust-row { grid-template-columns: 1fr; }
  form { padding: 26px 20px; }
  .field input, .field textarea { font-size: 16px; }
  .content-grid { gap: 36px; }
  .sidecard { padding: 28px 24px; }
  footer { padding: 52px 0 28px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .info-item br { display: none; }
  .info-item.big a { font-size: 1.7rem; }
}


/* heading spacing used on service pages */
.h2-list { margin-bottom: 28px; }
