/* ==========================================================================
   RPDS - Reliable Process Design Solutions
   Global stylesheet for every page. Plain CSS, no framework.
   Breakpoints: 1000px (tablet, collapsed nav) and 720px (phone).

   Contents
   1.  Design tokens
   2.  Base
   3.  Layout helpers
   4.  Buttons
   5.  Header & navigation
   6.  Footer
   7.  Home: hero
   8.  Inner page header
   9.  Section headings
   10. Lists: numbered rows, check list, offerings
   11. Feature columns
   12. Blog / post list
   13. Call-to-action band
   14. Long-form content (.prose) and tables
   15. Services: in-page sub navigation
   16. About: statements, leadership
   17. Case studies: grid and cards
   18. Contact form
   19. Responsive
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Exact shades from the RPDS tool (--brand-yellow, --brand-green, --brand-green-600) */
  --yellow: #F0CB32;
  --yellow-tint: rgba(240, 203, 50, .15);
  --green: #A5BE3E;
  --green-dark: #7F9430;      /* hover state + green text on white */
  --green-ring: rgba(127, 148, 48, .25);
  --brown: #2D1C15;           /* headings, logo colour */
  --ink: #1A1A1A;             /* body text */
  --muted: #5A524D;           /* secondary text */
  --line: #E4E0DC;            /* hairline borders */
  --white: #FFFFFF;
  --gray: #F9F9F9;

  --font: 'Inter', 'Roboto', Arial, Helvetica, sans-serif;
  --container: 1180px;
  --radius: 4px;
  --header-h: 76px;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px); /* anchors clear the sticky header */
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.2;
  color: var(--brown);
}

p {
  margin: 0;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

/* ---------- 3. Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: 820px;
}

/* 60px top/bottom; the 20px sides come from .container */
.section {
  padding: 60px 0;
  background: var(--white);
}

.section--gray {
  background: var(--gray);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--tight {
  padding: 56px 0;
}

/* Two equal columns, stacks on tablet */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}

/* Dark text on green: white on #A5BE3E is too low-contrast to read */
.btn-solid {
  background: var(--green);
  color: var(--brown);
}

.btn-solid:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.btn-outline {
  background: transparent;
  color: var(--brown);
}

.btn-outline:hover {
  background: var(--green);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* Plain arrow link, used for "Read more" style actions */
.text-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--brown);
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
}

.text-link:hover {
  border-bottom-color: var(--green);
}

/* ---------- 5. Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.logo-link {
  display: inline-flex;
  flex-shrink: 0;
}

/* Height-capped so a square or wide logo file both fit the header */
.site-logo {
  max-height: 50px;
  width: auto;
  max-width: 150px;
}

.header-menu {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  gap: 24px;
}

.main-nav ul {
  display: flex;
  gap: 28px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brown);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  border-bottom-color: var(--yellow);
}

/* Current page: set aria-current="page" on the link in each file */
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--green);
}

.header-actions {
  display: flex;
  gap: 10px;
}

/* Mobile menu toggle (checkbox hack, no JavaScript). Hidden on desktop. */
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
}

/* ---------- 6. Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #BDB6B1;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 56px 20px 40px;
}

.footer-brand {
  color: var(--white);
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.footer-about {
  max-width: 40ch;
}

.footer-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 8px;
}

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

.footer-links a:hover {
  color: var(--white);
}

.footer-tool {
  color: var(--green);
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding: 18px 20px;
  font-size: 13px;
}

/* ---------- 7. Home: hero ---------- */
.hero {
  padding: 72px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 56px;
}

.overline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--yellow);
  margin-bottom: 24px;
}

/* Second line of the hero heading, in dark text */
.hero-title span {
  display: block;
  color: var(--brown);
}

.hero-lead {
  max-width: 60ch;
  color: var(--muted);
  margin-bottom: 32px;
}

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

.hero-media {
  margin: 0;
  display: flex;
  justify-content: center;
}

.hero-media img {
  width: 100%;
  max-width: 440px;
}

/* ---------- 8. Inner page header ---------- */
.page-header {
  background: var(--gray);
  border-bottom: 1px solid var(--line);
  padding: 60px 0;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

.page-header p {
  font-size: 18px;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- 9. Section headings ---------- */
.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

/* Small uppercase label with a short yellow rule */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  background: var(--yellow);
}

.eyebrow--light {
  color: var(--yellow);
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 18px;
}

.section-lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 62ch;
}

.section-lead + .section-lead {
  margin-top: 14px;
}

/* ---------- 10. Lists ---------- */

/* Boxed list with 01, 02... counters (e.g. "Typical inputs") */
.numbered-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.numbered-box h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.numbered-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

.numbered-list li {
  counter-increment: item;
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.numbered-list li:last-child {
  border-bottom: 0;
}

.numbered-list li::before {
  content: counter(item, decimal-leading-zero);
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
  padding-top: 2px;
  min-width: 22px;
}

/* Two-column list with green ticks */
.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--green-dark);
  border-bottom: 2px solid var(--green-dark);
  transform: rotate(-45deg);
}

/* Home "Our offerings": 2 x 2 grid of ruled blocks */
.offerings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
}

.offering {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 16px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.offering-num {
  grid-row: span 3;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-dark);
  padding-top: 3px;
}

.offering h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.offering p {
  color: var(--muted);
  margin-bottom: 14px;
}

.offering .text-link {
  justify-self: start;
}

/* ---------- 11. Feature columns ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature {
  border-top: 2px solid var(--brown);
  padding-top: 24px;
}

.feature-num {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.feature h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.feature p {
  color: var(--muted);
}

/* ---------- 12. Blog / post list ---------- */
.posts {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.post {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.post-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.post h2,
.post h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.post h2 a,
.post h3 a {
  text-decoration: none;
}

.post h2 a:hover,
.post h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.post-body p {
  color: var(--muted);
  max-width: 70ch;
}

/* "All articles" link under a post list */
.section-more {
  margin-top: 28px;
}

/* ---------- 13. Call-to-action band ---------- */
.cta {
  padding: 60px 0;
  background: var(--brown);
  color: var(--white);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.cta-title {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  color: var(--white);
  max-width: 34ch;
  margin-bottom: 16px;
}

.cta-text {
  color: #D9CFC9;
  max-width: 60ch;
}

/* ---------- 14. Long-form content (.prose) and tables ---------- */
.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  letter-spacing: -.015em;
  margin: 0 0 18px;
}

.prose h3 {
  font-size: 21px;
  margin: 44px 0 14px;
}

.prose > h3:first-child {
  margin-top: 0;
}

.prose h4 {
  font-size: 17px;
  margin: 28px 0 8px;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.prose li::marker {
  color: var(--green-dark);
  font-weight: 700;
}

.prose figure {
  margin: 32px 0;
}

.prose figure img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

/* Tall diagrams: keep them from filling the whole screen */
.prose figure.figure--narrow img {
  max-width: 480px;
  margin-inline: auto;
}

.prose figcaption,
.figure-caption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}

/* Highlighted takeaway inside an article */
.callout {
  border-left: 4px solid var(--yellow);
  background: var(--gray);
  padding: 18px 22px;
  margin: 24px 0;
}

.callout strong {
  display: block;
  color: var(--brown);
  margin-bottom: 4px;
}

/* Definition-style list: term on the left, description on the right */
.def-list {
  margin: 0 0 16px;
  border-top: 1px solid var(--line);
}

.def-list div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.def-list dt {
  font-weight: 600;
  color: var(--brown);
}

.def-list dd {
  margin: 0;
  color: var(--muted);
}

/* Data tables: wrapped in .table-wrap so they scroll on phones */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0 32px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brown);
  border-bottom: 2px solid var(--brown);
}

.data-table td.num,
.data-table th.num {
  text-align: right;
}

/* Rows that showed a clear difference */
.data-table tr.is-key td {
  background: var(--yellow-tint);
  font-weight: 600;
}

/* ---------- 15. Services: in-page sub navigation ---------- */
.subnav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.subnav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin: 0;
  padding: 14px 0;
  list-style: none;
}

.subnav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.subnav a:hover {
  color: var(--brown);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-underline-offset: 4px;
}

/* Service block: title column on the left, content on the right */
.service {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
}

.service-aside .section-title {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.service-aside p {
  color: var(--muted);
}

/* ---------- 16. About: statements, leadership ---------- */
.statement {
  border-left: 4px solid var(--yellow);
  padding: 4px 0 4px 24px;
}

.statement h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.statement p {
  font-size: 18px;
  color: var(--brown);
}

.statement--green {
  border-left-color: var(--green);
}

/* Leadership: photo beside text, two cards per row */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.leader {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 28px;
}

.leader-photo {
  flex: 0 0 140px;
  width: 140px;
  height: 160px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  background: var(--gray);
}

.leader-body h3 {
  font-size: 19px;
  margin-bottom: 2px;
}

.leader-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.leader-body > p:not(.leader-role) {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 14px;
}

.leader-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.leader-facts li {
  padding: 6px 0 6px 16px;
  border-top: 1px solid var(--line);
  position: relative;
}

.leader-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  background: var(--yellow);
}

/* ---------- 17. Case studies: grid and cards ---------- */
/* 3 columns; cards in a row stretch to equal height */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.case-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}

.case-card:hover {
  border-top-color: var(--yellow);
  box-shadow: 0 8px 20px rgba(45, 28, 21, .08);
}

/* Fixed-height cover image; grey background shows until the file exists */
.case-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

/* Charts and diagrams: show the whole figure instead of cropping it */
.case-card-img--contain {
  object-fit: contain;
  padding: 12px;
}

.case-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 28px 28px;
}

.case-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.case-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.case-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 20px;
}

/* margin-top: auto pins the link to the bottom of every card */
.case-card .text-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 15px;
}

/* ---------- 17b. Services: 2 x 2 offering cards ---------- */

/* grid-auto-rows: 1fr makes all four cards the same height */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 28px;
}

.offer-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 2px solid var(--yellow);
  border-radius: 6px;
  overflow: hidden;
}

.offer-card-title {
  font-size: 20px;
  padding: 18px 24px;
  background: var(--yellow);
  color: var(--brown);
}

.offer-card--green {
  border-color: var(--green);
}

.offer-card--green .offer-card-title {
  background: var(--green);
}

.offer-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 24px 24px;
}

.offer-card-body ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.offer-card-body li {
  position: relative;
  padding: 9px 0 9px 20px;
  border-bottom: 1px solid var(--line);
}

.offer-card-body li:last-child {
  border-bottom: 0;
}

.offer-card-body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 7px;
  height: 7px;
  background: var(--brown);
}

/* Button sits at the bottom of every card, whatever the list length */
.offer-card-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- 18. Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 6px;
}

.form-field .optional {
  font-weight: 400;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #CFC9C4;
  border-radius: var(--radius);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--green-dark);
  outline: 3px solid var(--green-ring);
  outline-offset: 0;
}

.form-field textarea {
  min-height: 160px;
  resize: vertical;
}

.form-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
}

.contact-aside {
  border-top: 4px solid var(--green);
  background: var(--gray);
  border-radius: var(--radius);
  padding: 28px 30px;
}

.contact-aside h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.contact-aside p {
  color: var(--muted);
  margin-bottom: 18px;
}

.contact-aside hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

/* ==========================================================================
   19. Responsive
   ========================================================================== */

/* Tablet / small laptop: collapse header into a dropdown menu */
@media (max-width: 1000px) {
  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
  }

  /* Hamburger icon: one span + two pseudo-elements */
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--brown);
    position: relative;
  }

  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
    position: absolute;
  }

  .nav-toggle-label span::before { top: -7px; }
  .nav-toggle-label span::after  { top: 7px; }

  .nav-toggle:focus-visible + .nav-toggle-label {
    outline: 3px solid var(--yellow);
  }

  .header-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px 20px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(45, 28, 21, .08);
  }

  .nav-toggle:checked ~ .header-menu {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a[aria-current="page"] {
    border-bottom-color: var(--line);
    color: var(--green-dark);
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .hero-grid,
  .split,
  .service,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-media img {
    max-width: 340px;
  }

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

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

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

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* Phones */
@media (max-width: 720px) {
  .hero {
    padding: 48px 0 56px;
  }

  .page-header {
    padding: 44px 0 40px;
  }

  .features,
  .offerings,
  .check-list,
  .case-grid,
  .offer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Stacked cards only need to fit their own content */
  .offer-grid {
    grid-auto-rows: auto;
  }

  .features {
    gap: 32px;
  }

  .form-row {
    gap: 0;
  }

  .post {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .def-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .numbered-box,
  .contact-aside {
    padding: 20px;
  }

  .leader {
    flex-direction: column;
    padding: 22px;
  }

  .header-actions .btn {
    flex: 1;
  }

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