:root {
  --fm-forest: #203c31;
  --fm-ink: #253b32;
  --fm-mint: #dcebcf;
  --fm-stone: #f6f6f1;
  --fm-soft: #e7ede1;
  --fm-grey: #667068;
  --fm-line: #dce1d9;
  --fm-white: #fcfcfa;
  --fm-error: #a33333;
  --fm-container: 1350px;
  --fm-gutter: clamp(20px, 4vw, 48px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fm-stone);
  color: var(--fm-ink);
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.fm-menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 22px;
  color: var(--fm-forest);
  font-family: "Roboto Slab", serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 1050px;
  font-size: clamp(44px, 5.2vw, 72px);
}

h2 {
  font-size: clamp(34px, 3.5vw, 48px);
}

h3 {
  font-size: clamp(23px, 2vw, 31px);
}

h1 span,
h2 span {
  color: #5d7462;
}

p {
  margin: 0 0 18px;
}

.fm-container,
.fm-section > *,
.fm-page-hero > *,
.fm-home-hero > * {
  width: min(calc(100% - (2 * var(--fm-gutter))), var(--fm-container));
  margin-inline: auto;
}

.fm-skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  padding: 10px 16px;
  background: var(--fm-forest);
  color: white;
}

.fm-skip-link:focus {
  transform: none;
}

.fm-site-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--fm-line);
  background: rgba(246, 246, 241, 0.96);
}

.fm-header-inner {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.fm-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--fm-forest);
  line-height: 1.2;
  text-decoration: none;
}

.fm-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.fm-brand span {
  display: grid;
  gap: 5px;
}

.fm-brand strong {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.fm-brand small {
  font-size: 8px;
  letter-spacing: 0.16em;
}

.fm-primary-nav,
.fm-menu {
  display: flex;
  align-items: center;
}

.fm-primary-nav {
  gap: 35px;
}

.fm-menu {
  gap: 35px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fm-menu a {
  position: relative;
  text-decoration: none;
}

.fm-menu a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.fm-menu a:hover::after,
.fm-menu .current-menu-item a::after {
  transform: scaleX(1);
  transform-origin: left;
}

.fm-header-cta,
.fm-button,
.wp-block-button.fm-button .wp-block-button__link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 26px;
  border: 0;
  border-radius: 3px;
  background: var(--fm-forest);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  padding: 0 22px;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.fm-header-cta:hover,
.fm-button:hover,
.wp-block-button.fm-button .wp-block-button__link:hover {
  background: #375447;
  transform: translateY(-2px);
}

.fm-menu-toggle {
  display: none;
}

.fm-home-hero {
  padding: clamp(60px, 7vw, 105px) 0 0;
}

.fm-kicker,
.fm-smallcaps {
  color: var(--fm-forest);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fm-kicker::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 10px 2px 0;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.fm-page-hero .fm-kicker::before,
.fm-section .fm-kicker::before {
  display: none;
}

.fm-lead {
  max-width: 650px;
  color: var(--fm-grey);
  font-size: 16px;
}

.fm-actions {
  gap: 16px;
  margin: 28px 0 40px;
}

.wp-block-button.fm-link-button .wp-block-button__link {
  border: 0;
  background: transparent;
  color: var(--fm-ink);
  font-weight: 700;
  text-decoration: none;
}

.fm-hero-image {
  width: min(calc(100% - (2 * var(--fm-gutter))), 1080px);
  margin-left: auto;
}

.fm-hero-image img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.fm-proof-row {
  gap: 16px;
  margin-top: 18px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--fm-line);
  font-size: 12px;
}

.fm-proof-row p {
  margin: 0;
}

.fm-section {
  padding: clamp(75px, 9vw, 130px) 0;
}

.fm-page-hero {
  padding: clamp(70px, 8vw, 115px) 0;
  background: var(--fm-soft);
}

.fm-page-hero .fm-lead {
  max-width: 760px;
}

.fm-page-hero h1 {
  max-width: 1000px;
}

.fm-section-intro {
  max-width: 560px;
  color: var(--fm-grey);
  font-size: 16px;
}

.fm-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 50px;
}

.fm-service-card {
  position: relative;
  min-height: 350px;
  padding: 48px;
  border-top: 1px solid var(--fm-line);
}

.fm-service-card:nth-child(odd) {
  border-right: 1px solid var(--fm-line);
}

.fm-service-card p {
  color: var(--fm-grey);
}

.fm-service-card a,
.fm-text-link {
  color: var(--fm-ink);
  font-weight: 700;
  text-decoration: none;
}

.fm-number {
  color: #7b8c75 !important;
  font-family: "Roboto Slab", serif;
  font-size: 28px;
}

.fm-feature {
  background: var(--fm-forest);
  color: #dce5df;
}

.fm-feature h2,
.fm-feature h3,
.fm-feature .fm-kicker,
.fm-feature a {
  color: #fff;
}

.fm-feature h2 span {
  color: var(--fm-mint);
}

.fm-feature .wp-block-columns {
  gap: clamp(40px, 7vw, 100px);
}

.fm-feature .wp-block-image img {
  min-height: 500px;
  object-fit: cover;
}

.fm-process {
  background: #f0f2eb;
}

.fm-process h2 {
  max-width: 800px;
}

.fm-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 55px;
}

.fm-process-step {
  min-height: 270px;
  padding: 30px;
  border-top: 1px solid #b9c6b7;
  border-right: 1px solid #b9c6b7;
}

.fm-process-step:last-child {
  border-right: 0;
}

.fm-process-step p:last-child {
  color: var(--fm-grey);
}

.fm-contact-cta {
  background: var(--fm-soft);
}

.fm-contact-cta > .wp-block-columns {
  gap: clamp(50px, 9vw, 140px);
}

.fm-contact-cta h2 {
  max-width: 480px;
}

.fm-contact-cta .wp-block-column:first-child > p:not(.fm-kicker):not(.fm-smallcaps) {
  max-width: 420px;
  color: var(--fm-grey);
}

.fm-smallcaps {
  margin-top: 42px;
  font-size: 9px;
}

.fm-contact-form,
.fm-contact-form label {
  display: grid;
  gap: 7px;
}

.fm-contact-form {
  gap: 16px;
}

.fm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.fm-contact-form label span {
  font-size: 12px;
  font-weight: 600;
}

.fm-contact-form input,
.fm-contact-form textarea {
  width: 100%;
  border: 1px solid #ccd5c7;
  border-radius: 2px;
  outline: 0;
  background: var(--fm-white);
  color: var(--fm-ink);
  font: inherit;
  padding: 14px;
  transition: border 180ms ease, box-shadow 180ms ease;
}

.fm-contact-form input:focus,
.fm-contact-form textarea:focus {
  border-color: var(--fm-forest);
  box-shadow: 0 0 0 3px rgba(32, 60, 49, 0.12);
}

.fm-contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.fm-form-privacy {
  color: #7a8179;
  font-size: 11px;
}

.fm-form-message {
  margin-bottom: 20px;
  border-left: 3px solid var(--fm-forest);
  background: rgba(255, 255, 255, 0.65);
  padding: 14px 16px;
}

.fm-form-error {
  border-color: var(--fm-error);
  color: var(--fm-error);
}

.fm-honeypot {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(1px, 1px, 1px, 1px);
}

.fm-service-list {
  padding-top: 50px;
}

.fm-service-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1.2fr) minmax(320px, 0.9fr);
  gap: 40px;
  padding: 58px 0;
  border-bottom: 1px solid var(--fm-line);
  scroll-margin-top: 30px;
}

.fm-service-row-number {
  color: #7b8c75;
  font-family: "Roboto Slab", serif;
  font-size: 28px;
}

.fm-service-row-copy p:not(.fm-kicker) {
  max-width: 570px;
  color: var(--fm-grey);
}

.fm-service-row-points ul {
  margin: 28px 0 35px;
  padding: 0;
  list-style: none;
}

.fm-service-row-points li {
  margin: 0 0 14px;
}

.fm-about .wp-block-columns {
  gap: clamp(50px, 8vw, 100px);
}

.fm-about .wp-block-column:first-child {
  flex-basis: 50%;
}

.fm-about .wp-block-column:last-child {
  flex-basis: 50%;
}

.fm-about h3 {
  margin: 25px 0 5px;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.fm-about p {
  color: var(--fm-grey);
}

.fm-about .fm-kicker {
  color: var(--fm-forest);
}

.fm-about figcaption {
  margin-top: 12px;
  color: #7a8179;
  font-size: 11px;
}

.fm-site-footer {
  padding: 45px 0;
  background: var(--fm-stone);
}

.fm-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
}

.fm-footer-inner p {
  margin: 0;
  color: var(--fm-grey);
  font-size: 11px;
}

.fm-footer-menu {
  display: flex;
  gap: 35px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fm-footer-menu a {
  text-decoration: none;
}

.fm-copyright {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--fm-line);
}

@media (max-width: 900px) {
  .fm-header-inner {
    min-height: 82px;
  }

  .fm-brand {
    gap: 10px;
  }

  .fm-brand img {
    width: 32px;
    height: 32px;
  }

  .fm-brand strong {
    font-size: 16px;
  }

  .fm-brand small {
    font-size: 7px;
  }

  .fm-menu-toggle {
    display: grid;
    width: 46px;
    height: 46px;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--fm-line);
    background: transparent;
  }

  .fm-menu-toggle span:not(.screen-reader-text) {
    display: block;
    width: 20px;
    height: 1px;
    background: var(--fm-forest);
  }

  .fm-primary-nav {
    position: fixed;
    top: 82px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 28px;
    background: var(--fm-stone);
    padding: 40px var(--fm-gutter);
  }

  .fm-primary-nav.is-open {
    display: flex;
  }

  .fm-menu {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .fm-menu a {
    display: block;
    border-bottom: 1px solid var(--fm-line);
    font-family: "Roboto Slab", serif;
    font-size: 32px;
    padding: 15px 0;
  }

  .fm-header-cta {
    align-self: flex-start;
  }

  .fm-service-grid,
  .fm-process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fm-process-step:nth-child(2) {
    border-right: 0;
  }

  .fm-service-row {
    grid-template-columns: 60px 1fr;
  }

  .fm-service-row-points {
    grid-column: 2;
  }
}

@media (max-width: 650px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .fm-home-hero,
  .fm-page-hero {
    padding-top: 58px;
  }

  .fm-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .fm-actions .wp-block-button,
  .fm-actions .wp-block-button__link {
    width: 100%;
  }

  .fm-hero-image {
    width: min(calc(100% - var(--fm-gutter)), 1080px);
    margin-right: 0;
  }

  .fm-hero-image img {
    min-height: 280px;
  }

  .fm-proof-row,
  .fm-service-grid,
  .fm-process-grid,
  .fm-form-grid,
  .fm-footer-inner {
    grid-template-columns: 1fr;
  }

  .fm-service-card {
    min-height: auto;
    padding: 35px 0;
    border-right: 0 !important;
  }

  .fm-process-step {
    min-height: auto;
    border-right: 0;
  }

  .fm-feature .wp-block-columns,
  .fm-about .wp-block-columns {
    flex-direction: column;
  }

  .fm-feature .wp-block-image img {
    min-height: 320px;
  }

  .fm-service-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .fm-service-row-points {
    grid-column: auto;
  }

  .fm-footer-menu {
    flex-wrap: wrap;
    gap: 15px 25px;
  }
}

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

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

