:root {
  --green: #1f9d4d;
  --green-dark: #0f5f35;
  --ink: #17231b;
  --muted: #617065;
  --line: #dfe7e1;
  --paper: #ffffff;
  --mist: #f5f8f4;
  --gold: #c59a35;
  --clay: #a4573f;
  --shadow: 0 24px 60px rgba(20, 40, 27, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

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

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

.section-alt {
  background: var(--mist);
}

.section-anchor {
  scroll-margin-top: 104px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 800;
}

h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

p {
  margin: 16px 0 0;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 231, 225, 0.8);
  backdrop-filter: blur(16px);
}

.topbar {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 8px 20px;
  color: #f7fff9;
  background: var(--green-dark);
  font-size: 0.82rem;
}

.topbar span,
.topbar a {
  white-space: nowrap;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
}

.brand img {
  width: 152px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.93rem;
  font-weight: 700;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--green);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.nav-cta,
.button-primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 24px rgba(31, 157, 77, 0.22);
}

.button-light {
  color: var(--ink);
  background: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 110px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

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

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 31, 20, 0.88), rgba(12, 31, 20, 0.55), rgba(12, 31, 20, 0.25)),
    linear-gradient(0deg, rgba(12, 31, 20, 0.42), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 90px 0 115px;
}

.hero .eyebrow,
.contact-cta .eyebrow {
  color: #b8f2cb;
}

.hero-copy {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.split-reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.image-card,
.wide-image,
.portrait-card,
.gallery-grid figure,
.news-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.image-card img,
.wide-image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-heading p {
  font-size: 1.05rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.timeline-panel {
  grid-column: 1 / -1;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 18px;
}

.timeline strong {
  display: inline-block;
  color: var(--green-dark);
  font-size: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  min-height: 292px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--clay);
  font-weight: 800;
}

.service-card p {
  font-size: 0.96rem;
}

.service-feature {
  background: linear-gradient(180deg, #fff 0%, #f8fbf7 100%);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 4px #dff4e6;
}

.client-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.tab-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.tab-button.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.logo-grid img {
  width: 100%;
  height: 112px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  object-fit: contain;
}

.logo-grid img.is-hidden {
  display: none;
}

.team-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 58px;
  align-items: center;
}

.portrait-card img {
  width: 100%;
  height: 510px;
  object-fit: cover;
  object-position: center top;
}

.credentials {
  color: var(--green-dark);
  font-weight: 800;
}

.expertise-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.expertise-list span {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--mist);
  font-weight: 800;
  font-size: 0.9rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 16px 18px 18px;
  font-weight: 800;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 34px;
}

.news-card {
  display: grid;
  grid-template-columns: 180px 1fr;
}

.news-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.news-card div {
  padding: 24px;
}

.contact-cta {
  padding: 92px 0;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(15, 95, 53, 0.96), rgba(23, 35, 27, 0.92)),
    url("../trust-consult-profile-images/page-12-image-03-326e4f566f8f.png") center / cover;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  color: #fff;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 0.82rem;
}

.map-section iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.site-footer {
  color: rgba(255, 255, 255, 0.75);
  background: #111913;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.9fr 1fr;
  gap: 42px;
  padding: 62px 0;
}

.footer-logo {
  width: 150px;
  margin-bottom: 18px;
  padding: 10px;
  border-radius: var(--radius);
  background: #fff;
}

.site-footer h3 {
  margin-bottom: 16px;
  color: #fff;
  font-size: 1rem;
}

.site-footer a {
  display: block;
  margin-top: 9px;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.66);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1050px) {
  .topbar {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .nav-cta {
    margin-top: 8px;
  }

  .services-grid,
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .split-reverse,
  .team-layout,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .team-layout {
    gap: 34px;
  }

  .portrait-card {
    max-width: 420px;
  }

  .news-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container,
  .navbar,
  .footer-bottom {
    width: min(100% - 28px, 1160px);
  }

  .section,
  .contact-cta {
    padding: 64px 0;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding: 84px 0;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(12, 31, 20, 0.92), rgba(12, 31, 20, 0.72));
  }

  .hero-actions,
  .client-tabs,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .about-grid,
  .timeline,
  .services-grid,
  .logo-grid {
    grid-template-columns: 1fr;
  }

  .image-card img,
  .wide-image img,
  .portrait-card img {
    height: auto;
    max-height: none;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .news-card img {
    height: 220px;
  }

  .contact-form {
    padding: 20px;
  }
}
