/* Mobile X Communications */

:root {
  --ink: #10221b;
  --text: #45544d;
  --green-900: #0c3b2e;
  --green-700: #116b40;
  --green-600: #14804a;
  --tint: #f2f6f4;
  --line: #dae3de;
  --white: #fff;

  --font: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --band: clamp(3.5rem, 7vw, 6rem);
  --radius: 8px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

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

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

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--green-700);
  text-underline-offset: 0.18em;
}

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

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

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  background: var(--green-900);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
  color: var(--white);
}

/* Type */

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}

.lede {
  max-width: 36em;
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}

.prose {
  max-width: 38em;
}

.prose p + p {
  margin-top: 1em;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.8em 1.4em;
  border: 1.5px solid var(--green-900);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--green-900);
  font: 600 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  background: var(--tint);
  color: var(--green-900);
}

.btn--primary {
  border-color: var(--green-600);
  background: var(--green-600);
  color: var(--white);
}

.btn--primary:hover {
  border-color: var(--green-700);
  background: var(--green-700);
  color: var(--white);
}

.btn--light {
  border-color: var(--white);
  background: var(--white);
  color: var(--green-900);
}

.btn--light:hover {
  border-color: var(--tint);
  background: var(--tint);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand svg {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.site-nav a:not(.btn) {
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:not(.btn):hover {
  color: var(--green-700);
}

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

.site-nav .btn {
  padding: 0.6em 1.1em;
}

.nav-toggle {
  display: none;
  padding: 0.5em 0.9em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: 600 1rem var(--font);
  cursor: pointer;
}

@media (max-width: 54rem) {
  .nav-toggle {
    display: block;
  }

  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 1.25rem;
  }

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

  .site-nav a:not(.btn) {
    padding-block: 0.8rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }

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

  .site-nav .btn {
    margin-top: 1.25rem;
    text-align: center;
  }
}

/* Bands */

.band {
  padding-block: var(--band);
}

.band--ruled {
  border-top: 1px solid var(--line);
}

.band--tint {
  background: var(--tint);
}

.band--dark {
  background: var(--green-900);
  color: #e8f0ec;
}

.band--dark h2 {
  color: var(--white);
}

.band--dark a:not(.btn) {
  color: var(--white);
}

.band--dark :focus-visible {
  outline-color: var(--white);
}

.band__head {
  display: grid;
  gap: 0.9rem;
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Hero */

.hero {
  background: var(--tint);
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__kicker {
  margin-bottom: 1rem;
  color: var(--green-700);
  font-weight: 600;
}

.hero .lede {
  margin-top: 1.25rem;
}

.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (min-width: 58rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  }
}

.page-head {
  background: var(--tint);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.page-head .lede {
  margin-top: 1rem;
}

/* Service cards */

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

a.card:hover {
  border-color: var(--green-600);
  box-shadow: 0 6px 20px rgba(12, 59, 46, 0.08);
  color: var(--text);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--green-700);
}

.card__icon svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card p {
  margin-top: 0.5rem;
}

.card__more {
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--green-700);
  font-weight: 600;
}

.card--dark {
  border-color: var(--green-900);
  background: var(--green-900);
  color: #e8f0ec;
}

.card--dark h3 {
  color: var(--white);
}

.card--dark .btn {
  align-self: flex-start;
  margin-top: auto;
}

.card--dark p {
  margin-bottom: 1.5rem;
}

/* Reasons / principles: three plain columns */

.principles {
  display: grid;
  gap: 2rem;
}

.principles > div {
  padding-top: 1.25rem;
  border-top: 3px solid var(--green-600);
}

.principles p {
  margin-top: 0.5rem;
}

@media (min-width: 52rem) {
  .principles {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* Steps */

.steps {
  display: grid;
  gap: 2rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--green-900);
  color: var(--white);
  font-weight: 600;
}

.steps p {
  margin-top: 0.4rem;
}

@media (min-width: 40rem) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Text beside a photo */

.feature {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.feature img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.feature .prose {
  margin-top: 1rem;
}

@media (min-width: 56rem) {
  .feature {
    grid-template-columns: 1fr 1fr;
  }

  .feature--flip > :first-child {
    order: 2;
  }
}

/* Service detail sections */

.service {
  display: grid;
  gap: 1.25rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}

.service--first {
  border-top: 0;
}

.service__for {
  margin-top: 0.5rem;
  color: var(--green-700);
  font-weight: 600;
}

.service__body .prose + .ticks {
  margin-top: 1.5rem;
}

@media (min-width: 56rem) {
  .service {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 3rem;
  }
}

.ticks li {
  position: relative;
  max-width: 38em;
  padding: 0.4rem 0 0.4rem 1.9rem;
  color: var(--ink);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.95rem;
  width: 0.8rem;
  height: 0.42rem;
  border-left: 2px solid var(--green-600);
  border-bottom: 2px solid var(--green-600);
  transform: rotate(-45deg);
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.jump a {
  padding: 0.4em 0.9em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.jump a:hover {
  border-color: var(--green-600);
  color: var(--green-700);
}

/* Two-column text block (about) */

.split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 3rem;
  }
}

/* Closing call to action */

.cta .lede {
  margin-top: 0.9rem;
}

.cta__email {
  font-weight: 600;
}

/* Quote request (contact) */

.contact {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 60rem) {
  .contact {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
}

.quote fieldset {
  margin: 0 0 2rem;
  padding: 0;
  border: 0;
}

.quote legend,
.quote .label {
  display: block;
  margin-bottom: 0.7rem;
  padding: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.choice span {
  display: block;
  padding: 0.55em 1em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 500;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.choice input:hover + span {
  border-color: var(--green-600);
}

.choice input:checked + span {
  border-color: var(--green-600);
  background: var(--green-600);
  color: var(--white);
}

.choice input:focus-visible + span {
  outline: 3px solid var(--green-600);
  outline-offset: 2px;
}

.quote input[type="text"],
.quote textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.quote textarea {
  min-height: 8rem;
  resize: vertical;
}

.quote input[type="text"]:focus,
.quote textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(20, 128, 74, 0.18);
}

.quote ::placeholder {
  color: #75827c;
}

.quote .field {
  margin-bottom: 2rem;
}

.quote__note {
  max-width: 34em;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.quote__error {
  margin-bottom: 0.75rem;
  color: #b3261e;
  font-weight: 600;
}

.direct {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint);
}

.direct h2 {
  font-size: 1.25rem;
}

.direct p {
  margin-top: 0.6rem;
}

.direct__email {
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  padding-block: 3.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--green-900);
  color: #dbe7e1;
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
}

.site-footer .brand,
.site-footer .brand:hover {
  color: var(--white);
}

.site-footer h2 {
  margin-bottom: 0.8rem;
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0;
}

.site-footer li + li {
  margin-top: 0.4rem;
}

.site-footer a:not(.brand) {
  color: #dbe7e1;
  text-decoration: none;
}

.site-footer a:not(.brand):hover {
  color: var(--white);
  text-decoration: underline;
}

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

.site-footer__blurb {
  max-width: 24em;
  margin-top: 1rem;
}

.site-footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.95rem;
}

@media (min-width: 52rem) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* 404 */

.lost {
  min-height: 60vh;
  display: grid;
  align-content: center;
  padding-block: 4rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

.site-footer .brand rect {
  fill: var(--green-600);
}

/* Top bar */

.topbar {
  background: var(--green-900);
  color: #dbe7e1;
  font-size: 0.9rem;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
}

.topbar a {
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
}

.topbar a:hover {
  text-decoration: underline;
}

@media (max-width: 40rem) {
  .topbar span {
    display: none;
  }
}

/* Logo */

.brand {
  gap: 0.7rem;
}

.brand .brand__mark {
  width: 2.4rem;
  height: 2.4rem;
  fill: none;
  stroke-width: 6.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand__a {
  stroke: var(--green-900);
}

.brand__b {
  stroke: var(--green-600);
}

.brand__text {
  display: grid;
  line-height: 1;
}

.brand__name {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__sub {
  margin-top: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-700);
}

.site-footer .brand__a {
  stroke: var(--white);
}

.site-footer .brand__b {
  stroke: #4cc98a;
}

.site-footer .brand__sub {
  color: #dbe7e1;
}

.site-header__inner {
  min-height: 5rem;
}

/* Hero: full-width photo behind the headline */

.hero {
  position: relative;
  background: var(--green-900) url("img/hero.jpg") center / cover no-repeat;
  padding-block: clamp(4.5rem, 11vw, 9rem);
  color: #e8f0ec;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 38, 29, 0.96) 0%, rgba(7, 38, 29, 0.88) 42%, rgba(7, 38, 29, 0.45) 100%);
}

.hero > .wrap {
  position: relative;
}

.hero__text {
  max-width: 40rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  line-height: 1.08;
}

.hero .lede {
  margin-top: 1.4rem;
}

.btn--ghost {
  border-color: var(--white);
  background: transparent;
  color: var(--white);
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--green-900);
}

.hero :focus-visible {
  outline-color: var(--white);
}

@media (max-width: 46rem) {
  .hero::before {
    background: rgba(7, 38, 29, 0.9);
  }
}

/* Home / business tiles */

.audience {
  display: grid;
  gap: 1.5rem;
}

.audience__tile {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.audience__tile img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.audience__body {
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.audience__body h3 {
  font-size: 1.6rem;
}

.audience__body p {
  margin-top: 0.6rem;
}

.audience__body .ticks {
  margin-block: 1rem 1.75rem;
}

@media (min-width: 52rem) {
  .audience {
    grid-template-columns: 1fr 1fr;
  }
}

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

.band--tint a.card,
.band--tint .jump a {
  background: var(--white);
}

/* Motion: reveal on scroll.
   Elements are only hidden by script, and only when they start below the
   screen, so the full content is in the page for search engines and for
   visitors without JavaScript. */

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__text > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero__text > :nth-child(2) {
    animation-delay: 0.1s;
  }

  .hero__text > :nth-child(3) {
    animation-delay: 0.2s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Motion: hover */

.btn {
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(12, 59, 46, 0.16);
}

.btn:active {
  transform: none;
  box-shadow: none;
}

.card {
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

a.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(12, 59, 46, 0.1);
}

.card__icon {
  transition: background-color 0.2s, color 0.2s;
}

a.card:hover .card__icon {
  background: var(--green-600);
  color: var(--white);
}

a.card:hover .card__more {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.audience__tile {
  transition: box-shadow 0.25s, border-color 0.25s;
}

.audience__tile:hover {
  border-color: #c3d2ca;
  box-shadow: 0 12px 28px rgba(12, 59, 46, 0.1);
}

.audience__tile img {
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.audience__tile:hover img {
  transform: scale(1.04);
}

.jump a {
  transition: border-color 0.15s, color 0.15s;
}

@media (min-width: 54.01rem) {
  .site-nav a:not(.btn) {
    position: relative;
    border-bottom: 0;
  }

  .site-nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--green-600);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
  }

  .site-nav a:not(.btn):hover::after,
  .site-nav a[aria-current="page"]::after {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  a.card:hover,
  .audience__tile:hover img {
    transform: none;
  }
}
