/* C3 Build Group — site styles. Institutional, typography-led, restrained.
   Palette and type per the approved C3 Logo Usage Guide. */

/* ---------- Font (self-hosted, no external requests) ---------- */
@font-face {
  font-family: "Libre Franklin";
  src: url("../fonts/LibreFranklin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --navy: #102A43;
  --slate: #334E68;
  --charcoal: #1F2933;
  --bronze: #9A7B4F;
  --gray: #829AB1;
  --white: #FFFFFF;

  --ink: #1B2733;            /* body text */
  --ink-soft: #3B4A5A;       /* secondary text */
  --line: #E4E8ED;           /* hairlines */
  --bg-tint: #F5F7F9;        /* section tint */
  --navy-tint: #EAF0F6;

  --container: 1140px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16,42,67,.06), 0 10px 30px rgba(16,42,67,.05);

  --step--1: .85rem;
  --step-0: 1.0625rem;
  --step-1: 1.2rem;
  --step-2: clamp(1.35rem, 2.4vw, 1.6rem);
  --step-3: clamp(1.7rem, 3.4vw, 2.3rem);
  --step-4: clamp(2.2rem, 5.2vw, 3.5rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--slate); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: var(--step-4); letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); font-weight: 650; }
p { margin: 0 0 1rem; }
strong { font-weight: 650; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--navy); color: #fff; padding: .7rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--bronze); outline-offset: 2px; border-radius: 3px; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tint { background: var(--bg-tint); }
.section--navy { background: var(--navy); color: #E7EEF5; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow { font-size: var(--step--1); letter-spacing: .16em; text-transform: uppercase; color: var(--slate); font-weight: 650; margin: 0 0 .9rem; }
.section--navy .eyebrow { color: #9DB6CE; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); line-height: 1.6; max-width: 60ch; }
.section--navy .lead { color: #C6D4E2; }
.measure { max-width: 68ch; }
.center { text-align: center; margin-inline: auto; }
.accent-rule { width: 64px; height: 4px; background: var(--bronze); border: 0; border-radius: 2px; margin: 0 0 1.5rem; }
.center .accent-rule { margin-inline: auto; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(150%) blur(6px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.nav-toggle { display: none; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; color: var(--slate); font-weight: 550; font-size: .98rem; padding: .4rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--bronze); }
.nav .btn { padding: .55rem 1.1rem; }
.nav-links a.btn--primary, .nav-links a.btn--primary:hover { color: #fff; border-bottom: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1rem;
  padding: .8rem 1.4rem; border-radius: 8px; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--navy); transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: #0a1e33; color:#fff; border-color:#0a1e33; }
.btn--outline { background: transparent; color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.section--navy .btn--outline { border-color: #fff; color: #fff; }
.section--navy .btn--outline:hover { background: #fff; color: var(--navy); }
.btn--ghost { border-color: var(--line); color: var(--navy); background:#fff; }
.btn--ghost:hover { border-color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem); border-bottom: 1px solid var(--line); position: relative; }
.hero .eyebrow { color: var(--slate); }
.hero h1 { max-width: 16ch; margin-bottom: .4rem; }
.hero .lead { margin-top: 1.2rem; }
.hero-figure { margin-top: 2.5rem; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}
.card--flat { box-shadow: none; }
.card__index { font-size: 1.4rem; font-weight: 700; color: var(--bronze); letter-spacing: .02em; line-height: 1; }
.card h3 { margin: .5rem 0 .5rem; font-size: 1.2rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.card__top { border-top: 3px solid var(--bronze); }

.feature { display: grid; grid-template-columns: auto 1fr; gap: .9rem 1rem; align-items: start; }
.feature .ico { width: 40px; height: 40px; flex: 0 0 auto; }
.feature h3 { font-size: 1.1rem; margin: .1rem 0 .3rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px;
  border: 2px solid var(--bronze); border-radius: 3px;
}
.section--navy .checklist li { color: #C6D4E2; }

.codes { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.codes th, .codes td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.codes th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); }
.codes td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.codes tr:last-child td { border-bottom: 0; }

/* ---------- Service list (capabilities) ---------- */
.service { padding-block: 2.2rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 1.5rem 3rem; }
.service:first-of-type { border-top: 0; }
.service__num { font-size: 2.2rem; font-weight: 800; color: var(--bronze); line-height: 1; }
.service h2 { margin-top: .5rem; font-size: var(--step-2); font-weight: 650; }
.service__caps { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; align-self: start; }
.service__caps li { position: relative; padding-left: 1.4rem; color: var(--ink-soft); font-size: .97rem; }
.service__caps li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--bronze); border-radius: 50%; }

/* ---------- Callout / download ---------- */
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--bronze); border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow); }
.callout h3 { margin: 0 0 .3rem; }
.callout p { margin: 0; color: var(--ink-soft); }

/* ---------- Definition blocks (about) ---------- */
.defblock { display: grid; gap: 1.5rem; }
.defblock .item { border-left: 3px solid var(--line); padding-left: 1.3rem; }
.defblock .item h2 { margin: 0 0 .35rem; color: var(--navy); font-size: var(--step-2); font-weight: 650; }
.defblock .item p { margin: 0; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: start; }
.contact-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.contact-card dl { margin: 0; display: grid; gap: 1.1rem; }
.contact-card dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--slate); margin-bottom: .15rem; }
.contact-card dd { margin: 0; font-size: 1.15rem; color: var(--navy); font-weight: 600; }
.contact-card dd a { text-decoration: none; }
.contact-card dd a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #B9C7D8; padding-block: 3rem 2rem; }
.site-footer a { color: #DCE6F0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand img { height: 30px; margin-bottom: 1rem; }
.footer-brand p { color: #9DB2C8; font-size: .95rem; max-width: 34ch; }
.footer-col h2 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .9rem; font-weight: 650; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .95rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-top: 1.4rem; font-size: .85rem; color: #8DA3BC; }
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap:.5rem; background: none; border: 1px solid var(--line);
    border-radius: 8px; padding: .5rem .7rem; color: var(--navy); font: inherit; font-weight:600; cursor: pointer;
  }
  .nav-links {
    position: absolute; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.2rem;
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: .9rem 0; font-size: 1.05rem; border-bottom: none; }
  .nav-links a[aria-current="page"] { border-bottom: none; color: var(--bronze); }
  .nav-links .btn { margin-top: .8rem; justify-content: center; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; gap: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 1.6rem; }
}
@media (min-width: 861px) and (max-width: 1040px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
