:root {
  --ink: #121212;
  --muted: #5d625d;
  --line: #e5deca;
  --paper: #ffffff;
  --soft: #f4f1de;
  --forest: #1b4332;
  --gold: #d4af37;
  --cream: #f4f1de;
  --black: #121212;
  --tint: #edf4ef;
  --shadow: 0 18px 45px rgba(18, 18, 18, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.nav-shell {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.05rem;
}
.brand span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--forest);
  color: white;
  font-weight: 800;
}
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a {
  text-decoration: none;
  color: #30362f;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 9px 10px;
  border-radius: 8px;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { background: var(--cream); color: var(--forest); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 18, 18, 0.89), rgba(27, 67, 50, 0.68) 48%, rgba(18, 18, 18, 0.2));
}
.hero__content { position: relative; padding: 0 0 86px; max-width: 1160px; }
.hero h1 {
  max-width: 850px;
  margin: 12px 0 18px;
  font-size: clamp(2.45rem, 6vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}
.hero__text { max-width: 720px; font-size: 1.2rem; color: rgba(255, 255, 255, 0.9); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--forest);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0;
}
.hero .eyebrow { color: var(--gold); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
}
.button--primary { background: var(--forest); color: white; }
.button--primary:hover { background: #122e22; }
.button--ghost { color: white; border-color: rgba(255, 255, 255, 0.58); }

.section { padding: 88px 0; }
.section--tight { padding: 30px 0; }
.section--muted { background: var(--soft); }
.section--accent { background: var(--black); color: white; }
.section-heading { max-width: 760px; margin-bottom: 32px; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 14px; }
h2 { font-size: clamp(1.8rem, 4vw, 3.1rem); }
h3 { font-size: 1.2rem; }
.lead { font-size: 1.08rem; color: var(--muted); margin: 0; }
.section--accent .lead,
.section--accent p { color: rgba(255, 255, 255, 0.82); }

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: white;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.stats-strip div { padding: 26px; border-right: 1px solid var(--line); }
.stats-strip div:last-child { border-right: 0; }
.stats-strip strong { display: block; font-size: 2rem; color: var(--forest); }
.stats-strip span { color: var(--muted); font-weight: 700; font-size: 0.9rem; }

.split { display: grid; grid-template-columns: 1fr 0.9fr; gap: 48px; align-items: start; }
.quick-search,
.panel,
.calculator,
.disclaimer-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 24px;
  box-shadow: 0 8px 28px rgba(18, 18, 18, 0.07);
}
.quick-search label,
.calculator label { display: grid; gap: 7px; color: var(--muted); font-weight: 700; font-size: 0.92rem; }
.search-box { display: grid; grid-template-columns: 1fr 42px; gap: 8px; margin: 9px 0 16px; }
input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 46px;
  padding: 0 13px;
  font: inherit;
  background: white;
}
.search-box button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  font-weight: 800;
}
.search-results { display: grid; gap: 10px; }
.search-results a,
.resource-list a,
.contact-grid a {
  display: grid;
  gap: 3px;
  text-decoration: none;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.search-results span,
.resource-list span,
.contact-grid span { color: var(--muted); font-size: 0.9rem; }

.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.topic-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.topic-card span {
  display: inline-block;
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 28px;
}
.topic-card p { color: var(--muted); margin: 0; }

.workflow,
.comparison,
.lifecycle,
.calculator-grid,
.contact-grid,
.directory {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.workflow article,
.comparison div,
.lifecycle article,
.stacked-cards article,
.directory-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}
.workflow ol { padding-left: 20px; margin: 0; color: var(--muted); }
.comparison a,
.comparison a { color: var(--forest); font-weight: 800; }
.comparison--wide { grid-template-columns: repeat(4, 1fr); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.page-hero { padding: 94px 0 58px; background: linear-gradient(180deg, var(--cream), white); }
.page-hero h1 { max-width: 920px; font-size: clamp(2.2rem, 5vw, 4.8rem); }
.page-hero .lead { max-width: 820px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.check-list,
.metric-list { padding-left: 20px; color: var(--muted); }
.check-list li,
.metric-list li { margin-bottom: 10px; }
.lifecycle { grid-template-columns: repeat(4, 1fr); }
.lifecycle span,
.directory-card span {
  display: inline-block;
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 14px;
}
.stacked-cards { display: grid; gap: 12px; }
.filter-bar { display: grid; grid-template-columns: 1fr 240px; gap: 12px; margin-bottom: 18px; }
.directory-card { text-decoration: none; color: inherit; }
.directory-card p { color: var(--muted); margin: 0; }
.calculator-grid { grid-template-columns: repeat(2, 1fr); }
.calculator { display: grid; gap: 14px; }
.calculator output {
  display: block;
  padding: 18px;
  border-radius: 8px;
  background: var(--forest);
  color: white;
  font-size: 1.6rem;
  font-weight: 800;
}
.site-footer { background: var(--black); color: white; padding: 50px 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.7fr 1fr; gap: 28px; }
.site-footer p,
.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a { display: block; text-decoration: none; margin: 7px 0; }
.site-footer h2 { font-size: 1rem; }
.brand--footer span { background: var(--forest); color: var(--gold); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 74px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: grid; grid-template-columns: 1fr 1fr; }
  .hero { min-height: 660px; }
  .split,
  .two-col,
  .footer-grid,
  .cta-band { grid-template-columns: 1fr; display: grid; }
  .topic-grid,
  .workflow,
  .comparison,
  .comparison--wide,
  .lifecycle,
  .contact-grid,
  .directory { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-strip div:nth-child(2) { border-right: 0; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1160px); }
  .hero { min-height: 620px; }
  .hero__content { padding-bottom: 54px; }
  .section { padding: 58px 0; }
  .topic-grid,
  .workflow,
  .comparison,
  .comparison--wide,
  .lifecycle,
  .calculator-grid,
  .contact-grid,
  .directory,
  .stats-strip,
  .filter-bar { grid-template-columns: 1fr; }
  .stats-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats-strip div:last-child { border-bottom: 0; }
  .main-nav.is-open { grid-template-columns: 1fr; }
  .hero__actions { display: grid; }
  .button { width: 100%; }
}
