/* =========================================================
   HUTS CONSULTING — brand tokens
   Same system as the logo, stationery, and social kit.
   ========================================================= */
:root {
  --navy: #17324A;
  --navy-deep: #101F2E;
  --slate: #5B6B76;
  --slate-light: #8A9AA5;
  --hairline: #E1E5E8;
  --paper: #FFFFFF;
  --paper-tint: #F7F8F9;
  --ink: #26323A;

  --health: #B3434B;
  --it: #5B7B9A;
  --agri: #6E8F4E;
  --edu: #E3A008;

  --font: -apple-system, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container: 1120px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(23,50,74,0.06), 0 8px 24px rgba(23,50,74,0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

a:focus-visible, button:focus-visible, .navlink:focus-visible {
  outline: 2px solid var(--edu);
  outline-offset: 3px;
}

/* ---------- Eyebrow / section heading device ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.eyebrow .bars { display: flex; gap: 4px; }
.eyebrow .bars span { width: 16px; height: 4px; border-radius: 2px; display: block; }
.eyebrow .bars span:nth-child(1) { background: var(--health); }
.eyebrow .bars span:nth-child(2) { background: var(--it); }
.eyebrow .bars span:nth-child(3) { background: var(--agri); }
.eyebrow .bars span:nth-child(4) { background: var(--edu); }
.eyebrow span.label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--slate);
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  color: var(--navy);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.3px;
}
.section-lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate);
  max-width: 660px;
  margin: 0 0 44px;
}

section { padding: 96px 0; scroll-margin-top: 122px; }
#services { scroll-margin-top: 96px; }
.tint { background: var(--paper-tint); }

/* ---------- Header / Nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
header.site.scrolled {
  border-bottom-color: var(--hairline);
  box-shadow: 0 2px 16px rgba(23,50,74,0.05);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 112px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 96px; width: auto; }
.brand a { display: block; }

nav.links { display: flex; align-items: center; gap: 34px; }
.navlink {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}
.navlink::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--edu);
  transition: right .22s ease;
}
.navlink:hover::after { right: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14.5px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost { border-color: var(--hairline); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); }
.btn-on-dark { border-color: rgba(255,255,255,0.35); color: #fff; background: transparent; }
.btn-on-dark:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 108px 0 96px;
  overflow: hidden;
  background: var(--paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 62px);
  line-height: 1.04;
  letter-spacing: -1px;
  color: var(--navy);
  font-weight: 800;
  margin: 0 0 6px;
}
.hero .tagline {
  font-size: 17px;
  color: var(--slate-light);
  font-style: italic;
  margin: 0 0 26px;
}
.hero p.lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--slate);
  max-width: 560px;
  margin: 0 0 34px;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-panel {
  background: var(--navy);
  border-radius: 16px;
  padding: 36px;
  color: #fff;
  position: relative;
}
.hero-panel .quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hero-panel .cell {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 18px 16px;
}
.hero-panel .cell .dot { width: 10px; height: 10px; border-radius: 50%; margin-bottom: 10px; }
.hero-panel .cell h4 { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; }
.hero-panel .cell p { margin: 0; font-size: 12.5px; color: rgba(255,255,255,0.6); line-height: 1.5; }

/* ---------- Sector cards ---------- */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.sector-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.sector-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.sector-card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.sector-card .icon svg { width: 22px; height: 22px; }
.sector-card h3 { font-size: 16px; color: var(--navy); margin: 0 0 10px; letter-spacing: 0.3px; }
.sector-card p { font-size: 14px; line-height: 1.65; color: var(--slate); margin: 0; }

.icon.health { background: rgba(179,67,75,0.1); color: var(--health); }
.icon.it { background: rgba(91,123,154,0.1); color: var(--it); }
.icon.agri { background: rgba(110,143,78,0.1); color: var(--agri); }
.icon.edu { background: rgba(227,160,8,0.12); color: var(--edu); }

/* ---------- Purpose / Mission / Vision ---------- */
.pmv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.pmv-card { padding: 34px 30px; border-left: 1px solid var(--hairline); }
.pmv-card:first-child { border-left: none; }
.pmv-card .tag {
  display: inline-block;
  font-size: 11.5px; font-weight: 800; letter-spacing: 1.5px;
  color: #fff; background: var(--navy);
  padding: 5px 10px; border-radius: 5px;
  margin-bottom: 16px;
}
.pmv-card p { font-size: 15px; line-height: 1.7; color: var(--slate); margin: 0; }

/* ---------- Core values (HUTS signature) ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.value-card { text-align: left; }
.value-card .letter {
  font-size: 54px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 10px;
}
.value-card .bar { width: 40px; height: 4px; border-radius: 2px; margin-bottom: 16px; }
.value-card h3 {
  font-size: 14.5px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--navy); margin: 0 0 10px;
}
.value-card p { font-size: 14px; line-height: 1.7; color: var(--slate); margin: 0; }

/* ---------- Capabilities ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.cap-item { background: #fff; padding: 32px; }
.cap-item .num {
  font-size: 13px; font-weight: 800; color: var(--slate-light);
  letter-spacing: 1px; margin-bottom: 14px; display: block;
}
.cap-item h3 { font-size: 17px; color: var(--navy); margin: 0 0 10px; }
.cap-item p { font-size: 14.5px; line-height: 1.7; color: var(--slate); margin: 0; }

/* ---------- Experience / stats ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 52px;
}
.stat { text-align: center; padding: 22px 10px; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); }
.stat .n { font-size: 30px; font-weight: 800; color: var(--navy); }
.stat .l { font-size: 12.5px; color: var(--slate); letter-spacing: 0.4px; margin-top: 4px; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project-card {
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column;
}
.project-card .client {
  font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--slate-light); margin-bottom: 10px;
}
.project-card h3 { font-size: 15.5px; color: var(--navy); margin: 0 0 10px; line-height: 1.4; }
.project-card p { font-size: 13.5px; line-height: 1.65; color: var(--slate); margin: 0; flex: 1; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.team-card { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 28px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; margin-bottom: 18px;
}
.team-card h3 { font-size: 16.5px; color: var(--navy); margin: 0 0 3px; }
.team-card .role { font-size: 13px; color: var(--edu); font-weight: 700; margin-bottom: 14px; }
.team-card p.bio { font-size: 13.5px; line-height: 1.7; color: var(--slate); margin: 0; }

/* ---------- Contact / Footer ---------- */
.contact-panel {
  background: var(--navy);
  border-radius: 18px;
  padding: 56px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}
.contact-panel h2 { font-size: 30px; font-weight: 800; margin: 0 0 14px; }
.contact-panel p.lede { color: rgba(255,255,255,0.7); font-size: 15.5px; line-height: 1.7; max-width: 440px; margin: 0 0 28px; }
.contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-list .row { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico {
  width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-list .ico svg { width: 16px; height: 16px; color: #fff; }
.contact-list .txt { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,0.85); }
.contact-list .txt .k { display: block; font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 2px; }

footer.site { padding: 44px 0 36px; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
  border-top: 1px solid var(--hairline); padding-top: 28px; margin-top: 56px;
}
.footer-inner .brand img { height: 46px; }
.footer-inner .meta { font-size: 12.5px; color: var(--slate-light); }
.footer-inner .meta a { color: var(--slate); font-weight: 600; }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
/* Default: content is visible. JS adds .reveal-pending only when it can
   also guarantee the reveal will fire, so nothing is ever stuck hidden. */
.reveal-pending { opacity: 0; transform: translateY(18px); }
.reveal { transition: opacity .6s ease, transform .6s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-grid { grid-template-columns: 1fr; }
  .pmv-grid { grid-template-columns: 1fr; }
  .pmv-card { border-left: none; border-top: 1px solid var(--hairline); }
  .pmv-card:first-child { border-top: none; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .contact-panel { grid-template-columns: 1fr; padding: 40px 28px; }
}

@media (max-width: 720px) {
  nav.links { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 28px; gap: 22px; align-items: flex-start; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; max-height: calc(100vh - 112px); box-shadow: 0 12px 24px rgba(23,50,74,0.1); border-top: 1px solid var(--hairline); }
  nav.links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  nav.links .nav-cta-mobile { display: inline-flex; margin-top: 8px; }
  .sector-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
