/* Koubit Consulting — page styles.
   Tokens come from css/tokens/*.css; this file holds layout and components.

   Conformance notes:
   - Colour, typography, radius, border-width and motion all resolve through
     design-system tokens. Semantic aliases (--bg-page, --brand-primary,
     --border-strong) are preferred over raw palette steps.
   - Font sizes use the token scale where the design lands on it exactly
     (15/17/20/13px). The design also uses intermediate sizes (14.5, 15.5,
     16.5, 19, 22, 30, 34, 36, 38, 54px) that the shared scale does not
     define; those stay literal rather than being snapped to a nearby token,
     which would change the rendered design.
   - Layout spacing likewise stays literal: the design's rhythm
     (18/22/26/28/30/44/72/88px) does not follow the --space-* scale
     (4/8/12/16/24/32/48/64/96/128px). Forcing it would alter the layout. */

/* ---------- page-level tokens ---------- */
/* Values this page needs that the shared token set does not define. */
:root {
  --text-on-teal: #062a33;              /* text on teal buttons (per handoff) */
  --border-tag: rgba(255,255,255,.25);  /* outlined pill tags in About */

  --page-gutter: 40px;
  --container-content: 1160px;          /* design's content column; note the
                                           shared --container-max is 1180px,
                                           which this page deliberately does
                                           not use — 1160px is what the design
                                           source measures. */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-on-dark-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-standard);
}
a:hover { color: var(--brand-primary-hover); }

:where(a, button):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

[id] { scroll-margin-top: 20px; }

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

/* ---------- layout primitives ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container-content) + var(--page-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.band--deep  { background: var(--bg-section-alt); }
.band--slate { background: var(--bg-section-alt-2); }

/* ---------- shared components ---------- */
.accent { color: var(--teal-400); }

.btn {
  display: inline-block;
  background: var(--brand-primary);
  color: var(--text-on-teal);
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-body-sm);
  line-height: 1.2;
  padding: 11px 24px;
  border-radius: var(--radius-capsule);
  transition: background var(--duration-base) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
}
.btn:hover  { background: var(--brand-primary-hover); color: var(--text-on-teal); }
.btn:active { transform: scale(0.97); }

.btn--lg { font-size: var(--text-body-md); padding: 14px 30px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  color: var(--teal-400);
}

/* ---------- header ---------- */
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-block: 20px;
}
.site-logo { height: 42px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: var(--text-body-sm);
}
.nav-link { color: var(--text-on-dark-secondary); }
.nav-link:hover { color: var(--brand-primary-hover); }

/* ---------- hero ---------- */
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  padding-block: 64px 80px;
}
.hero__copy { display: flex; flex-direction: column; gap: 20px; }

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 5.6vw, 54px);
  line-height: 1.12;
  font-weight: var(--weight-bold);
  color: var(--text-on-dark-primary);
  /* No text-wrap:balance here — it rebreaks the headline to
     "Technology that / serves people first." The design breaks it
     after "serves". Natural wrapping matches the mock. */
}
.hero__lede {
  margin: 0;
  font-size: 19px;
  line-height: var(--leading-normal);
  color: var(--text-on-dark-secondary);
  max-width: 52ch;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.hero__image { width: 100%; max-width: 440px; height: auto; justify-self: center; }

/* ---------- credibility strip ---------- */
.credibility .container {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  padding-block: 26px;
}
.credibility__label {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-body-sm);
  color: var(--teal-400);
  letter-spacing: .04em;
}
.credibility__names {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 16px;
  font-weight: var(--weight-semibold);
  color: var(--text-on-dark-muted);
}

/* ---------- section headings ---------- */
.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: var(--weight-bold);
  color: var(--brand-primary);
  text-align: center;
  text-wrap: balance;
}
.section__title--sm { font-size: clamp(24px, 3.2vw, 34px); }

.section__intro {
  margin: 0 auto;
  font-size: var(--text-body-md);
  line-height: var(--leading-normal);
  color: var(--text-on-dark-secondary);
  text-align: center;
  max-width: 60ch;
  text-wrap: pretty;
}

/* ---------- offerings ---------- */
.section--what .container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-block: 88px;
}
.offerings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 30px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card__icon {
  width: 46px;
  height: 46px;
  flex: none;
  border: 2px solid var(--teal-400);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--teal-400);
}
.card__icon svg { width: 20px; height: 20px; }
.card__title {
  font-family: var(--font-display);
  font-size: var(--text-body-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-on-dark-primary);
}
.card__body {
  margin: 0;
  font-size: var(--text-body-sm);
  line-height: var(--leading-normal);
  color: var(--text-on-dark-secondary);
  text-wrap: pretty;
}

/* ---------- process ---------- */
.process-section .container { padding-block: 72px; }
.process-section .section__title { margin-bottom: 32px; }

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.process__step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-top: 3px solid var(--brand-primary);
}
.process__label {
  font-family: var(--font-display);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-bold);
  color: var(--teal-400);
  letter-spacing: .06em;
}
.process__body {
  margin: 0;
  font-size: 14.5px;
  line-height: var(--leading-normal);
  color: var(--text-on-dark-secondary);
  text-wrap: pretty;
}

/* ---------- who we serve ---------- */
.audiences .container {
  padding-block: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.capsule {
  border: var(--border-width) solid var(--border-strong);
  border-radius: 22px 22px 12px 12px;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.capsule__icon { width: 54px; height: 54px; object-fit: contain; align-self: flex-start; }
.capsule__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: var(--weight-semibold);
  color: var(--text-on-dark-primary);
}
.capsule__body {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-on-dark-secondary);
  text-wrap: pretty;
}

/* ---------- about ---------- */
.about .container {
  padding-block: 72px;
  display: flex;
  gap: 44px;
  align-items: center;
}
.about__photo {
  width: 160px;
  height: 160px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand-primary);
}
.about__copy { display: flex; flex-direction: column; gap: 10px; }
.about__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: var(--weight-bold);
  color: var(--brand-primary);
}
.about__bio {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-on-dark-secondary);
  max-width: 68ch;
  text-wrap: pretty;
}
.tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.tag {
  border: var(--border-width) solid var(--border-tag);
  border-radius: var(--radius-capsule);
  padding: 6px 14px;
  font-size: var(--text-caption);
  color: var(--text-on-dark-secondary);
}
.about__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;   /* don't stretch the hit area across the column */
  min-height: 44px;         /* >=44px tap target */
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--brand-primary);
  /* Focus ring comes from the global :focus-visible rule (--focus-ring). */
}
.about__linkedin:hover { color: var(--brand-primary-hover); }
.about__linkedin svg { width: 18px; height: 18px; flex: none; }

/* ---------- closing CTA ---------- */
.cta .container {
  padding-block: 88px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 44px;
  align-items: center;
}
.cta__copy { display: flex; flex-direction: column; gap: 16px; }
.cta__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: var(--weight-bold);
  color: var(--text-on-dark-primary);
  text-wrap: balance;
}
.cta__body {
  margin: 0;
  font-size: var(--text-body-md);
  line-height: 1.65;
  color: var(--text-on-dark-secondary);
  max-width: 56ch;
  text-wrap: pretty;
}
.cta__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.cta__actions .btn--lg { padding: 14px 32px; }
.cta__email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  color: var(--teal-400);
}
.cta__image { width: 300px; max-width: 100%; height: auto; }

/* ---------- footer ---------- */
.site-footer .container {
  padding-block: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: var(--text-caption);
  color: var(--text-on-dark-muted);
}
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { color: var(--text-on-dark-muted); }
.footer__links a:hover { color: var(--brand-primary-hover); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .offerings { grid-template-columns: repeat(2, 1fr); }
  .process   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 40px 56px;
  }
  .hero__image { max-width: 380px; }

  .cta .container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 64px;
  }
  .cta__image { justify-self: center; }

  /* nav collapses to logo + CTA; the three text links drop out */
  .site-nav .nav-link { display: none; }
  .site-header .btn { padding: 13px 24px; }   /* >=44px tap target */

  .section--what .container { padding-block: 64px; }
  .process-section .container,
  .audiences .container { padding-block: 56px; }

  .about .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding-block: 56px;
  }
}

@media (max-width: 640px) {
  :root { --page-gutter: 20px; }

  .offerings { grid-template-columns: 1fr; }
  .process   { grid-template-columns: 1fr; }
  .audiences .container { grid-template-columns: 1fr; }

  .credibility .container { gap: 14px; }
  .credibility__names { gap: 14px 20px; }

  .hero__lede { font-size: var(--text-body-md); }
  .card { padding: 24px 22px; }
  .capsule { padding: 26px 22px; }
}
