:root {
  --ink: #17211c;
  --muted: #5f6963;
  --paper: #f6f4ee;
  --white: #fffef9;
  --green: #1c4c38;
  --lime: #c9e36b;
  --line: rgba(23, 33, 28, 0.15);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.site-header,
main,
footer {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-family: Georgia, serif;
  font-size: 21px;
}

nav { display: flex; align-items: center; gap: 30px; }
nav a { text-decoration: none; font-size: 0.92rem; font-weight: 650; }
.nav-contact { padding: 9px 17px; border: 1px solid var(--ink); border-radius: 999px; }

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
  min-height: 690px;
  padding: 90px 0;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 { margin-top: 0; line-height: 1.05; letter-spacing: -0.045em; }
h1 { margin-bottom: 30px; font-family: Georgia, serif; font-size: clamp(3.6rem, 7vw, 6.8rem); font-weight: 500; }
h2 { font-family: Georgia, serif; font-size: clamp(2.3rem, 4vw, 4rem); font-weight: 500; }
h3 { margin-bottom: 14px; font-size: 1.35rem; }

.hero-text { max-width: 680px; margin: 0; color: var(--muted); font-size: 1.18rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.button { display: inline-block; padding: 13px 21px; border-radius: 999px; text-decoration: none; font-weight: 750; }
.button-primary { color: var(--white); background: var(--green); }
.button-secondary { border: 1px solid var(--line); background: rgba(255,255,255,0.35); }
.button-light { color: var(--green); background: var(--white); }

.hero-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 32px;
  background: var(--green);
  box-shadow: 0 28px 70px rgba(20, 44, 33, 0.2);
}

.signal { position: absolute; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; }
.signal-one { width: 360px; height: 360px; top: -150px; right: -90px; }
.signal-two { width: 290px; height: 290px; right: -20px; bottom: -120px; background: var(--lime); }
.signal-three { width: 90px; height: 90px; top: 48%; left: 18%; background: rgba(255,255,255,0.08); }
.hero-card-content { position: absolute; inset: auto 35px 34px; display: flex; gap: 9px; }
.hero-card-content span { padding: 7px 11px; border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; color: white; font-size: 0.78rem; }

.services { padding: 115px 0; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 0.4fr 1fr; gap: 40px; margin-bottom: 65px; }
.section-heading h2 { max-width: 800px; margin-bottom: 0; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.service-grid article { padding: 34px 26px 20px 0; border-right: 1px solid var(--line); }
.service-grid article:not(:first-child) { padding-left: 26px; }
.service-grid article:last-child { border-right: 0; }
.service-grid p { color: var(--muted); }
.service-number { display: block; margin-bottom: 65px; color: var(--green); font-size: 0.75rem; font-weight: 800; }

.approach { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 100px; padding: 115px 0; border-top: 1px solid var(--line); }
.approach-copy { max-width: 650px; color: var(--muted); font-size: 1.12rem; }
.approach-copy p:first-child { margin-top: 3px; }

.contact { margin-bottom: 80px; padding: 80px; border-radius: 32px; color: var(--white); background: var(--green); }
.contact .eyebrow { color: var(--lime); }
.contact h2 { margin-bottom: 18px; }
.contact > p:not(.eyebrow) { max-width: 570px; margin-bottom: 30px; color: rgba(255,255,255,0.76); font-size: 1.1rem; }

footer { display: grid; grid-template-columns: 1fr auto auto; gap: 45px; align-items: end; padding: 35px 0 50px; border-top: 1px solid var(--line); font-size: 0.88rem; }
footer p { margin: 4px 0 0; color: var(--muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { text-decoration: none; }
.copyright { white-space: nowrap; }

.legal { max-width: 780px; min-height: 70vh; padding: 90px 0; }
.legal h1 { font-size: clamp(3rem, 6vw, 5rem); }
.legal h2 { margin-top: 42px; font-family: inherit; font-size: 1.25rem; font-weight: 750; letter-spacing: -0.02em; }
.legal p { color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 45px; font-weight: 700; text-decoration: none; }

@media (max-width: 850px) {
  nav a:not(.nav-contact) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-card { min-height: 300px; }
  .section-heading, .approach { grid-template-columns: 1fr; gap: 24px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-grid article:nth-child(2) { border-right: 0; }
  .contact { padding: 55px 35px; }
  footer { grid-template-columns: 1fr auto; }
  .copyright { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
  .site-header, main, footer { width: min(calc(100% - 28px), var(--max)); }
  .site-header { min-height: 74px; }
  .brand { font-size: 0.92rem; }
  .hero { min-height: auto; gap: 55px; padding: 65px 0 85px; }
  h1 { font-size: 3.35rem; }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .services, .approach { padding: 85px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid article, .service-grid article:not(:first-child) { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .service-number { margin-bottom: 30px; }
  .contact { margin-bottom: 50px; padding: 45px 25px; }
  .contact .button { word-break: break-word; }
  footer { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .copyright { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
