/* ============================================================
   KATALYST DYNAMICS & CONTRACTING CO. LTD — site stylesheet
   Palette: ink #16232E | amber #E89C1E | steel #3E5C76
            light #DCE4EA | paper #FAFAF8
   Type: Barlow Condensed (display) / Barlow (body)
   ============================================================ */

:root {
  --ink: #16232e;
  --ink-soft: #24384a;
  --amber: #e89c1e;
  --amber-deep: #c77f0a;
  --steel: #3e5c76;
  --steel-light: #dce4ea;
  --paper: #fafaf8;
  --white: #ffffff;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(22, 35, 46, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Barlow", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.02rem;
}

h1, h2, h3, h4, .display-font {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.08;
  color: var(--ink);
}

p { max-width: 68ch; }

a { color: var(--steel); }

img { max-width: 100%; }

/* ---------- Hazard chevron motif (signature element) ---------- */
.chevron-bar {
  height: 10px;
  width: 96px;
  background: repeating-linear-gradient(
    -45deg,
    var(--amber) 0 12px,
    var(--ink) 12px 24px
  );
  border-radius: 2px;
  margin-bottom: 1.25rem;
}
.chevron-bar.on-dark {
  background: repeating-linear-gradient(
    -45deg,
    var(--amber) 0 12px,
    var(--paper) 12px 24px
  );
}

/* ---------- Navbar ---------- */
.navbar-kdc {
  background: rgba(22, 35, 46, 0.97);
  transition: box-shadow 0.25s ease, background 0.25s ease;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.navbar-kdc.scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35); }

.navbar-kdc .navbar-brand {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--white);
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--amber);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.1rem;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.brand-text small {
  display: block;
  font-family: "Barlow", sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--steel-light);
}

.navbar-kdc .nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}
.navbar-kdc .nav-link:hover,
.navbar-kdc .nav-link:focus { color: var(--amber); }
.navbar-kdc .nav-link.active {
  color: var(--amber);
  border-bottom: 3px solid var(--amber);
}
.navbar-kdc .navbar-toggler { border-color: rgba(255, 255, 255, 0.4); }
.navbar-kdc .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,0.9)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.btn-quote {
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  padding: 0.55rem 1.3rem;
}
.btn-quote:hover { background: var(--amber-deep); color: var(--ink); }

/* ---------- Hero (home) ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
  position: relative;
  background:
    linear-gradient(105deg, rgba(22, 35, 46, 0.96) 0 45%, rgba(22, 35, 46, 0.78) 75%, rgba(22, 35, 46, 0.62)),
    repeating-linear-gradient(0deg, #1d2f3e 0 2px, #22374a 2px 90px),
    repeating-linear-gradient(90deg, #1d2f3e 0 2px, #22374a 2px 90px);
  background-color: var(--ink);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: 0;
  bottom: 0;
  width: 220px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(232, 156, 30, 0.16) 0 26px,
    transparent 26px 52px
  );
  pointer-events: none;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  text-transform: uppercase;
  max-width: 14ch;
}
.hero h1 .amber { color: var(--amber); }
.hero .lead-copy {
  color: var(--steel-light);
  max-width: 56ch;
  font-size: 1.1rem;
}
.hero .hero-inner {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-rise 0.9s ease 0.15s forwards;
}
@keyframes hero-rise {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .hero-inner { animation: none; opacity: 1; transform: none; }
}

.btn-ghost {
  border: 2px solid var(--steel-light);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0.55rem 1.3rem;
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background:
    linear-gradient(100deg, rgba(22, 35, 46, 0.97) 0 55%, rgba(22, 35, 46, 0.8)),
    repeating-linear-gradient(90deg, #1d2f3e 0 2px, #22374a 2px 90px);
  background-color: var(--ink);
  color: var(--white);
  padding: 7.5rem 0 3.5rem;
}
.page-banner h1 {
  color: var(--white);
  text-transform: uppercase;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}
.page-banner .crumb { color: var(--steel-light); font-size: 0.95rem; }
.page-banner .crumb a { color: var(--amber); text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-dark { background: var(--ink); color: var(--steel-light); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-steel { background: var(--steel-light); }

.section h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ---------- Stats ---------- */
.stat-block {
  border-left: 4px solid var(--amber);
  padding-left: 1.1rem;
}
.stat-number {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}
.stat-label { color: var(--steel-light); font-size: 0.95rem; }

/* ---------- Cards ---------- */
.kdc-card {
  background: var(--white);
  border: 1px solid #e6e3da;
  border-top: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kdc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.kdc-card h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.kdc-card .icon {
  font-size: 1.9rem;
  color: var(--steel);
  margin-bottom: 0.75rem;
  display: inline-block;
}

/* Pillars */
.pillar {
  background: var(--ink-soft);
  border-left: 5px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
}
.pillar h3 { color: var(--amber); font-size: 1.35rem; }
.pillar p { color: var(--steel-light); margin-bottom: 0; }

/* ---------- Mission / Vision ---------- */
.mv-panel {
  background: var(--white);
  border: 1px solid #e6e3da;
  border-radius: var(--radius);
  padding: 2.25rem;
  height: 100%;
}
.mv-panel h3 { text-transform: uppercase; }
.mv-panel blockquote {
  border-left: 4px solid var(--amber);
  padding-left: 1rem;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Timeline (about) ---------- */
.timeline { list-style: none; padding-left: 0; margin: 0; }
.timeline li {
  position: relative;
  padding: 0 0 1.75rem 2rem;
  border-left: 2px solid var(--steel-light);
}
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--amber);
  border: 3px solid var(--paper);
  border-radius: 50%;
}
.timeline .year {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--steel);
}

/* ---------- Projects ---------- */
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #e6e3da;
  background: var(--white);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.project-thumb {
  height: 190px;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  background:
    linear-gradient(180deg, rgba(22,35,46,0.15), rgba(22,35,46,0.85)),
    repeating-linear-gradient(-45deg, var(--steel) 0 18px, var(--ink-soft) 18px 36px);
}
.project-thumb.t2 {
  background:
    linear-gradient(180deg, rgba(22,35,46,0.15), rgba(22,35,46,0.85)),
    repeating-linear-gradient(0deg, var(--steel) 0 16px, var(--ink-soft) 16px 32px);
}
.project-thumb.t3 {
  background:
    linear-gradient(180deg, rgba(22,35,46,0.15), rgba(22,35,46,0.85)),
    repeating-linear-gradient(90deg, var(--amber-deep) 0 14px, var(--ink-soft) 14px 42px);
}
.project-body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; }
.project-tag {
  display: inline-block;
  background: var(--steel-light);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 2px;
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.6rem;
}

/* ---------- Contact ---------- */
.contact-info-panel {
  background: var(--ink);
  color: var(--steel-light);
  border-radius: var(--radius);
  padding: 2.25rem;
  height: 100%;
}
.contact-info-panel h3 { color: var(--white); }
.contact-info-panel a { color: var(--amber); text-decoration: none; }
.contact-line { display: flex; gap: 0.9rem; margin-bottom: 1.25rem; }
.contact-line .ci { color: var(--amber); font-size: 1.25rem; line-height: 1.4; }

.form-control, .form-select {
  border-radius: var(--radius);
  border: 1px solid #cfd8de;
  padding: 0.65rem 0.85rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 0.2rem rgba(232, 156, 30, 0.25);
}
label.form-label { font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--amber);
  color: var(--ink);
  padding: 3rem 0;
}
.cta-band h2 { margin-bottom: 0.25rem; }
.btn-ink {
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius);
  padding: 0.65rem 1.5rem;
  border: none;
}
.btn-ink:hover { background: var(--ink-soft); color: var(--white); }

/* ---------- Footer ---------- */
footer {
  background: #10202c;
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 1.5rem;
  font-size: 0.95rem;
}
footer h4 {
  color: var(--white);
  font-size: 1.15rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
footer a:hover { color: var(--amber); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
}

/* ---------- Utilities ---------- */
.text-amber { color: var(--amber); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

@media (max-width: 991.98px) {
  .navbar-kdc .nav-link.active { border-bottom: none; }
  .hero { min-height: 78vh; }
}
