:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-muted: #ebe6dc;
  --ink: #1d2522;
  --muted: #64706a;
  --line: rgba(29, 37, 34, 0.14);
  --sage: #667a62;
  --sage-dark: #34463c;
  --clay: #b86f50;
  --gold: #b59052;
  --shadow: 0 18px 50px rgba(35, 43, 39, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 239, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links a {
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: calc(100svh - 74px);
  padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 72px) clamp(36px, 5vw, 72px);
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  font-size: clamp(3.25rem, 9vw, 7.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.subtitle {
  margin: 20px 0 0;
  color: var(--sage-dark);
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
}

.intro {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

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

.button.primary:hover,
.button.primary:focus-visible {
  background: #26362f;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--sage-dark);
}

.hero-media {
  margin: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.category-card {
  min-height: 250px;
  padding: 26px;
  background: var(--surface);
}

.category-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--sage-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

h3 {
  margin: 46px 0 12px;
  font-size: 1.28rem;
}

.category-card p,
.standards-copy p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.standards {
  background: var(--surface);
}

.standards-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.standards-copy {
  max-width: 780px;
  font-size: 1.05rem;
}

.note {
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  background: #faf8f2;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
  color: var(--sage-dark);
  font-weight: 750;
}

.contact {
  padding-bottom: clamp(72px, 9vw, 120px);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sage-dark);
  color: #ffffff;
}

.contact-panel .eyebrow {
  color: #e5bd83;
}

.contact-panel p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-actions {
  display: grid;
  gap: 14px;
  justify-items: end;
}

.email-link {
  color: #ffffff;
  font-weight: 800;
  text-decoration-color: rgba(255, 255, 255, 0.42);
  text-underline-offset: 4px;
}

.contact-panel .button.primary {
  background: #ffffff;
  color: var(--sage-dark);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero,
  .standards-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .contact-actions {
    justify-items: start;
  }
}

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

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

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