/* ============================================================
   page-compliance.css — Compliance & certifications, v3 blueprint.
   Sits on top of service.css. Ported from the proposal with the
   palette re-anchored to NAS navy, the off-brand blue/teal/orange
   swept out, the shield diorama given the placement-wrapper fix, and
   the framework status chips rebuilt as a semantic navy/green/mute set.
   ============================================================ */

/* Palette anchors — service.css omits the mid-navy step, and this file
   loads standalone, so declare it here (matches page-about / page-news).
   Without it, any var(--c-navy-2) gradient collapses to nothing. */
:root {
  --c-navy: #0E2A6B;
  --c-navy-2: #1C4DBD;
  --c-green: #2E9A6F;
}

/* ========== HERO ========== */
.co-hero .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; }
/* Single row of 4, matching case-studies / about / careers / partners */
.co-hero-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

.co-diorama { position: relative; width: 100%; aspect-ratio: 1; }
.co-svg { width: 100%; height: 100%; display: block; overflow: visible; }

.co-amb { transform-box: fill-box; transform-origin: center; animation: coAmb 4s ease-out infinite; }
.co-amb-2 { animation-delay: 2s; }
@keyframes coAmb {
  0%   { transform: scale(.8);  opacity: .8; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* Shield sits inside a translate() parent group but carries no transform
   attribute of its own, so this scale animation owns the transform channel. */
.co-shield { transform-box: fill-box; transform-origin: center; animation: coShield 4s ease-in-out infinite; }
@keyframes coShield {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}

/* Quads / pills / stamp: placement lives on an OUTER <g transform="translate()">
   in the markup; these classes only animate a float or spin, so their
   transform keyframes never clobber the positioning transform. */
.co-quad { transform-box: fill-box; transform-origin: center; animation: coQuad 3.6s ease-in-out infinite; }
.co-q-2 { animation-delay: .9s; }
.co-q-3 { animation-delay: 1.8s; }
.co-q-4 { animation-delay: 2.7s; }
@keyframes coQuad {
  0%, 100% { opacity: .95; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(-2px); }
}

.co-stamp { transform-box: fill-box; transform-origin: center; animation: coStamp 14s linear infinite; }
@keyframes coStamp { to { transform: rotate(360deg); } }

.co-pill { transform-box: fill-box; transform-origin: center; animation: coPill 5s ease-in-out infinite; }
.co-pill-2 { animation-delay: 1.2s; }
.co-pill-3 { animation-delay: 2.4s; }
.co-pill-4 { animation-delay: 3.6s; }
@keyframes coPill {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}


/* ========== 01 · APPROACH ========== */
.co-approach {
  max-width: 880px;
  padding: clamp(28px, 4vw, 44px);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.co-approach::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 40% 60% at 100% 0%, rgba(33, 88, 214, .1), transparent 60%);
  pointer-events: none;
}
.co-lead {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.4;
  color: var(--c-navy);
  font-weight: 500;
  letter-spacing: -.01em;
  margin-bottom: 20px;
  position: relative;
}
.co-approach p:not(.co-lead) {
  color: var(--c-mute);
  font-size: 1.02rem;
  line-height: 1.65;
  position: relative;
}


/* ========== 02 · FRAMEWORKS grid ========== */
.co-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.co-fw {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 24px 22px 22px;
  transition: transform var(--t-mid) var(--ease-spring),
              border-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out);
}
.co-fw:hover {
  transform: translateY(-4px);
  border-color: var(--c-navy-2);
  box-shadow: 0 24px 50px -28px rgba(14, 42, 107, .22);
}

.co-fw-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.co-fw h3 { font-size: 1.3rem; }
.co-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Semantic set: green = achieved · blue = ready · navy = aligned · grey = future/on-request */
.co-st-certified { background: rgba(46, 154, 111, .14); color: var(--c-green); }
.co-st-ready     { background: rgba(33, 88, 214, .1);   color: var(--c-blue); }
.co-st-aligned   { background: rgba(14, 42, 107, .1);   color: var(--c-navy); }
.co-st-target    { background: rgba(77, 90, 119, .12);  color: var(--c-mute); }
.co-st-req       { background: var(--c-bg-2);           color: var(--c-mute); }

.co-fw-full {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  color: var(--c-mute);
  display: block;
  margin-bottom: 12px;
  letter-spacing: .02em;
}
.co-fw p { color: var(--c-mute); font-size: .94rem; line-height: 1.55; }


/* ========== 03 · DELIVERY 4-phase ========== */
.co-loop .loop-item { padding-bottom: 24px; }
.co-loop .loop-item p { color: var(--c-navy); font-weight: 600; margin-bottom: 8px; }
.co-phase-d {
  display: block;
  font-size: .88rem;
  color: var(--c-mute);
  line-height: 1.55;
  padding-top: 12px;
  border-top: 1px solid var(--c-line);
}


/* ========== 04 · REVIEW + REPORT cards ========== */
.co-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.co-card {
  position: relative;
  padding: clamp(28px, 4vw, 40px);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.co-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 30% 60% at 100% 0%, rgba(33, 88, 214, .1), transparent 60%);
  pointer-events: none;
}
.co-card-report::before {
  background: radial-gradient(ellipse 30% 60% at 100% 0%, rgba(255, 81, 70, .12), transparent 60%);
}
.co-card > * { position: relative; }

.co-card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--c-navy), var(--c-navy-2));
  color: #fff;
  border-radius: 12px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px -10px rgba(14, 42, 107, .6);
}
.co-card-icon-alt { background: linear-gradient(135deg, var(--c-coral, #FF5146), #FF7A6E); box-shadow: 0 8px 18px -10px rgba(255, 81, 70, .5); }
.co-card-icon svg { width: 28px; height: 28px; }

.co-card h3 { font-size: 1.3rem; line-height: 1.3; }
.co-card p { color: var(--c-mute); font-size: .96rem; line-height: 1.55; margin-bottom: 6px; }
.co-card .btn { width: fit-content; }


/* ========== 05 · DOCS band ========== */
.co-docs {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: clamp(28px, 4vw, 44px);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
}
.co-docs h2 { margin: 12px 0 12px; }
.co-docs p { color: var(--c-mute); max-width: 620px; }


/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .co-hero .hero-grid { grid-template-columns: 1fr; }
  .co-diorama { max-width: 460px; margin: 0 auto; }
  .co-cards { grid-template-columns: 1fr; }
  .co-docs { grid-template-columns: 1fr; }
  .co-hero-meta { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .co-hero-meta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .co-amb, .co-shield, .co-quad, .co-stamp, .co-pill { animation: none !important; }
}
