:root {
  --forest: #123d32;
  --forest-deep: #09271f;
  --leaf: #2f8068;
  --lime: #d7e86a;
  --ink: #18251f;
  --muted: #63716a;
  --paper: #fbfaf5;
  --white: #ffffff;
  --line: rgba(18, 61, 50, 0.14);
  --shadow: 0 18px 45px rgba(20, 49, 38, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}
h1, h2, h3, h4, .brand-name, .main-nav, .btn, label, button { font-family: "Trebuchet MS", Arial, sans-serif; }
a {
  color: inherit;
  text-decoration: none;
}
img { max-width: 100%; display: block; }

.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251,250,245,0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.topbar-inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(42,87,42,0.18);
}
.brand-name {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--forest);
}
.main-nav ul {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  transition: all 0.2s ease;
}
.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--lime);
  color: var(--forest-deep);
  outline: none;
}

.page-hero {
  background: linear-gradient(105deg, rgba(9,39,31,0.92), rgba(18,61,50,0.5)),
    url('assets/hero.jpeg') center/cover no-repeat;
  color: #fff;
  padding: 120px 20px 110px;
}
.page-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.page-hero-inner h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.15;
}
.page-hero-inner p {
  margin: 0;
  font-size: 1.06rem;
  color: rgba(255,255,255,0.9);
}
.about-page-hero {
  background-image: linear-gradient(rgba(9,39,31,0.7), rgba(18,61,50,0.42)), url('assets/team.jpg');
}
.services-page-hero {
  background-image: linear-gradient(rgba(9,39,31,0.72), rgba(18,61,50,0.4)), url('assets/wheat.jpg');
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--leaf);
  font: 700 0.78rem/1.2 "Trebuchet MS", Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-heading-left {
  max-width: 680px;
  margin-bottom: 30px;
}
.section-heading-left .section-title {
  margin-bottom: 0;
}
.values-section {
  background: #f1f5ed;
}
.about-values-grid {
  grid-template-columns: repeat(3, 1fr);
}
.about-value-card {
  min-height: 250px;
  border: 0;
  border-radius: 20px;
  padding: 30px;
}
.value-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--forest);
  font: 700 1.2rem "Trebuchet MS", Arial, sans-serif;
}
.about-value-card h3 {
  margin-bottom: 12px;
}
.expertise-section {
  background: #fff;
}
.expertise-section .split-grid {
  align-items: stretch;
}
.expertise-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}
.expertise-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.expertise-list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 22px;
  color: var(--muted);
}
.expertise-list li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
}
.expertise-photo img {
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}
.team-section {
  background: #f8faf6;
}
.team-section .section-title {
  margin-bottom: 30px;
}
.services-intro {
  padding-bottom: 42px;
  text-align: center;
}
.services-intro .eyebrow,
.services-intro .section-title,
.services-lead {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
}
.services-lead {
  color: var(--muted);
  font-size: 1.08rem;
}
.service-areas-section {
  padding-top: 42px;
  background: #f2f6ef;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1040px;
  margin: 0 auto;
}
.service-card {
  padding: 30px;
  background: #fff;
  border: 1px solid #e0e9db;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(20,49,38,0.06);
}
.service-card-featured {
  grid-column: 1 / -1;
  max-width: calc(50% - 11px);
}
.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font: 700 0.8rem "Trebuchet MS", Arial, sans-serif;
}
.service-card h2 {
  margin: 0 0 18px;
  color: var(--forest);
  font-size: 1.45rem;
  line-height: 1.25;
}
.service-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-card li {
  position: relative;
  margin-top: 12px;
  padding-left: 30px;
  color: var(--ink);
}
.service-card li::before {
  content: "✓";
  position: absolute;
  top: 0.05em;
  left: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--leaf);
  color: #fff;
  font: 700 0.75rem Arial, sans-serif;
}
.key-areas-section {
  background: #fff;
}
.key-areas-heading {
  max-width: 760px;
  margin-bottom: 28px;
}
.service-details {
  max-width: 960px;
}
.service-details details {
  border-top: 1px solid var(--line);
}
.service-details details:last-child {
  border-bottom: 1px solid var(--line);
}
.service-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  color: var(--forest);
  font: 700 1.05rem/1.35 "Trebuchet MS", Arial, sans-serif;
  cursor: pointer;
  list-style: none;
}
.service-details summary::-webkit-details-marker { display: none; }
.service-details summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
}
.service-details details[open] summary::after { content: "-"; }
.service-details details p {
  max-width: 800px;
  margin: 0 0 22px;
  color: var(--muted);
}

.section {
  padding: 86px 0;
}
.section-title {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--forest);
}
.section-subtitle {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 1.02rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 15px 28px;
  border-radius: 8px;
  font-weight: 700;
  transition: transform 0.2s ease;
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}
.btn-primary {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 12px 24px rgba(18, 61, 50, 0.24);
}
.btn-secondary {
  background: var(--lime);
  color: var(--forest-deep);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 8px;
  padding: 30px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(20,49,38,0.15); }
.card-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--leaf);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 0.8rem "Trebuchet MS", Arial, sans-serif;
  letter-spacing: 0.08em;
  color: var(--leaf);
  margin-bottom: 14px;
}
.feature-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--lime);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  background: var(--lime);
  font: 700 0.9rem "Trebuchet MS", Arial, sans-serif;
  margin-bottom: 18px;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  color: var(--forest);
}
.card p {
  margin: 0;
  color: var(--muted);
}

.about-grid,
.split-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: center;
}
.about-grid > div,
.split-grid > div {
  flex: 1 1 300px;
}
.about-copy h2,
.split-copy h2 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--forest);
}
.about-copy p,
.split-copy p,
ul {
  color: var(--muted);
}
.about-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding-left: 18px;
}
.photo-box img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cta-strip {
  background: linear-gradient(rgba(9,39,31,0.86), rgba(18,61,50,0.72)),
    url('assets/wheat.jpg') center/cover no-repeat;
  padding: 120px 20px;
}
.cta-strip-inner {
  max-width: 1150px;
  margin: 0 auto;
  color: #fff;
}
.cta-strip-inner h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3vw, 3rem);
}
.cta-strip-inner p {
  margin: 0 0 26px;
  max-width: 720px;
  color: rgba(255,255,255,0.9);
}

.news-grid,
.project-grid,
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.news-item,
.project-item,
.link-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.news-item img,
.project-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.news-content,
.project-content,
.link-content {
  padding: 20px;
}
.news-content h3,
.project-content h3,
.link-content h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.45;
}
.news-content p,
.project-content p,
.link-content p {
  margin: 0;
  color: var(--muted);
}
.team-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 18px;
}

.form-box {
  background: #fff;
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
label {
  display: block;
  margin-bottom: 14px;
  font-weight: 600;
  color: var(--dark);
}
input,
textarea, select, button {
  font: inherit;
}
input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--dark);
}
textarea {
  min-height: 140px;
  resize: vertical;
}
fieldset {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}
legend {
  margin-bottom: 10px;
  color: var(--dark);
  font: 600 1rem "Trebuchet MS", Arial, sans-serif;
}
.required { color: #a33; }
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
}
.radio-group label,
.application-consent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 400;
}
.radio-group input,
.application-consent input {
  width: auto;
}
.application-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.application-section:first-of-type { padding-top: 0; }
.application-type-choice { margin: 0 0 8px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.company-fields[hidden], #personal-application-fields[hidden] { display: none; }
.application-section h3 {
  margin: 0 0 18px;
  color: var(--forest);
  font-size: 1.35rem;
}
.file-list-preview {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: .9rem;
}
.file-list-preview span {
  padding: 7px 10px;
  background: #f1f5ed;
  border-radius: 5px;
}
.file-upload-errors { color: #a33; }

.footer {
  background: var(--forest-deep);
  color: #fff;
  padding: 60px 20px 30px;
}
.footer-grid {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.footer-grid > div {
  flex: 1 1 220px;
}
.footer-grid img {
  width: 100px;
  margin-bottom: 16px;
}
.footer-grid h4 {
  margin-bottom: 14px;
  font-size: 1.12rem;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-grid li {
  margin-bottom: 10px;
  color: rgba(255,255,255,0.8);
}
.social-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.social-row a {
  background: var(--green-600);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-meta {
  max-width: 1150px;
  margin: 30px auto 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  text-align: center;
  color: rgba(255,255,255,0.8);
}

@media (max-width: 768px) {
  .topbar-inner {
    justify-content: center;
    text-align: center;
  }
  .brand { justify-content: center; }
  .main-nav ul { justify-content: center; }
  .page-hero { padding-top: 90px; }
  .btn { width: 100%; }
  .about-values-grid { grid-template-columns: 1fr; }
  .expertise-list { grid-template-columns: 1fr; gap: 0; }
  .expertise-photo img { min-height: 260px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card-featured { grid-column: auto; max-width: none; }
  .service-card { padding: 24px 20px; }
}
