/* ============================================================
   CCL eAgile — static site
   Palette + type lifted from checkpointsystems.com's Avada
   theme config (--awb-color-1..8) so the two sites read as
   one family. Jano Sans Pro is Checkpoint's licensed brand
   face; Noto Sans is what their site actually serves and is
   free, so it is the stack here.
   ============================================================ */

:root {
  /* Checkpoint brand palette */
  --navy:    #2c3947;   /* awb-color-1  primary dark   */
  --crimson: #ae153c;   /* awb-color-2  accent         */
  --slate:   #8d9fb0;   /* awb-color-3                 */
  --mist:    #c0cad3;   /* awb-color-4                 */
  --gray:    #d4d6d8;   /* awb-color-5                 */
  --pale:    #ebeded;   /* awb-color-6                 */
  --white:   #ffffff;

  --ink:       #2c3947;
  --ink-muted: #5b6773;
  --rule:      #dfe3e6;

  --wrap: 1180px;
  --pad: 24px;

  --font: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-pill: 25px;
  --shadow: 0 2px 16px rgba(44, 57, 71, .08);
  --shadow-lg: 0 8px 32px rgba(44, 57, 71, .14);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--crimson); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-weight: 300;          /* Checkpoint leans on light weights */
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; font-weight: 400; }
h4 { font-size: 1.08rem; font-weight: 700; letter-spacing: 0; }
p  { margin: 0 0 1.2em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .45em; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: .9em;
}
.lede { font-size: 1.2rem; font-weight: 300; color: var(--ink-muted); }

/* ---------- Buttons (pill + 2px border, per Checkpoint) ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--crimson);
  background: var(--crimson);
  color: var(--white);
  font-size: .93rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: transparent; color: var(--crimson); text-decoration: none; }

.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }

.btn-sm { padding: 9px 22px; font-size: .85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.header-inner {
  display: flex; align-items: center; gap: 28px;
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad);
  min-height: 84px;
}
.brand { flex-shrink: 0; display: flex; align-items: center; }
.brand img { height: 42px; width: auto; }
.brand:hover { text-decoration: none; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 0; padding: 10px;
  color: var(--white); cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.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); }

/* ---------- Nav ---------- */
.nav { margin-left: auto; }
.nav > ul {
  list-style: none; display: flex; align-items: center;
  gap: 4px; margin: 0; padding: 0;
}
.nav > ul > li { position: relative; }
.nav > ul > li > a {
  display: block; padding: 12px 15px;
  color: var(--white); font-size: .9rem; font-weight: 400;
  letter-spacing: .02em; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav > ul > li > a:hover,
.nav > ul > li.is-current > a {
  color: var(--white); border-bottom-color: var(--crimson); text-decoration: none;
}
.nav .has-sub > a::after {
  content: ""; display: inline-block;
  width: 5px; height: 5px; margin-left: 8px; vertical-align: 2px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.subnav {
  list-style: none; margin: 0; padding: 8px 0;
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--crimson);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav li:hover > .subnav,
.nav li:focus-within > .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav a {
  display: block; padding: 10px 20px;
  color: var(--navy); font-size: .89rem;
}
.subnav a:hover { background: var(--pale); color: var(--crimson); text-decoration: none; }

.nav-cta { margin-left: 12px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 92px 0 100px;
  position: relative; overflow: hidden;
}
.hero::after {                       /* subtle depth, no image dependency */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 78% 25%, rgba(141,159,176,.30), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 17ch; }
.hero p { font-size: 1.22rem; font-weight: 300; color: var(--mist); max-width: 60ch; }
.hero .eyebrow { color: var(--mist); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* compact hero for interior pages */
.page-hero { padding: 62px 0 58px; }
.page-hero h1 { margin-bottom: .25em; max-width: 24ch; }
.page-hero p  { margin-bottom: 0; }

.crumb { font-size: .84rem; color: var(--slate); margin-bottom: 16px; }
.crumb a { color: var(--mist); }
.crumb a:hover { color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 74px 0; }
.section-tint { background: var(--pale); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head p { color: var(--ink-muted); font-size: 1.1rem; font-weight: 300; margin-bottom: 0; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 32px 28px;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--mist); }
.card h3 { margin-bottom: .5em; }
.card p { color: var(--ink-muted); font-size: .96rem; flex-grow: 1; }
.card .card-link {
  font-weight: 700; font-size: .88rem; letter-spacing: .02em;
  color: var(--crimson); margin-top: 6px;
}
.card .card-link::after { content: " →"; }

.card-icon {
  width: 46px; height: 46px; margin-bottom: 18px;
  color: var(--crimson);
}
.card-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.4; }

/* ---------- Prose (page body from markdown) ---------- */
.prose { max-width: 780px; }
.prose.wide { max-width: var(--wrap); }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.7em; }
.prose img { margin: 1.8em 0; border-radius: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: .94rem; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 10px 13px; text-align: left; }
.prose th { background: var(--pale); font-weight: 700; }
.prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--crimson);
  color: var(--ink-muted); font-weight: 300; font-size: 1.1rem;
}

/* long legal pages read better a touch tighter */
.prose.legal { font-size: .93rem; line-height: 1.72; }
.prose.legal h2 { font-size: 1.32rem; }
.prose.legal h3 { font-size: 1.06rem; font-weight: 700; }

/* ---------- News list ---------- */
.news-list { list-style: none; margin: 0; padding: 0; max-width: 900px; }
.news-list li {
  padding: 22px 0; border-bottom: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;
}
.news-list .news-title { font-size: 1.04rem; color: var(--navy); flex: 1 1 420px; }
.news-list .news-src { color: var(--slate); font-size: .87rem; }
.news-list .news-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }

/* secondary action on an item that offers both an article and a PDF */
.btn-alt { background: transparent; color: var(--crimson); }
.btn-alt:hover { background: var(--crimson); color: var(--white); }

.post-meta { color: var(--slate); font-size: .87rem; margin-bottom: 2em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .86rem; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--gray); border-radius: 3px;
  font-family: var(--font); font-size: .97rem; color: var(--ink);
  background: var(--white);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(174, 21, 60, .12);
}
.field textarea { min-height: 150px; resize: vertical; }

.addr { font-style: normal; line-height: 1.9; }
.addr strong { display: block; margin-bottom: 4px; }
.addr-label {
  display: block; margin-top: 10px;
  font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--slate);
}

.form-note { margin: 14px 0 0; font-size: .88rem; color: var(--ink-muted); }
.form-note.is-error { color: var(--crimson); font-weight: 700; }
.form-note.is-ok { color: #1a7f4b; }
.social { display: flex; gap: 12px; margin-top: 22px; }
.social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--gray); color: var(--navy);
  display: grid; place-items: center;
  transition: background .18s, color .18s, border-color .18s;
}
.social a:hover { background: var(--crimson); border-color: var(--crimson); color: var(--white); }
.social svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- Logo strip ---------- */
.logo-strip {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 44px 60px;
}
.logo-strip img {
  height: 52px; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .55;
  transition: filter .2s, opacity .2s;
}
.logo-strip img:hover { filter: grayscale(0); opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--mist); padding: 60px 0 0; font-size: .92rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px;
}
.site-footer h4 {
  color: var(--white); font-size: .8rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--mist); }
.site-footer a:hover { color: var(--white); }
.footer-brand img { height: 40px; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; color: var(--slate); font-size: .9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 22px 0; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 12px;
  color: var(--slate); font-size: .85rem;
}
.footer-bottom a { color: var(--slate); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.skip {
  position: absolute; left: -9999px;
  background: var(--white); color: var(--navy);
  padding: 12px 20px; z-index: 200;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); border-top: 1px solid rgba(255,255,255,.1);
    max-height: calc(100vh - 84px); overflow-y: auto; padding: 10px 0 22px;
  }
  .nav.is-open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li > a { padding: 14px var(--pad); border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav > ul > li > a:hover, .nav > ul > li.is-current > a { border-bottom-color: rgba(255,255,255,.07); color: var(--mist); }
  .nav .has-sub > a::after { float: right; margin-top: 8px; }
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border-top: 0; background: rgba(0,0,0,.18);
    padding: 4px 0; min-width: 0;
  }
  .subnav a { color: var(--mist); padding: 11px var(--pad) 11px 38px; }
  .subnav a:hover { background: rgba(0,0,0,.3); color: var(--white); }
  .nav-cta { margin: 16px var(--pad) 0; display: block; text-align: center; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 60px 0 64px; }
  .section { padding: 52px 0; }
  .logo-strip { gap: 30px 36px; }
  .logo-strip img { height: 40px; }
}

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