/* =========================================================
   Fornax Labs — static rebuild
   Palette & type extracted from original site
   ========================================================= */

:root {
  --dark:       #142220;
  --dark-2:     #1b2b28;
  --dark-3:     #222f2d;
  --card:       #1e2f2c;
  --yellow:     #f6d273;
  --yellow-dk:  #e9c15a;
  --green:      #30665f;
  --green-lt:   #3d7d74;
  --text:       #f5f5f5;
  --muted:      rgba(245, 245, 245, 0.68);
  --muted-dk:   rgba(20, 34, 32, 0.72);
  --line:       rgba(245, 245, 245, 0.10);
  --radius:     16px;
  --radius-sm:  10px;
  --maxw:       1200px;
  --ff-head:    "Outfit", sans-serif;
  --ff-body:    "Inter", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--dark);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--text);
}

p { margin: 0 0 1rem; color: var(--muted); }

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

.section { padding: 96px 0; position: relative; }
.section--tight { padding: 72px 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--ff-head);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--yellow);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  max-width: 760px;
}

.lead { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-lt); transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(48,102,95,.9); }
.btn--yellow { background: var(--yellow); color: #142220; }
.btn--yellow:hover { background: var(--yellow-dk); transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--yellow);
  color: #142220;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}
.brand {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.6rem;
  color: #142220;
  letter-spacing: -.01em;
}
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-weight: 600;
  color: #142220;
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--green);
  transition: width .2s ease;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 3px; border-radius: 2px;
  background: #142220; transition: .25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 12% 6%, rgba(246,210,115,.16), transparent 60%),
    linear-gradient(180deg, #16241f 0%, #142220 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
  min-height: 640px;
  padding: 60px 0;
}
.hero-badge {
  display: inline-block;
  font-family: var(--ff-head);
  font-weight: 600;
  color: var(--yellow);
  background: rgba(246,210,115,.08);
  border: 1px solid rgba(246,210,115,.22);
  padding: 8px 18px;
  border-radius: 8px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.hero .lead { max-width: 520px; margin-bottom: 26px; }
.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
}
.hero-list li {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-head); font-weight: 600; color: var(--text);
}
.hero-list img { width: 22px; height: 22px; }
.hero-media { position: relative; display: flex; justify-content: center; }
.hero-media img.person { max-width: 100%; filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); }
.hero-chevron {
  position: absolute; top: 40px; left: -10px; width: 46px; opacity: .5;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img.main {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7);
}
.about-media .shape {
  position: absolute;
  pointer-events: none;
}
.about-media .shape.star  { width: 70px; top: -26px; right: 30px; }
.about-media .shape.round { width: 80px; bottom: -24px; left: -24px; }

.feature {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.feature:last-of-type { border-bottom: 1px solid var(--line); }
.feature .ico {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: rgba(246,210,115,.12);
  border-radius: 12px;
}
.feature .ico img { width: 24px; height: 24px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 6px; }
.feature p { margin: 0; }

/* ---------- Stats band ---------- */
.stats {
  background: var(--yellow);
  color: #142220;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
}
.stat .num {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1;
  color: #142220;
}
.stat .num .suffix { color: var(--green); }
.stat .label {
  margin-top: 10px;
  font-weight: 600;
  color: var(--muted-dk);
  font-size: .95rem;
}
.stat + .stat { border-left: 1px solid rgba(20,34,32,.15); }

/* ---------- Services grid ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.svc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.svc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(246,210,115,.4);
  background: #223531;
}
.svc-card .idx {
  font-family: var(--ff-head);
  font-weight: 700;
  color: var(--yellow);
  font-size: 1rem;
  letter-spacing: .1em;
}
.svc-card h3 { font-size: 1.35rem; margin: 14px 0 10px; }
.svc-card p { margin: 0; }

/* ---------- Approach / Why choose ---------- */
.soft { background: rgba(255,255,255,.03); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.awards { display: flex; gap: 26px; margin: 26px 0; }
.awards img { height: 74px; width: auto; }

.numbered { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.numbered li {
  display: flex; gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.numbered .n {
  font-family: var(--ff-head); font-weight: 800;
  color: var(--yellow); font-size: 1.4rem; line-height: 1;
  flex: 0 0 auto;
}
.numbered h4 { font-size: 1.1rem; margin: 0 0 4px; }
.numbered p { margin: 0; font-size: .95rem; }

/* ---------- Approach columns (services page) ---------- */
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.approach-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.approach-col h3 {
  font-size: 1.4rem;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--yellow);
}
.approach-col ul { list-style: none; padding: 0; margin: 0; }
.approach-col li {
  padding: 9px 0 9px 26px;
  position: relative;
  color: var(--muted);
}
.approach-col li::before {
  content: "";
  position: absolute; left: 0; top: 15px;
  width: 12px; height: 12px; border-radius: 3px;
  background: var(--green-lt);
}

/* ---------- Stacks ---------- */
.stacks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; }
.stack-group h4 {
  color: var(--yellow);
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
}

/* ---------- Page header ---------- */
.page-hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(20,34,32,.72), rgba(20,34,32,.92)),
    #16241f;
  padding: 72px 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.breadcrumb {
  display: flex; gap: 10px; justify-content: center;
  color: var(--muted); font-weight: 500;
}
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb .sep { color: var(--yellow); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.info-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ico {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; flex: 0 0 auto;
  background: rgba(246,210,115,.12); color: var(--yellow);
  font-size: 1.2rem;
}
.info-list span.k { display: block; font-weight: 600; color: var(--text); }
.info-list span.v { color: var(--muted); font-size: .95rem; }

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-weight: 600; font-size: .9rem;
  margin-bottom: 8px; color: var(--text);
}
.field input, .field textarea {
  width: 100%;
  background: var(--dark);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 1rem;
  padding: 13px 16px;
  transition: border-color .18s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--yellow);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .9rem; margin-top: 14px; }
.form-status { margin-top: 16px; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #7ddba0; }
.form-status.err { color: #ffb4a2; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-3);
  border-top: 1px solid var(--line);
  padding-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .brand { color: var(--yellow); font-size: 1.5rem; }
.footer-brand p { max-width: 340px; margin-top: 16px; }
.footer-col h4 {
  font-size: 1.05rem; margin-bottom: 18px; color: var(--text);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; max-width: 420px; margin: 0 auto; }
  .about-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .svc-grid, .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .stacks { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 30px 20px; }
  .stat + .stat { border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 84px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--yellow);
    padding: 8px 24px 20px;
    border-top: 1px solid rgba(20,34,32,.15);
  }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid rgba(20,34,32,.12); }
  .svc-grid, .cols-3, .stacks { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 26px; }
}
