:root {
  --green: #0f3d2c;
  --green-hover: #145238;
  --green-dark: #0a2e21;
  --green-bullet: #1a6b49;
  --green-accent: #1f7f55;
  --ink: #111827;
  --text: #4b5563;
  --light: #d1d5db;
  --muted: #9ca3af;
  --border: #e5e7eb;
  --serif: "Playfair Display", Georgia, serif;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, hr, ul { margin: 0; }
h1, h2, h3, h4 { font: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
main { flex: 1 1 0%; padding-top: 4rem; }

.wrap {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: #fff;
  background: var(--green);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.site-name {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 500;
  letter-spacing: .025em;
}

#primary-nav {
  display: none;
  position: absolute;
  inset: 100% 0 auto;
  flex-direction: column;
  gap: .75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--green-hover);
  background: var(--green);
}

#primary-nav a, .site-footer a {
  color: var(--light);
  font-size: .875rem;
  line-height: 1.25rem;
  transition: color .2s cubic-bezier(.4, 0, .2, 1);
}

#primary-nav a { padding-block: .5rem; }
#primary-nav a:hover, .site-footer a:hover { color: #fff; }
#primary-nav [aria-current="page"] { color: #fff; font-weight: 500; }
.menu-toggle {
  padding: .5rem;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.menu-close, .menu-toggle[aria-expanded="true"] .menu-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close,
.menu-toggle[aria-expanded="true"] + #primary-nav { display: flex; }

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 60vh;
  min-height: 400px;
}

.hero-photo, .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-photo, .portrait img, .contact-photo img { object-fit: cover; }
.hero-shade { background: linear-gradient(to top, rgb(10 46 33 / 80%), rgb(10 46 33 / 40%), rgb(10 46 33 / 20%)); }
.hero-copy { position: relative; z-index: 10; padding-bottom: 3rem; }
.hero-label {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .25rem .75rem;
  color: #fff;
  background: var(--green);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.25rem;
}

.hero h1 {
  max-width: 48rem;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.875rem;
  font-weight: 300;
  line-height: 1.25;
}
.hero p {
  max-width: 42rem;
  margin-top: .75rem;
  color: var(--border);
  font-size: .875rem;
  line-height: 1.25rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1.25rem;
  border-radius: 9999px;
  color: #fff;
  background: var(--green);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.25rem;
  transition: background-color .2s cubic-bezier(.4, 0, .2, 1);
}
.pill:hover { background: var(--green-hover); }
.pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  color: var(--green);
  background: #fff;
  font-size: .75rem;
  line-height: 1rem;
}
.hero .pill { margin-top: 1.5rem; }
.home-about .pill { margin-top: 2rem; }

.section { padding-block: 4rem; }
.section-end { padding-bottom: 4rem; }
.section h2, .section-end h2, .policy h1, .specialisations h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 2rem;
}
.wide-copy { max-width: 56rem; line-height: 1.625; }
.home-about h2 { margin-bottom: 1.5rem; }
.home-services h2 { margin-bottom: .5rem; }
.home-services > p { margin-bottom: 2rem; }
.expertise-summary .intro, .team-intro { margin-bottom: 3rem; }

.service-grid, .team-grid, .contact-grid, .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.service-grid { gap: 1.25rem; }
.service-card, .person { overflow: hidden; border: 1px solid var(--border); }
.service-card > header {
  padding: 1rem 1.25rem;
  color: #fff;
  background: var(--green);
  text-align: center;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25rem;
}
.service-copy { padding: 1rem 1.25rem; font-size: .75rem; line-height: 1.625; }
.service-copy ul { padding: 0; list-style: none; }
.service-copy li { display: flex; align-items: flex-start; gap: .5rem; }
.service-copy li + li { margin-top: .375rem; }
.bullet { flex-shrink: 0; margin-top: .25rem; color: var(--green-bullet); }

.specialisations h2 { margin-bottom: 2.5rem; }
.specialisations-list > div + div { margin-top: 3rem; }
.specialisations h3, .contact-grid h2, .policy h1 {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.specialisations h3, .team h2, .mission h2, .contact-grid h2 { margin-bottom: 1rem; }
.specialisations hr { margin-top: 2rem; border: 0; border-top: 1px solid var(--border); }

.team-grid { gap: 2rem; }
.team-intro { max-width: 48rem; line-height: 1.625; }
.portrait { position: relative; aspect-ratio: 1; }
.portrait img, .contact-photo img { width: 100%; height: 100%; }
.person-details {
  position: absolute;
  inset: auto 0 0;
  padding: 1rem 1.25rem;
  color: #fff;
  background: #0f3d2ce6;
}
.person-details h3 { font-weight: 600; }
.person-details p { color: var(--light); font-size: .875rem; line-height: 1.25rem; }
.bio { padding: 1.25rem; font-size: .875rem; line-height: 1.625; }

.contact-grid { gap: 3rem; }
.contact-intro { margin-bottom: 2.5rem; line-height: 1.625; }
.contact-list { display: grid; gap: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item h3 {
  margin-bottom: .25rem;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25rem;
}
.contact-item p { line-height: 1.625; }
.contact-item a { transition: color .15s cubic-bezier(.4, 0, .2, 1); }
.contact-item a:hover { color: var(--green-hover); }
.contact-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
}
.phone-lines div + div { margin-top: .25rem; }
.phone-lines span { color: var(--muted); }
.contact-photo { display: none; }
.contact-photo img { border-radius: .125rem; }

.policy { padding-block: 6rem 4rem; }
.policy .wrap { max-width: 48rem; }
.policy h1 { margin-bottom: 2rem; }
.policy-copy { font-size: .875rem; line-height: 1.625; }
.policy-copy section + section { margin-top: 1.5rem; }
.policy-copy h2 {
  margin-bottom: .75rem;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.75rem;
}
.policy-copy ul { margin-top: .5rem; padding-left: 1.25rem; }
.policy-copy li + li { margin-top: .25rem; }
.policy-copy a { color: var(--green-hover); }
.policy-copy a:hover { text-decoration: underline; }

.site-footer { color: #fff; background: var(--green-dark); }
.footer-inner { padding-block: 3rem; }
.footer-logo { margin-bottom: 3rem; }
.footer-logo img { width: auto; height: 4rem; }
.footer-grid { gap: 2rem; padding-top: 2rem; border-top: 1px solid var(--green-hover); }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-main-nav a { padding-left: .75rem; border-left: 2px solid var(--green-accent); }
.site-footer h4 {
  margin-bottom: .75rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.footer-contact { color: var(--light); font-size: .875rem; line-height: 1.25rem; }
.footer-contact div + div { margin-top: .5rem; }
.footer-contact span { color: var(--muted); }
.footer-contact a { transition-duration: .15s; }

@media (min-width: 640px) {
  .service-grid, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  #primary-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0;
    border: 0;
  }
  #primary-nav a { padding: 0; }
  .hero-copy { padding-bottom: 4rem; }
  .hero h1 { font-size: 2.25rem; line-height: 2.5rem; }
  .hero p { font-size: 1rem; line-height: 1.5rem; }
  .section { padding-block: 5rem; }
  .section-end { padding-bottom: 5rem; }
  .section h2, .section-end h2 { font-size: 1.875rem; line-height: 2.25rem; }
  .intro { font-size: 1.125rem; line-height: 1.75rem; }
  .specialisations h3, .contact-grid h2, .policy h1 { font-size: 2.25rem; line-height: 2.5rem; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .wrap { padding-inline: 2rem; }
  .hero h1 { font-size: 3rem; line-height: 1; }
  .service-grid, .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5rem; }
  .contact-photo { display: block; }
}
