:root {
  --ink: #10211b;
  --muted: #607067;
  --line: #dbe4de;
  --paper: #f6f8f4;
  --white: #ffffff;
  --green: #176b43;
  --green-strong: #0d4f32;
  --leaf: #8fbd54;
  --blue: #24748c;
  --soil: #8b6848;
  --shadow: 0 20px 60px rgba(16, 33, 27, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(246, 248, 244, 0.92);
  border-bottom: 1px solid rgba(219, 228, 222, 0.8);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.hero-actions,
.site-footer,
.section-heading.split,
.cta-section {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  width: clamp(148px, 18vw, 190px);
  height: auto;
}

.nav {
  gap: clamp(14px, 3vw, 34px);
  color: #35443c;
  font-size: 0.95rem;
}

.nav a,
.header-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover,
.header-cta:hover {
  color: var(--green);
}

.header-cta {
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: clamp(620px, 88vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 26, 20, 0.88) 0%, rgba(8, 26, 20, 0.7) 38%, rgba(8, 26, 20, 0.18) 76%),
    linear-gradient(0deg, rgba(8, 26, 20, 0.4), rgba(8, 26, 20, 0.1));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 92px clamp(18px, 4vw, 34px) 118px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(3.1rem, 7vw, 6.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 590px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.12rem, 2vw, 1.4rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--white);
  background: var(--green);
}

.button.primary:hover {
  background: var(--green-strong);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
}

.button.dark {
  background: var(--ink);
}

.section {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: clamp(64px, 10vw, 108px) 0;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 34px;
}

.section-heading.split {
  max-width: none;
  justify-content: space-between;
  gap: 34px;
  align-items: flex-end;
}

.section-heading.split > div,
.section-heading.split > p {
  flex: 1;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.section-heading p,
.intro-grid p,
.about-copy p,
.cta-section p {
  color: var(--muted);
}

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

.intro-grid p {
  margin: 0;
  padding: 28px;
  border-left: 4px solid var(--green);
  background: var(--white);
  box-shadow: var(--shadow);
}

.segment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.segment-grid article,
.service,
.steps li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.segment-grid article {
  min-height: 150px;
  padding: 22px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 8px;
  color: var(--green);
  background: #eef6ea;
  border: 1px solid #dcebd6;
}

.card-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.segment-grid span,
.service-number,
.steps span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.segment-grid strong {
  display: block;
  margin-top: 12px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.services {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100vw - var(--max)) / 2));
  background: #eef4ef;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.service {
  grid-column: span 3;
  min-height: 250px;
  padding: 28px;
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.service .card-icon {
  margin-bottom: 0;
}

.service.featured {
  grid-column: span 6;
  display: grid;
  grid-template-columns: 0.4fr 1fr 1.4fr;
  gap: 24px;
  align-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-strong), var(--blue));
  border-color: transparent;
}

.service.featured .service-number,
.service.featured p {
  color: rgba(255, 255, 255, 0.82);
}

.service.featured .card-icon {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.service p,
.steps p,
.about-copy p {
  margin: 14px 0 0;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  min-height: 218px;
  padding: 28px;
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 42px;
}

.steps .card-icon {
  margin-bottom: 0;
}

.about-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(28px, 5vw, 60px);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(16, 33, 27, 0.96), rgba(23, 107, 67, 0.9)),
    repeating-linear-gradient(90deg, transparent 0 32px, rgba(255, 255, 255, 0.06) 32px 33px);
}

.about-panel .eyebrow {
  color: #b8dc7c;
}

.about-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.cta-section {
  justify-content: space-between;
  gap: 26px;
  width: min(100% - 36px, var(--max));
  margin: 0 auto clamp(60px, 8vw, 96px);
  padding: clamp(28px, 5vw, 52px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.cta-section > div {
  max-width: 720px;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
}

.site-footer {
  justify-content: space-between;
  gap: 28px;
  padding: 34px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.8);
  background: #0d1b17;
}

.site-footer strong {
  color: var(--white);
}

.site-footer p {
  margin: 6px 0 0;
}

address {
  font-style: normal;
  text-align: right;
}

.page-hero {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: clamp(92px, 14vw, 150px) 0 clamp(52px, 8vw, 86px);
}

.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.blog-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 0;
}

.post-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(16, 33, 27, 0.07);
}

.post-card.featured-post {
  grid-column: span 2;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-strong), var(--blue));
  border-color: transparent;
}

.post-card span {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.post-card.featured-post span,
.post-card.featured-post p {
  color: rgba(255, 255, 255, 0.82);
}

.post-card h2 {
  margin-top: 18px;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.12;
}

.post-card p {
  color: var(--muted);
}

.post-card a {
  margin-top: auto;
  color: var(--green);
  font-weight: 800;
}

.post-card.featured-post a {
  color: var(--white);
}

.post-page {
  width: min(100% - 36px, 880px);
  margin: 0 auto;
  padding: clamp(70px, 10vw, 118px) 0;
}

.post-article {
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.post-article h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 1.02;
}

.post-article h2 {
  margin-top: 42px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.post-article p,
.post-article li {
  color: #415148;
  font-size: 1.03rem;
}

.post-article ul {
  padding-left: 1.2rem;
}

.post-meta,
.back-link {
  color: var(--muted);
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  font-weight: 800;
}

.recovered-post {
  border-top: 6px solid var(--leaf);
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 26, 20, 0.92), rgba(8, 26, 20, 0.62)),
      linear-gradient(0deg, rgba(8, 26, 20, 0.34), rgba(8, 26, 20, 0.18));
  }

  .section-heading.split,
  .cta-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro-grid,
  .segment-grid,
  .blog-index,
  .steps,
  .about-panel {
    grid-template-columns: 1fr;
  }

  .segment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service,
  .service.featured {
    grid-column: span 6;
  }

  .service.featured {
    grid-template-columns: 1fr;
  }

  .post-card.featured-post {
    grid-column: span 1;
  }

  address {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 68px;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-logo {
    width: 138px;
  }

  .header-cta {
    padding-inline: 14px;
  }

  .nav {
    gap: 18px;
    justify-content: flex-start;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 640px;
  }

  .hero-content {
    padding-top: 72px;
    padding-bottom: 84px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 15vw, 4.2rem);
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .segment-grid {
    grid-template-columns: 1fr;
  }

  .service-list {
    display: block;
  }

  .service + .service {
    margin-top: 14px;
  }

  .intro-grid p,
  .service,
  .steps li,
  .about-panel,
  .cta-section {
    padding: 22px;
  }
}
