:root {
  --dark-green: #0b210e;
  --green: #788475;
  --green-hover: #5d665a;
  --services-bg: #cfd2d0;
  --light-grey: #f2f4f9;
  --text: #0b210e;
  --black: #000;
  --serif: "Judson", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--black);
  background: #fff;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 5%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 2rem;
  border: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: var(--green-hover); }

/* ---------- Nav ---------- */
.nav { background: #fff; position: relative; z-index: 10; }
.nav .container { max-width: none; }
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 5rem;
}
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) {
  text-decoration: none; font-weight: 500; color: var(--dark-green);
}
.nav-links a:not(.btn):hover { color: var(--green); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--dark-green); margin: 5px 0;
}

/* ---------- Home hero ---------- */
.hero {
  background: var(--dark-green);
  color: #fff;
  text-align: center;
  padding: 11rem 0 8.5rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 3.5rem;
  line-height: 1.15;
  max-width: 26.5rem;
  margin: 0 auto 2rem;
}
.hero p { font-size: 1.125rem; margin: 0 0 2rem; }

/* ---------- Logo marquee ---------- */
.trusted { background: var(--green); color: #fff; overflow: hidden; }
.trusted h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-transform: capitalize;
  margin: 0;
  padding-top: 1rem;
}
.marquee { display: flex; gap: 3rem; overflow: hidden; }
.marquee-content {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 3rem;
  min-width: 100%;
  padding: 2rem 0 2.5rem;
  animation: scroll 30s linear infinite reverse;
}
.marquee-content img {
  filter: brightness(0%) contrast(200%) invert();
  object-fit: contain;
  width: 100%;
  max-width: 120px;
  max-height: 60px;
  transform: translateZ(0);
}
.marquee-content img.small { max-width: 90px; }
.marquee-content img.large { max-width: 180px; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 3rem)); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-content { animation: none; }
}

/* ---------- Services ---------- */
.services { background: var(--services-bg); padding: 5rem 0 5.5rem; }
.services h2, .page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.75rem;
  text-align: center;
  margin: 0 0 3.5rem;
  color: var(--black);
}
.bullet-list { list-style: none; padding: 0; margin: 0; }
.bullet-list li {
  display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 0.9rem;
}
.bullet-list li::before {
  content: "";
  flex: none;
  width: 22px; height: 20px; margin-top: 0.1rem;
  background: url("images/bullet.svg") center / contain no-repeat;
}
.services-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 4rem;
  max-width: 55rem; margin: 0 auto;
}

/* ---------- Team ---------- */
.page-section { padding: 7rem 0 6rem; }
.page-title { font-weight: 700; font-size: 3.5rem; margin-bottom: 1.5rem; color: var(--dark-green); }
.page-sub { text-align: center; font-size: 1.125rem; margin: 0 0 4.5rem; color: var(--dark-green); }
.team-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem;
  max-width: 72rem; margin: 0 auto;
}
.member { display: flex; flex-direction: column; align-items: center; }
.member.center { grid-column: 1 / -1; max-width: 32rem; margin: 0 auto; }
.member img {
  width: 350px; height: 350px; border-radius: 50%; object-fit: cover;
  filter: grayscale(100%);
}
.member h3 {
  font-family: var(--serif); font-weight: 700; font-size: 1.875rem;
  margin: 1.75rem 0 0.5rem; color: var(--dark-green); text-align: center;
}
.member .email { color: var(--dark-green); margin-bottom: 2rem; }
.member .bullet-list { color: var(--dark-green); font-size: 0.95rem; align-self: stretch; padding: 0 1rem; }

/* ---------- Contact ---------- */
.contact-section { padding: 8rem 0 7rem; }
.contact-section .page-title { color: var(--black); margin-bottom: 2rem; }
.contact-intro { text-align: center; font-size: 1.125rem; margin: 0 0 3.5rem; }
.contact-form { max-width: 35rem; margin: 0 auto; }
.contact-form label { display: block; margin-bottom: 0.5rem; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%;
  border: 1px solid #000; background: #fff;
  font: inherit; padding: 0.6rem 0.75rem;
  margin-bottom: 1.5rem; border-radius: 0;
}
.contact-form input { height: 2.75rem; }
.contact-form textarea { min-height: 11.25rem; resize: vertical; }
.contact-form .hidden { display: none; }
.form-msg { padding: 1.25rem; text-align: center; margin-top: 1rem; display: none; }
.form-msg.ok { background: #ecfdf3; display: block; }
.form-msg.err { background: #fef3f2; color: #b42318; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--light-grey); padding: 5rem 0 3.5rem; }
.footer-top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-bottom: 4.5rem; border-bottom: 1px solid #000;
}
.footer-logo img { width: 101px; height: auto; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--green); }
.copyright { text-align: center; font-size: 0.875rem; margin: 2rem 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero { padding: 8rem 0 6rem; }
  .team-grid { gap: 4rem 2rem; }
  .member img { width: 280px; height: 280px; }
}
@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    gap: 1.25rem; padding: 1.5rem 5% 2rem; border-top: 1px solid #eee;
  }
  .nav.open .nav-links { display: flex; }
  .nav-logo img { height: 30px; }
  .hero h1 { font-size: 2.5rem; }
  .services h2, .page-title { font-size: 2.25rem; }
  .services-grid, .team-grid { grid-template-columns: 1fr; }
  .services-grid { max-width: 22rem; }
  .member.center { grid-column: auto; }
  .page-section, .contact-section { padding: 4rem 0; }
  .marquee-content { gap: 2rem; }
  .footer-top { grid-template-columns: 1fr; justify-items: center; gap: 2rem; padding-bottom: 3rem; }
}
