/* ============================================================
   Certify Global — shared styles
   Palette derived from brand emblem (#004888) + laurel/brass accent
   ============================================================ */

:root {
  --ink: #0a1f33;
  --navy: #004888;
  --navy-deep: #002e55;
  --navy-line: #16456f;
  --brass: #b5893c;
  --brass-soft: #d9bc7e;
  --paper: #f6f8fb;
  --tint: #eaf1f7;
  --line: #d7e0e9;
  --muted: #5a6b7b;
  --white: #ffffff;

  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 64px);
  --radius: 4px;

  --f-display: "Saira Condensed", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: -0.01em; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brass);
}

/* standard code chips */
.code {
  font-family: var(--f-mono);
  font-weight: 500;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  line-height: 1;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--brass); color: #241703; }
.btn-primary:hover { background: var(--brass-soft); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); transform: translateY(-2px); }

/* ============================================================
   Header
   ============================================================ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,46,85,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--navy-line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 42px; height: 42px; }
.brand-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.brand-name span { color: var(--brass-soft); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: #cfe0ef;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--white); background: rgba(255,255,255,.07); }
.nav a.active { color: var(--white); }
.nav a.active::after {
  content: ""; display: block; height: 2px; margin-top: 5px;
  background: var(--brass); border-radius: 2px;
}
.nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  color: var(--white); padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-deep); border-bottom: 1px solid var(--navy-line);
    padding: 12px var(--gut) 22px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--navy-line); }
  .nav a.active::after { display: none; }
  .nav .btn { margin: 14px 0 0; justify-content: center; }
}

/* ============================================================
   Hero (home)
   ============================================================ */
.hero {
  background:
    radial-gradient(120% 90% at 85% -10%, #0a5793 0%, transparent 55%),
    linear-gradient(180deg, var(--navy-deep) 0%, #012038 100%);
  background-color: var(--navy-deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* faint meridian grid echoing the globe emblem */
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 84px);
  mask-image: radial-gradient(80% 80% at 70% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  padding-block: clamp(56px, 9vw, 104px);
}
.hero h1 {
  font-size: clamp(44px, 6.4vw, 82px);
  text-transform: uppercase;
  letter-spacing: -0.015em;
}
.hero h1 em { font-style: normal; color: var(--brass-soft); }
.hero-lede {
  color: #c9d9e8;
  font-size: clamp(17px, 2vw, 20px);
  max-width: 46ch;
  margin: 22px 0 32px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  margin-top: 40px;
  display: flex; flex-wrap: wrap; gap: 30px;
  border-top: 1px solid var(--navy-line);
  padding-top: 24px;
}
.hero-meta div { }
.hero-meta .n { font-family: var(--f-display); font-size: 34px; font-weight: 700; color: var(--white); line-height: 1; }
.hero-meta .l { font-size: 13px; color: #9fb6ca; letter-spacing: .02em; margin-top: 4px; }

/* seal / emblem panel */
.hero-seal { display: grid; place-items: center; }
.seal-ring {
  width: min(400px, 80%);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.10), rgba(255,255,255,.02) 60%, transparent 70%);
  border: 1px solid rgba(217,188,126,.35);
  position: relative;
  animation: sealIn .9s cubic-bezier(.2,.7,.2,1) both;
}
.seal-ring::before {
  content: ""; position: absolute; inset: 16px; border-radius: 50%;
  border: 1px dashed rgba(217,188,126,.25);
}
.seal-ring img { width: 68%; filter: drop-shadow(0 8px 30px rgba(0,0,0,.4)); }
@keyframes sealIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 8px; }
  .hero-seal { order: -1; }
  .seal-ring { width: min(260px, 62%); }
  .hero-meta { gap: 22px; }
}

/* ============================================================
   Standards strip
   ============================================================ */
.standards {
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid #0e2a40;
}
.standards .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px 26px; padding-block: 22px;
}
.standards .lbl {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: #8aa4bd; margin-right: 4px;
}
.standards .code {
  font-size: 15px; color: #e7eef5;
  padding: 6px 12px; border: 1px solid #1d3f5b; border-radius: var(--radius);
}
.standards .code b { color: var(--brass-soft); font-weight: 600; }

/* ============================================================
   Section scaffolding
   ============================================================ */
.section { padding-block: clamp(64px, 9vw, 108px); }
.section-tint { background: var(--tint); }
.section-navy { background: var(--navy-deep); color: var(--white); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  text-transform: uppercase;
}
.section-head p { color: var(--muted); font-size: 18px; margin: 16px 0 0; }
.section-navy .section-head p { color: #b9cadb; }

/* ---------- Service cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(0,46,85,.4); border-color: #b9cddd; }
.card .ico {
  width: 46px; height: 46px; border-radius: var(--radius);
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--tint); color: var(--navy);
  border: 1px solid var(--line);
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 24px; text-transform: uppercase; letter-spacing: 0; }
.card p { color: var(--muted); font-size: 15.5px; margin: 12px 0 0; line-height: 1.6; }
.card .code { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--brass); }

/* standard cards (services page) */
.std {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 26px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.std:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(0,46,85,.4); border-color: #b9cddd; }
.std .code { font-size: 14px; color: var(--brass); font-weight: 600; }
.std h3 { font-size: 23px; text-transform: uppercase; }
.std p { color: var(--muted); font-size: 15px; margin: 4px 0 0; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 96px 1fr; gap: 28px;
  padding: 30px 0; border-top: 1px solid var(--navy-line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--navy-line); }
.step .num {
  counter-increment: step;
  font-family: var(--f-mono); font-weight: 600;
  font-size: 15px; color: var(--brass-soft);
}
.step .num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 27px; text-transform: uppercase; color: var(--white); }
.step p { color: #b9cadb; margin: 8px 0 0; font-size: 16px; max-width: 62ch; }
@media (max-width: 620px) {
  .step { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; }
}

/* ---------- Feature list (why us) ---------- */
.feat { display: flex; gap: 18px; align-items: flex-start; }
.feat .fico {
  flex: none; width: 40px; height: 40px; border-radius: var(--radius);
  display: grid; place-items: center; background: var(--navy); color: var(--white);
}
.feat .fico svg { width: 20px; height: 20px; }
.feat h3 { font-size: 21px; text-transform: uppercase; }
.feat p { color: var(--muted); font-size: 15px; margin: 6px 0 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brass); color: #241703; }
.cta-band .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; padding-block: 52px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); text-transform: uppercase; color: #1f1503; }
.cta-band p { margin: 10px 0 0; color: #4a3413; max-width: 52ch; }
.cta-band .btn-navy { flex: none; }

/* ============================================================
   About / Contact page
   ============================================================ */
.page-head {
  background: var(--navy-deep); color: var(--white);
  padding-block: clamp(56px, 8vw, 92px);
  position: relative; overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 84px);
  mask-image: radial-gradient(70% 100% at 80% 50%, #000, transparent 75%);
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 {
  font-size: clamp(40px, 6vw, 72px); text-transform: uppercase;
  letter-spacing: -0.015em; max-width: 20ch;
}
.page-head p { color: #c9d9e8; font-size: 19px; max-width: 56ch; margin: 20px 0 0; }

/* about split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.prose p { color: var(--muted); font-size: 17px; margin: 0 0 18px; }
.prose p strong { color: var(--ink); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat-grid div { background: var(--white); padding: 30px 26px; }
.stat-grid .n { font-family: var(--f-display); font-size: 42px; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-grid .l { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* values list */
.values { display: grid; gap: 0; margin-top: 8px; }
.value-row {
  display: grid; grid-template-columns: 180px 1fr; gap: 28px;
  padding: 26px 0; border-top: 1px solid var(--line); align-items: baseline;
}
.value-row:last-child { border-bottom: 1px solid var(--line); }
.value-row h3 { font-size: 22px; text-transform: uppercase; color: var(--navy); }
.value-row p { margin: 0; color: var(--muted); font-size: 16px; max-width: 60ch; }
@media (max-width: 620px) { .value-row { grid-template-columns: 1fr; gap: 6px; } }

/* contact layout */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }

.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--f-body); font-size: 16px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,72,136,.12);
}
.field textarea { resize: vertical; min-height: 130px; }

.contact-info { background: var(--navy-deep); color: var(--white); border-radius: var(--radius); padding: 38px 34px; align-self: start; }
.contact-info h3 { font-size: 26px; text-transform: uppercase; margin-bottom: 24px; }
.info-row { display: flex; gap: 15px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--navy-line); }
.info-row:first-of-type { border-top: 0; padding-top: 0; }
.info-row .ii { flex: none; width: 38px; height: 38px; border-radius: var(--radius); display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--brass-soft); }
.info-row .ii svg { width: 18px; height: 18px; }
.info-row .k { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #9fb6ca; font-family: var(--f-mono); }
.info-row .v { font-size: 16.5px; color: var(--white); margin-top: 2px; }
.info-row a.v { color: var(--white); }
.info-row a.v:hover { color: var(--brass-soft); }

.form-note { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ============================================================
   Footer
   ============================================================ */
.site-foot { background: var(--ink); color: #b9cadb; }
.site-foot .wrap { padding-block: 56px 30px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #14344c; }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr; gap: 30px; } }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.foot-brand img { width: 40px; height: 40px; }
.foot-brand .brand-name { font-size: 20px; }
.site-foot .foot-about { font-size: 15px; max-width: 40ch; }
.foot-col h4 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #8aa4bd; margin: 0 0 16px; font-weight: 600; }
.foot-col a { display: block; color: #cfe0ef; font-size: 15px; padding: 5px 0; }
.foot-col a:hover { color: var(--white); }
.foot-col .code { color: #cfe0ef; font-size: 14px; padding: 5px 0; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 13.5px; color: #7f96ab; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
