/* ==========================================================================
   Self-hosted fonts (latin subset) — no external requests.
   ========================================================================== */
@font-face { font-family:'Poppins'; font-style:normal; font-weight:400; font-display:swap; src:url('fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:600; font-display:swap; src:url('fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:800; font-display:swap; src:url('fonts/poppins-800.woff2') format('woff2'); }
@font-face { font-family:'Roboto';  font-style:normal; font-weight:400; font-display:swap; src:url('fonts/roboto-400.woff2')  format('woff2'); }
@font-face { font-family:'Roboto';  font-style:normal; font-weight:500; font-display:swap; src:url('fonts/roboto-500.woff2')  format('woff2'); }

/* ==========================================================================
   Node Lab Solutions — styles.css
   Light theme matching the original brand: Poppins + Roboto,
   indigo (#5c67f2) primary, orange (#f58220) accent, navy (#2b2d42) headings.
   ========================================================================== */

:root {
  --primary:    #5c67f2;   /* indigo */
  --primary-dk: #2d3bee;
  --accent:     #f58220;   /* orange */
  --navy:       #2b2d42;   /* headings */
  --slate:      #4a4e69;   /* secondary text */
  --body:       #575757;   /* body text */
  --bg:         #ffffff;
  --bg-alt:     #f4f4f9;   /* light lavender-gray */
  --border:     #e6e7ef;
  --white:      #ffffff;
  --max:        1080px;
  --max-prose:  720px;
  --sans:  "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --head:  "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 10px 30px rgba(43, 45, 66, 0.08);
  --shadow-sm: 0 4px 14px rgba(43, 45, 66, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Accessibility ---------------------------------------------------------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--primary); color: #fff; padding: 8px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid rgba(92, 103, 242, 0.5); outline-offset: 2px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: var(--primary);
  padding: 13px 26px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(92, 103, 242, 0.28);
  transition: transform 0.1s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  background: var(--primary-dk);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(92, 103, 242, 0.34);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  box-shadow: none;
  border: 1.5px solid var(--primary);
}
.btn-ghost:hover { background: rgba(92, 103, 242, 0.07); color: var(--primary); }
.btn-sm { padding: 9px 18px; font-size: 0.92rem; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex; align-items: center;
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  display: block;
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex; align-items: center; gap: 26px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a:not(.btn) {
  color: var(--slate); font-weight: 500; font-size: 0.95rem;
}
.nav-links a:not(.btn):hover { color: var(--primary); text-decoration: none; }

/* Hamburger toggle (mobile only) */
.nav-burger {
  display: none;
  background: var(--white); border: 1px solid var(--border);
  padding: 9px; cursor: pointer;
}
.nav-burger span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--navy); transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-burger span + span { margin-top: 5px; }

/* Hero ------------------------------------------------------------------- */
.hero {
  padding: 120px 0 100px;
  background:
    radial-gradient(800px 360px at 80% -10%, rgba(92, 103, 242, 0.10), transparent 60%),
    radial-gradient(600px 300px at 0% 10%, rgba(245, 130, 32, 0.06), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 820px; }
.eyebrow {
  font-family: var(--head);
  font-weight: 600;
  color: var(--primary);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}
.hero-sub {
  font-size: 1.25rem;
  color: var(--slate);
  max-width: 660px;
  margin: 0 0 18px;
}
.hero-note {
  color: var(--body);
  max-width: 620px;
  margin: 0 0 36px;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Sections --------------------------------------------------------------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

.section-eyebrow {
  font-family: var(--head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--primary);
  margin: 0 0 10px;
}
h2 {
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 760px;
}
.section-intro {
  color: var(--slate);
  font-size: 1.1rem;
  max-width: var(--max-prose);
  margin: -8px 0 44px;
}

.prose { max-width: var(--max-prose); }
.prose p { margin: 0 0 18px; }
.prose strong { color: var(--navy); font-weight: 500; }
.prose em { color: var(--slate); font-style: italic; }

/* Value cards (About) ---------------------------------------------------- */
.values {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px;
}
.value-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 26px 24px;
}
.value-card h3 {
  font-size: 1.12rem; font-weight: 600; margin: 0 0 8px;
  position: relative; padding-top: 14px;
}
.value-card h3::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 34px; height: 3px; border-radius: 2px; background: var(--accent);
}
.value-card p { margin: 0; font-size: 0.98rem; }

/* Stack expertise strip -------------------------------------------------- */
.stack-expertise {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  margin: 0 0 40px;
  padding: 24px 26px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.stack-group-label {
  display: block;
  font-family: var(--head); font-weight: 600;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 10px;
}
.stack-group ul { list-style: none; margin: 0; padding: 0; }
.stack-group li {
  font-family: var(--head); font-weight: 500;
  font-size: 0.9rem; color: var(--navy);
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.stack-group li:last-child { border-bottom: none; }

/* Case studies ----------------------------------------------------------- */
.case {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 30px 34px;
  margin-bottom: 24px;
}
.case-head {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px; margin-bottom: 22px;
}
.case-head h3 { font-size: 1.4rem; font-weight: 800; }
.tag {
  font-family: var(--head); font-weight: 500;
  font-size: 0.78rem;
  color: var(--primary);
  background: rgba(92, 103, 242, 0.1);
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
}
.case-body { margin: 0; }
.case-body dt {
  font-family: var(--head); font-weight: 600;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent);
  margin-top: 20px;
}
.case-body dt:first-child { margin-top: 0; }
.case-body dd { margin: 6px 0 0; color: var(--body); }
.stack-item {
  display: inline-block; font-family: var(--head); font-weight: 500;
  font-size: 0.82rem; color: var(--navy);
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 11px; margin: 0 6px 6px 0;
}
.stack-why { color: var(--slate); font-size: 0.95rem; margin: 10px 0 0; }

/* Services --------------------------------------------------------------- */
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin-bottom: 48px;
}
.service {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 28px;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service h3 { font-size: 1.12rem; font-weight: 600; margin: 0 0 8px; }
.service p { margin: 0; font-size: 0.98rem; }

.engage {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 36px;
  padding-top: 8px;
}
.engage-col h3 {
  font-family: var(--head); font-weight: 600; font-size: 1.1rem;
  color: var(--primary); margin: 0 0 8px;
}
.engage-col p { margin: 0; }

/* Contact (CTA band) ----------------------------------------------------- */
.section-cta {
  background: var(--navy);
  background-image:
    radial-gradient(700px 320px at 85% 0%, rgba(92, 103, 242, 0.35), transparent 60%),
    radial-gradient(500px 260px at 0% 100%, rgba(245, 130, 32, 0.18), transparent 60%);
}
.on-dark { color: #fff !important; }
.section-cta .section-eyebrow.on-dark { color: #aeb4ff; }
.section-cta .section-intro.on-dark { color: #c9cce0; }

.contact-list { list-style: none; margin: 0; padding: 0; max-width: 640px; }
.contact-list li {
  display: flex; gap: 18px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list a { color: #aeb4ff; }
.contact-list a:hover { color: #fff; }
.contact-link { display: inline-flex; align-items: center; gap: 9px; }
.contact-link:hover { text-decoration: none; }
.contact-link:hover span { text-decoration: underline; }
.c-icon { flex: 0 0 auto; }
.icon-wa { color: #25d366; }   /* WhatsApp green */
.icon-in { color: #0a66c2; }   /* LinkedIn blue */
.icon-mail { color: var(--accent); }  /* brand orange */
.contact-val { display: inline-flex; align-items: center; gap: 9px; }
.icon-globe { color: #6ea8fe; }   /* sky blue globe */
.contact-list span:not(.contact-label) { color: #c9cce0; }
.contact-label {
  font-family: var(--head); font-weight: 600;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); min-width: 92px;
}

/* Legal page -------------------------------------------------------------- */
.legal-inner { max-width: var(--max-prose); }
.legal h1 {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.legal-note { color: var(--slate); font-size: 0.95rem; margin: 0 0 36px; }
.legal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 30px 34px;
  margin-bottom: 24px;
}
.legal-card h3 {
  font-size: 1.4rem; font-weight: 800; margin: 0 0 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.legal-card h4 {
  font-family: var(--head); font-weight: 600; font-size: 1.05rem;
  color: var(--navy); margin: 22px 0 6px;
}
.legal-card p { margin: 0 0 14px; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-dl { margin: 0; }
.legal-dl dt {
  font-family: var(--head); font-weight: 600;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); margin-top: 18px;
}
.legal-dl dt:first-child { margin-top: 0; }
.legal-dl dd { margin: 6px 0 0; color: var(--body); }
.legal-dl dd strong { color: var(--navy); font-weight: 500; }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.92em; }
.legal-updated { color: var(--slate); font-size: 0.85rem; margin: 8px 0 28px; }
.legal-back a { font-family: var(--head); font-weight: 600; }

/* Footer ----------------------------------------------------------------- */
.site-footer {
  padding: 34px 0; background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9aa0bf; font-size: 0.88rem;
}
.footer-inner p { margin: 0 0 4px; }
.footer-note { font-size: 0.82rem; opacity: 0.85; }
.footer-note a { color: #aeb4ff; }
.footer-note a:hover { color: #fff; }

/* Responsive ------------------------------------------------------------- */
/* The .values / .services-grid / .engage / .stack-expertise grids reflow
   automatically via repeat(auto-fit, minmax(...)) — no breakpoint needed. */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand-logo { height: 32px; }

  /* show hamburger */
  .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center;
    width: 42px; height: 42px; padding: 9px; margin-left: auto;
    border: 1px solid var(--border); border-radius: 8px;
    cursor: pointer; background: var(--white);
  }
  /* collapse links into a dropdown panel under the header */
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 12px 24px 18px;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
    padding-top: 0; padding-bottom: 0;
  }
  .nav-links a:not(.btn) { display: block; padding: 12px 0; font-size: 1.05rem; }
  .nav-cta-item { margin-top: 8px; }
  .nav-cta-item .btn { display: block; text-align: center; }

  /* open state */
  .nav-open .nav-links {
    max-height: 80vh; opacity: 1; padding-top: 12px; padding-bottom: 18px;
  }
  /* animate burger to an X */
  .nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding: 90px 0 70px; }
  .section { padding: 64px 0; }
  .case { padding: 24px 22px; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-list li { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .service { transition: none; }
}
