/* ============================================
   THROUGHLINE CONSULTING
   Theme: Clean White + Olive Chartreuse
   Fonts: Outfit (display), DM Sans (body), Space Mono (accents)
   ============================================ */

/* --- Custom Properties --- */
:root {
  --color-bg: #f7f7f5;
  --color-bg-alt: #edede9;
  --color-surface: #ffffff;
  --color-text: #1c1c1c;
  --color-text-mid: #555555;
  --color-text-light: #777777;
  --color-text-muted: #aaaaaa;
  --color-accent: #8aab15;
  --color-accent-dark: #6b8a10;
  --color-accent-bright: #c8f035;
  --color-rule: #e5e5e2;
  --font-display: 'Outfit', -apple-system, sans-serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;
  --max-width: 1080px;
  --max-width-narrow: 760px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
}

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

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

a {
  color: inherit;
}

/* --- Typography --- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
}

p {
  max-width: 38em;
  margin-bottom: 1.25rem;
  color: var(--color-text-mid);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--color-text);
  font-weight: 500;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: 2rem 0;
}

.rule {
  border: none;
  border-top: 1px solid var(--color-rule);
  margin: 0;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-rule);
  transition: box-shadow 0.3s ease;
}

.nav--scrolled {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.05);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.nav__logo span {
  color: var(--color-accent);
}

.nav__links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  align-items: center;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text-light);
  transition: color 0.2s ease;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--color-text);
}

.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after {
  width: 100%;
}

/* Mobile nav */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 101;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 9px; }
.nav__toggle span:nth-child(3) { top: 18px; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.2rem;
  border-radius: 3px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-text);
  color: var(--color-accent-bright);
}

.btn--primary:hover {
  background: #333;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-text);
}

.btn--outline:hover {
  background: var(--color-text);
  color: var(--color-accent-bright);
}

.btn--nav {
  padding: 0.55rem 1.3rem;
  font-size: 0.75rem;
}

/* --- Hero --- */
.hero {
  padding: 4rem 0 2rem;
  display: flex;
  align-items: center;
}

.hero--short {
  padding: 3rem 0 2rem;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-sm);
  display: block;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
}

.hero .lead {
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: 34em;
  color: var(--color-text-light);
}

.throughline {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 1.5rem 0;
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header .lead {
  color: var(--color-text-light);
}

/* --- Problem Blocks --- */
.problems {
  display: grid;
  gap: var(--space-lg);
}

.problem {
  padding-left: var(--space-md);
  border-left: 3px solid var(--color-accent);
}

.problem h3 {
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

/* --- Service Pillars --- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.pillar {
  padding: 1.8rem;
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  border-radius: 4px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.pillar:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 30px rgba(138, 171, 21, 0.08);
  transform: translateY(-2px);
}

.pillar__num {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

.pillar h3 {
  margin-bottom: 0.6rem;
}

.pillar p {
  font-size: 0.92rem;
  color: var(--color-text-light);
}

/* --- Credibility --- */
.credibility {
  background: var(--color-bg-alt);
  border-radius: 4px;
  padding: 2.5rem;
}

.credibility p {
  font-size: 1.02rem;
  max-width: 44em;
  color: #444;
}

/* --- Steps --- */
.steps {
  display: grid;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-md);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-rule);
}

.step:last-child {
  border-bottom: none;
}

.step__num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.35;
}

.step h3 {
  margin-bottom: 0.75rem;
}

.step p {
  color: var(--color-text-mid);
}

/* --- Service Detail --- */
.service-block {
  padding: 2.5rem 0;
}

.service-block__label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-sm);
}

.service-block h2 {
  margin-bottom: var(--space-md);
}

.service-block h3 {
  margin-bottom: 0.75rem;
  margin-top: var(--space-md);
}

.service-detail {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-rule);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail h3 {
  font-size: 1.15rem;
  margin-top: 0;
}

.service-detail p {
  font-size: 0.95rem;
  color: var(--color-text-mid);
}

/* --- Scope Box --- */
.scope-box {
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  border-radius: 4px;
  padding: var(--space-md) var(--space-lg);
  margin-top: var(--space-md);
}

.scope-box h3 {
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

.scope-box p {
  font-size: 0.95rem;
  color: var(--color-text-mid);
}

/* --- Principles --- */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.principle {
  padding: var(--space-md);
  border-top: 3px solid var(--color-accent);
}

.principle h3 {
  margin-bottom: 0.5rem;
}

.principle p {
  font-size: 0.95rem;
  color: var(--color-text-mid);
}

/* --- About --- */
.about-intro {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.55;
  max-width: 36em;
  color: var(--color-text);
}

.about-body p {
  color: var(--color-text-mid);
  font-size: 1.02rem;
}

.pullquote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.35;
  color: var(--color-accent-dark);
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  margin: 2.5rem 0;
  max-width: 28em;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-link {
  color: var(--color-accent-dark);
  text-decoration: none;
  font-weight: 500;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-block {
  margin-top: var(--space-md);
}

.contact-block p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* --- CTA --- */
.cta-block {
  text-align: center;
  padding: 3.5rem var(--space-md);
  border-top: 1px solid var(--color-rule);
}

.cta-block h2 {
  margin-bottom: var(--space-sm);
}

.cta-block p {
  margin: 0 auto var(--space-md);
  color: var(--color-text-light);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--color-rule);
  padding: 1.5rem 0;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
}

.footer__links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.footer__links a {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-decoration: none;
}

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

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.animate--d1 { animation-delay: 0.1s; }
.animate--d2 { animation-delay: 0.2s; }
.animate--d3 { animation-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 768px) {
  html { font-size: 16px; }
  section { padding: 1.5rem 0; }

  .hero {
    min-height: auto;
    padding: 2.5rem 0 2rem;
  }

  .nav__links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a {
    font-size: 1.1rem;
  }

  .nav__toggle {
    display: block;
  }

  .step {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .pillars,
  .principles {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}
