/* Indepth Solutions — site styles
   Single stylesheet, no build step, no external fonts. */

:root {
  --bg: #fbfbfa;
  --bg-alt: #f2f3f1;
  --surface: #ffffff;
  --text: #17191c;
  --text-muted: #5c6470;
  --line: #e3e5e2;
  --accent: #0f6e5c;
  --accent-strong: #0b5546;
  --accent-soft: #e2f1ec;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(23, 25, 28, 0.04), 0 8px 24px rgba(23, 25, 28, 0.05);
  --font: "Inter", "Segoe UI", ui-sans-serif, system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 650;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 18ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

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

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

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 0.9rem;
  background: var(--text);
  color: #fff;
  border-radius: 6px;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 60ch;
}

.muted { color: var(--text-muted); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 250, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }

.brand-name { font-size: 1.1rem; }
.brand-accent { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a { color: var(--text); }
.site-nav a:hover { color: var(--accent); text-decoration: none; }

.nav-cta {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--text);
  color: #fff !important;
}
.nav-cta:hover { background: var(--accent); }

@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-strong); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--text); }

.btn-lg {
  padding: 1.1rem 1.8rem;
  font-size: 1.1rem;
  word-break: break-all;
}

/* Hero */

.hero {
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(60% 50% at 85% 0%, var(--accent-soft) 0%, transparent 70%),
    var(--bg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin: 3.5rem 0 0;
  padding: 0;
}

.stat {
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat dd {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}
.stat dt {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Sections */

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 64ch;
  margin-bottom: 2.5rem;
}
.section-intro {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}
.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; color: var(--text-muted); }

/* Results */

.results {
  display: grid;
  gap: 1.25rem;
}

.result {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.result h3 { font-size: 1.3rem; max-width: 40ch; }
.result p { color: var(--text-muted); max-width: 72ch; }

.result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.6rem 1.5rem;
  margin: 1.25rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.result-metrics strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
}

/* About */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; }
}

.about-text p { color: var(--text-muted); max-width: 60ch; }
.about-text h2 { color: var(--text); }
.text-link { font-weight: 600; word-break: break-all; }

.skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 480px) {
  .skills { grid-template-columns: 1fr; }
}

.skill-group {
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.skill-group h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.skill-group p { margin: 0; font-size: 0.95rem; }

/* Contact */

.contact {
  background: var(--text);
  color: #fff;
}
.contact .eyebrow { color: #8fd5c4; }
.contact .lead { color: #c7cbd1; }
.contact-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact .btn-primary { margin-top: 0.5rem; }

/* Footer */

.site-footer {
  padding: 3rem 0 2rem;
  background: var(--bg);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.footer-inner {
  display: grid;
  gap: 2rem;
}

.footer-brand p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  max-width: 40ch;
}

.legal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem 2rem;
  margin: 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.legal dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.legal dd { margin: 0; }
.legal a { word-break: break-all; }

.copyright {
  margin: 0;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* References */

.references {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 720px) {
  .references { grid-template-columns: 1fr; }
}

.reference {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reference blockquote {
  margin: 0 0 1.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  font-size: 0.98rem;
}
.reference blockquote p { margin: 0 0 0.75em; }
.reference blockquote p:last-child { margin-bottom: 0; }

.reference figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.reference figcaption > a {
  font-weight: 650;
  color: var(--text);
}
.reference figcaption > a:hover { color: var(--accent); }
.reference-rel { color: var(--text-muted); font-size: 0.85rem; }
