/* Consulting site: self-contained, no build step, no external fonts or scripts. */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c2430;
  --muted: #5b6575;
  --accent: #0f766e;
  --accent-strong: #0b5c56;
  --border: #e3e0d8;
  --alt-bg: #f3f1ec;
  --radius: 10px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141b;
    --surface: #161d27;
    --text: #e8ecf1;
    --muted: #9aa5b5;
    --accent: #2dd4bf;
    --accent-strong: #5eead4;
    --border: #263041;
    --alt-bg: #121922;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--accent);
}

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--surface);
  padding: 0.5rem 1rem;
  z-index: 10;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 5;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.9rem 0;
}

.brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.site-header ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.site-header a {
  color: var(--muted);
  text-decoration: none;
}

.site-header a:hover {
  color: var(--text);
}

/* Hero */

.hero {
  padding: 5rem 0 4rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 20ch;
}

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

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent);
}

.button--primary {
  background: var(--accent);
  color: #ffffff;
}

.button--primary:hover {
  background: var(--accent-strong);
}

.button--ghost {
  color: var(--accent);
  background: transparent;
}

.button--ghost:hover {
  background: var(--alt-bg);
}

/* Sections */

.section {
  padding: 4rem 0;
  scroll-margin-top: 4rem; /* keeps headings clear of the sticky header when linked */
}

.section--alt {
  background: var(--alt-bg);
}

.section__head {
  margin-bottom: 2rem;
}

.section__head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section__lead {
  color: var(--muted);
  margin: 0.5rem 0 0;
  max-width: 60ch;
}

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* Steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
}

.steps li {
  counter-increment: step;
  padding-top: 2.5rem;
  position: relative;
  border-top: 1px solid var(--border);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0.5rem;
  left: 0;
  font-weight: 700;
  color: var(--accent);
}

.steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

/* Contact */

.contact__email {
  font-size: 1.4rem;
  margin: 0;
}

.contact__email a {
  font-weight: 600;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 640px) {
  .hero {
    padding: 3rem 0 2.5rem;
  }

  .site-header ul {
    gap: 0.9rem;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
