@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/ibm-plex-sans.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/space-grotesk.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --black: #111111;
  --charcoal: #252525;
  --white: #ffffff;
  --gray: #f5f6f5;
  --rule: #dfe3df;
  --muted: #4a4f4a;
  /* #008A12 is 4.52:1 on white: green text only ever sits on white. */
  --green: #008a12;
  --green-hover: #006f0e;
  /* On the dark sections #008A12 drops to 3.4:1, so they use the A&J Services green. */
  --green-bright: #4dda1a;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(17 17 17 / 6%), 0 8px 24px rgb(17 17 17 / 7%);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

.wrap {
  width: min(1180px, 100% - 2rem);
  margin-inline: auto;
}

.sprite {
  display: none;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--black);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85rem 1.6rem;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.button:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
}

.button:hover .icon {
  transform: translateX(2px);
}

.button .icon {
  transition: transform 0.2s;
}

.button--outline {
  background: var(--white);
  color: var(--black);
}

.button--outline:hover {
  background: var(--gray);
  border-color: var(--green-hover);
}

.button--small {
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 1px 0 var(--rule), 0 4px 16px rgb(17 17 17 / 5%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav ul {
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul a {
  font-weight: 500;
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}

.site-nav ul a:hover {
  border-bottom-color: var(--green);
}

.menu-toggle {
  display: none;
  padding: 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--white);
  color: var(--black);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Below this width the full header does not fit on one line (measured at 768px).
   Without JavaScript the links simply wrap under the brand instead. */
@media (max-width: 920px) {
  .site-header__inner {
    flex-wrap: wrap;
    padding-block: 0.5rem;
  }

  .no-js .site-nav {
    flex-wrap: wrap;
    width: 100%;
    padding-bottom: 0.5rem;
  }

  .js .menu-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0.5rem 0 1rem;
  }

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

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

  .js .site-nav ul a {
    display: block;
    padding: 0.8rem 0.25rem;
    border-bottom: 1px solid var(--rule);
  }

  .js .site-nav .button {
    justify-content: center;
    margin-top: 0.75rem;
  }

  .brand__name {
    font-size: 1.1rem;
  }
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero__scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 8vw, 6.5rem);
}

.hero__emblem {
  width: min(100%, 420px);
  justify-self: center;
  filter: drop-shadow(0 12px 28px rgb(17 17 17 / 14%));
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__title {
  margin-top: 1rem;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.accent {
  color: var(--green);
}

.hero__lede {
  margin-top: 1.25rem;
  max-width: 34ch;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

@media (max-width: 760px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .hero__emblem {
    width: min(70vw, 280px);
  }

  .hero__lede {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }
}

/* Section headings */

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
}

.section-title::before,
.section-title::after {
  content: "";
  flex: 0 1 7rem;
  height: 2px;
  background: var(--green);
}

.section-intro {
  max-width: 62ch;
  margin: 1.25rem auto 0;
  text-align: center;
  color: var(--muted);
}

/* Ventures */

.ventures-section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.ventures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 1.75rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.venture {
  container-type: inline-size;
}

.venture__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.venture__logo {
  width: 160px;
  aspect-ratio: 1;
  margin: 2rem auto 0;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
}

.venture__logo--dark {
  background: var(--black);
}

.venture__logo--light {
  background: var(--gray);
}

.venture__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.5rem 2rem 2rem;
  flex: 1;
}

.venture__kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.venture__name {
  font-size: 1.9rem;
  font-weight: 700;
}

.venture__tagline {
  font-weight: 500;
  font-size: 1.15rem;
}

.venture__text {
  color: var(--muted);
  margin-bottom: 1rem;
}

.venture__body .button {
  margin-top: auto;
}

.venture .button {
  white-space: nowrap;
}

/* Four across on desktop leaves each card about 17rem wide. */
@container (max-width: 19rem) {
  .venture__body {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .venture__name {
    font-size: 1.55rem;
  }
}

/* A lone venture gets the full row, so its card lays out side by side. */
@container (min-width: 40rem) {
  .venture__card {
    flex-direction: row;
    align-items: center;
  }

  .venture__logo {
    width: 220px;
    margin: 2rem 0 2rem 2.5rem;
  }

  .venture__body {
    padding: 2rem 2.5rem;
  }
}

/* Vision strip: deliberately not a card, so it never reads as a business. */

.vision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 2rem 3rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.vision__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.vision__icon {
  width: 2rem;
  height: 2rem;
  flex: none;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vision__title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.vision p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Values */

.values {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--black);
  color: var(--white);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.values__curves {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--green-bright);
  stroke-width: 1.5;
  opacity: 0.22;
}

.values__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.value {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  align-items: center;
  padding: 0.5rem 1.75rem;
  border-left: 1px solid rgb(255 255 255 / 18%);
}

.value:first-child {
  border-left: 0;
}

.value__icon {
  grid-row: span 2;
  width: 2.6rem;
  height: 2.6rem;
  fill: none;
  stroke: var(--green-bright);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.value p {
  color: rgb(255 255 255 / 82%);
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .values__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2rem;
  }

  .value:nth-child(3) {
    border-left: 0;
  }
}

@media (max-width: 540px) {
  .values__list {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }

  .value {
    border-left: 0;
    padding-inline: 0;
  }
}

/* About */

.about {
  background: var(--gray);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.about__inner {
  max-width: 760px;
}

.about p {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  line-height: 1.7;
}

.about .section-title + p {
  margin-top: 2rem;
}

/* Footer */

.site-footer {
  background: var(--black);
  color: var(--white);
  padding-top: 3rem;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}

.site-footer__domain {
  color: var(--green-bright);
}

.site-footer__links {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.site-footer a:hover {
  color: var(--green-bright);
}

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

.site-footer__heading {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 75%);
  margin-bottom: 0.6rem;
}

.site-footer__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
}

.site-footer__mail .icon {
  color: var(--green-bright);
}

.site-footer__contact {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
}

.site-footer__sms {
  margin-top: 0.5rem;
  color: rgb(255 255 255 / 70%);
  font-size: 0.85rem;
  line-height: 1.5;
}

.site-footer__sms a {
  color: var(--white);
  text-decoration: underline;
}

.site-footer__legal {
  margin-top: 2.5rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 14%);
  color: rgb(255 255 255 / 70%);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

/* Scroll reveal: only once JavaScript is running and motion is welcome. */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* 404 */

.not-found {
  display: grid;
  justify-items: center;
  gap: 1rem;
  min-height: 100vh;
  align-content: center;
  text-align: center;
}

.not-found h1 {
  font-size: 2rem;
}

/* Policy pages */

.legal {
  max-width: 760px;
  padding-block: 3rem 4rem;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.25rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 2.25rem 0 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.legal p,
.legal ul {
  margin-block: 0 1rem;
  line-height: 1.65;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal a {
  color: var(--green);
}

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

.legal-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.legal-callout {
  border-left: 4px solid var(--green);
  background: var(--gray);
  padding: 0.9rem 1.1rem;
  margin-block: 1rem;
}

.legal-callout p {
  margin: 0;
}

.site-footer__legal a {
  color: inherit;
  text-decoration: underline;
}
