:root {
  color-scheme: light;
  --ink: #1f2d28;
  --muted: #65726b;
  --green: #176b52;
  --green-2: #7a8f55;
  --green-dark: #1f342c;
  --sage: #e4ede3;
  --paper: #f7f4ed;
  --paper-2: #fbfaf6;
  --line: #ded7ca;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(31, 45, 40, 0.13);
  --soft-shadow: 0 10px 28px rgba(31, 45, 40, 0.09);
  --radius: 8px;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Libre Baskerville", Georgia, serif;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-2);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

picture {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 84px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(31, 45, 40, 0.1);
  box-shadow: 0 10px 32px rgba(31, 45, 40, 0.06);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  width: min(300px, 58vw);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-left: auto;
  color: #415048;
  font-size: 14px;
  font-weight: 720;
}

.site-nav a,
.header-call {
  text-decoration: none;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--green);
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(31, 45, 40, 0.16);
}

.hero {
  min-height: min(740px, calc(100vh - 84px));
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(90deg, rgba(19, 31, 27, 0.8), rgba(19, 31, 27, 0.48) 45%, rgba(19, 31, 27, 0.76)),
    linear-gradient(rgba(13, 22, 18, 0.1), rgba(13, 22, 18, 0.2)),
    image-set(
      url("../img/hero.webp") type("image/webp"),
      url("../img/hero.jpg") type("image/jpeg")
    ) center / cover no-repeat;
  z-index: -1;
}

.hero-content {
  width: min(900px, calc(100% - 48px));
  padding: 76px 0;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.6);
}

.location {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

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

h1 {
  font-family: var(--font-heading);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 700;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
}

h3 {
  font-size: 23px;
  font-weight: 800;
}

.hero-lead {
  margin: 24px auto 0;
  font-size: clamp(20px, 2.4vw, 25px);
  font-weight: 700;
}

.hero-copy {
  margin: 30px auto 0;
  max-width: 820px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
}

.actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 30px;
  border: 2px solid var(--white);
  border-radius: 4px;
  color: var(--white);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
}

.button-primary {
  background: var(--green);
  border-color: var(--green);
}

.feature-strip {
  background: var(--green-dark);
  color: var(--white);
  padding: 28px 24px;
}

.feature-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px;
  text-align: center;
}

.feature-grid p {
  margin: 0;
  justify-self: center;
  max-width: 300px;
}

.feature-grid p::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #d8c891;
}

.feature-grid strong {
  display: block;
  font-weight: 800;
}

.feature-grid span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.76);
}

.section {
  padding: 90px 24px;
}

.section-paper {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), transparent 22%),
    var(--paper);
}

.section-sage {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent 28%),
    var(--sage);
}

.section-dark {
  background: var(--green-dark);
  color: var(--white);
}

.container {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.narrow {
  width: min(980px, 100%);
}

.section-header {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-header p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section-dark .section-header p,
.section-dark p,
.section-dark a {
  color: var(--white);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 70px rgba(31, 45, 40, 0.16);
}

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

.card h3,
.card p {
  padding: 0 24px;
}

.card h3 {
  margin-top: 26px;
}

.card p,
.card ul {
  margin-top: 18px;
}

.card ul {
  margin-bottom: 30px;
  padding: 0 24px 0 48px;
  color: #3f4d45;
}

.media-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
  margin-top: 42px;
}

.media-block + .media-block {
  margin-top: 28px;
}

.media-block picture,
.media-block img {
  width: 100%;
}

.media-block img {
  height: min(440px, 34vw);
  min-height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.media-copy {
  padding: 34px;
}

.media-copy p {
  color: var(--muted);
}

.info-box {
  border: 1px solid #d6d0c6;
  border-radius: var(--radius);
  background: var(--paper);
  padding: 34px;
  box-shadow: var(--soft-shadow);
}

.info-box ul {
  margin: 0;
  padding-left: 24px;
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.team-photo {
  margin: 0;
}

.team-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.team-copy {
  max-width: 620px;
}

.team-copy .section-header {
  margin: 0 0 28px;
  text-align: left;
}

.team-copy p {
  color: #44524a;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 58px;
  align-items: start;
}

.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  padding: 32px;
  background: rgba(255, 255, 255, 0.04);
}

.contact-card p {
  margin: 14px 0 0;
}

.site-footer {
  padding: 24px;
  text-align: center;
  background: #17231f;
  color: var(--white);
  font-size: 14px;
}

.site-footer a {
  color: var(--white);
}

.privacy-page {
  padding: 90px 24px;
}

.privacy-page h1 {
  color: var(--ink);
  font-size: clamp(36px, 5vw, 52px);
  font-family: var(--font-heading);
}

.privacy-page h2 {
  margin-top: 36px;
  font-size: 28px;
}

.privacy-page p,
.privacy-page li {
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .feature-grid,
  .cards,
  .contact-grid,
  .media-block,
  .team-layout {
    grid-template-columns: 1fr;
  }

  .media-block.reverse .media-copy {
    order: 2;
  }

  .media-block.reverse picture {
    order: 1;
  }

  .media-copy {
    padding: 4px 0 0;
  }

  .team-copy {
    max-width: none;
  }

  .team-copy .section-header {
    text-align: center;
  }

  .media-block img {
    height: 320px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 74px;
  }

  .header-inner {
    width: min(100% - 28px, 1180px);
    justify-content: center;
    gap: 12px;
  }

  .logo {
    width: min(260px, 78vw);
  }

  .header-call {
    display: none;
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    width: min(100% - 36px, 900px);
    padding: 58px 0;
  }

  h1 {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(34px, 9vw, 39px);
    line-height: 1.08;
  }

  .hero-lead {
    max-width: 290px;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
  }

  .hero-copy {
    max-width: 290px;
    font-size: 16px;
  }

  .location {
    font-size: 14px;
  }

  .section {
    padding: 64px 20px;
  }

  .feature-grid p {
    max-width: 280px;
  }

  .feature-grid p::before {
    margin: 0 auto 8px;
  }

  .card h3,
  .card p {
    padding-left: 20px;
    padding-right: 20px;
  }

  .card ul {
    padding-left: 42px;
    padding-right: 20px;
  }

  .actions {
    gap: 12px;
  }

  .button {
    width: 100%;
    max-width: 260px;
  }
}
