/*
  Evorus Group website.

  The colors, type, artwork and words come from the WordPress site this
  replaces. The layout keeps that site's structure, tidied up: cards of equal
  size, even spacing between sections, and text that is easy to read
  everywhere, footer included.
*/

/* Poppins, self-hosted (SIL Open Font License 1.1, see /fonts). */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/poppins-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/poppins-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2");
}

:root {
  --navy: #1a2942;
  --navy-hover: #223659;
  --ink: #203e71;          /* larger lead text */
  --slate: #4a6396;        /* body text; a shade darker than the old site's, to read well on sage */
  --green: #4fa885;        /* the brand green, for marks and accents */
  --green-ink: #26704f;    /* green for text, dark enough to read */
  --green-tint: #e6f2e8;
  --sage: #dceadc;
  --sage-light: #f2f7f2;
  --line: #e3e8ee;
  --field: #f7f9fb;
  --field-line: #d9e1ea;
  --error: #b3261e;

  --shadow: 0 1px 2px rgba(26, 41, 66, 0.04), 0 12px 32px rgba(26, 41, 66, 0.07);
  --shadow-lift: 0 2px 6px rgba(26, 41, 66, 0.06), 0 22px 44px rgba(26, 41, 66, 0.12);
  --radius: 16px;

  /* Width of the content grid, and the inset and rounding of the sage panels. */
  --grid: 1100px;
  --band-inset: 30px;
  --band-radius: 28px;
  --header-height: 96px;
}
@media (min-width: 1441px) { :root { --grid: 1200px; } }
@media (max-width: 1200px) { :root { --grid: 960px; } }
@media (max-width: 1024px) {
  :root { --grid: 768px; --band-inset: 20px; --band-radius: 24px; --header-height: 72px; }
}
@media (max-width: 800px) { :root { --grid: calc(100% - 64px); } }
@media (max-width: 480px) {
  :root { --grid: calc(100% - 40px); --band-inset: 12px; --band-radius: 20px; }
}

/* Base */

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--slate);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

picture {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease-out;
}

button {
  font: inherit;
}

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

.grid {
  width: var(--grid);
  margin-inline: auto;
}

.icon {
  display: block;
  flex-shrink: 0;
  fill: currentColor;
}

.visually-hidden {
  position: absolute !important;
  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: 10001;
  padding: 10px 18px;
  font-weight: 600;
  color: #fff;
  background: var(--navy);
  border-radius: 10px;
}
.skip-link:focus {
  top: 16px;
}

/* Small capitals above a heading, led by a short green rule. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-ink);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

.section-title {
  margin-top: 14px;
  font-size: clamp(32px, 1.6vw + 20px, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--navy);
}

/* Buttons and links */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease-out, color 0.2s ease-out, box-shadow 0.2s ease-out;
}
.button:hover {
  background: var(--green-ink);
  box-shadow: 0 8px 20px rgba(38, 112, 79, 0.25);
}
.button--small {
  min-height: 44px;
  padding: 10px 22px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--navy);
}
.text-link .icon {
  width: 12px;
  height: 7px;
  transition: transform 0.2s ease-out;
}
.text-link:hover {
  color: var(--green-ink);
}
.text-link:hover .icon {
  transform: translateX(4px);
}

/* Header */

.site-header {
  position: relative;
  z-index: 100;
  background: #fff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  height: var(--header-height);
  padding: 0 48px;
}

.site-logo {
  display: block;
  flex-shrink: 0;
}
.site-logo img {
  display: block;
  width: auto;
  height: 30px;
}

.site-nav {
  margin-left: auto;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
}
.site-nav a:not(.button) {
  position: relative;
  display: block;
  padding: 6px 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--navy);
}
.site-nav a:not(.button)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease-out;
}
.site-nav a:not(.button):hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.site-nav__cta {
  margin-left: 4px;
}

/* The seven-dot menu button for small screens; the dots fold into a mirror image on hover. */
.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 10px;
  color: var(--navy);
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-toggle[aria-expanded="true"] {
  color: var(--green);
}
.dots {
  position: relative;
  display: block;
  width: 23px;
  height: 23px;
}
.dots i {
  position: absolute;
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  transition: transform 0.35s ease 0.1s;
}
.dots i:nth-child(1) { top: 0; left: 9px; }
.dots i:nth-child(2) { top: 0; right: 0; }
.dots i:nth-child(3) { top: 9px; left: 0; }
.dots i:nth-child(4) { top: 9px; left: 9px; background: var(--green); }
.dots i:nth-child(5) { top: 9px; right: 0; }
.dots i:nth-child(6) { bottom: 0; left: 0; }
.dots i:nth-child(7) { bottom: 0; left: 9px; }
.menu-toggle:hover .dots i { transition-delay: 0s; }
.menu-toggle:hover .dots i:nth-child(1) { transform: translate(9px, 9px); }
.menu-toggle:hover .dots i:nth-child(2) { transform: translate(0, 18px); }
.menu-toggle:hover .dots i:nth-child(5) { transform: translate(-9px, 9px); }
.menu-toggle:hover .dots i:nth-child(6) { transform: translate(0, -18px); }
.menu-toggle:hover .dots i:nth-child(7) { transform: translate(0, -18px); }

@media (max-width: 1024px) {
  .site-header__inner {
    padding: 0 14px 0 24px;
  }
  .site-logo img {
    height: 22px;
  }
  .menu-toggle {
    display: block;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - var(--header-height));
    margin: 0;
    padding: 4px 24px 24px;
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(26, 41, 66, 0.1);
  }
  .site-nav.is-open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav a:not(.button) {
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:not(.button)::after {
    display: none;
  }
  .site-nav a[aria-current="page"] {
    color: var(--green-ink);
  }
  .site-nav__cta {
    margin: 20px 0 0;
  }
  .site-nav__cta .button {
    width: 100%;
  }
}

/* Sage panels (the hero, the features, the story page's header) */

.band {
  margin: 0 var(--band-inset);
  background: var(--sage);
  border-radius: var(--band-radius);
}

/* Hero */

.hero {
  padding: 88px 0;
}

.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 56px;
  align-items: center;
}

.hero__media img {
  display: block;
  width: 100%;
}

.hero__title {
  margin-top: 16px;
  font-size: clamp(34px, 2.2vw + 14px, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--navy);
}

.hero__text {
  max-width: 34em;
  margin-top: 20px;
  font-size: 16px;
}

.hero__lead {
  max-width: 26em;
  margin-top: 18px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  margin-top: 28px;
}
.checklist li {
  position: relative;
  padding-left: 34px;
  line-height: 1.6;
}
.checklist li + li {
  margin-top: 12px;
}
.checklist__mark {
  position: absolute;
  top: 1px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--green-ink);
  background: rgba(79, 168, 133, 0.2);
  border-radius: 50%;
}
.checklist__mark .icon {
  width: 11px;
  height: 8.4px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 36px;
}

@media (max-width: 1024px) {
  .hero {
    padding: 64px 0 72px;
  }
  .hero__row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 40px;
  }
  .hero__media {
    max-width: 580px;
    margin: 0 auto;
  }
}

@media (max-width: 575px) {
  .hero {
    padding: 40px 0 48px;
  }
  .hero__text {
    font-size: 15px;
  }
  .hero__lead {
    font-size: 18px;
  }
  .checklist {
    grid-template-columns: minmax(0, 1fr);
  }
  .checklist ul + ul {
    margin-top: 12px;
  }
}

/* Pillar cards: a drawing, a title, text and a button bar, all the same size */

.pillars {
  padding: 88px 0 96px;
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.pillar {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.pillar:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-6px);
}

.pillar__image {
  padding-top: 44px;
}
.pillar__image img {
  display: block;
  margin: 0 auto;
}

.pillar__body {
  flex: 1;
  padding: 32px 36px 34px;
  text-align: center;
}

.pillar__title {
  font-size: 23px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--navy);
}

.pillar__text {
  margin-top: 12px;
}

.pillar__button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 66px;
  padding: 0 24px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--navy);
  border-top: 1px solid var(--line);
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
}
.pillar__button:hover {
  color: #fff;
  background: var(--navy);
}

/* Two arrows in one slot: on hover the first slides out to the right and the second slides in. */
.pillar__arrow {
  position: relative;
  display: block;
  width: 12px;
  height: 8px;
  margin: 1px 0 0 12px;
  overflow: hidden;
}
.pillar__arrow .icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 7.06px;
  transition: transform 0.25s ease-out 0.2s;
}
.pillar__arrow .icon + .icon {
  transform: translateX(-106%);
  transition-delay: 0s;
}
.pillar:hover .pillar__arrow .icon {
  transform: translateX(106%);
  transition-delay: 0s;
}
.pillar:hover .pillar__arrow .icon + .icon {
  transform: translateX(0);
  transition-delay: 0.2s;
}

@media (max-width: 1024px) {
  .pillars {
    padding: 72px 0 80px;
  }
  .pillars__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  /* The third card sits centered on its own row, the same size as the others. */
  .pillar:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 12px);
  }
}

@media (max-width: 700px) {
  .pillars {
    padding: 56px 0 64px;
  }
  .pillars__grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 440px;
    margin-inline: auto;
  }
  .pillar:last-child:nth-child(odd) {
    width: auto;
    justify-self: stretch;
  }
  .pillar__body {
    padding: 28px 28px 30px;
  }
}

/* Features: three cards of the same size, each with an icon */

.features {
  padding: 80px 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature {
  padding: 32px 32px 34px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: var(--green-ink);
  background: var(--green-tint);
  border-radius: 50%;
}
.feature__icon .icon {
  width: 24px;
  height: 24px;
}

.feature__title {
  margin-top: 22px;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--navy);
}

.feature__text {
  margin-top: 8px;
}

/* One column below tablet width, with the icon beside the text. */
@media (max-width: 1024px) {
  .features {
    padding: 56px 0;
  }
  .features__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    max-width: 640px;
    margin-inline: auto;
  }
  .feature {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 20px;
    padding: 26px 28px;
  }
  .feature__icon {
    grid-row: span 2;
  }
  .feature__title {
    margin-top: 0;
  }
  .feature__text {
    margin-top: 4px;
  }
}

/* Brands */

.brands {
  padding: 104px 0 112px;
  text-align: center;
}

.brands__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 56px auto 0;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 32px;
  background: var(--sage-light);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
a.brand:hover {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.brand img {
  display: block;
}

@media (max-width: 700px) {
  .brands {
    padding: 72px 0 80px;
  }
  .brands__list {
    gap: 12px;
    margin-top: 40px;
  }
  .brand {
    min-height: 140px;
    padding: 20px;
  }
}

/* Footer */

/* Navy, with light text and green accents. */
.site-footer {
  color: rgba(255, 255, 255, 0.86);
  background: var(--navy);
}
.site-footer :focus-visible {
  outline-color: #fff;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 48px;
  padding: 88px 0 64px;
}

.site-footer__logo {
  display: inline-block;
}
.site-footer__logo img {
  display: block;
  width: 200px;
}

.site-footer__tagline {
  max-width: 21em;
  margin-top: 20px;
  font-size: 15px;
}

.social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  transition: background-color 0.2s ease-out, color 0.2s ease-out, transform 0.2s ease-out;
}
.social a:hover {
  color: var(--navy);
  background: #fff;
  transform: translateY(-2px);
}
.social .icon {
  width: 15px;
  height: 15px;
}

.site-footer__heading {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.site-footer__links {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.2s ease-out, text-decoration-color 0.2s ease-out;
}
.site-footer__links a:hover {
  color: var(--green);
  text-decoration-color: var(--green);
}
.site-footer__links .icon {
  width: 16px;
  height: 11px;
  color: var(--green);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 24px 0 32px;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 860px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px 32px;
    padding: 64px 0 48px;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Back-to-top button */

.to-top {
  position: fixed;
  right: 27px;
  bottom: 27px;
  z-index: 900;
  width: 46px;
  height: 46px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0s 0.15s;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

.to-top__icon {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
  border-radius: 12px;
  /* The faint inner edge keeps the button visible over the navy footer. */
  box-shadow: 0 8px 20px rgba(26, 41, 66, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: background-color 0.2s ease-out;
}
.to-top:hover .to-top__icon {
  background: var(--green-ink);
}

.to-top__icon .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 13.5px;
  margin: -6.75px 0 0 -4px;
  transition: transform 0.2s ease-out 0.15s;
}
.to-top__icon .icon + .icon {
  transform: translateY(250%);
  transition-delay: 0s;
}
.to-top:hover .to-top__icon .icon {
  transform: translateY(-250%);
  transition-delay: 0s;
}
.to-top:hover .to-top__icon .icon + .icon {
  transform: translateY(0);
  transition-delay: 0.2s;
}

@media (max-width: 480px) {
  .to-top {
    right: 16px;
    bottom: 16px;
  }
}

/* "Contact Us" side panel */

.side-area {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9999;
  width: 500px;
  max-width: 100%;
  height: 100%;
  padding: 88px 56px 40px;
  overflow-y: auto;
  background: #fff;
  box-shadow: -16px 0 48px rgba(26, 41, 66, 0.12);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), visibility 0s 0.6s;
}
.side-area.is-open {
  transform: none;
  visibility: visible;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}
.side-area:focus {
  outline: 0;
}

.side-area-cover {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(26, 41, 66, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s 0.4s;
}
.side-area-open .side-area-cover {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease;
}
html.side-area-open {
  overflow: hidden;
}

.side-area__close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--navy);
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
}
.side-area__close i {
  position: absolute;
  top: 21px;
  left: 12px;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.side-area__close i:first-child { transform: rotate(45deg); }
.side-area__close i:last-child { transform: rotate(-45deg); }
.side-area__close:hover {
  color: var(--green-ink);
  background: var(--sage-light);
}

.side-area__title {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--navy);
}

.side-area__intro,
.story-contact__intro {
  margin-top: 8px;
}
.side-area__intro a,
.story-contact__intro a {
  font-weight: 500;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.side-area__intro a:hover,
.story-contact__intro a:hover {
  color: var(--green-ink);
}

@media (max-width: 560px) {
  .side-area {
    padding: 80px 24px 32px;
  }
  .side-area__close {
    top: 16px;
    right: 12px;
  }
}

/* Contact forms */

.contact-form {
  position: relative;
  margin-top: 28px;
}

.contact-form__fields {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form__label {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--navy);
}

.contact-form__optional {
  font-weight: 400;
  color: var(--slate);
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 15px;
  line-height: 24px;
  color: var(--navy);
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 12px;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out, background-color 0.2s ease-out;
}
.contact-form input:hover,
.contact-form textarea:hover {
  border-color: #c3cedb;
}
.contact-form input:focus,
.contact-form textarea:focus {
  background: #fff;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(79, 168, 133, 0.18);
}
.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}
.contact-form [aria-invalid="true"] {
  border-color: var(--error);
}

/* Cloudflare Turnstile's check: nothing to see unless it needs a click. */
.contact-form__check.is-visible {
  margin-top: 20px;
}

.contact-form__submit {
  width: 100%;
  margin-top: 24px;
}
.contact-form.is-sending .contact-form__submit {
  opacity: 0.7;
  cursor: progress;
}

.contact-form__tip {
  font-size: 13px;
  line-height: 1.4;
  color: var(--error);
}

.contact-form__status {
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #7a4d00;
  background: #fff6e5;
  border-radius: 10px;
}
.contact-form__status:empty {
  margin: 0;
  padding: 0;
}
.contact-form__status.is-sent {
  color: var(--green-ink);
  background: var(--green-tint);
}
.contact-form__status.is-failed {
  color: var(--error);
  background: #fdecea;
}

/* Hidden from people; a bot that fills it in is ignored. */
.contact-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Our Ingredient Story */

.page-hero {
  padding: 80px 0 176px;
  text-align: center;
}

.page-hero__title {
  margin-top: 16px;
  font-size: clamp(36px, 2.4vw + 16px, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--navy);
}

.page-hero__lead {
  max-width: 28em;
  margin: 18px auto 0;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
}

.story {
  position: relative;
  margin-top: -128px;
}

.story__photo {
  display: block;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: var(--shadow-lift);
}

.story__columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 56px;
  align-items: start;
  max-width: 960px;
  margin: 80px auto 0;
}

.story__drawing {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 24px;
  background: var(--sage-light);
  border-radius: var(--radius);
}
.story__drawing img {
  display: block;
}

.story__text p {
  font-size: 16px;
  line-height: 1.8;
}
.story__text p + p {
  margin-top: 16px;
}
.story__text p:first-child {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
}

.story-contact {
  padding: 96px 0 112px;
}

.story-contact__card {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.story-contact__title {
  font-size: clamp(28px, 1vw + 20px, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--navy);
}

/* On wider screens the story page's form puts name and email side by side. */
@media (min-width: 701px) {
  .contact-form--inline .contact-form__fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 20px;
  }
  .contact-form--inline .contact-form__fields label:nth-child(n + 3) {
    grid-column: 1 / -1;
  }
  .contact-form--inline .contact-form__submit {
    width: auto;
  }
}

@media (max-width: 1024px) {
  .page-hero {
    padding: 64px 0 144px;
  }
  .story {
    margin-top: -104px;
  }
}

@media (max-width: 700px) {
  .page-hero {
    padding: 48px 0 112px;
  }
  .page-hero__lead {
    font-size: 18px;
  }
  .story {
    margin-top: -72px;
  }
  .story__photo {
    border-radius: 16px;
  }
  .story__columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    margin-top: 48px;
  }
  .story__drawing {
    justify-self: center;
    padding: 20px 28px;
  }
  .story__drawing img {
    width: 110px;
  }
  .story__text p:first-child {
    font-size: 18px;
  }
  .story-contact {
    padding: 64px 0 72px;
  }
  .story-contact__card {
    padding: 28px 22px;
  }
}

/* Page not found */

.page--404 {
  background: var(--navy);
}
.page--404 .site-header {
  background: transparent;
}
.page--404 .site-nav a:not(.button),
.page--404 .menu-toggle {
  color: #fff;
}
.page--404 .site-nav .button {
  color: var(--navy);
  background: #fff;
}
.page--404 .site-nav .button:hover {
  color: #fff;
  background: var(--green-ink);
}

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
  padding: 0 32px var(--header-height);
  color: #fff;
  text-align: center;
}

.not-found__title {
  font-size: 200px;
  line-height: 1em;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.not-found__text {
  max-width: 34em;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.6;
}

.not-found__button {
  margin-top: 44px;
  color: var(--navy);
  background: #fff;
}
.not-found__button:hover {
  color: #fff;
}

@media (max-width: 1024px) {
  .page--404 .site-nav {
    background: var(--navy);
    border-top-color: var(--navy-hover);
  }
  .page--404 .site-nav a:not(.button) {
    border-bottom-color: var(--navy-hover);
  }
}

@media (max-width: 768px) {
  .not-found__title {
    font-size: 110px;
  }
}

/* Reply page from the contact form when JavaScript is off */

.form-reply {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--sage);
}
.form-reply__box {
  max-width: 520px;
  padding: 40px;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-reply__box a {
  display: inline-block;
  margin-top: 24px;
  font-weight: 600;
  color: var(--navy);
}
.form-reply__box a:hover {
  color: var(--green-ink);
}
