:root {
  --ink: #19211f;
  --muted: #5f6a66;
  --paper: #faf8f3;
  --surface: #ffffff;
  --line: #ded8cb;
  --accent: #1d5f4d;
  --accent-dark: #153c34;
  --rust: #b86b45;
  --shadow: 0 20px 70px rgb(25 33 31 / 14%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 65%), rgb(250 248 243 / 100%)),
    var(--paper);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgb(222 216 203 / 70%);
  background: rgb(250 248 243 / 82%);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.contact-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #f8f1e6;
  background: var(--accent-dark);
}

.nav-links {
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.text-link:hover,
.site-footer a:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, calc(100vh - 72px));
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-bg.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
  z-index: -2;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgb(250 248 243 / 94%) 0%, rgb(250 248 243 / 72%) 48%, rgb(250 248 243 / 16%) 100%),
    linear-gradient(180deg, rgb(250 248 243 / 10%), rgb(250 248 243 / 88%));
  z-index: -1;
}

.hero-content {
  width: min(720px, 100%);
  padding: clamp(74px, 11vw, 138px) clamp(20px, 6vw, 76px) clamp(82px, 10vw, 124px);
  align-self: center;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  overflow-wrap: normal;
  word-break: normal;
}

h1 {
  max-width: 680px;
  font-size: clamp(2.65rem, 7vw, 5.7rem);
  text-wrap: balance;
}

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

h3 {
  font-size: 1.25rem;
}

p {
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: #35413d;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 18px;
  font-weight: 750;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

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

.button.primary {
  color: #fffaf0;
  background: var(--accent-dark);
  box-shadow: 0 14px 34px rgb(21 60 52 / 22%);
}

.button.primary:hover {
  background: var(--accent);
}

.button.secondary {
  border-color: rgb(29 95 77 / 26%);
  color: var(--accent-dark);
  background: rgb(255 255 255 / 55%);
}

.section,
.contact-band {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: clamp(58px, 8vw, 96px) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.intro p:last-child {
  margin: 36px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

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

.service-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 38px rgb(25 33 31 / 7%);
}

.service-number {
  display: inline-block;
  margin-bottom: 48px;
  color: var(--rust);
  font-weight: 850;
}

.service-card p {
  margin: 16px 0 0;
  color: var(--muted);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: center;
  margin-bottom: clamp(42px, 7vw, 82px);
  padding: clamp(28px, 5vw, 54px);
  border-radius: 8px;
  color: #fff8ec;
  background:
    linear-gradient(135deg, rgb(21 60 52 / 96%), rgb(42 77 69 / 94%)),
    var(--accent-dark);
  box-shadow: var(--shadow);
}

.contact-band p {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgb(255 248 236 / 76%);
}

.contact-band .section-label {
  color: #e8b18c;
}

.contact-actions {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  justify-self: end;
}

.contact-actions .primary {
  background: #fff8ec;
  color: var(--accent-dark);
  box-shadow: none;
}

.text-link {
  color: rgb(255 248 236 / 78%);
  font-weight: 750;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: auto;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgb(250 248 243 / 92%) 0%, rgb(250 248 243 / 76%) 58%, rgb(250 248 243 / 95%) 100%);
  }

  .hero-content {
    padding-top: 76px;
  }

  .intro,
  .service-grid,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .intro p:last-child {
    margin-top: 0;
  }

  .contact-actions {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .nav-links {
    flex-wrap: wrap;
    gap: 12px 18px;
    justify-content: flex-start;
  }

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

  .button {
    padding-right: 14px;
    padding-left: 14px;
  }

  .service-card {
    min-height: 220px;
  }

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