/*
  Kwa Suka Sukela: main stylesheet

  1. Palette and design tokens    8. Home page
  2. Font                         9. Service pages
  3. Base and page gradient       10. About page
  4. Layout helpers               11. Contact page
  5. Text styles                  12. Call to action band
  6. Buttons and links            13. Footer
  7. Header, navigation, heroes   14. Reduced motion
*/

/* 1. Palette and design tokens */
:root {
  /* The only four colours on the site */
  --green: #00be64;     /* sampled from the logo */
  --white: #ffffff;
  --grey: #a6a6a6;      /* logo light grey */
  --charcoal: #2a2a2a;  /* a deeper shade of the logo's dark grey */

  /* Tints and shades, all mixed from the four colours above */
  --green-dark: color-mix(in srgb, var(--green) 55%, var(--charcoal));  /* green text on light backgrounds */
  --green-light: color-mix(in srgb, var(--green) 85%, var(--white));    /* button hover */
  --green-50: color-mix(in srgb, var(--green) 8%, var(--white));
  --green-100: color-mix(in srgb, var(--green) 16%, var(--white));
  --grey-50: color-mix(in srgb, var(--grey) 14%, var(--white));
  --grey-100: color-mix(in srgb, var(--grey) 24%, var(--white));
  --grey-200: color-mix(in srgb, var(--grey) 42%, var(--white));         /* borders and dividers */
  --charcoal-80: color-mix(in srgb, var(--charcoal) 82%, var(--white));  /* dividers on charcoal */
  --text: var(--charcoal);
  --text-muted: color-mix(in srgb, var(--charcoal) 72%, var(--white));

  /* Site background: logo green fading through white into light grey */
  --page-gradient: linear-gradient(160deg, var(--green-100) 0%, var(--green-50) 26%, var(--white) 52%, var(--white) 70%, var(--grey-100) 100%);

  /* Type */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.875rem, 1.3rem + 2vw, 2.75rem);
  --fs-h1: clamp(2.375rem, 1.4rem + 3.8vw, 4.25rem);

  /* Space and layout */
  --max-w: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 8vw, 112px);
  --header-h: 72px;
  --radius: 8px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --ease: 200ms ease;
}

@media (min-width: 960px) {
  :root { --header-h: 88px; }
}

/* 2. Font */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

/* 3. Base and page gradient */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--white);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* The gradient stays fixed behind the page, so every section sits on it */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--page-gradient);
  pointer-events: none;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--green-dark);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--green); color: var(--charcoal); }

/* 4. Layout helpers */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--flush-top { padding-top: 0; }

.section-head { max-width: 42em; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head > p:not(.eyebrow) { margin-top: 16px; color: var(--text-muted); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--charcoal);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

/* 5. Text styles */
h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 2px;
  background: var(--green);
}

.eyebrow--on-dark { color: var(--green); }

/* Small uppercase heading used for labels */
.label-heading {
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Green tick list */
.ticks li {
  position: relative;
  padding-left: 28px;
}

.ticks li + li { margin-top: 10px; }

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--green-dark);
  border-bottom: 2px solid var(--green-dark);
  transform: rotate(-45deg);
}

/* 6. Buttons and links */
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}

.btn .icon { width: 18px; height: 18px; }

.btn--primary { background: var(--green); color: var(--charcoal); }
.btn--primary:hover { background: var(--green-light); }

.btn--secondary {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--grey-200);
}
.btn--secondary:hover { border-color: var(--charcoal); }

.btn--dark { background: var(--charcoal); color: var(--white); }
.btn--dark:hover { background: var(--charcoal-80); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--ease);
}

.text-link:hover { text-decoration-color: transparent; }

.text-link .icon {
  width: 16px;
  height: 16px;
  transition: transform var(--ease);
}

.text-link:hover .icon { transform: translateX(3px); }

/* 7. Header, navigation, heroes */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: background-color var(--ease), border-color var(--ease);
}

/* With JavaScript the header is clear over the gradient until the page scrolls */
.js .site-header { background: transparent; }

.js .site-header.is-scrolled,
.js .site-header.is-open {
  background: var(--white);
  border-bottom-color: var(--grey-200);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand { flex: none; display: block; border-radius: 2px; }
.brand img { width: auto; height: 44px; }

.header__actions { display: flex; align-items: center; gap: 8px; }

.btn--header { min-height: 44px; padding: 0 16px; }
.btn--header .label-long { display: none; }

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
  cursor: pointer;
  transition: border-color var(--ease);
}

.nav-toggle:hover { border-color: var(--charcoal); }
.nav-toggle .icon { grid-area: 1 / 1; width: 22px; height: 22px; }
.nav-toggle .icon--close,
.site-header.is-open .nav-toggle .icon--menu { display: none; }
.site-header.is-open .nav-toggle .icon--close { display: block; }

/* Mobile menu panel (hidden only when JavaScript is running) */
.js .site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px var(--gutter) 24px;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
}

.js .site-header.is-open .site-nav { display: block; }

.site-nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--grey-100);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--ease);
}

.site-nav a:hover { color: var(--green-dark); }
.site-nav a[aria-current] { color: var(--green-dark); font-weight: 600; }

/* Without JavaScript the menu shows as a row under the logo */
html:not(.js) .header__inner { flex-wrap: wrap; height: auto; padding-block: 12px; }
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .site-nav { order: 3; width: 100%; }
html:not(.js) .site-nav ul { display: flex; flex-wrap: wrap; gap: 0 20px; }
html:not(.js) .site-nav a { border: 0; padding: 6px 0; }

@media (max-width: 359px) {
  .brand img { height: 36px; }
  .btn--header { padding: 0 12px; }
}

@media (min-width: 960px) {
  .brand img { height: 56px; }
  .nav-toggle { display: none; }
  .btn--header .label-short { display: none; }
  .btn--header .label-long { display: inline; }
  .header__actions { margin-left: 24px; }

  .js .site-nav,
  .site-nav {
    display: block;
    position: static;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
  }

  .site-nav ul { display: flex; gap: 36px; }

  .site-nav a {
    padding: 8px 0;
    border: 0;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 2px;
    text-underline-offset: 10px;
    transition: color var(--ease), text-decoration-color var(--ease);
  }

  .site-nav a:hover,
  .site-nav a[aria-current] {
    color: var(--charcoal);
    text-decoration-color: var(--green);
  }
}

/* Breadcrumbs on inner pages */
.breadcrumb {
  padding-top: clamp(12px, 2.5vw, 28px);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.breadcrumb ol { display: flex; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; color: var(--grey); }
.breadcrumb a { text-decoration: none; transition: color var(--ease); }
.breadcrumb a:hover { color: var(--charcoal); text-decoration: underline; text-underline-offset: 4px; }
.breadcrumb [aria-current] { color: var(--charcoal); font-weight: 500; }

/* Page heroes */
.page-hero { padding-block: clamp(28px, 4vw, 56px) var(--section-y); }
.page-hero--home { padding-block: clamp(32px, 6vw, 88px) clamp(40px, 5vw, 72px); }
.page-hero--compact { padding-bottom: clamp(32px, 4vw, 56px); }

.page-hero__grid { display: grid; gap: 40px; align-items: center; }

.page-hero h1 { max-width: 16ch; font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); }
.page-hero--home h1 { max-width: 13ch; font-size: var(--fs-h1); }

.page-hero__lead {
  max-width: 34em;
  margin-top: 24px;
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--text-muted);
}

.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.page-hero__art img { width: 100%; max-width: 460px; margin-inline: auto; }

@media (min-width: 900px) {
  .page-hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; }
  .page-hero__art img { max-width: 560px; }
}

/* 8. Home page */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--grey-200);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta .icon { width: 18px; height: 18px; color: var(--green-dark); }

/* The offices we deal with */
.deal__panel {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.deal__list { display: grid; margin-top: 12px; }

.deal__list li {
  display: grid;
  gap: 2px;
  padding-block: 14px;
  border-top: 1px solid var(--grey-100);
}

.deal__list strong { font-size: 1.0625rem; font-weight: 700; color: var(--green-dark); }
.deal__list span { font-size: var(--fs-sm); line-height: 1.45; color: var(--text-muted); }

@media (min-width: 640px) {
  .deal__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}

@media (min-width: 1024px) {
  .deal__list { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 0; margin-top: 20px; }
  .deal__list li { padding: 2px 20px; border-top: 0; border-left: 1px solid var(--grey-200); }
  .deal__list li:first-child { padding-left: 0; border-left: 0; }
}

/* Three service areas */
.areas { display: grid; gap: 24px; }

.area {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: border-color var(--ease);
}

.area:hover { border-color: var(--grey); }
.area__art img { width: 100%; max-width: 380px; margin-inline: auto; }

.area__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 4px 28px 28px;
}

.area__body > p { color: var(--text-muted); }
.area__body .ticks { font-size: var(--fs-sm); }
.area__body .text-link { margin-top: auto; padding-top: 8px; }

@media (min-width: 900px) {
  .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Dark band: who we work with */
.band-dark {
  display: grid;
  gap: 40px;
  padding: clamp(32px, 6vw, 80px) clamp(24px, 5vw, 72px);
  border-radius: var(--radius-xl);
  background: var(--charcoal);
  color: var(--white);
}

.band-dark :focus-visible { outline-color: var(--green); }
.band-dark h2 { max-width: 14ch; }
.band-dark__intro > p:not(.eyebrow) { max-width: 30em; margin-top: 20px; color: var(--grey); }

.client-list li { padding-block: 20px; border-top: 1px solid var(--charcoal-80); }
.client-list li:first-child { padding-top: 0; border-top: 0; }
.client-list h3 { font-size: 1.125rem; }
.client-list p { margin-top: 6px; font-size: var(--fs-sm); color: var(--grey); }

@media (min-width: 960px) {
  .band-dark { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; }
}

/* Our name: the story behind Kwa Suka Sukela */
.story { display: grid; gap: 40px; align-items: center; }

.name-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  min-height: clamp(240px, 32vw, 380px);
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--charcoal);
  color: var(--white);
  container-type: inline-size;
}

/* Three dots in the logo colours */
.name-card__dots {
  position: absolute;
  top: clamp(28px, 4vw, 48px);
  left: clamp(28px, 4vw, 48px);
  display: flex;
  gap: 10px;
}

.name-card__dots span { width: 18px; height: 18px; border-radius: 50%; background: var(--green); }
.name-card__dots span:nth-child(2) { background: var(--grey); }
.name-card__dots span:nth-child(3) { background: var(--white); }

/* Sized from the card's width so the word always fits on one line */
.name-card__word {
  font-size: clamp(1.5rem, 9.5cqi, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.name-card__meaning { font-size: var(--fs-lg); color: var(--green); }

.story__body > p:not(.eyebrow) { max-width: 36em; margin-top: 20px; color: var(--text-muted); }
.story__body .text-link { margin-top: 28px; }

@media (min-width: 900px) {
  .story { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; }
}

/* 9. Service pages */

/* Services hub */
.hub { display: grid; gap: 24px; }

.hub__item {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.hub__art img { width: 100%; max-width: 380px; margin-inline: auto; }
.hub__body { padding: 0 clamp(24px, 4vw, 48px) clamp(28px, 4vw, 48px); }

.hub__count {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--green-dark);
}

.hub__body h2 { margin-top: 8px; font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); }
.hub__body > p:not(.hub__count) { max-width: 36em; margin-top: 14px; color: var(--text-muted); }

.hub__links { display: grid; column-gap: 24px; margin: 24px 0 28px; }

.hub__links a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-100);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--ease);
}

.hub__links a:hover { color: var(--green-dark); }

@media (min-width: 560px) {
  .hub__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .hub__item { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
  .hub__art img { max-width: none; }
  .hub__body { padding: 48px 48px 48px 8px; }
}

/* Detailed service list */
.detail {
  padding: 4px clamp(20px, 4vw, 48px);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  counter-reset: service;
}

.detail + .detail-group-title { margin-top: clamp(40px, 5vw, 64px); }
.detail-group-title { margin-bottom: 16px; }

.detail__item {
  counter-increment: service;
  display: grid;
  gap: 8px;
  padding-block: 28px;
  border-top: 1px solid var(--grey-200);
}

.detail__item:first-child { border-top: 0; }

.detail__item::before {
  content: counter(service, decimal-leading-zero);
  font-size: var(--fs-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--green-dark);
}

.detail__item p { max-width: 42em; color: var(--text-muted); }

@media (min-width: 800px) {
  .detail__item {
    grid-template-columns: 2.5rem minmax(0, 4fr) minmax(0, 7fr);
    column-gap: 32px;
    align-items: baseline;
  }

  .detail__item h3 { grid-column: 2; }
  .detail__item p { grid-column: 3; }
}

/* Software we work with */
.tools { display: grid; gap: 32px; }
.tools__head > p:not(.eyebrow) { margin-top: 16px; color: var(--text-muted); }

.tools__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.tools__list li {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--grey-200);
  border-radius: 14px;
  background: var(--white);
}

.tools__list strong { font-size: 1.125rem; }
.tools__list span { font-size: var(--fs-sm); line-height: 1.45; color: var(--text-muted); }

@media (min-width: 640px) {
  .tools__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .tools { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
}

/* SARS returns table */
.returns-wrap {
  overflow: hidden;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.returns-table { width: 100%; border-collapse: collapse; }

.returns-table th,
.returns-table td {
  padding: 16px 24px;
  border-top: 1px solid var(--grey-200);
  text-align: left;
  vertical-align: top;
}

.returns-table thead th {
  border-top: 0;
  background: var(--charcoal);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.returns-table tbody th { font-weight: 700; white-space: nowrap; color: var(--green-dark); }
.returns-table td { color: var(--text-muted); }
.returns-note { margin-top: 16px; font-size: var(--fs-sm); color: var(--text-muted); }

/* On phones each table row becomes a small block with labels */
@media (max-width: 639px) {
  .returns-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .returns-table tr { display: block; padding: 16px 20px; border-top: 1px solid var(--grey-200); }
  .returns-table tbody tr:first-child { border-top: 0; }
  .returns-table th,
  .returns-table td { display: block; padding: 2px 0; border: 0; }
  .returns-table td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--charcoal); }
}

/* Tender-ready checklist */
.checklist {
  display: grid;
  gap: 32px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background: var(--charcoal);
  color: var(--white);
}

.checklist :focus-visible { outline-color: var(--green); }
.checklist__intro > p:not(.eyebrow) { max-width: 30em; margin-top: 16px; color: var(--grey); }
.checklist .ticks li { padding-block: 14px; border-top: 1px solid var(--charcoal-80); }
.checklist .ticks li:first-child { padding-top: 0; border-top: 0; }
.checklist .ticks li + li { margin-top: 0; }
.checklist .ticks li::before { top: calc(14px + 0.45em); border-color: var(--green); }
.checklist .ticks li:first-child::before { top: 0.45em; }

@media (min-width: 900px) {
  .checklist { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
}

/* Links to the other service areas */
.related { display: grid; gap: 12px; margin-top: 16px; }

.related a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 16px;
  padding: 22px 24px;
  border: 1px solid var(--grey-200);
  border-radius: 14px;
  background: var(--white);
  text-decoration: none;
  transition: border-color var(--ease);
}

.related a:hover { border-color: var(--charcoal); }
.related__name { font-size: 1.125rem; font-weight: 700; }
.related__desc { grid-column: 1; font-size: var(--fs-sm); color: var(--text-muted); }

.related .icon {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--green-dark);
  transition: transform var(--ease);
}

.related a:hover .icon { transform: translateX(3px); }

@media (min-width: 768px) {
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 10. About page */
.about-story { display: grid; gap: 32px; }
.about-story__body > p { max-width: 38em; color: var(--text-muted); }
.about-story__body > p + p { margin-top: 20px; }

.about-story__body .lead {
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.5;
  color: var(--charcoal);
}

.facts { display: grid; margin-top: 40px; }
.facts div { padding-block: 16px; border-top: 1px solid var(--grey-200); }

.facts dt {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.facts dd { margin-top: 6px; font-weight: 600; line-height: 1.4; }

@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .facts div { border-top: 2px solid var(--charcoal); }
}

@media (min-width: 900px) {
  .about-story { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; }
}

/* Vision and mission */
.vision__statement {
  max-width: 22ch;
  font-size: clamp(1.875rem, 1.1rem + 3vw, 3.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.mission {
  max-width: 46em;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.mission p { margin-top: 12px; color: var(--text-muted); }
.mission .mission__lead { font-size: var(--fs-lg); font-weight: 500; line-height: 1.5; color: var(--charcoal); }

@media (min-width: 960px) {
  .mission { margin-left: auto; }
}

/* Values */
.values-grid { display: grid; gap: 8px 32px; counter-reset: value; }

.values-grid li {
  counter-increment: value;
  padding-block: 20px;
  border-top: 2px solid var(--charcoal);
}

.values-grid li::before {
  content: counter(value, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--green-dark);
}

.values-grid h3 { font-size: 1.0625rem; }
.values-grid p { margin-top: 8px; font-size: var(--fs-sm); color: var(--text-muted); }

@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 11. Contact page */
.contact-phone {
  display: inline-block;
  margin-top: 32px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--green);
  font-size: clamp(2.25rem, 1.2rem + 4vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ease);
}

.contact-phone:hover { color: var(--green-dark); }

.contact-hours {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--text-muted);
}

.contact-hours .icon { color: var(--green-dark); }

.contact-panels { display: grid; gap: 20px; }

.contact-panel {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.contact-panel h2 { font-size: 1.5rem; }
.contact-panel > p { margin-top: 12px; color: var(--text-muted); }
.contact-panel .ticks { margin-top: 20px; }
.contact-panel .related { grid-template-columns: 1fr; margin-top: 20px; }
.contact-panel .related a { padding: 16px 20px; }

@media (min-width: 900px) {
  .contact-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 12. Call to action band */
.cta { padding-bottom: var(--section-y); }

.cta__panel {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background: var(--green);
  color: var(--charcoal);
}

.cta :focus-visible { outline-color: var(--charcoal); }
.cta h2 { max-width: 18ch; }
.cta__panel p { max-width: 34em; margin-top: 12px; font-size: var(--fs-lg); }

.cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cta__actions span { font-size: var(--fs-sm); font-weight: 500; }

@media (min-width: 900px) {
  .cta__panel { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; }
}

/* 13. Footer */
.site-footer {
  padding-block: 64px 32px;
  background: var(--charcoal);
  color: var(--grey);
  font-size: var(--fs-sm);
}

.site-footer :focus-visible { outline-color: var(--green); }

.footer__grid { display: grid; gap: 40px; }
.footer__logo { display: inline-block; border-radius: 2px; }
.footer__logo img { width: auto; height: 60px; }
.footer__tagline { max-width: 24em; margin-top: 20px; }

.footer__heading {
  margin-bottom: 16px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

.footer__col li + li { margin-top: 10px; }

.site-footer a:not(.footer__logo) {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color var(--ease), text-decoration-color var(--ease);
}

.site-footer a:not(.footer__logo):hover {
  color: var(--green);
  text-decoration-color: var(--green);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--charcoal-80);
  font-size: var(--fs-xs);
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .footer__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 3fr); gap: 48px; }
}

/* 14. Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
