:root {
  --ink: #17201e;
  --muted: #5d6863;
  --paper: #f7f4ed;
  --panel: #fffdf8;
  --line: #ded7ca;
  --sage: #526b60;
  --sage-dark: #263d36;
  --copper: #b66a3c;
  --blue: #223c56;
  --shadow: 0 24px 70px rgba(23, 32, 30, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px);
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.scrolled,
.site-header.open {
  color: var(--ink);
  background: rgba(247, 244, 237, 0.94);
  box-shadow: 0 10px 30px rgba(23, 32, 30, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: currentColor;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a {
  opacity: 0.9;
}

.main-nav a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 128px clamp(20px, 5vw, 72px) 46px;
  color: #fff;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 60% center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(20, 28, 26, 0.9), rgba(20, 28, 26, 0.55) 42%, rgba(20, 28, 26, 0.18) 72%),
    linear-gradient(0deg, rgba(20, 28, 26, 0.72), rgba(20, 28, 26, 0.02) 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  margin-bottom: clamp(28px, 8vh, 92px);
}

.eyebrow,
.section-label,
.feature-kicker {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2ba88;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.68;
}

.hero-copy {
  width: min(620px, 100%);
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

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

.primary {
  color: #fff;
  background: var(--sage-dark);
}

.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

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

.hero-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(900px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(18px);
}

.hero-panel div {
  min-height: 106px;
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-panel div:last-child {
  border-right: 0;
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel strong {
  margin-bottom: 18px;
  color: #f2ba88;
}

.hero-panel span {
  font-weight: 800;
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) 1fr;
  gap: clamp(28px, 6vw, 92px);
  background: var(--panel);
}

.intro-copy {
  max-width: 980px;
}

.intro-copy p {
  max-width: 760px;
  font-size: 1.08rem;
}

.section-heading {
  width: min(880px, 100%);
  margin-bottom: 42px;
}

.service-layout {
  display: grid;
  grid-template-columns: 220px minmax(280px, 0.8fr) 1fr;
  gap: 18px;
  align-items: stretch;
}

.service-tabs,
.service-feature,
.service-card,
.timeline article,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(23, 32, 30, 0.06);
}

.service-tabs {
  display: grid;
  align-content: start;
  overflow: hidden;
}

.service-tab {
  min-height: 72px;
  padding: 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.service-tab:last-child {
  border-bottom: 0;
}

.service-tab.active {
  color: #fff;
  background: var(--sage-dark);
}

.service-feature {
  padding: clamp(26px, 4vw, 40px);
  color: #fff;
  background: var(--blue);
}

.service-feature p,
.service-feature li {
  color: rgba(255, 255, 255, 0.78);
}

.service-feature h3 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.service-feature ul {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding-left: 20px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 260px;
  padding: 26px;
}

.service-card span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--copper);
  font-weight: 800;
}

.proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.stat {
  min-height: 210px;
  display: grid;
  place-content: center;
  padding: 28px;
  text-align: center;
  background: var(--sage-dark);
}

.stat strong {
  color: #fff;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 1;
}

.stat span {
  margin-top: 10px;
  color: #d8dfd8;
  font-weight: 800;
  text-transform: uppercase;
}

.process {
  background: var(--panel);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.timeline article {
  min-height: 300px;
  padding: 30px;
}

.timeline span {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 70px;
  border-radius: 50%;
  color: #fff;
  background: var(--copper);
  font-weight: 800;
}

.invoice-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(46px, 7vw, 76px) clamp(20px, 5vw, 72px);
  color: #fff;
  background: var(--sage-dark);
}

.invoice-band h2 {
  max-width: 680px;
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 4rem);
}

.invoice-band p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
}

.invoice-button {
  color: var(--ink);
  background: #fff;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 560px);
  gap: clamp(32px, 6vw, 84px);
}

.contact-copy {
  max-width: 650px;
}

.contact-details {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.contact-details p {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  margin: 0;
}

.contact-details strong {
  color: var(--ink);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: #d8dfd8;
  background: #141c1a;
}

.site-footer p {
  margin: 0;
  color: inherit;
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .service-layout {
    grid-template-columns: 1fr;
  }

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

  .service-tab {
    border-right: 1px solid var(--line);
    border-bottom: 0;
    text-align: center;
  }

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

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

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    right: 18px;
    display: none;
    width: min(260px, calc(100vw - 36px));
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: grid;
    gap: 8px;
  }

  .main-nav a {
    padding: 12px;
  }

  .hero {
    min-height: auto;
    padding-top: 116px;
  }

  .hero-image {
    object-position: 67% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(20, 28, 26, 0.92), rgba(20, 28, 26, 0.62)),
      linear-gradient(0deg, rgba(20, 28, 26, 0.74), rgba(20, 28, 26, 0.08) 48%);
  }

  .hero-panel,
  .intro,
  .proof,
  .timeline,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-panel div {
    min-height: 86px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  }

  .hero-panel div:last-child {
    border-bottom: 0;
  }

  .service-tabs,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-tab {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  .invoice-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 3rem;
  }

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

  .contact-details p {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
