:root {
  --brand: #24b34b;
  --green: #096532;
  --ink: #1c2620;
  --muted: #435049;
  --line: #d9e6db;
  --soft: #f4f8f4;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); }
a:focus-visible { outline: 3px solid #e1931f; outline-offset: .25rem; }
.container { width: min(100% - 3rem, 70rem); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 1;
  top: .5rem;
  left: .5rem;
  padding: .65rem 1rem;
  background: white;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { background: #fff; }
.header-inner {
  display: flex;
  min-height: 6.35rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.brand img { width: 13rem; }
nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}
nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: .35em; }

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(24rem, 38vw, 34rem);
  overflow: hidden;
  isolation: isolate;
  background: #1b2923;
  color: #fff;
}
.hero-photo, .hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-photo { object-fit: cover; object-position: center; }
.hero::after {
  content: "";
  background: linear-gradient(90deg, rgb(11 25 19 / 88%), rgb(11 25 19 / 66%) 41%, rgb(11 25 19 / 8%) 77%);
}
.hero-inner { padding-block: 3.75rem; }
.hero h1 {
  max-width: 12.5em;
  font-size: clamp(2.15rem, 4.6vw, 4rem);
  letter-spacing: -.045em;
  line-height: 1.1;
  text-wrap: balance;
}
.hero p { margin-block: 1rem 1.6rem; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.button {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  padding: .6rem 1.1rem;
  border-radius: .25rem;
  background: var(--brand);
  color: #102216;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: #43c967; }

.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section-heading { text-align: center; }
.section h2 {
  margin-block-end: .75rem;
  color: var(--green);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  letter-spacing: -.025em;
  line-height: 1.2;
}
.section-heading p { max-width: 42rem; margin-inline: auto; color: var(--muted); }
.services { background: var(--soft); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 2rem);
  margin: 2.15rem 0 0;
  padding: 0;
  list-style: none;
}
.service-grid li { padding: 1rem 0 0; border-top: 3px solid var(--brand); }
.service-grid h3 { margin-block-end: .4rem; font-size: 1.18rem; line-height: 1.3; }
.service-grid p { color: var(--muted); }
.contact-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-size: clamp(1rem, 2.8vw, 1.3rem);
  font-weight: 650;
  overflow-wrap: anywhere;
  text-underline-offset: .22em;
}
.contact-link:hover { color: #163b22; }

.footer { border-top: 1px solid var(--line); padding-block: 1.75rem; }
.footer-inner, .registration, .affiliations { display: flex; align-items: center; gap: 1rem; }
.footer-inner { justify-content: space-between; }
.footer p { color: var(--muted); font-size: .9rem; }
.footer .agent-number { color: var(--ink); font-weight: 700; }
.registration img { width: 3.25rem; }
.affiliations img { width: 3.15rem; }

@media (max-width: 55rem) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.6rem; }
}

@media (max-width: 40rem) {
  .container { width: calc(100% - 2rem); }
  .header-inner { flex-direction: column; justify-content: center; gap: .25rem; padding-top: .7rem; }
  .brand img { width: 10rem; }
  nav { justify-content: center; gap: min(5vw, 1.35rem); }
  nav a { white-space: nowrap; }
  .hero-photo { object-position: 61% center; }
  .hero::after { background: linear-gradient(90deg, rgb(11 25 19 / 88%), rgb(11 25 19 / 50%)); }
  .hero h1 { max-width: 14ch; }
  .footer-inner { flex-wrap: wrap; }
  .registration { gap: .65rem; }
}

@media (max-width: 25rem) {
  .service-grid { grid-template-columns: 1fr; }
}
