/* =========================================================
   Next Tech Solutions — site styles
   Built to the Design Handover (Terracotta theme active),
   with the v1.1 "lively" layer: colour orbs, grain, dark and
   terracotta bands, and motion (Motion + Locomotive Scroll).
   All colours come from the tokens below. Do not add hex
   values anywhere else in this file.
   ========================================================= */

:root {
  --bg: #F3F1EC;  --surface: #FFFFFF;  --ink: #14161A;
  --text-secondary: #4A4D53;  --text-muted: #5A5D63;
  --border: #E2DED6;  --divider: #ECE9E2;

  /* Theme: Terracotta (active) */
  --accent: #A8472A;  --accent-tint: #F5DCCF;  --accent-on-tint: #8F3B22;
  --on-accent: #FFFFFF;  --nav-cta-bg: #14161A;
  --accent-bright: #E07A52;          /* accent on dark backgrounds */
  --orb-1: #D9673F;  --orb-2: #F2B48C;  --orb-3: #F6D9B8;
  --glow: rgba(168, 71, 42, 0.14);

  /* Dark band */
  --ink-2: #1E2127;  --on-ink: #F3F1EC;  --on-ink-muted: #B3AEA5;
  --ink-border: rgba(255, 255, 255, 0.1);
  --shadow-soft: 0 24px 48px -28px rgba(20, 22, 26, 0.35);
  --dot: rgba(20, 22, 26, 0.09);

  --font: "Red Hat Display", system-ui, sans-serif;
  --radius-panel: 24px;  --radius-pill: 999px;  --container: 1120px;

  /* Layout helpers (from the 8px spacing scale) */
  --gutter: 64px;
  --section: 120px;
  --radius-input: 12px;
  --ease: 200ms ease-out;
  color-scheme: light;
}

/* Theme: Green (alternate) */
:root[data-theme="green"] {
  --accent: #1F5C4A;  --accent-tint: #D6E9DE;  --accent-on-tint: #1F5C4A;
  --on-accent: #FFFFFF;  --nav-cta-bg: #1F5C4A;
  --accent-bright: #5FB28F;
  --orb-1: #2E7D62;  --orb-2: #9CCBB2;  --orb-3: #D6E9DE;
  --glow: rgba(31, 92, 74, 0.14);
}

@media (max-width: 1023px) { :root { --gutter: 32px; --section: 80px; } }
@media (max-width: 639px)  { :root { --gutter: 20px; --section: 64px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }

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

.skip-link {
  position: absolute; left: 16px; top: 16px; z-index: 100;
  transform: translateY(-200%);
  background: var(--ink); color: var(--surface);
  padding: 12px 16px; border-radius: var(--radius-pill);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { transform: none; }

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

.section { padding-block: var(--section) 0; }
.section:last-of-type { padding-bottom: var(--section); }

/* ---------- Type ---------- */
.display {
  font-size: 80px; line-height: 1.02; font-weight: 600; letter-spacing: -0.035em;
  max-width: 1040px; margin-inline: auto;
}
.h2 { font-size: 48px; line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
.h3 { font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: 20px; line-height: 1.55; max-width: 620px; margin-inline: auto; }
.small { font-size: 15px; line-height: 1.6; color: var(--text-muted); }

@media (max-width: 639px) {
  .display { font-size: 44px; }
  .h2 { font-size: 32px; }
  .h3 { font-size: 20px; }
  .lead { font-size: 18px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .display { font-size: 64px; }
  .h2 { font-size: 40px; }
}

.highlight {
  background: var(--accent-tint);
  color: var(--accent-on-tint);
  padding: 0 14px;
  border-radius: 16px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  font-style: normal;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 14px; font-weight: 500; line-height: 1.2;
  color: var(--text-secondary);
}
.badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex: none;
}

/* ---------- Number pill ---------- */
.pill {
  display: inline-block;
  background: var(--accent-tint);
  color: var(--accent-on-tint);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 13px; font-weight: 700; line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font: 600 16px/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease), opacity var(--ease);
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--dark { background: var(--nav-cta-bg); color: var(--on-accent); }
.btn:hover { opacity: 0.88; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

@media (max-width: 639px) {
  .hero .btn-row { flex-direction: column; align-items: stretch; width: 100%; }
}

/* ---------- Navigation ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--bg);
}
.nav {
  height: 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  justify-self: start; min-height: 44px;
}
.logo__mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
}
.nav__links { display: flex; gap: 36px; list-style: none; padding: 0; }
.nav__links a {
  text-decoration: none; color: var(--text-secondary);
  font-size: 15px; font-weight: 500;
  padding-block: 12px;
  transition: color var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.nav__cta { justify-self: end; }
.nav__cta .btn { padding: 12px 22px; font-size: 15px; }
.nav__toggle {
  display: none; justify-self: end;
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  cursor: pointer; place-items: center;
}
.nav__toggle svg { width: 20px; height: 20px; }

@media (max-width: 1023px) {
  .nav { grid-template-columns: minmax(0, 1fr) auto; }
  .nav__menu, .nav__cta { display: none; }
  .nav__toggle { display: grid; }
}

/* Mobile menu sheet */
.menu-sheet {
  position: fixed; inset: 0; z-index: 60;
  background: var(--bg);
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  display: flex; flex-direction: column;
}
.menu-sheet__top { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.menu-sheet__links {
  list-style: none; padding: 0; margin-top: 32px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.menu-sheet__links a {
  display: block; padding: 12px 24px;
  font-size: 32px; font-weight: 600; letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none;
}
.menu-sheet__cta { margin-top: auto; padding-block: 32px; }
.menu-sheet__cta .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding-top: 88px; text-align: center; }
.hero__stack { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.hero--page .hero__stack { gap: 24px; }
.jump-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  list-style: none; padding: 0; margin-top: 8px;
}
.jump-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 10px 20px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-secondary); text-decoration: none; font-weight: 500; font-size: 15px;
  transition: border-color var(--ease), color var(--ease);
}
.jump-links a:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Section header ---------- */
.section-header {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  text-align: center; margin-bottom: 56px;
}
.section-header .h2 { max-width: 880px; }

/* ---------- Stats row ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  text-align: center; list-style: none; padding: 0;
}
.stat__num {
  display: block; color: var(--accent);
  font-size: 52px; line-height: 1; font-weight: 600; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; margin-bottom: 12px;
}
.stat__label { display: block; max-width: 220px; margin-inline: auto; }
@media (max-width: 1023px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 639px)  { .stat__num { font-size: 40px; } }

/* ---------- Panels ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
}

/* Services panel: one panel, equal columns split by hairlines */
.split-panel {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}
.split-panel__col {
  padding: 36px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-decoration: none; color: inherit;
  transition: background-color var(--ease);
  min-width: 0;
}
.split-panel__col + .split-panel__col { border-left: 1px solid var(--divider); }
a.split-panel__col:hover { background: var(--bg); }
.split-panel__services {
  list-style: none; padding: 16px 0 0; margin-top: auto;
  border-top: 1px solid var(--divider); width: 100%;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 14px; font-weight: 500; color: var(--ink);
}
.split-panel__more { font-size: 14px; font-weight: 600; color: var(--ink); }
@media (max-width: 767px) {
  .split-panel { grid-template-columns: minmax(0, 1fr); }
  .split-panel__col + .split-panel__col { border-left: 0; border-top: 1px solid var(--divider); }
}

/* ---------- Cards ---------- */
.cards {
  --cols: 3;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
  list-style: none; padding: 0;
}
.cards--2 { --cols: 2; }
.cards--4 { --cols: 4; }
.cards > * { flex: 0 0 calc((100% - (var(--cols) - 1) * 24px) / var(--cols)); min-width: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  padding: 36px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
  transition: border-color var(--ease);
}
.card:hover { border-color: var(--ink); }
.card--link { height: 100%; text-decoration: none; color: inherit; }
.card__more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--ink); }
.menu-sheet .nav__toggle { display: grid; }
.card .small { max-width: 34ch; }

@media (max-width: 1023px) {
  .cards--3, .cards--4 { --cols: 2; }
}
@media (max-width: 639px) {
  .cards, .cards--2, .cards--3, .cards--4 { --cols: 1; }
  .card { padding: 24px; }
}

/* ---------- Leadership profile ---------- */
.leadership-feature {
  padding: 56px 36px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.avatar {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; flex: none;
  background: var(--accent-tint); color: var(--accent-on-tint);
  display: grid; place-items: center;
  font-size: 30px; font-weight: 600; letter-spacing: -0.02em;
}
.avatar--lg { width: 128px; height: 128px; font-size: 40px; }
.leader__title { font-size: 15px; font-weight: 500; color: var(--text-muted); margin-top: -8px; }
.leader__text { max-width: 640px; }
.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; color: var(--ink); text-decoration: underline;
  text-underline-offset: 6px; text-decoration-thickness: 1px;
}
.text-link:hover { color: var(--accent); }

/* ---------- Prose (story, bio, legal) ---------- */
.prose { max-width: 680px; margin-inline: auto; }
.prose p + p { margin-top: 20px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-underline-offset: 4px; }
.prose a:hover { color: var(--accent); }
.story { text-align: center; }
.story .prose { font-size: 18px; line-height: 1.65; }

/* ---------- Leadership ---------- */
.leader { padding: 56px; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.leader__head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.leader__bio { text-align: left; }
.credentials {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  list-style: none; padding: 0;
}
.credentials li {
  border: 1px solid var(--border); background: var(--bg);
  border-radius: var(--radius-pill); padding: 8px 14px;
  font-size: 14px; font-weight: 500; color: var(--ink);
}
.label {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.04em;
}
.leader__divider { width: 100%; border: 0; border-top: 1px solid var(--divider); margin: 0; }
@media (max-width: 639px) { .leader { padding: 32px 24px; } }

/* ---------- Services page ---------- */
.pillar { scroll-margin-top: 112px; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service {
  padding: 40px; display: flex; flex-direction: column; gap: 20px; min-width: 0;
}
.service__head { display: flex; flex-direction: column; gap: 12px; }
.service__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.service__list li {
  position: relative; padding-left: 22px; font-size: 15px; line-height: 1.5;
}
.service__list li::before {
  content: ""; position: absolute; left: 4px; top: 0.6em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink);
}
.service__outcome {
  margin-top: auto;
  background: var(--bg); border-radius: 16px; padding: 20px 24px;
}
.service__outcome p { color: var(--ink); font-weight: 500; }
.service__proof { font-size: 14px; color: var(--text-muted); border-top: 1px solid var(--divider); padding-top: 16px; }
@media (max-width: 767px) {
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service { padding: 28px 24px; }
}

/* ---------- Industries page ---------- */
.industry { height: 100%; padding: 40px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.industry .h2 { font-size: 36px; }
.industry__exp {
  margin-top: auto; padding-top: 20px; border-top: 1px solid var(--divider);
  font-weight: 500; color: var(--ink);
}
@media (max-width: 639px) { .industry { padding: 28px 24px; } .industry .h2 { font-size: 28px; } }

/* ---------- CTA band ---------- */
.cta-band {
  padding: 88px 36px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
@media (max-width: 639px) { .cta-band { padding: 56px 24px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.form-panel { padding: 40px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field .field__label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field__opt { color: var(--text-muted); font-weight: 400; }
.input {
  width: 100%; min-height: 48px;
  border: 1px solid var(--border); border-radius: var(--radius-input);
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.4 var(--font);
  padding: 12px 16px;
  transition: border-color var(--ease);
}
.input::placeholder { color: var(--text-muted); opacity: 1; }
.input:hover { border-color: var(--text-muted); }
.input:focus-visible { border-color: var(--accent); }
textarea.input { min-height: 144px; resize: vertical; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--text-secondary); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check a { color: var(--ink); }
.form .btn { justify-self: start; }
.form__msg { border-radius: 16px; padding: 16px 20px; font-weight: 500; }
.form__msg--ok { background: var(--accent-tint); color: var(--accent-on-tint); }
.form__msg--err { background: var(--bg); color: var(--ink); border: 1px solid var(--ink); }
.form__msg a { color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.details-panel { padding: 40px; }
.details-panel .h3 { margin-bottom: 8px; }
.details { list-style: none; padding: 0; }
.details li { display: flex; flex-direction: column; gap: 4px; padding-block: 18px; border-bottom: 1px solid var(--divider); min-width: 0; }
.details li:last-child { border-bottom: 0; padding-bottom: 0; }
.details a, .details span { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.details a { text-underline-offset: 4px; }
.details a:hover { color: var(--accent); }

@media (max-width: 1023px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 639px) {
  .form { grid-template-columns: minmax(0, 1fr); }
  .form-panel, .details-panel { padding: 28px 24px; }
  .form .btn { justify-self: stretch; }
}

/* ---------- Legal ---------- */
.legal { padding: 56px; }
.legal__updated { text-align: center; font-size: 15px; color: var(--text-muted); }
@media (max-width: 639px) { .legal { padding: 32px 24px; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: 64px 40px;
  font-size: 15px; color: var(--text-muted);
}
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.footer-col h2 { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--text-muted); text-decoration: none; overflow-wrap: anywhere; transition: color var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--divider);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px;
}
@media (max-width: 1023px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .footer-col { align-items: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- WhatsApp button ---------- */
.whatsapp {
  position: fixed; z-index: 40;
  right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 14px 20px;
  background: var(--ink); color: var(--on-accent);
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: opacity var(--ease);
}
.whatsapp:hover { opacity: 0.88; }
.whatsapp svg { width: 22px; height: 22px; flex: none; }
@media (max-width: 639px) {
  .whatsapp { padding: 14px; }
  .whatsapp__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- 404 ---------- */
.not-found { padding-block: 120px; text-align: center; }

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

