/* ==========================================================================
   Kobolabs Limited — Stylesheet
   Design language: a warm paper background with a single deliberate accent —
   burnt copper, drawn from the kobo coin. Dark warm ink instead of pure
   black. A muted deep green ("bush") is used sparingly for links and small
   secondary accents. Left-aligned, editorial grid; hairline dividers rather
   than card shadows.
   ========================================================================== */

:root {
  /* Color tokens */
  --paper:        #FBF9F5;
  --paper-raise:  #F2ECE1;
  --ink:          #241C16;
  --ink-soft:     #5C5147;
  --line:         #E4DCCD;
  --copper:       #A34E17;
  --copper-deep:  #7A3A11;
  --copper-tint:  #F1DFC9;
  --bush:         #3E5A4C;
  --bush-tint:    #DEE7E0;
  --paper-invert: #211A14;

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;

  /* Layout */
  --wrap: 1120px;
  --radius: 3px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; }

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; z-index: 200; transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { max-width: 62ch; color: var(--ink-soft); }
p + p { margin-top: 1rem; }

.lede {
  font-size: 1.2rem;
  color: var(--ink);
}

a.underline-link {
  color: var(--bush);
  border-bottom: 1px solid var(--bush-tint);
  transition: border-color 0.15s ease;
}
a.underline-link:hover { border-color: var(--bush); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--copper);
  color: var(--copper);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--copper); color: var(--paper); }

.btn--solid {
  background: var(--copper);
  color: var(--paper);
}
.btn--solid:hover { background: var(--copper-deep); border-color: var(--copper-deep); }

.btn--small { padding: 0.5rem 1rem; font-size: 0.85rem; }

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---- Header ---- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
}
.brand__mark { color: var(--copper); display: inline-flex; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-nav ul { display: flex; gap: 1.75rem; }
.site-nav a:not(.btn) {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover,
.site-nav a.is-active {
  color: var(--ink);
  border-bottom-color: var(--copper);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--ink); display: block;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem 1.5rem;
    gap: 1.25rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 1rem; width: 100%; }
}

/* ---- Hero ---- */
.hero {
  padding-block: clamp(3rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero__kicker {
  font-family: var(--font-display);
  color: var(--copper);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.hero p.lede { margin-top: 1.25rem; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__figure {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__figure { order: -1; max-width: 260px; margin-inline: auto; }
}

/* ---- Section scaffolding ---- */
.section {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.section--raised { background: var(--paper-raise); }
.section--invert { background: var(--paper-invert); color: var(--paper); }
.section--invert p { color: #CFC6BA; }
.section--invert h2 { color: var(--paper); }

.section__head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}
.section__head .lede { margin-top: 0.75rem; }

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---- Value / feature rows (no card kit — hairline-divided rows) ---- */
.row-list {
  border-top: 1px solid var(--line);
}
.row-list__item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.row-list__item h3 { font-size: 1.1rem; }
@media (max-width: 700px) {
  .row-list__item { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ---- Services ---- */
.service {
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.service:first-child { border-top: 1px solid var(--line); }
.service__points { margin-top: 1.25rem; }
.service__points li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}
.service__points li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  background: var(--copper);
  border-radius: 50%;
}
.service h3 { color: var(--ink); font-size: 1.4rem; }

@media (max-width: 780px) {
  .service { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* ---- Stats strip ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats__item {
  padding: 2rem 1.5rem;
  border-left: 1px solid var(--line);
}
.stats__item:first-child { border-left: 0; }
.stats__num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--copper);
  font-weight: 700;
}
.stats__label { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.25rem; }

@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr; }
  .stats__item { border-left: 0; border-top: 1px solid var(--line); }
  .stats__item:first-child { border-top: 0; }
}

/* ---- CTA band ---- */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { max-width: 30ch; }

/* ---- Team / people ---- */
.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.person__photo {
  aspect-ratio: 4 / 5;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--copper);
}
.person__name { font-family: var(--font-display); font-weight: 600; }
.person__role { color: var(--ink-soft); font-size: 0.9rem; }

@media (max-width: 760px) {
  .people { grid-template-columns: 1fr 1fr; }
}

/* ---- Forms ---- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}
.form-grid .field--full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.7rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  border-radius: var(--radius);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--copper);
  outline-offset: 1px;
  border-color: var(--copper);
}
.field textarea { resize: vertical; min-height: 140px; }
.field--error input,
.field--error textarea { border-color: #A32B2B; }
.field__error { color: #A32B2B; font-size: 0.85rem; margin-top: 0.35rem; }

@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}

.notice {
  border-left: 3px solid var(--bush);
  background: var(--bush-tint);
  color: var(--ink);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  border-radius: var(--radius);
}
.notice--error { border-left-color: #A32B2B; background: #F3DEDE; }

/* ---- Contact info list ---- */
.info-list li {
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.info-list li:first-child { border-top: 1px solid var(--line); }
.info-list .label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--copper);
  margin-bottom: 0.2rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--paper-invert);
  color: #CFC6BA;
  padding-block: 3rem 1.5rem;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #3A3128;
}
.site-footer .brand--footer { color: var(--paper); margin-bottom: 0.75rem; display: inline-flex; }
.site-footer .brand--footer .brand__mark { color: var(--copper); }
.site-footer__tagline { color: #A99E90; max-width: 32ch; }
.site-footer__heading {
  font-family: var(--font-display);
  color: var(--paper);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}
.site-footer__col ul li { margin-top: 0.55rem; }
.site-footer__col a:hover { color: var(--paper); }
.site-footer__legal {
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #8A8073;
}

@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}
