/* KAYZ Consortium Limited — website v2 (multi-page redesign) */
:root {
  --green: #138D44;
  --green-dark: #0E6E35;
  --ink: #161616;
  --muted: #5B6470;
  --bg: #FFFFFF;
  --bg-soft: #F4F6F5;
  --dark: #131F1A;
  --dark-2: #1B2B23;
  --line: #E2E6E2;
  --radius: 0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.22; letter-spacing: -0.01em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 14px 0 18px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 10px 0 16px; }
h3 { font-size: 1.2rem; margin-bottom: 10px; }
p { margin-bottom: 14px; }

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

img { max-width: 100%; }

.eyebrow {
  color: var(--green);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.eyebrow-light { color: #8FD6A8; }

.lede { font-size: 1.12rem; color: var(--muted); max-width: 680px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 28px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); text-decoration: none; color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-outline-light { color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-name { font-weight: 700; font-size: 1.05rem; color: var(--ink); line-height: 1.2; }
.brand-name small { display: block; font-weight: 400; font-size: 0.72rem; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a:not(.btn) { color: var(--ink); font-size: 0.95rem; font-weight: 500; }
.main-nav a:not(.btn):hover { color: var(--green); text-decoration: none; }
.main-nav a.active { color: var(--green); box-shadow: inset 0 -2px 0 var(--green); padding-bottom: 2px; }
.main-nav .btn { padding: 10px 22px; font-size: 0.92rem; }

/* Hero (home) */
.hero {
  position: relative;
  color: #fff;
  background: var(--dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 18, 14, 0.72) 0%, rgba(10, 18, 14, 0.45) 55%, rgba(10, 18, 14, 0.25) 100%);
}
.hero-inner {
  position: relative;
  padding: 120px 24px 130px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-inner h1 { color: #fff; max-width: 640px; }
.hero-inner .lede { color: rgba(255, 255, 255, 0.88); }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* Page hero (inner pages) */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.page-hero img { width: 100%; display: block; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }

/* Sections */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255, 255, 255, 0.82); }

/* Stats */
.stats { padding: 64px 0 56px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { border-top: 2px solid var(--ink); padding-top: 18px; }
.stat strong { display: block; font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 600; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 0.92rem; }
.stats-note { margin-top: 28px; font-size: 0.82rem; color: var(--muted); }

/* Entry cards (What we do) */
.entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 36px; }
.entry img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.entry h3 { margin: 18px 0 8px; }
.entry p { color: var(--muted); font-size: 0.95rem; }
.entry .more { font-weight: 600; font-size: 0.95rem; }

/* Case block */
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.case-grid img { width: 100%; display: block; }
.case-stats { display: flex; gap: 48px; margin: 26px 0; }
.case-stats strong { display: block; font-size: 1.9rem; font-weight: 600; }
.case-stats span { color: var(--muted); font-size: 0.9rem; }
.photo-note { font-size: 0.82rem; color: var(--muted); margin-top: 10px; }
.section-dark .photo-note { color: rgba(255, 255, 255, 0.6); }

/* Client list */
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.client-list { list-style: none; }
.client-list li {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.client-list li:last-child { border-bottom: 1px solid var(--line); }
.client-list strong { font-weight: 600; }

/* Data table (MAP) */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data-table th {
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 2px solid var(--ink);
}
.data-table td { padding: 13px 0; border-bottom: 1px solid var(--line); }
.data-table td:first-child { font-weight: 600; padding-right: 24px; }

/* Product cards */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 36px; }
.products-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-card { background: #fff; border: 1px solid var(--line); }
.product-card .p-img {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 18px;
}
.product-card .p-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-card .p-body { padding: 20px; }
.product-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.product-card .p-specs { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; }
.product-card .p-ds { font-size: 0.88rem; font-weight: 600; }
.certs-line { margin-top: 28px; font-size: 0.88rem; color: var(--muted); }

/* Fact table (dark case) */
.facts { margin: 28px 0; }
.facts .fact {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.95rem;
}
.facts .fact:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.facts .fact span { color: rgba(255, 255, 255, 0.62); }

/* Systems grid */
.systems-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-top: 8px; }
.systems-grid .sys { border-top: 1px solid var(--line); padding: 20px 0; }
.systems-grid .sys:last-child { border-bottom: 1px solid var(--line); }
.systems-grid .sys:nth-last-child(2) { border-bottom: 1px solid var(--line); }
.systems-grid h3 { font-size: 1.05rem; margin-bottom: 6px; }
.systems-grid p { color: var(--muted); font-size: 0.93rem; margin-bottom: 0; }

/* News cards */
.news-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 32px; }
.news-card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.news-card .n-cover {
  aspect-ratio: 16 / 9;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  font-weight: 600;
  font-size: 1.05rem;
  overflow: hidden;
}
.news-card .n-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-card .n-cover.has-img { padding: 0; align-items: stretch; }
.news-card .n-body { padding: 20px; }
.news-card .n-tag { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.news-card h3 { font-size: 1.05rem; margin: 8px 0 0; line-height: 1.4; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--green); text-decoration: none; }

/* Dual CTA */
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.dual > div { border-top: 2px solid var(--ink); padding-top: 24px; }
.dual h2 { font-size: 1.5rem; }
.dual .row { display: flex; align-items: center; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.dual .phone { font-weight: 700; font-size: 1.05rem; color: var(--ink); }

/* Note panel (green left border) */
.note-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  padding: 24px 28px;
  margin-top: 28px;
}
.note-panel h3 { font-size: 1.05rem; margin-bottom: 8px; }
.note-panel p { margin-bottom: 8px; font-size: 0.95rem; }
.note-panel p:last-child { margin-bottom: 0; }
.section-soft .note-panel { box-shadow: 0 2px 10px rgba(20, 40, 30, 0.05); }

/* People */
.person { display: grid; grid-template-columns: 240px 1fr; gap: 40px; margin-top: 36px; align-items: start; }
.person img { width: 100%; display: block; }
.person .role { color: var(--green); font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; }
.sh-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.sh-card { border: 1px solid var(--line); padding: 28px; background: #fff; }
.sh-card img { height: 48px; width: auto; display: block; margin-bottom: 16px; }

/* AMMON */
.ammon-logo { height: 140px; width: auto; display: block; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; margin-top: 36px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-actions { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }
.contact-lines { list-style: none; margin-top: 8px; }
.contact-lines li { padding: 16px 0; border-top: 1px solid var(--line); }
.contact-lines li:last-child { border-bottom: 1px solid var(--line); }
.contact-lines strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }

/* Footer */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, 0.78); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding: 64px 0 48px;
}
.footer-brand img { height: 44px; width: auto; display: block; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; margin-bottom: 4px; }
.footer-col h4 {
  color: #8FD6A8;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.78); font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.55); }

/* CTA band */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: var(--muted); margin-bottom: 0; }

/* Responsive */
@media (max-width: 960px) {
  .entries, .news-grid { grid-template-columns: 1fr; }
  .products-grid, .products-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .case-grid, .split, .dual, .form-grid { grid-template-columns: 1fr; gap: 36px; }
  .page-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .person { grid-template-columns: 1fr; gap: 20px; }
  .person img { max-width: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .sh-logos { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .main-nav a:not(.btn) { display: none; }
  .section { padding: 56px 0; }
  .hero-inner { padding: 84px 24px 90px; }
  .products-grid, .products-grid.cols-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .client-list li { grid-template-columns: 1fr; gap: 4px; }
  .facts .fact { grid-template-columns: 1fr; gap: 4px; }
}
