/* ============================================================================
   CEPTRUM LLC — Capability / Marketing Site
   Hand-crafted CSS (no build step). Organized top-to-bottom:
     1. Design tokens (brand colors, type, spacing)
     2. Base / reset
     3. Layout helpers (container, section, headings)
     4. Buttons & badges
     5. Navigation (sticky + mobile)
     6. Hero
     7. About
     8. Competencies (card grid)
     9. Differentiators
    10. Company Snapshot (capability-statement data block)
    11. Past Performance
    12. Contact + form
    13. Footer
    14. Scroll-reveal animations
    15. Responsive (mobile-first overrides)
   Brand palette:  primary #1F4E79  |  secondary #2E75B6  |  tint #EBF3FA
   ============================================================================ */

/* ---------- 1. DESIGN TOKENS ---------------------------------------------- */
:root {
  --primary: #1F4E79;     /* deep blue  */
  --secondary: #2E75B6;   /* lighter blue */
  --tint: #EBF3FA;        /* light tint for alternating sections */

  --primary-dark: #163a5b;
  --ink: #1a2330;         /* body text */
  --ink-soft: #50607a;    /* secondary text */
  --line: #e3e9f1;        /* hairline borders */
  --white: #ffffff;

  --container: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 67, .06), 0 4px 12px rgba(16, 42, 67, .05);
  --shadow-md: 0 8px 28px rgba(16, 42, 67, .10);
  --shadow-lg: 0 18px 50px rgba(16, 42, 67, .16);

  --font-head: "Poppins", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --nav-h: 76px;
}

/* ---------- 2. BASE / RESET ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--secondary); text-decoration: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; border-radius: 4px; }

/* ---------- 3. LAYOUT HELPERS -------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--primary-dark); color: #dbe7f3; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: #7fb2e6; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--primary); line-height: 1.18; font-weight: 700; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.22rem; }
.lead { color: var(--ink-soft); font-size: 1.08rem; }
.section--dark .lead { color: #c0d4e8; }

/* ---------- 4. BUTTONS & BADGES ----------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--secondary); color: #fff; box-shadow: 0 6px 18px rgba(46,117,182,.35); }
.btn--primary:hover { background: #2766a0; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(46,117,182,.45); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.10); border-color: #fff; transform: translateY(-2px); }
.btn--solid-light { background: #fff; color: var(--primary); }
.btn--solid-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--on-light { background: var(--primary); color: #fff; }
.btn--on-light:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.10); color: #dbe7f3;
  border: 1px solid rgba(255,255,255,.22);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }

/* ---------- 5. NAVIGATION ------------------------------------------------ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav__logo { height: 34px; }
.nav__logo--dark { display: none; }              /* shown after scroll */
.nav.is-scrolled .nav__logo--light { display: none; }
.nav.is-scrolled .nav__logo--dark { display: block; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-weight: 500; font-size: .95rem; color: rgba(255,255,255,.88);
  position: relative; padding: 6px 0; transition: color .2s ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--secondary); transition: width .25s ease;
}
.nav__links a:hover::after { width: 100%; }
.nav.is-scrolled .nav__links a { color: var(--ink); }
.nav.is-scrolled .nav__links a:hover { color: var(--secondary); }
.nav__cta { margin-left: 4px; }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  width: 44px; height: 44px;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px auto; transition: .3s; }
.nav.is-scrolled .nav__toggle span { background: var(--primary); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. HERO ------------------------------------------------------ */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 70px) 0 90px;
  background:
    radial-gradient(1100px 600px at 78% -10%, rgba(46,117,182,.55), transparent 60%),
    linear-gradient(160deg, #10395e 0%, var(--primary) 48%, #15406a 100%);
  color: #eaf2fb; overflow: hidden;
}
/* subtle engineered grid overlay */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(1000px 600px at 70% 10%, #000 30%, transparent 80%);
          mask-image: radial-gradient(1000px 600px at 70% 10%, #000 30%, transparent 80%);
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: 20%; z-index: -1;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(111,168,220,.30), transparent 65%);
  filter: blur(10px);
}
.hero__inner { max-width: 820px; }
.hero h1 {
  color: #fff; font-size: clamp(2.4rem, 5.6vw, 4rem);
  letter-spacing: -.02em; margin: 22px 0 18px;
}
.hero h1 .accent { color: #7fb2e6; }
.hero__tagline { font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: #cfe0f1; max-width: 640px; font-weight: 400; }

.hero__reg {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin: 30px 0 8px;
}
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin: 20px 0 34px; padding: 18px 22px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); backdrop-filter: blur(4px);
  width: fit-content; max-width: 100%;
}
.hero__fact { display: flex; flex-direction: column; }
.hero__fact dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #8fb8e0; font-weight: 700; }
.hero__fact dd { font-size: 1.05rem; font-weight: 600; color: #fff; font-family: var(--font-head); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 7. ABOUT ----------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.about__body p + p { margin-top: 18px; }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: var(--tint); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.stat__num { font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--primary); line-height: 1; }
.stat__label { color: var(--ink-soft); font-size: .92rem; margin-top: 8px; }

/* ---------- 8. COMPETENCIES (CARD GRID) --------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #cfe0f1; }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--tint); color: var(--primary); margin-bottom: 20px;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- 9. DIFFERENTIATORS ------------------------------------------ */
.diffs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.diff { padding: 8px 4px; }
.diff__icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  color: #9dc3e6; margin-bottom: 18px;
}
.diff__icon svg { width: 26px; height: 26px; }
.diff h3 { color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.diff p { color: #bcd2e8; font-size: .96rem; }

/* ---------- 10. COMPANY SNAPSHOT (DATA BLOCK) --------------------------- */
.snapshot { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.snap-row {
  display: grid; grid-template-columns: 240px 1fr; gap: 16px;
  padding: 20px 26px; border-bottom: 1px solid var(--line);
}
.snapshot > .snap-row:nth-last-child(-n+2) { border-bottom: none; } /* last row of each column */
.snap-row dt {
  font-family: var(--font-head); font-weight: 600; color: var(--primary);
  font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  display: flex; align-items: center; gap: 9px;
}
.snap-row dt svg { width: 18px; height: 18px; color: var(--secondary); flex: none; }
.snap-row dd { color: var(--ink); font-size: .98rem; }
.snap-row dd .muted { color: var(--ink-soft); font-size: .9rem; }
.snap-note { margin-top: 16px; font-size: .86rem; color: var(--ink-soft); }

/* ---------- 11. PAST PERFORMANCE ---------------------------------------- */
.perf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.perf {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--secondary);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.perf:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.perf__tag { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary); }
.perf h3 { margin: 10px 0; font-size: 1.12rem; }
.perf p { color: var(--ink-soft); font-size: .96rem; }
.perf__meta { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--ink-soft); }

/* ---------- 12. CONTACT + FORM ------------------------------------------ */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact__info { }
.poc { display: grid; gap: 18px; margin-top: 28px; }
.poc__item { display: flex; gap: 14px; align-items: flex-start; }
.poc__item .ic {
  width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--tint); color: var(--primary);
}
.poc__item .ic svg { width: 20px; height: 20px; }
.poc__item dt { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.poc__item dd { font-weight: 600; color: var(--ink); }
.poc__item dd a { color: var(--ink); }
.poc__item dd a:hover { color: var(--secondary); }

.form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-md);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: #d6453c; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fcfdff; transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(46,117,182,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .error { display: none; color: #d6453c; font-size: .82rem; margin-top: 6px; }
.field.has-error input, .field.has-error textarea { border-color: #d6453c; background: #fff7f6; }
.field.has-error .error { display: block; }
.form__note { font-size: .82rem; color: var(--ink-soft); margin-top: 4px; }
.form__status { margin-top: 14px; font-size: .95rem; font-weight: 600; display: none; }
.form__status.is-ok { display: block; color: #1f7a44; }
.form__status.is-err { display: block; color: #d6453c; }

/* ---------- 13. FOOTER --------------------------------------------------- */
.footer { background: #0f2d49; color: #b9cde2; padding: 56px 0 28px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.10); }
.footer__logo { height: 34px; margin-bottom: 16px; }
.footer p { font-size: .92rem; color: #9fb6cf; max-width: 320px; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer__links a { display: block; color: #b9cde2; font-size: .94rem; padding: 5px 0; }
.footer__links a:hover { color: #fff; }
.footer__facts dt { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #6f8db0; font-weight: 700; }
.footer__facts dd { font-weight: 600; color: #e6eef7; margin-bottom: 12px; font-size: .95rem; }
.footer__bar {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: .85rem; color: #8aa4c2;
}
.footer__bar .reg { display: inline-flex; align-items: center; gap: 8px; }
.footer__bar .reg .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }

/* ---------- 14. SCROLL-REVEAL ------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 15. RESPONSIVE ---------------------------------------------- */
@media (max-width: 980px) {
  .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .cards, .perf-grid { grid-template-columns: repeat(2, 1fr); }
  .diffs { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .snapshot { grid-template-columns: 1fr; }
  .snapshot > .snap-row:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .snapshot > .snap-row:last-child { border-bottom: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 70px 0; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: 8px 0; transform: translateY(-130%); transition: transform .32s ease; pointer-events: none;
  }
  .nav__links.is-open { transform: translateY(0); pointer-events: auto; }
  .nav__links a { color: var(--ink); padding: 14px 24px; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__cta { margin: 12px 24px 8px; justify-content: center; }
  .nav__links a.nav__cta { color: #fff; border-bottom: none; } /* keep CTA white-on-blue in mobile menu */
  /* keep logo dark when menu is forced light */
  .cards, .perf-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__fact { min-width: 120px; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
