/* CIL Cert Inspect Lab */
:root {
  --navy: #0f2a47;
  --navy-2: #173a60;
  --ink: #16212e;
  --text: #3b4756;
  --muted: #6b7786;
  --line: #e2e7ee;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --accent: #12a37a;
  --accent-dark: #0d8462;
  --accent-soft: #e3f5ef;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 42, 71, .06), 0 8px 24px rgba(15, 42, 71, .08);
  --wrap: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 650; text-decoration: none;
  border: 2px solid var(--accent);
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-small { padding: .5em 1em; font-size: .95rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 36px; height: 36px; color: var(--navy); }
.brand-name { font-weight: 800; font-size: 1.35rem; letter-spacing: .02em; color: var(--navy); display: flex; flex-direction: column; line-height: 1; }
.brand-name small { font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .97rem; }
.nav a:not(.btn):hover { color: var(--accent-dark); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(18,163,122,.22), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #d6e1ee;
  padding: 88px 0 96px;
}
.hero h1 { color: #fff; }
.hero .eyebrow { color: #7fe0bf; }
.hero-inner { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.lead { font-size: 1.15rem; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-card { display: flex; justify-content: center; }
.cert {
  position: relative; width: 100%; max-width: 360px;
  background: #fff; color: var(--text); border-radius: 18px; padding: 26px 26px 30px;
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
  transform: rotate(2deg);
}
.cert-head { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px dashed var(--line); }
.cert-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.cert-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.cert-row span { color: var(--muted); }
.cert-row b { color: var(--ink); }
.cert-row .ok { color: var(--accent-dark); }
.cert-seal { position: absolute; right: -18px; top: -26px; width: 84px; height: 84px; color: var(--accent); background: #fff; border-radius: 50%; padding: 8px; box-shadow: var(--shadow); }

/* Strip */
.strip { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.strip-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 26px; padding-bottom: 26px; }
.strip-inner div { display: flex; flex-direction: column; padding-left: 16px; border-left: 3px solid var(--accent); }
.strip-inner b { color: var(--ink); }
.strip-inner span { color: var(--muted); font-size: .95rem; }

/* Sections */
.section { padding: 88px 0; scroll-margin-top: 68px; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: .7em; }
.muted { color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.card p { margin-bottom: 0; font-size: .98rem; }
.card-feature { background: var(--navy); border-color: var(--navy); color: #c9d6e5; }
.card-feature h3 { color: #fff; }
.card-feature .icon { background: rgba(255,255,255,.1); color: #7fe0bf; }
.card-feature .more { display: inline-block; margin-top: 14px; color: #7fe0bf; font-weight: 650; text-decoration: none; }
.card-feature .more::after { content: " \2192"; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Split layouts */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }

.checks { list-style: none; padding: 0; margin: 0 0 28px; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230d8462' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}

.note, .contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.note ol { padding-left: 1.2em; margin: 0 0 1em; }
.note li { margin-bottom: 8px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps li { position: relative; padding: 26px; border-radius: var(--radius); background: var(--bg-alt); }
.steps p { margin: 0; font-size: .97rem; }
.num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 16px; }

/* Facts */
.facts { display: grid; gap: 16px; }
.facts div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; display: flex; align-items: baseline; gap: 14px; }
.facts b { font-size: 2rem; color: var(--navy); font-weight: 800; }
.facts span { color: var(--muted); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--muted); font-size: .95rem; }
.contact-list b, .contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--accent-dark); }

/* Placeholders that still need real content (draft only) */
.placeholder { background: #fff6d6; color: #5a4500; outline: 1px dashed #e0b400; border-radius: 4px; padding: 0 .25em; }

/* Footer */
.site-footer { background: var(--navy); color: #b7c6d8; padding: 56px 0 0; font-size: .95rem; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name small { color: #8ea3bb; }
.footer-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; padding-bottom: 36px; }
.footer-brand p { margin-top: 14px; }
.legal { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.legal div { display: flex; flex-direction: column; }
.legal dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #8ea3bb; }
.legal dd { margin: 2px 0 0; color: #fff; font-weight: 550; }
.legal a { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; padding-bottom: 22px; }
.small { font-size: .88rem; margin: 0; }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner, .split { grid-template-columns: 1fr; gap: 44px; }
  .hero-card { justify-content: flex-start; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 16px 18px; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
  .hero { padding: 56px 0 72px; }
  .section { padding: 64px 0; }
  .strip-inner, .cards, .steps { grid-template-columns: 1fr; }
  .cert { transform: none; max-width: 100%; }
  .cert-seal { right: 10px; }
  .legal { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* Inner pages */
.page-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #d6e1ee; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.page-hero .eyebrow { color: #7fe0bf; }
.page-hero .lead { margin: 0; }
.prose { max-width: 860px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h2:first-child, .prose .draft-note + h2 { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.data-table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .96rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.data-table tbody th { width: 38%; color: var(--muted); font-weight: 600; }
.data-table thead th { background: var(--bg-alt); color: var(--ink); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.draft-note { background: #fff6d6; border: 1px dashed #e0b400; border-radius: 10px; padding: 12px 16px; color: #6b5300; font-weight: 600; margin-bottom: 2em; }
.doc-links { list-style: none; padding: 0; margin: 0 0 1em; }
.doc-links li { border-bottom: 1px solid var(--line); }
.doc-links a { display: block; padding: 11px 0; color: var(--ink); font-weight: 600; text-decoration: none; }
.doc-links a::after { content: " \2192"; color: var(--accent-dark); }
.doc-links a:hover { color: var(--accent-dark); }
.footer-links { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; }
.footer-links a { color: #d6e1ee; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.site-footer .placeholder { color: var(--ink); }
.footer-bottom a { color: #b7c6d8; }
@media (max-width: 760px) {
  .page-hero { padding: 44px 0 40px; }
  .kv, .kv tbody, .kv tr, .kv th, .kv td { display: block; width: 100%; }
  .kv tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .kv th, .kv td { border: 0; padding: 2px 0; }
  .kv tbody th { width: 100%; }
  .table-scroll .data-table { min-width: 560px; }
}
.hero-accred { margin: 18px 0 0; font-size: .95rem; }
