:root {
  --ink: #142026;
  --ink-muted: #46545c;
  --paper: #f8f7f3;
  --paper-deep: #eeeee7;
  --line: #d8d5ca;
  --steel: #34566d;
  --green: #657c68;
  --copper: #a1673d;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(20, 32, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  color: var(--ink);
  background: rgba(248, 247, 243, 0.78);
  border-bottom: 1px solid rgba(216, 213, 202, 0.7);
  backdrop-filter: blur(16px);
}

.brand {
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: 0;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.nav-links a {
  flex: 0 0 auto;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 84vh;
  padding: 7rem clamp(1rem, 5vw, 4rem) 4rem;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(248, 247, 243, 0.98) 0%,
      rgba(248, 247, 243, 0.9) 35%,
      rgba(248, 247, 243, 0.42) 62%,
      rgba(248, 247, 243, 0.16) 100%
    ),
    url("/assets/sereth-associative-trees-hero.png") center right / cover no-repeat;
}

.hero-copy {
  width: min(620px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.75rem;
  color: var(--copper);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.5rem;
  font-size: 4.25rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 2.25rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 52ch;
  margin-bottom: 2rem;
  color: var(--ink-muted);
  font-size: 1.15rem;
}

.hero-actions,
.contact-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button.primary {
  color: var(--white);
  background: var(--ink);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--steel);
  border-color: var(--steel);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--white);
}

.button.dark {
  border-color: var(--white);
}

.section {
  padding: 5.25rem clamp(1rem, 5vw, 4rem);
}

.intro-section {
  background: var(--paper);
}

.split,
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  max-width: 1120px;
  margin: 0 auto;
  align-items: start;
}

.split p,
.section-heading p {
  margin-bottom: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.services-section {
  background: var(--paper-deep);
}

.section-heading {
  margin-bottom: 2.75rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1120px;
  margin: 0 auto;
}

.service-card {
  min-height: 250px;
  padding: 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(20, 32, 38, 0.06);
}

.service-number {
  display: inline-block;
  margin-bottom: 2.25rem;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
}

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

.method-section {
  color: var(--white);
  background: var(--ink);
}

.method-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  max-width: 1120px;
  margin: 0 auto;
}

.method-section .section-kicker {
  color: #d8a26a;
}

.method-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-list li {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.method-list strong {
  font-size: 1.02rem;
}

.method-list span {
  color: rgba(255, 255, 255, 0.72);
}

.training-section {
  background: var(--white);
}

.reverse {
  grid-template-columns: minmax(280px, 1fr) minmax(0, 0.9fr);
}

.contact-section {
  padding: 5.5rem clamp(1rem, 5vw, 4rem);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(20, 32, 38, 0.94), rgba(52, 86, 109, 0.92)),
    url("/assets/sereth-associative-trees-hero.png") center / cover no-repeat;
}

.contact-content {
  max-width: 1120px;
  margin: 0 auto;
  justify-content: space-between;
}

.contact-content div {
  flex: 1 1 300px;
}

.contact-content p {
  flex: 1 1 320px;
  max-width: 44ch;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.contact-content .button {
  flex: 0 0 auto;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 5vw, 4rem);
  color: var(--ink-muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 750;
}

.legal-note {
  max-width: 46ch;
  text-align: right;
}

@media (max-width: 920px) {
  .hero {
    min-height: 78vh;
    background:
      linear-gradient(
        90deg,
        rgba(248, 247, 243, 0.98) 0%,
        rgba(248, 247, 243, 0.9) 58%,
        rgba(248, 247, 243, 0.42) 100%
      ),
      url("/assets/sereth-associative-trees-hero.png") center right / cover no-repeat;
  }

  h1 {
    max-width: 13ch;
    font-size: 3.35rem;
  }

  .split,
  .section-heading,
  .method-panel,
  .reverse {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav-links {
    min-width: 0;
    overflow-x: auto;
    justify-content: flex-end;
    gap: 0.58rem;
    font-size: 0.84rem;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .hero {
    min-height: 82vh;
    padding-top: 7.5rem;
  }

  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero-lede {
    font-size: 1.02rem;
  }

  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 210px;
  }

  .contact-content {
    align-items: flex-start;
  }

  .legal-note {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .site-header {
    gap: 0.5rem;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .brand {
    font-size: 1.05rem;
  }

  .nav-links {
    gap: 0.4rem;
    font-size: 0.74rem;
  }
}
