/* ==========================================================================
   Ai Minds Tech — Design Tokens
   ========================================================================== */
:root {
  --navy:        #0B1F3A;
  --navy-deep:   #071426;
  --ink:         #14151A;
  --cobalt:      #2F5FFF;
  --cobalt-dim:  #1E3FB0;
  --amber:       #FFB627;
  --amber-deep:  #E89A00;
  --paper:       #F7F8FA;
  --paper-dim:   #EDEFF3;
  --line:        #DBDFE6;
  --line-dark:   rgba(255,255,255,0.14);
  --white:       #FFFFFF;
  --muted:       #5B6472;

  --font-display: 'Archivo Expanded', 'Archivo', sans-serif;
  --font-body:    'Inter', -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --container: 1180px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

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

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

/* ==========================================================================
   Type scale
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--cobalt);
}
h1 { font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.08; }
h3 { font-size: 1.3rem; line-height: 1.25; }
.lede { font-size: 1.15rem; color: var(--muted); line-height: 1.6; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 { margin-top: 14px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: var(--navy-deep); }
.btn-primary:hover { background: var(--amber-deep); }
.btn-ghost-light { border-color: var(--line-dark); color: var(--white); }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-ghost-dark { border-color: var(--line); color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--navy); background: var(--paper-dim); }
.btn-block { width: 100%; justify-content: center; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 31, 58, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.logo svg { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  color: rgba(255,255,255,0.78);
  font-size: 0.94rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--amber);
}
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--white); transition: transform .25s var(--ease), opacity .25s var(--ease); }

@media (max-width: 880px) {
  .nav-links { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: var(--navy-deep); flex-direction: column; justify-content: flex-start; padding: 40px 24px; gap: 8px; transform: translateX(100%); transition: transform .35s var(--ease); }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 1.05rem; }
  .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open { overflow: hidden; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: radial-gradient(120% 140% at 85% -10%, #16305a 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 96px 0 64px;
  overflow: hidden;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--white); margin-top: 18px; }
.hero .lede { color: rgba(255,255,255,0.72); max-width: 480px; margin-top: 20px; }
.hero-actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats div { border-left: 2px solid var(--amber); padding-left: 14px; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--white); }
.hero-stats span { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}

/* Signature pipeline graphic */
.pipeline-wrap { position: relative; }
.pipeline-svg { width: 100%; height: auto; }
.pipeline-node { fill: var(--navy-deep); stroke: var(--amber); stroke-width: 1.5; }
.pipeline-node-fill { fill: var(--cobalt); }
.pipeline-label { font-family: var(--font-mono); font-size: 11px; fill: rgba(255,255,255,0.55); letter-spacing: 0.05em; }
.pipeline-path { fill: none; stroke: rgba(255,255,255,0.18); stroke-width: 1.5; }
.pipeline-packet { fill: var(--amber); }
@keyframes travel {
  0% { offset-distance: 0%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
.pipeline-packet { offset-rotate: 0deg; animation: travel 4.5s linear infinite; }

/* thin divider variant used between sections */
.pipeline-divider { display: block; width: 100%; height: 46px; }
.pipeline-divider .pipeline-path { stroke: var(--line); }
.pipeline-divider .pipeline-node { stroke: var(--cobalt); fill: var(--paper); }
.pipeline-divider .pipeline-packet { fill: var(--cobalt); }

/* ==========================================================================
   Sections / general
   ========================================================================== */
section { padding: 88px 0; }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy .section-head .lede { color: rgba(255,255,255,0.68); }

/* Trust strip */
.trust-strip { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-strip .trust-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; text-align: center; }
.trust-logos { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-logos span { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--muted); opacity: 0.55; letter-spacing: 0.02em; }

/* Cards grid */
.grid { display: grid; gap: 28px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { border-color: var(--cobalt); transform: translateY(-4px); box-shadow: 0 16px 32px -20px rgba(11,31,58,0.35); }
.card .icon { width: 44px; height: 44px; color: var(--cobalt); margin-bottom: 20px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; }
.card a.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.card a.card-link svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.card a.card-link:hover svg { transform: translateX(3px); }

/* Process steps (legit numbered sequence) */
.process { counter-reset: step; }
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process-item { position: relative; padding: 0 20px 0 0; }
.process-item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 14px;
}
.process-item::after {
  content: "";
  position: absolute;
  top: 8px; right: 0;
  width: 14px; height: 1px;
  background: var(--line-dark);
}
.process-item:last-child::after { display: none; }
.process-item h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 8px; }
.process-item p { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
@media (max-width: 880px) {
  .process-list { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process-item::after { display: none; }
}
@media (max-width: 560px) { .process-list { grid-template-columns: 1fr; } }

/* Testimonials */
.testimonial { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; gap: 20px; }
.testimonial p.quote { font-size: 1rem; color: var(--ink); }
.testimonial .attribution { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.quote-mark { font-family: var(--font-display); font-size: 2.4rem; color: var(--amber); line-height: 1; }

/* Split CTA panels */
.split-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel {
  padding: 40px 36px;
  border-radius: var(--radius);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.panel-talent { background: linear-gradient(135deg, var(--cobalt-dim), var(--cobalt)); }
.panel-hire { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); }
.panel .eyebrow { color: var(--amber); }
.panel .eyebrow::before { background: var(--amber); }
.panel h3 { color: var(--white); font-size: 1.5rem; margin-top: 12px; }
.panel p { color: rgba(255,255,255,0.78); margin-top: 10px; margin-bottom: 24px; }
@media (max-width: 760px) { .split-panels { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.72); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-grid h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font-mono); font-weight: 500; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--amber); }
.footer-brand p { color: rgba(255,255,255,0.6); margin-top: 14px; max-width: 280px; font-size: 0.92rem; }
.footer-office { margin-bottom: 20px; }
.footer-office strong { display: block; color: var(--white); font-size: 0.88rem; margin-bottom: 6px; }
.footer-office div, .footer-office a { display: block; font-size: 0.88rem; color: rgba(255,255,255,0.65); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 0.84rem; flex-wrap: wrap; gap: 12px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* WhatsApp float button */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 90;
  transition: transform .2s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 72px 0 56px;
}
.page-hero h1 { color: var(--white); margin-top: 14px; max-width: 700px; }
.page-hero .lede { color: rgba(255,255,255,0.7); max-width: 560px; margin-top: 16px; }
.breadcrumb { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; }
.breadcrumb a:hover { color: var(--amber); }

/* Service detail rows */
.service-detail { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; padding: 64px 0; border-bottom: 1px solid var(--line); }
.service-detail:last-child { border-bottom: none; }
.service-detail .num { font-family: var(--font-mono); color: var(--cobalt); font-size: 13px; letter-spacing: .1em; }
.service-detail h2 { margin-top: 10px; }
.service-detail .lede { margin-top: 14px; }
.service-includes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 8px; }
.service-includes li { display: flex; gap: 10px; font-size: 0.94rem; color: var(--ink); align-items: flex-start; }
.service-includes svg { width: 18px; height: 18px; color: var(--cobalt); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 880px) { .service-detail { grid-template-columns: 1fr; gap: 28px; } .service-includes { grid-template-columns: 1fr; } }

/* Values / about */
.value-card { padding: 0; border: none; }
.value-card .icon { color: var(--amber); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.field .req { color: var(--cobalt); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: var(--paper);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-error { color: #C0392B; font-size: 0.8rem; margin-top: 6px; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #C0392B; }
.field.has-error .field-error { display: block; }
.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; }
.radio-pill span {
  display: inline-flex;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  transition: all .2s var(--ease);
}
.radio-pill input:checked + span { background: var(--navy); color: var(--white); border-color: var(--navy); }
.radio-pill input:focus-visible + span { outline: 2px solid var(--cobalt); outline-offset: 2px; }

.form-status { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); font-size: 0.9rem; display: none; }
.form-status.success { display: block; background: #E7F6EC; color: #1E7A3B; border: 1px solid #B7E4C4; }
.form-status.error { display: block; background: #FDECEC; color: #B23A2E; border: 1px solid #F3B7B0; }

.office-card { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.office-card:last-child { border-bottom: none; }
.office-card .icon { width: 22px; height: 22px; color: var(--cobalt); flex-shrink: 0; margin-top: 3px; }
.office-card h3 { margin-bottom: 8px; }
.office-card div, .office-card a { font-size: 0.94rem; color: var(--muted); display: block; margin-bottom: 4px; }
.office-card a:hover { color: var(--cobalt); }
.office-card .map-link { color: var(--navy); font-weight: 600; margin-top: 6px; display: inline-flex; align-items: center; gap: 5px; }

/* Honeypot spam field (Web3Forms) — present in the DOM for bots, hidden for humans */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
}

/* utility */
.text-center { text-align: center; }
.mt-lg { margin-top: 64px; }
.center-head { margin-left: auto; margin-right: auto; text-align: center; }
