/* ==========================================================================
   JKI Consulting — Design tokens
   Colors and fonts per brand spec. Do not introduce new colors/fonts
   without updating this block.
   ========================================================================== */
:root {
  /* Brand colors */
  --dark: #3A4D55;   /* dark blue-slate: nav, headings, buttons, dark bg (light end) */
  --black: #1B1811;  /* near-black: dark bg (deep end), overlays */
  --cream: #FEFEFA;  /* off-white: light section backgrounds */
  --white: #FFFFFF;

  --dark-gradient: linear-gradient(160deg, var(--dark) 0%, var(--black) 100%);
  --overlay: rgba(27, 24, 17, 0.6);
  --overlay-strong: rgba(27, 24, 17, 0.78);
  --hairline: rgba(58, 77, 85, 0.15);
  --muted: #6b7a80;

  /* Type */
  --font-display: 'Montserrat', sans-serif; /* headings */
  --font-body: 'Poppins', sans-serif;       /* body copy, UI */

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;

  --container-max: 1200px;
  --radius: 12px;
  --header-height: 84px;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  margin: 0;
}

p { margin: 0 0 var(--space-2); }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

section { position: relative; }

/* Skip link (keyboard/screen-reader users) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--dark);
  color: var(--white);
  padding: var(--space-2) var(--space-3);
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--dark);
  outline-offset: 3px;
}
.testimonials a:focus-visible,
.difference a:focus-visible,
.services-hero a:focus-visible {
  outline-color: var(--white);
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-4);
  max-width: var(--container-max);
  margin: 0 auto;
  height: var(--header-height);
}
.nav__logo img { height: 44px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--dark);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.nav__links a:hover { border-bottom-color: var(--dark); }
.nav__links a[aria-current="page"] { border-bottom-color: var(--dark); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1);
  color: var(--dark);
}
.nav__toggle svg { width: 28px; height: 28px; display: block; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--dark-gradient);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    transform: translateX(100%);
    transition: transform 0.28s ease;
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { color: var(--white); font-size: 1.4rem; }
  .nav__toggle { display: block; }
  body.nav-open { overflow: hidden; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: url('../images/bg-hero-port.jpg') center/cover no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--overlay-strong) 30%, rgba(27,24,17,0.3) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: var(--space-7) 0;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 3vw + 2rem, 5.5rem);
  margin-bottom: var(--space-3);
}
.hero p {
  color: var(--cream);
  font-size: clamp(1.1rem, 0.6vw + 0.95rem, 1.5rem);
  max-width: 580px;
  margin: 0;
}

/* ==========================================================================
   JKI Difference
   ========================================================================== */
.difference {
  background: var(--dark-gradient);
  color: var(--white);
  padding: var(--space-7) 0;
}
.difference__grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: var(--space-6);
  align-items: start;
}
.difference__photo img { border-radius: var(--radius); width: 100%; }
.difference h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: var(--space-4); }

.difference__list {
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.difference__list li { display: flex; align-items: center; gap: var(--space-3); font-size: 1.15rem; }
.check-circle {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 2px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-circle svg { width: 18px; height: 18px; }

.stats { display: flex; gap: var(--space-7); flex-wrap: wrap; }
.stat__number { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 4vw, 2.75rem); }
.stat__label { color: rgba(255,255,255,0.75); }

@media (max-width: 860px) {
  .difference__grid { grid-template-columns: 1fr; }
  .difference__photo { max-width: 420px; }
  .difference__photo img { max-height: 320px; object-fit: cover; }
  .stats { gap: var(--space-5); }
}

/* ==========================================================================
   Products & Verticals
   ========================================================================== */
.products { padding: var(--space-7) 0; }
.products h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: var(--space-6); }

.vertical-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6) var(--space-7);
}
.vertical-grid > .category:nth-child(2n) {
  border-left: 1px solid var(--hairline);
  padding-left: var(--space-6);
}

.category__header { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-5); }
.category__header svg { width: 32px; height: 32px; color: var(--dark); flex-shrink: 0; }
.category__header h3 {
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.item-row { display: flex; align-items: center; gap: var(--space-3); }
.item-row + .item-row { margin-top: var(--space-4); }
.item-row img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.item-row h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.15rem; margin-bottom: 2px; }
.item-row p { margin: 0; color: var(--muted); font-size: 0.96rem; }

@media (max-width: 860px) {
  .vertical-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .vertical-grid > .category:nth-child(2n) { border-left: none; padding-left: 0; }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
  position: relative;
  background: url('../images/bg-testimonials.jpg') center/cover no-repeat;
  color: var(--white);
  padding: var(--space-7) 0;
}
.testimonials::before { content: ''; position: absolute; inset: 0; background: var(--overlay-strong); }
.testimonials .container { position: relative; z-index: 1; }
.testimonials h2 { margin-bottom: var(--space-6); }

.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.testi-card { text-align: center; }
.testi-card .quote-mark { color: var(--white); opacity: 0.85; margin-bottom: var(--space-2); }
.testi-card .quote-mark svg { width: 40px; height: 30px; }
.testi-card p.quote { font-size: 1.3rem; margin-bottom: var(--space-4); }
.testi-card .name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.testi-card .company { color: rgba(255,255,255,0.75); margin-bottom: var(--space-3); font-size: 1.1rem; }

@media (max-width: 860px) {
  .testi-grid { grid-template-columns: 1fr; gap: var(--space-7); }
}

/* ==========================================================================
   Connect / Contact (simplified: email + LinkedIn only, no form)
   ========================================================================== */
.connect { padding: var(--space-7) 0; text-align: center; }
.connect h2 { margin-bottom: var(--space-3); }
.connect a.email { font-size: 1.2rem; text-decoration: underline; }
.connect .linkedin { display: inline-flex; margin-top: var(--space-4); }
.connect .linkedin img { width: 42px; height: 42px; }
.connect .linkedin:hover { opacity: 0.8; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: var(--space-4) 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer .legal-links { margin-bottom: var(--space-1); }
.site-footer .legal-links a { text-decoration: underline; color: var(--dark); }
.site-footer .legal-links span { margin: 0 var(--space-1); }

/* ==========================================================================
   Services page
   ========================================================================== */
.services-hero { background: var(--dark-gradient); color: var(--white); padding: var(--space-7) 0; }
.services-hero__grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: var(--space-6);
  align-items: center;
}
.services-hero h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: var(--space-6); }
.service-block { margin-bottom: var(--space-5); }
.service-block:last-child { margin-bottom: 0; }
.service-block h2 { font-size: 1.35rem; margin-bottom: var(--space-2); letter-spacing: 0.02em; text-transform: uppercase; }
.service-block p { color: rgba(255,255,255,0.85); max-width: 460px; margin: 0; }
.services-hero__photo img { border-radius: var(--radius); width: 100%; max-height: 480px; object-fit: cover; }

@media (max-width: 860px) {
  .services-hero__grid { grid-template-columns: 1fr; }
  .services-hero__photo { max-width: 440px; margin: 0 auto var(--space-5); }
  .services-hero__photo img { max-height: 380px; object-fit: cover; }
}

/* ==========================================================================
   Legal pages (Privacy / Terms)
   ========================================================================== */
.legal { padding: var(--space-7) 0 var(--space-6); }
.legal .container { max-width: 780px; }
.legal h1 {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 2.75rem;
  margin-bottom: var(--space-2);
  text-align: center;
}
.legal .effective-date { color: var(--muted); margin-bottom: var(--space-6); text-align: center; }
.legal h2 { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; margin: var(--space-5) 0 var(--space-2); }
.legal p { margin: 0 0 var(--space-2); }
.legal a.email-link { text-decoration: underline; }
.legal .updated { margin-top: var(--space-5); color: var(--muted); font-size: 0.92rem; }

/* ==========================================================================
   404 page
   ========================================================================== */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-7) var(--space-4);
}
.error-page h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: var(--space-3); }
.error-page a { text-decoration: underline; font-weight: 600; }

/* ==========================================================================
   Small-screen type scale-down for section headings
   ========================================================================== */
@media (max-width: 480px) {
  .container { padding: 0 var(--space-3); }
  .hero__content, .difference, .products, .testimonials, .connect, .services-hero { padding-top: var(--space-6); padding-bottom: var(--space-6); }
}
