/* Organic — design-system tokens and component classes. This file is the source of truth for the system's look; retune it here and see readme.md. */
@import url('https://fonts.googleapis.com/css2?family=Caprasimo:wght@400&family=Figtree:wght@400;600;700&display=swap');

:root {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;
  --color-accent: #c67139;
  --color-accent-2: #7a8a5e;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  /* Tonal ramps — generated in OKLCH on one shared lightness scale, so the
     same step of any role matches the others in visual value. */
  --color-neutral-100: #f9f4ed;
  --color-neutral-200: #eee7db;
  --color-neutral-300: #dcd3c4;
  --color-neutral-400: #c0b6a5;
  --color-neutral-500: #a19786;
  --color-neutral-600: #82796a;
  --color-neutral-700: #645c50;
  --color-neutral-800: #474238;
  --color-neutral-900: #2e2b25;

  --color-accent-100: #fff2eb;
  --color-accent-200: #ffe1d0;
  --color-accent-300: #ffc6a5;
  --color-accent-400: #f6a06b;
  --color-accent-500: #d67f48;
  --color-accent-600: #b2622d;
  --color-accent-700: #8c491a;
  --color-accent-800: #643312;
  --color-accent-900: #402310;

  --color-accent-2-100: #f0fae1;
  --color-accent-2-200: #e1eecc;
  --color-accent-2-300: #ccdbb2;
  --color-accent-2-400: #aebf92;
  --color-accent-2-500: #8fa073;
  --color-accent-2-600: #728157;
  --color-accent-2-700: #56633f;
  --color-accent-2-800: #3d472b;
  --color-accent-2-900: #272e1b;

  --font-heading: "Caprasimo", system-ui, sans-serif;
  --font-heading-weight: 400;
  --font-body: "Figtree", system-ui, sans-serif;
  --font-heading-copy: "Figtree", system-ui, sans-serif;
  --font-heading-copy-weight: 700;

  --space-1: 4.4px;
  --space-2: 8.8px;
  --space-3: 13.2px;
  --space-4: 17.6px;
  --space-6: 26.4px;
  --space-8: 35.2px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  /* Elevation — derived from the ground: soft ink-tinted shadows on a
     light theme, a hairline edge + ambient darkness on a dark one. */
  --shadow-sm: 0 1px 2px color-mix(in srgb, #2e2b25 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2e2b25 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2e2b25 22%, transparent);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); }

.washed{filter:saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94)}

/* ══════════════════════════════════════════════════════════════════════════
   Components — built with the tokens above. Plain CSS
   on plain HTML: no JavaScript, no build step. Each class is documented in
   readme.md and demonstrated in foundations/ and components/.
   ══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 400; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading-copy); font-weight: var(--font-heading-copy-weight);
  line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 var(--space-2);
  color: var(--color-heading);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; }
h6 { letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption {
  font-size: 11px; margin-top: var(--space-1);
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* — rules — */
.hr {
  height: 1px; border: 0; margin: var(--space-4) 0;
  background: var(--color-divider);
}

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn svg { display: block; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-block { width: 100%; margin-top: var(--space-2); }

/* — forms — */
.field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }

/* — cards — */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface);
}
.card-kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.card-title {
  font-family: var(--font-heading-copy); font-weight: var(--font-heading-copy-weight);
  font-size: 17px; line-height: 1.2; color: var(--color-heading);
}
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }
.card-meta {
  display: flex; align-items: center; gap: 6px; font-size: 11px;
  color: color-mix(in srgb, var(--color-text) 50%, transparent);
}
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }
.elev-lg { box-shadow: var(--shadow-lg); }

/* — tags — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px;
  border-radius: calc(var(--radius-md) * 0.75);
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-accent-2 { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }

/* — navigation — */
.nav {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: none;
}
.nav-brand {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; margin-right: auto;
}
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--color-accent); }

/* — rounded frame: everything softens, small controls go pill — */
.card, .dialog { border-radius: calc(var(--radius-lg) * 1.15); }
.btn, .tag, .seg { border-radius: 999px; }
.input { border-radius: var(--radius-sm); padding-inline: 14px; }

/* ══════════════════════════════════════════════════════════════════════════
   Navari brand — colors sampled directly from the live site (navari.co.ke):
   primary red #bf1e2d (nav active state, buttons, links, kickers), a coral
   secondary #f05858 (hover accents, secondary tags), and a blue reserved
   for the "ERPNext" wordmark highlight, exactly as the live site uses it.
   Plus the layout scaffolding (header, footer, nav, responsive grids)
   needed to ship this as a real multi-page site.
   ══════════════════════════════════════════════════════════════════════ */
:root {
  --color-bg: #ffffff;
  --color-surface: #f3f6fb;
  --color-text: #212934;
  --color-heading: color-mix(in srgb, #212934 82%, white);
  --color-accent: #bf1e2d;
  --color-accent-2: #f05858;
  --color-divider: color-mix(in srgb, #101828 14%, transparent);
  --color-neutral-100: #f8fafc; --color-neutral-200: #eef1f6; --color-neutral-300: #dde3ec;
  --color-neutral-400: #b6c0d1; --color-neutral-500: #8a94a6; --color-neutral-600: #666f80;
  --color-neutral-700: #4a5164; --color-neutral-800: #2c3142; --color-neutral-900: #181c26;
  --color-accent-100: #fdecec; --color-accent-200: #f9d0d2; --color-accent-300: #f2a3a7;
  --color-accent-400: #e26b71; --color-accent-500: #d5343c; --color-accent-600: #bf1e2d;
  --color-accent-700: #9c1620; --color-accent-800: #711017; --color-accent-900: #470a0e;
  --color-accent-2-100: #fff2f0; --color-accent-2-200: #fdd8d3; --color-accent-2-300: #fab0a7;
  --color-accent-2-400: #f47f70; --color-accent-2-500: #f05858; --color-accent-2-600: #d43f3f;
  --color-accent-2-700: #a92f2f; --color-accent-2-800: #7c2222; --color-accent-2-900: #521717;
  --color-page-band: #cd505c;
  --color-erp-blue: #007bff;
  --navy: #212934;
}

a { color: var(--color-accent); }
a:hover { color: var(--color-accent-2); }

.erp-blue { color: var(--color-erp-blue); }

.stripe { background-image: repeating-linear-gradient(135deg, var(--color-neutral-300) 0 10px, var(--color-neutral-200) 10px 20px); }

.card-hover { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.play-btn { transition: transform 0.18s ease, background 0.18s ease; }
.video-card:hover .play-btn { transform: scale(1.08); background: var(--color-accent-2); }

/* — page shell — */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-divider);
}
.site-header .nav { padding: 16px clamp(20px, 5vw, 40px); position: relative; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand:hover { color: inherit; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 999px; background: var(--color-accent);
  display: flex; align-items: center; justify-content: center; color: var(--color-bg);
  font-family: var(--font-heading); font-size: 17px; flex: none;
}
.brand-logo { flex: none; display: block; }
.brand-word { font-family: var(--font-heading); font-size: 18px; color: var(--color-accent); }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 36px; }
.navlink { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--color-text); border-bottom: 2px solid transparent; padding-bottom: 6px; }
.navlink:hover { color: var(--color-accent); }
.navlink.is-active { color: var(--color-accent-700); border-bottom-color: var(--color-accent-2); }
.nav-cta { margin-left: auto; white-space: nowrap; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  margin-left: auto; background: transparent; border: 1px solid var(--color-divider);
  border-radius: var(--radius-sm); width: 40px; height: 40px; cursor: pointer; color: var(--color-text);
}
.nav-toggle svg { display: block; }

@media (max-width: 900px) {
  .nav-links {
    order: 3; flex-basis: 100%; flex-direction: column; align-items: flex-start;
    gap: 4px; margin-left: 0; margin-top: 14px; padding-top: 14px;
    border-top: 1px solid var(--color-divider); display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* — responsive two-column sections (asymmetric, so auto-fit can't help) — */
@media (max-width: 860px) {
  .hero-grid, .split-grid { grid-template-columns: 1fr !important; }
}

/* — footer — */
.site-footer { background: var(--color-bg); border-top: 1px solid var(--color-divider); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px clamp(20px, 5vw, 40px) 32px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h6 { color: var(--color-accent); margin-bottom: 4px; }
.footer-col a { font-size: 13px; color: var(--color-text); text-decoration: none; }
.footer-col a:hover { color: var(--color-accent); }
.social-links { display: flex; gap: 8px; margin-top: 6px; }
.social-links a {
  width: 30px; height: 30px; border-radius: 999px; background: var(--navy);
  display: flex; align-items: center; justify-content: center; flex: none;
  transition: filter 0.15s ease, opacity 0.15s ease;
}
.social-links a:hover { filter: brightness(1.12); }
.social-links svg { width: 14px; height: 14px; fill: #fff; }
.social-links .social-x { background: #000000; }
.social-links .social-youtube { background: #ff0000; }
.social-links .social-linkedin { background: #0a66c2; }
.social-links .social-whatsapp { background: #25d366; }
.footer-bottom { padding: 0 clamp(20px, 5vw, 40px) 28px; border-top: 1px solid var(--color-divider); padding-top: 20px; font-size: 12px; opacity: 0.6; }

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

@media (max-width: 860px) {
  .team-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* — contact form state toggle — */
.contact-success { display: none; }
.contact-success.is-visible { display: flex; }
.contact-form.is-hidden { display: none; }

/* — page-header band (About / Services / Products / Stories / Contact) — */
.page-band {
  background: var(--color-page-band); color: #fff; text-align: center; position: relative; overflow: hidden;
  padding: clamp(28px, 5vw, 44px) clamp(20px, 5vw, 40px) calc(clamp(28px, 5vw, 44px) + 50px);
}
.page-band h1 { color: #fff; margin-bottom: 6px; font-size: clamp(28px, 4.5vw, 40px); }
.page-band .breadcrumb { font-size: 13px; opacity: 0.85; }
.page-band .breadcrumb a { color: #fff; text-decoration: none; }
.page-band .breadcrumb a:hover { text-decoration: underline; }
.page-band::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C360,90 1080,0 1440,55 L1440,100 L0,100 Z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: 100% 100%; background-repeat: no-repeat;
}

/* — accordion (Company: "Why Navari?") — */
.accordion-item { border-bottom: 1px solid var(--color-divider); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: none; border: 0; text-align: left; cursor: pointer;
  padding: 14px 2px; font-family: var(--font-heading); font-size: 16px; color: var(--color-accent);
}
.accordion-trigger .accordion-icon { flex: none; font-size: 18px; line-height: 1; color: var(--color-accent); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.2s ease; }
.accordion-item.is-open .accordion-panel { max-height: 240px; }
.accordion-panel p { padding: 0 2px 16px; font-size: 14px; opacity: 0.85; margin: 0; }

/* — partnerships — */
.partner-badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 auto;
  border: 1px solid var(--color-divider); border-radius: var(--radius-sm);
  padding: 10px 16px; background: var(--color-bg); box-shadow: var(--shadow-sm);
}
.partner-badge .mark {
  width: 34px; height: 34px; border-radius: 6px; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 16px;
}
.partner-badge .label { text-align: left; font-size: 13px; line-height: 1.25; }
.partner-badge .label strong { display: block; font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 15px; }
.partner-tier {
  display: inline-block; margin-top: 10px; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--color-neutral-700); background: var(--color-neutral-100); padding: 3px 10px; border-radius: 999px;
}

/* — client logo carousel — */
.client-carousels { display: flex; flex-direction: column; gap: 14px; }
.client-carousel {
  overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.client-track {
  display: flex; width: max-content; gap: 12px;
  animation-name: client-scroll-left; animation-timing-function: linear; animation-iteration-count: infinite;
}
.client-track.reverse { animation-name: client-scroll-right; }
.client-carousel:hover .client-track { animation-play-state: paused; }
.logo-tile {
  width: 128px; height: 80px; flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--color-bg); border: 1px solid var(--color-divider); border-radius: var(--radius-sm);
  padding: 10px; box-shadow: var(--shadow-sm);
}
.logo-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }

@keyframes client-scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes client-scroll-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

@media (prefers-reduced-motion: reduce) {
  .client-track { animation: none; }
  .client-carousel { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* — industries grid — */
.industry-card { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; }
.industry-card .stripe { position: absolute; inset: 0; }
.industry-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.industry-card:hover img { transform: scale(1.06); }
.industry-card span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px;
  background: linear-gradient(0deg, color-mix(in srgb, var(--navy) 75%, transparent), transparent);
  color: #fff; font-family: var(--font-heading); font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase;
}
