:root {
  --ink: #171717;
  --muted: #626262;
  --line: #dedbd3;
  --paper: #f8f7f3;
  --surface: #ffffff;
  --sage: #63786b;
  --copper: #9f5d3a;
  --charcoal: #242424;
  --shadow: 0 24px 70px rgba(23, 23, 23, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.skip-link {
  left: 1rem;
  padding: .75rem 1rem;
  position: absolute;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 247, 243, .86);
  border-bottom: 1px solid rgba(222, 219, 211, .8);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 600;
}

.nav-links a {
  border-bottom: 1px solid transparent;
  padding-block: .35rem;
  transition: color .2s ease, border-color .2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--ink);
}

.nav-toggle {
  display: none;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .65fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: 6rem 5rem;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--sage);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(3.2rem, 8vw, 6.9rem);
  line-height: .95;
  letter-spacing: 0;
  max-width: 980px;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: .75rem;
  font-size: 1.25rem;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 650px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--ink);
  padding: .85rem 1.1rem;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
}

.button.secondary {
  background: transparent;
}

.hero-panel {
  align-self: stretch;
  min-height: 440px;
  background:
    linear-gradient(135deg, rgba(99, 120, 107, .16), transparent 38%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.panel-top,
.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.panel-top span,
.metric-row span {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}

.metric-row {
  border-block: 1px solid var(--line);
  padding-block: 1.5rem;
}

.metric-row div {
  display: grid;
  gap: .35rem;
}

.metric-row strong {
  font-size: 2.5rem;
  line-height: 1;
}

.report-lines {
  display: grid;
  gap: 1rem;
}

.report-lines span {
  display: block;
  height: 14px;
  background: #e8e4da;
  border-radius: 999px;
}

.report-lines span:nth-child(2) {
  width: 84%;
}

.report-lines span:nth-child(3) {
  width: 62%;
}

.report-lines span:nth-child(4) {
  width: 76%;
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--surface);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(23, 23, 23, .28);
}

.service-card.accent {
  background: #f1f3ee;
}

.service-number,
.card-link {
  color: var(--copper);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.service-card p,
.split p,
.feature-stack p,
.prose p,
.cta-band p,
.contact-panel p {
  color: var(--muted);
}

.muted {
  background: #eeece5;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.page-hero {
  padding-block: clamp(5rem, 12vw, 9rem) clamp(3rem, 8vw, 6rem);
}

.narrow {
  max-width: 920px;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
}

.feature-list {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(280px, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}

.feature-stack {
  display: grid;
  gap: 1rem;
}

.feature-stack article,
.contact-panel {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-band p {
  max-width: 640px;
}

.intake-layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(320px, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.intake-layout p {
  color: var(--muted);
}

.intake-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(23, 23, 23, .07);
}

.intake-form label {
  display: grid;
  gap: .45rem;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 800;
}

.intake-form input,
.intake-form select,
.intake-form textarea {
  width: 100%;
  border: 1px solid #ccc7bc;
  border-radius: 6px;
  background: #fbfaf7;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  padding: .85rem .9rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.intake-form textarea {
  resize: vertical;
  min-height: 180px;
}

.intake-form input:focus,
.intake-form select:focus,
.intake-form textarea:focus {
  outline: none;
  border-color: var(--sage);
  background: white;
  box-shadow: 0 0 0 4px rgba(99, 120, 107, .14);
}

.intake-form button {
  width: fit-content;
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
}

.form-status.success {
  color: var(--sage);
}

.form-status.error {
  color: #9f3a3a;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 1.2rem;
  border: 1px solid var(--sage);
  border-radius: 999px;
  padding: .7rem 1rem;
  color: var(--sage);
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.whatsapp-link:hover {
  transform: translateY(-2px);
  background: var(--sage);
  color: white;
}

.whatsapp-link[aria-disabled="true"] {
  border-color: var(--line);
  color: var(--muted);
  pointer-events: none;
}

.prose {
  max-width: 820px;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.3rem;
  line-height: 1.2;
}

.legal p {
  margin-bottom: 1.25rem;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
}

@media (max-width: 780px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: 64px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: var(--surface);
    display: grid;
    place-items: center;
    gap: 0;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
  }

  .nav-links {
    position: absolute;
    inset: 64px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: .9rem;
    box-shadow: var(--shadow);
  }

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

  .hero,
  .service-grid,
  .split,
  .feature-list,
  .intake-layout,
  .cta-band,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-block: 4rem;
  }

  .hero-panel {
    min-height: 320px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .cta-band,
  .contact-panel,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}
