@font-face {
  font-family: 'DM Sans';
  src: url('dm-sans-regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('dm-sans-bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f5f7f1;
  --white: #fff;
  --ink: #18231e;
  --muted: #4b5a51;
  --accent: #116747;
  --forest: #102b21;
  --pale-green: #c7edcf;
  --line: #dce3dc;
  --accent-soft: #e6f4ec;
  --width: 76rem;
  --gutter: clamp(1.15rem, 5.4vw, 5rem);
  --header-height: 5rem;
  --header-offset: calc(var(--header-height) + 1px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-offset); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 'DM Sans', Arial, sans-serif; }
a { color: inherit; }
p, h1, h2, h3 { margin: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[id] { scroll-margin-top: 1.5rem; }
.wrap { width: min(var(--width), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip-link { position: fixed; z-index: 4; top: 1rem; left: 1rem; transform: translateY(-180%); background: var(--white); color: var(--accent); padding: .6rem 1rem; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 3; border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner, .footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.header-inner { min-height: var(--header-height); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; font-size: 1.8rem; font-weight: 700; letter-spacing: -.067em; line-height: 1; text-decoration: none; }
.brand img { margin-inline-end: .55rem; }
.brand span { color: #168557; }
h1 span, h2 span { color: var(--accent); }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem clamp(.9rem, 3vw, 2.5rem); }
.site-header nav a, .site-footer nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; font-size: .9rem; font-weight: 700; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .25em; }
.site-header .nav-contact { color: var(--accent); border: 1px solid #769d86; border-radius: 100vw; padding: .45rem 1rem; }
.nav-contact span { margin-inline-start: .4rem; }
.site-header .nav-contact:hover { background: var(--accent-soft); }
.site-header nav[hidden] { display: none; }
.menu-toggle:not([hidden]) { display: inline-flex; }
.menu-toggle { align-items: center; gap: .45rem; min-height: 2.75rem; padding: .45rem .8rem; border: 1px solid #769d86; border-radius: 100vw; background: var(--white); color: var(--accent); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: var(--accent-soft); }

.hero { background: var(--forest); color: var(--white); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(1.75rem, 5vw, 4.75rem); padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero-visual { aspect-ratio: 1.08; background: #254537; border-radius: 1.35rem; overflow: hidden; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .105em; line-height: 1.4; text-transform: uppercase; }
.eyebrow > span { width: .49rem; height: .49rem; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
h1, h2, h3 { font-weight: 700; }
h1 { margin-top: 1.2rem; font-size: clamp(2.75rem, 1.65rem + 3.7vw, 5.5rem); line-height: 1.04; letter-spacing: -.068em; }
h2 { margin-top: .9rem; font-size: clamp(2rem, 1.35rem + 2vw, 3.75rem); line-height: 1.12; letter-spacing: -.055em; }
.hero h1 em { display: block; color: var(--pale-green); font-style: normal; }
.hero .eyebrow, .hero .text-link span { color: var(--pale-green); }
.hero-description { max-width: 30rem; margin-top: 1.4rem; color: #e0eee3; font-size: 1.12rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.45rem; margin-top: 1.9rem; }
.button, .text-link { display: inline-flex; align-items: center; gap: .75rem; font-size: .9rem; font-weight: 700; text-decoration: none; }
.button { justify-content: center; min-height: 3.2rem; padding: .72rem 1.2rem; border-radius: 100vw; background: var(--accent); color: var(--white); }
.button:hover { background: #0b5538; }
.button span, .text-link span { line-height: 1; font-size: 1.12rem; }
.text-link { min-height: 2.75rem; padding-block: .55rem; }
.text-link:hover { color: var(--accent); }
.text-link span { color: var(--accent); }
.hero .text-link:hover { color: var(--pale-green); text-decoration: underline; text-underline-offset: .25em; }
.hero :focus-visible { outline-color: var(--pale-green); }

.services { padding-block: clamp(3.4rem, 6.8vw, 6.1rem); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 1.5vw, 1.35rem); margin-top: clamp(1.7rem, 3.6vw, 2.8rem); }
.service { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 1.2rem; padding: clamp(1.2rem, 2.35vw, 2rem); }
.service-icon { display: grid; place-items: center; width: 3.15rem; height: 3.15rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.service-icon svg { width: 1.55rem; height: 1.55rem; }
.service h3 { margin-top: 1.2rem; min-height: 2.45em; font-size: clamp(1.22rem, 1rem + .8vw, 1.65rem); line-height: 1.2; letter-spacing: -.035em; hyphens: auto; overflow-wrap: anywhere; }
.service p { color: var(--muted); margin-block: .7rem 1.4rem; }
.service-list { margin: auto 0 0; padding: 1rem 0 0 1.1rem; border-top: 1px solid var(--line); font-size: .94rem; }
.service-list li + li { margin-top: .35rem; }
.service-list li::marker { color: var(--accent); }

.collaboration { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 6rem); padding: clamp(1.45rem, 5vw, 4.25rem); background: var(--accent-soft); border-radius: 1.35rem; }
.section-description { margin-top: 1.2rem; max-width: 26rem; color: var(--muted); font-size: 1.1rem; }
.steps { margin: 0; padding-inline-start: 2.1rem; }
.steps li { padding: .9rem 0 .9rem .35rem; border-bottom: 1px solid #b8d3c2; }
.steps li:first-child { border-top: 1px solid #b8d3c2; }
.steps li::marker { color: var(--accent); font-weight: 700; }
.steps h3 { font-size: 1.15rem; letter-spacing: -.02em; }
.steps p { margin-top: .2rem; color: var(--muted); }

.contact { width: min(var(--width), calc(100% - 2 * var(--gutter))); margin: clamp(2rem, 6vw, 5rem) auto; padding: clamp(1.45rem, 5vw, 4.25rem); border-radius: 1.35rem; background: var(--forest); color: var(--white); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; gap: clamp(1.5rem, 5vw, 4.5rem); }
.contact .eyebrow { color: var(--pale-green); }
.contact-copy p:not(.eyebrow) { max-width: 25rem; margin-top: .9rem; color: #ebf8f0; }
.contact-panel { min-width: 0; padding: clamp(1.15rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--white); color: var(--ink); }
.button-light { max-width: 100%; background: var(--pale-green); color: var(--forest); }
.button-light:hover { background: var(--white); }
.site-footer { border-top: 1px solid var(--line); background: var(--white); }
.footer-inner { min-height: 6rem; }

.legal { width: min(46rem, calc(100% - 2 * var(--gutter))); min-height: 66vh; margin-inline: auto; padding-block: clamp(2.2rem, 6vw, 5rem); overflow-wrap: anywhere; }
.legal h1 { margin-block: 1rem 1.8rem; font-size: clamp(2.3rem, 6vw, 4.25rem); overflow-wrap: anywhere; }
.legal h2 { margin-top: 2.2rem; font-size: 1.45rem; letter-spacing: -.028em; }
.legal p, .legal address { margin-top: .8rem; color: var(--muted); }
.legal address { font-style: normal; }
.legal p a, .legal address a { color: var(--accent); text-underline-offset: .2em; }
.legal > h2:first-of-type { margin-top: 0; }

.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-field { display: grid; align-content: start; gap: .35rem; }
.form-message, .form-privacy, .contact-form button { grid-column: 1 / -1; }
.form-field label { font-weight: 700; }
.form-hint, .form-privacy { color: var(--muted); font-size: .875rem; }
.form-privacy a { color: var(--accent); text-underline-offset: .2em; }
.form-field input, .form-field textarea { width: 100%; min-height: 2.75rem; padding: .65rem .8rem; border: 1px solid #587266; border-radius: .5rem; background: var(--paper); color: var(--ink); font: inherit; }
.form-field textarea { resize: vertical; }
.form-field [aria-invalid="true"] { border-color: #9c251d; }
.form-field .form-error { color: #9c251d; font-weight: 700; }
.contact-form button { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.form-feedback { padding: 1rem; border: 2px solid #9c251d; border-radius: .55rem; overflow-wrap: anywhere; }
.form-feedback + .contact-form { margin-top: 1rem; }
.form-feedback p, .form-feedback ul { margin-top: .45rem; }
.form-feedback ul { margin-bottom: 0; }
.form-feedback a { color: var(--accent); text-decoration: underline; }
.form-success { border-color: var(--accent); background: var(--accent-soft); }

@media (max-width: 61rem) {
  .hero-inner { gap: 1.75rem; }
}

@media (max-width: 48rem) {
  :root { --header-height: 4.25rem; }
  :root:has(.menu-toggle[hidden]) { --header-offset: calc(var(--header-height) + 9.5rem); }
  .header-inner { gap: .55rem 1rem; padding-block: .65rem; }
  .site-header nav { width: 100%; align-items: stretch; flex-direction: column; gap: .15rem; border-top: 1px solid var(--line); padding-top: .45rem; }
  .menu-toggle:not([hidden]) + nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    max-height: calc(100dvh - var(--header-offset));
    overflow-y: auto;
    padding: .55rem var(--gutter) .75rem;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }
  .site-header nav a { padding: .45rem .8rem; }
  .site-header .nav-contact { align-self: start; }
  .hero-inner, .collaboration, .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { padding-top: 2.8rem; }
  .hero-visual { aspect-ratio: 1.4; }
  .service-grid { grid-template-columns: 1fr; }
  .service h3 { min-height: 0; }
}

@media (max-width: 31rem) {
  .contact-form { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { justify-content: flex-start; column-gap: 1.2rem; padding-block: 1.1rem; }
  .site-footer nav { width: 100%; }
}

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