/* =========================================================
   KCC Consulting — Global Stylesheet
   Modern, minimalist, professional. Deep navy + steel blue.
   ========================================================= */

:root {
  /* Brand palette */
  --navy-900: #0b2239;
  --navy-800: #0e2a47;
  --navy-700: #143655;
  --blue-600: #1f6fb2;
  --blue-500: #2a86d6;
  --blue-100: #e8f1fa;
  --slate-700: #334155;
  --slate-500: #5b6b7e;
  --slate-300: #cbd5e1;
  --line: #e6ebf1;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-navy: #0e2a47;
  --white: #ffffff;
  --success: #1f9d6b;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1160px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(14, 42, 71, 0.06), 0 1px 3px rgba(14, 42, 71, 0.05);
  --shadow-md: 0 8px 24px rgba(14, 42, 71, 0.08);
  --shadow-lg: 0 20px 50px rgba(14, 42, 71, 0.14);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate-700);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 { color: var(--navy-800); line-height: 1.18; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.022em; }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.35rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--bg-navy); color: #d7e3f0; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--tight { padding: 60px 0; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: #6fb2ec; }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.16rem; color: var(--slate-500); }
.section--navy .lead { color: #aebfd0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 100px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: 0 6px 18px rgba(31, 111, 178, .28); }
.btn--primary:hover { background: var(--blue-500); color: #fff; box-shadow: 0 10px 26px rgba(31, 111, 178, .36); }
.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--slate-300); }
.btn--ghost:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn--light { background: #fff; color: var(--navy-800); }
.btn--light:hover { color: var(--navy-800); box-shadow: var(--shadow-md); }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--navy-800); letter-spacing: -.02em; }
.brand:hover { color: var(--navy-800); }
.brand__mark {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--navy-800), var(--blue-600));
  color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: .02em;
  box-shadow: var(--shadow-sm);
}
.brand__name { font-size: 1.16rem; line-height: 1; }
.brand__name small { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .22em; color: var(--slate-500); margin-top: 4px; }
.brand__logo { height: 56px; width: auto; display: block; }
.brand__logo--footer { height: 74px; }

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__links a {
  display: block; padding: 9px 15px; border-radius: 8px;
  color: var(--slate-700); font-weight: 500; font-size: .98rem;
}
.nav__links a:hover { background: var(--bg-soft); color: var(--navy-800); }
.nav__links a.active { color: var(--blue-600); }
.nav__cta { margin-left: 10px; }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 9px; padding: 0;
}
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--navy-800); margin: 5px auto; transition: .25s var(--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); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding: 78px 0 84px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--blue-100); color: var(--blue-600);
  font-weight: 600; font-size: .86rem; padding: 7px 14px; border-radius: 100px; margin-bottom: 22px;
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-600); }
.hero h1 { margin-bottom: 20px; }
.hero p.lead { margin-bottom: 30px; max-width: 540px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__media { position: relative; }
.hero__media img { width: 100%; height: 480px; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-lg); }
.hero__chip {
  position: absolute; left: -22px; bottom: 30px;
  background: #fff; border-radius: 16px; padding: 18px 22px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line);
}
.hero__chip .num { font-size: 2rem; font-weight: 800; color: var(--navy-800); line-height: 1; letter-spacing: -.03em; }
.hero__chip .lbl { font-size: .82rem; color: var(--slate-500); font-weight: 500; max-width: 120px; }

/* ---------- Stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat { text-align: center; padding: 6px; }
.stat__num { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--navy-800); letter-spacing: -.03em; line-height: 1; }
.section--navy .stat__num { color: #fff; }
.stat__lbl { margin-top: 8px; font-size: .92rem; color: var(--slate-500); }
.section--navy .stat__lbl { color: #9fb3c8; }

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 24px; }
.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: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d7e2ee; }
.card__icon {
  width: 50px; height: 50px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center; background: var(--blue-100); color: var(--blue-600);
}
.card__icon svg { width: 25px; height: 25px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--slate-500); font-size: .98rem; }

/* Service card with number */
.svc {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d7e2ee; }
.svc__no { font-size: .82rem; font-weight: 700; color: var(--blue-500); letter-spacing: .08em; }
.svc h3 { margin: 10px 0 8px; font-size: 1.14rem; }
.svc p { margin: 0; color: var(--slate-500); font-size: .96rem; }

/* ---------- Split / media rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow-md); }
.checklist { list-style: none; display: grid; gap: 14px; margin-top: 8px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; color: var(--slate-700); }
.checklist .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue-100); color: var(--blue-600); display: grid; place-items: center; margin-top: 2px;
}
.checklist .tick svg { width: 14px; height: 14px; }

/* ---------- Pill list (who we work with) ---------- */
.pill-list { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  background: #fff; border: 1px solid var(--line); border-radius: 100px;
  padding: 11px 20px; font-weight: 500; color: var(--navy-700); font-size: .98rem;
  display: flex; align-items: center; gap: 9px;
}
.pill .tick { color: var(--blue-600); display: inline-flex; }
.pill .tick svg { width: 16px; height: 16px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy-800), var(--navy-900)); color: #fff; border-radius: 24px; padding: 56px; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; background: radial-gradient(circle, rgba(42,134,214,.35), transparent 70%); }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #b8c8da; max-width: 560px; position: relative; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; margin-top: 24px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--bg-navy); color: #fff; padding: 70px 0 64px; }
.page-hero .eyebrow { color: #6fb2ec; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: #aebfd0; max-width: 620px; font-size: 1.12rem; margin: 0; }
.breadcrumb { font-size: .9rem; color: #8aa0b8; margin-bottom: 18px; }
.breadcrumb a { color: #aebfd0; }

/* ---------- About / CEO ---------- */
.quote {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue-600);
  border-radius: var(--radius); padding: 38px 40px;
}
.quote p { font-size: 1.14rem; color: var(--slate-700); font-style: normal; }
.quote .sig { margin-top: 18px; display: flex; align-items: center; gap: 14px; }
.quote .sig__name { font-weight: 700; color: var(--navy-800); }
.quote .sig__role { font-size: .9rem; color: var(--slate-500); }
.sig__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--blue-100); }

.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.tl-item:first-child { border-top: 0; }
.tl-year { font-weight: 800; color: var(--blue-600); font-size: 1.1rem; }
.tl-body h3 { margin-bottom: 6px; font-size: 1.1rem; }
.tl-body p { margin: 0; color: var(--slate-500); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--navy-800); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; font: inherit; font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--slate-700);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(42,134,214,.12);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .86rem; color: var(--slate-500); margin-top: 6px; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.contact-card__icon { flex: none; width: 46px; height: 46px; border-radius: 11px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--blue-600); }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1.02rem; margin-bottom: 3px; }
.contact-card a, .contact-card p { margin: 0; color: var(--slate-500); font-size: .98rem; }
.contact-card a:hover { color: var(--blue-600); }
.form-status { padding: 14px 16px; border-radius: 10px; font-size: .95rem; margin-bottom: 16px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e7f6ef; color: #146c4b; border: 1px solid #bce3d0; }
.form-status.err { background: #fdecec; color: #9b2c2c; border: 1px solid #f3c9c9; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.4rem; margin-top: 38px; }
.legal h3 { font-size: 1.1rem; margin-top: 26px; }
.legal p, .legal li { color: var(--slate-700); }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 1rem; }
.legal li { margin-bottom: 8px; }
.legal .updated { color: var(--slate-500); font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9db1c6; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #9db1c6; display: block; padding: 5px 0; font-size: .96rem; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__name small { color: #7b91a8; }
.footer-brand p { color: #8ba1b8; font-size: .96rem; max-width: 300px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .9rem; color: #7b91a8; }
.footer-bottom a { display: inline; color: #9db1c6; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 64px; }
  .hero__media img { height: 360px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__media { order: 0; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 22px 22px;
    box-shadow: var(--shadow-md); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 13px 14px; font-size: 1.05rem; }
  .nav__cta { margin: 8px 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand__logo { height: 46px; }
  .section { padding: 60px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .cta-band { padding: 38px 26px; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .hero__chip { left: 0; right: 0; bottom: 14px; margin-inline: 14px; }
  .quote { padding: 28px 24px; }
}
