:root {
  --ink: #1c2418;
  --muted: #4f5b4c;
  --pine: #1e4636;
  --pine-2: #2f6b50;
  --leaf: #dceadf;
  --cream: #f4efe6;
  --paper: #fffdf8;
  --line: #d8cebc;
  --clay: #a24b2e;
  --shadow: 0 18px 40px rgba(28, 36, 24, 0.08);
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
}

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--pine);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 20;
}

.skip:focus {
  top: 1rem;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 239, 230, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.top__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo__mark {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--pine);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.nav {
  display: flex;
  gap: 1.15rem;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 1rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--pine);
}

.top__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.langs {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}

.langs button {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
}

.langs button[aria-pressed="true"] {
  background: var(--pine);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.btn--small {
  min-height: 2.4rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.95rem;
}

.btn--primary,
.btn--call {
  background: var(--pine);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--pine);
  box-shadow: inset 0 0 0 2px var(--pine);
}

.menu-btn {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0.4rem;
  cursor: pointer;
}

.menu-btn span:not(.sr-only) {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

.hero,
.promises,
.how,
.services,
.about,
.contact,
.trust {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
  scroll-margin-top: 5.5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pine-2);
  margin: 0 0 0.75rem;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.1rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

h3 {
  font-size: 1.35rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 36rem;
}

.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero__photo {
  margin: 0;
  position: relative;
}

.hero__photo img,
.about__photo img {
  width: 100%;
  height: min(34rem, 70vh);
  object-fit: cover;
  object-position: center 20%;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  background: var(--leaf);
}

.hero__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: var(--paper);
  padding: 0.7rem 1rem;
  border-radius: 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 0;
  padding-bottom: 1rem;
}

.trust p {
  margin: 0;
  background: var(--leaf);
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 1rem;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.cards {
  display: grid;
  gap: 1rem;
}

.cards--4 {
  grid-template-columns: repeat(4, 1fr);
}

.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards article {
  background: var(--paper);
  padding: 1.4rem 1.3rem 1.5rem;
  border-radius: 1.15rem;
  border: 1px solid var(--line);
}

.cards article span {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pine-2);
  margin-bottom: 1.1rem;
}

.cards p,
.steps p {
  margin: 0;
  color: var(--muted);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  counter-reset: step;
}

.steps li {
  background: var(--paper);
  border-radius: 1.15rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: var(--pine);
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service ul {
  margin: 0.4rem 0 0;
  padding: 0 0 0 1.1rem;
  color: var(--muted);
}

.service li + li {
  margin-top: 0.4rem;
}

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.about__photo {
  margin: 0;
}

.about__photo img {
  height: 28rem;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
}

.facts li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact dl {
  margin: 1.5rem 0 0;
}

.contact dl div {
  margin-bottom: 1rem;
}

.contact dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.contact dd {
  margin: 0.2rem 0 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.contact a {
  text-decoration: none;
}

.form {
  background: var(--paper);
  padding: 1.5rem;
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  display: grid;
  gap: 0.9rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.form input,
.form textarea {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: #fff;
}

.form__note,
.form__ok {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.form__ok {
  color: var(--pine);
  font-weight: 600;
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 6rem;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.95rem;
}

.mobile-call {
  display: none;
}

.agent {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.agent__launch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  padding: 0.55rem 1rem 0.55rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: var(--pine);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.agent__icon {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 40%, #fff 0 18%, transparent 19%),
    radial-gradient(circle at 65% 40%, #fff 0 18%, transparent 19%),
    #2f6b50;
}

.agent__panel {
  width: min(24rem, calc(100vw - 1.6rem));
  max-height: min(34rem, calc(100vh - 8rem));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.agent__panel[hidden] {
  display: none;
}

.agent__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem 0.8rem;
  border-bottom: 1px solid var(--line);
  background: var(--leaf);
}

.agent__kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pine-2);
}

.agent__head h2 {
  margin: 0.1rem 0 0;
  font-size: 1.25rem;
}

.agent__close {
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}

.agent__log {
  padding: 1rem;
  overflow: auto;
  display: grid;
  gap: 0.65rem;
  min-height: 12rem;
  min-width: 0;
}

.agent__msg {
  max-width: 92%;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 0.9rem;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.agent__msg--bot {
  background: var(--leaf);
}

.agent__msg--user {
  justify-self: end;
  background: var(--pine);
  color: #fff;
}

.agent__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.6rem;
}

.agent__chips button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.agent__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0 1rem 0.7rem;
}

.agent__form input {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
}

.agent__form .btn {
  min-height: 2.7rem;
  padding: 0.5rem 0.9rem;
}

.agent__disclaimer {
  margin: 0;
  padding: 0 1rem 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
}

html.agent-open .mobile-call,
html.agent-open .agent__launch {
  display: none;
}

@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1rem 1.25rem 1.2rem;
    border-bottom: 1px solid var(--line);
    gap: 0.85rem;
  }

  .nav.is-open {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  .btn--call {
    display: none;
  }

  .hero,
  .about,
  .contact,
  .cards--4,
  .cards--3,
  .steps,
  .trust {
    grid-template-columns: 1fr;
  }

  .hero__photo img,
  .about__photo img {
    height: 18rem;
  }

  .mobile-call {
    display: flex;
    position: fixed;
    left: 1rem;
    right: auto;
    bottom: max(0.9rem, env(safe-area-inset-bottom));
    width: calc(50% - 1.4rem);
    background: var(--pine);
    color: #fff;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    min-height: 3.2rem;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: var(--shadow);
    z-index: 12;
  }

  .agent {
    right: 1rem;
    bottom: max(0.9rem, env(safe-area-inset-bottom));
  }

  .agent__launch {
    width: calc(50vw - 1.4rem);
    justify-content: center;
    min-height: 3.2rem;
    box-sizing: border-box;
  }

  .agent__panel {
    max-height: min(32rem, calc(100vh - 9.5rem));
  }

  .footer {
    padding-bottom: 7.5rem;
  }

  html.agent-open .agent__launch {
    display: none;
  }
}

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