:root {
  --ink: #17221c;
  --muted-ink: #5c665f;
  --pine: #173f35;
  --moss: #6f8a4f;
  --copper: #b46d3d;
  --sky: #dbeaf1;
  --paper: #f7f4ee;
  --white: #ffffff;
  --line: rgba(23, 34, 28, 0.14);
  --shadow: 0 24px 60px rgba(16, 28, 22, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(10, 19, 14, 0.74), rgba(10, 19, 14, 0));
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
}

.nav-links {
  gap: clamp(12px, 3vw, 28px);
  font-size: 0.94rem;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  padding: 128px clamp(20px, 6vw, 80px) 86px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 18, 13, 0.88) 0%, rgba(8, 18, 13, 0.62) 48%, rgba(8, 18, 13, 0.24) 100%),
    linear-gradient(0deg, rgba(8, 18, 13, 0.84) 0%, rgba(8, 18, 13, 0) 38%);
}

.hero-content {
  position: relative;
  max-width: 860px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  color: #f0c797;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

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

h1 {
  max-width: 980px;
  font-size: clamp(2.5rem, 6.6vw, 6.2rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  font-size: 1.25rem;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button,
.chat-form button,
.quick-prompts button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.button {
  padding: 0 20px;
}

.primary {
  background: var(--copper);
  color: var(--white);
}

.secondary {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.intro-band {
  background: var(--pine);
  color: var(--white);
  padding: clamp(34px, 5vw, 60px) clamp(20px, 6vw, 80px);
}

.intro-grid,
.section,
.site-footer {
  max-width: 1180px;
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: end;
}

.intro-grid p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.section {
  padding: clamp(64px, 8vw, 108px) clamp(20px, 5vw, 56px);
}

.muted {
  max-width: none;
  background: #ebe7dd;
}

.muted > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(260px, 0.75fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.section-heading p {
  margin: 0;
  color: var(--muted-ink);
}

.section-kicker {
  color: var(--copper);
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: flex-start;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(25, 42, 33, 0.08);
}

.card-number {
  color: var(--moss);
  font-weight: 900;
}

.service-card p,
.example-item p,
.process-steps p,
.assistant-copy p,
.contact-copy p {
  color: var(--muted-ink);
}

.example-list {
  display: grid;
  gap: 14px;
}

.example-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.example-item:last-child {
  border-bottom: 1px solid var(--line);
}

.example-item span {
  padding: 9px 12px;
  background: var(--sky);
  color: #214558;
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.process-section {
  padding-top: clamp(56px, 7vw, 86px);
  padding-bottom: clamp(56px, 7vw, 86px);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.process-steps div {
  padding-top: 18px;
  border-top: 3px solid var(--moss);
}

.process-steps strong {
  font-size: 1.3rem;
}

.assistant-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.assistant-copy p,
.contact-copy p {
  font-size: 1.04rem;
}

.contact-details {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  color: var(--pine);
  font-weight: 800;
}

.contact-details a {
  width: fit-content;
  color: var(--copper);
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.quick-prompts button {
  min-height: 38px;
  padding: 0 12px;
  background: #e9efe7;
  color: var(--pine);
  border: 1px solid rgba(23, 63, 53, 0.18);
}

.chat-shell,
.lead-form {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.chat-shell {
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--pine);
  color: var(--white);
}

.chat-header span:not(.status-dot) {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: #83d59d;
}

.chat-messages {
  height: 370px;
  overflow: auto;
  padding: 18px;
  background: #fbfaf7;
}

.message {
  max-width: 86%;
  margin-bottom: 12px;
  padding: 12px 14px;
}

.message p {
  margin: 0;
}

.message.bot {
  background: #e8eee7;
  color: var(--ink);
}

.message.user {
  margin-left: auto;
  background: var(--pine);
  color: var(--white);
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  border-top: 1px solid var(--line);
}

.chat-form input {
  min-width: 0;
  border: 0;
  padding: 16px;
  outline: none;
}

.chat-form button {
  min-width: 86px;
  background: var(--copper);
  color: var(--white);
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.form-row {
  display: grid;
  gap: 7px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row label {
  font-weight: 800;
  color: var(--pine);
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfaf7;
  padding: 12px;
  color: var(--ink);
  outline-color: var(--moss);
}

.form-submit {
  width: 100%;
}

.form-note {
  margin: 0;
  color: var(--muted-ink);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 34px clamp(20px, 5vw, 56px);
  color: var(--muted-ink);
  border-top: 1px solid var(--line);
}

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

@media (max-width: 840px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav-links {
    gap: 10px;
    font-size: 0.84rem;
  }

  .hero {
    min-height: 82vh;
    padding-top: 112px;
  }

  .intro-grid,
  .section-heading,
  .card-grid.three,
  .process-steps,
  .assistant-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .example-item {
    grid-template-columns: 1fr;
  }

  .example-item span {
    justify-self: start;
  }

  .chat-messages {
    height: 340px;
  }

  .message {
    max-width: 94%;
  }

  .site-footer {
    flex-direction: column;
  }
}
