/* ============================================================
   SR Knot Technologies — Design System
   Palette: deep ink navy + warm paper + thread-gold + knot-teal
   Type: Space Grotesk (display) / IBM Plex Sans (body)
   ============================================================ */

:root {
  --ink: #10192A;
  --ink-2: #182338;
  --ink-3: #223049;
  --paper: #F6F3EA;
  --paper-2: #EEE9DA;
  --gold: #C68A2E;
  --gold-dark: #A5711F;
  --teal: #2E7D6B;
  --line: #DCD5C2;
  --line-dark: rgba(240, 236, 224, 0.14);
  --text-main: #1B1F27;
  --text-soft: #5B6270;
  --text-on-ink: #EDEAE0;
  --text-on-ink-soft: #AEB4C2;
  --radius-sm: 3px;
  --radius-md: 6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background-color: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5,
.display-font {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--ink);
}

.text-on-ink h1, .text-on-ink h2, .text-on-ink h3, .text-on-ink h4 { color: var(--text-on-ink); }

a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold); }

::selection { background: var(--gold); color: #fff; }

a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

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

.container-nar { max-width: 1120px; }

/* ---------------- Nav ---------------- */
.knot-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.knot-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--ink) !important;
}

.knot-brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.knot-brand .brand-sub {
  display: block;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--text-soft);
  margin-top: -2px;
}

.knot-nav .nav-link {
  font-size: 0.98rem;
  color: var(--text-main);
  margin: 0 0.65rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.knot-nav .nav-link:hover { color: var(--ink); border-bottom-color: var(--line); }
.knot-nav .nav-link.active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--gold);
}

.btn-thread {
  background: var(--ink);
  color: var(--text-on-ink) !important;
  border: 1px solid var(--ink);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.94rem;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.btn-thread:hover { background: var(--gold); border-color: var(--gold); color: #1B1200 !important; }
.btn-thread:active { transform: translateY(1px); }

.btn-thread-gold {
  background: var(--gold);
  color: #1B1200 !important;
  border: 1px solid var(--gold);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn-thread-gold:hover { background: var(--gold-dark); transform: translateY(-1px); }

.btn-thread-outline {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--ink);
  padding: 0.63rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.btn-thread-outline:hover { background: var(--ink); color: var(--text-on-ink) !important; }

.btn-thread-outline-light {
  background: transparent;
  color: var(--text-on-ink) !important;
  border: 1px solid var(--line-dark);
  padding: 0.63rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.btn-thread-outline-light:hover { background: var(--text-on-ink); color: var(--ink) !important; }

/* ---------------- Hero ---------------- */
.hero {
  background: var(--paper);
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.12;
  max-width: 12ch;
}
.hero .lede {
  font-size: 1.12rem;
  color: var(--text-soft);
  max-width: 46ch;
  margin-top: 1.1rem;
}
.hero-figure { width: 100%; height: auto; }

/* ---------------- Page header (inner pages) ---------------- */
.page-header {
  background: var(--ink);
  padding: 3.6rem 0 2.6rem;
}
.page-header .kicker {
  color: var(--text-on-ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.page-header h1 { color: var(--text-on-ink); font-size: clamp(1.9rem, 3.2vw, 2.6rem); max-width: 20ch; }
.page-header p { color: var(--text-on-ink-soft); max-width: 60ch; margin-top: 0.9rem; font-size: 1.05rem; }

/* ---------------- Sections ---------------- */
section { padding: 3.6rem 0; }
.section-tight { padding: 2.4rem 0; }
.bg-paper-2 { background: var(--paper-2); }
.bg-ink { background: var(--ink); color: var(--text-on-ink); }
.hr-line { border-top: 1px solid var(--line); margin: 0; }

.section-head { max-width: 62ch; margin-bottom: 2.2rem; }
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.section-head p { color: var(--text-soft); margin-top: 0.6rem; }

/* ---------------- Stat strip ---------------- */
.stat-row { display: flex; flex-wrap: wrap; gap: 2.5rem 3rem; }
.stat-item { min-width: 130px; }
.stat-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label { color: var(--text-soft); font-size: 0.92rem; margin-top: 0.4rem; }
.bg-ink .stat-label { color: var(--text-on-ink-soft); }

/* ---------------- Row list (services, values) ---------------- */
.row-list-item {
  border-top: 1px solid var(--line);
  padding: 1.9rem 0;
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
}
.row-list-item:last-child { border-bottom: 1px solid var(--line); }
.row-list-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
  background: #fff;
}
.row-list-icon svg { width: 22px; height: 22px; }
.row-list-title { font-size: 1.18rem; margin-bottom: 0.3rem; }
.row-list-desc { color: var(--text-soft); max-width: 62ch; }
.row-list-tags { margin-top: 0.7rem; }
.row-list-tags span {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  margin: 0.2rem 0.35rem 0.2rem 0;
}

/* ---------------- Process steps (legitimate sequence) ---------------- */
.process-step { display: flex; gap: 1.4rem; padding: 1.5rem 0; }
.process-num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--line);
  width: 3rem;
  flex-shrink: 0;
}
.process-step:not(:last-child) { border-bottom: 1px dashed var(--line); }
.process-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.25rem; }
.process-desc { color: var(--text-soft); font-size: 0.96rem; }

/* ---------------- Value list ---------------- */
.value-item { padding: 1.1rem 0; border-top: 1px solid var(--line-dark); display: flex; gap: 1rem; }
.value-item:last-child { border-bottom: 1px solid var(--line-dark); }
.value-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 0.5rem; flex-shrink: 0; }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: var(--teal);
  color: #fff;
  padding: 3rem 0;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2rem); }
.cta-band .btn-thread-gold { border-color: #fff; }

/* ---------------- Forms ---------------- */
.form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2.2rem;
}
.form-label { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.form-control, .form-select {
  border-color: var(--line);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(46, 125, 107, 0.15);
}
.required-mark { color: var(--gold-dark); }

/* ---------------- Footer ---------------- */
footer.site-footer {
  background: var(--ink);
  color: var(--text-on-ink-soft);
  padding: 3.2rem 0 1.6rem;
}
footer.site-footer h6 {
  color: var(--text-on-ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
}
footer.site-footer a { color: var(--text-on-ink-soft); }
footer.site-footer a:hover { color: var(--gold); }
footer.site-footer .foot-bottom {
  border-top: 1px solid var(--line-dark);
  margin-top: 2.2rem;
  padding-top: 1.3rem;
  font-size: 0.85rem;
}
footer .knot-brand { color: var(--text-on-ink) !important; }
footer .knot-brand .brand-sub { color: var(--text-on-ink-soft); }

/* ---------------- Misc ---------------- */
.contact-info-item { display: flex; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.contact-info-item:last-child { border-bottom: 1px solid var(--line); }
.contact-info-icon { width: 22px; color: var(--teal); flex-shrink: 0; margin-top: 2px; }

.badge-soft {
  display: inline-block;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--text-soft);
  border-radius: 999px;
  font-size: 0.82rem;
  padding: 0.25rem 0.85rem;
}

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  filter: grayscale(0.15);
}

@media (max-width: 767.98px) {
  .row-list-item { flex-direction: column; }
  .stat-row { gap: 1.8rem 2.2rem; }
}
