:root {
  --bg: #f4f1eb;
  --surface: #ffffff;
  --surface-soft: #ebe8e1;
  --ink: #171717;
  --muted: #62665d;
  --line: #d9d4c9;
  --green: #315c32;
  --green-soft: #dff5a8;
  --violet: #5a20d8;
  --violet-dark: #35109b;
  --orange: #ff7a1a;
  --orange-soft: #ffe2c4;
  --shadow: 0 18px 60px rgba(23, 23, 23, 0.1);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  background: rgba(244, 241, 235, 0.88);
  backdrop-filter: blur(18px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-link strong,
.site-footer strong {
  display: block;
  font-size: 18px;
}

.brand-link small {
  display: block;
  max-width: 260px;
  color: var(--muted);
  font-size: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--green-soft);
  font-weight: 800;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav a,
.back-link,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.top-nav a {
  padding: 0 12px;
  color: var(--green);
}

.top-nav .nav-cta,
.button.primary {
  background: var(--green);
  color: #ffffff;
}

.button {
  border: 0;
  padding: 0 18px;
  cursor: pointer;
  font: inherit;
}

.button.ghost {
  border: 1px solid var(--green);
  color: var(--green);
  background: transparent;
}

.hero-section,
.section-band,
.question-section,
.page-head,
.service-hero,
.site-footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 46px 24px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  gap: 28px;
  align-items: stretch;
  min-height: 610px;
}

.hero-copy {
  display: flex;
  min-height: 560px;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

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

h1 {
  max-width: 760px;
  font-size: 56px;
}

h2 {
  font-size: 38px;
}

h3 {
  font-size: 22px;
}

.hero-copy > p:not(.eyebrow),
.page-head > p,
.service-hero-copy > p,
.question-section > div > p,
.text-split p {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}

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

.hero-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 24px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.category-tile {
  position: relative;
  display: flex;
  min-height: 240px;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  isolation: isolate;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: auto -30px -54px auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  z-index: -1;
}

.category-tile strong {
  max-width: 300px;
  font-size: 28px;
  line-height: 1;
}

.category-tile small {
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}

.tile-number {
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-weight: 800;
}

.category-violet {
  background: linear-gradient(135deg, var(--violet), var(--violet-dark));
  color: #ffffff;
}

.category-orange {
  background: linear-gradient(135deg, var(--orange), #fc9b37);
  color: #ffffff;
}

.category-green {
  background: linear-gradient(135deg, var(--green), #5d8341);
  color: #ffffff;
}

.category-all {
  background: #181818;
  color: #ffffff;
}

.section-band {
  border-top: 1px solid rgba(49, 92, 50, 0.14);
}

.section-band.muted {
  max-width: none;
  background: rgba(255, 255, 255, 0.42);
}

.section-band.muted > .section-heading,
.section-band.muted > .service-grid,
.section-band.muted > .work-grid,
.section-band.muted > .gallery-grid {
  max-width: var(--container);
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.category-grid,
.service-grid,
.review-grid,
.work-grid,
.gallery-grid {
  display: grid;
  gap: 14px;
}

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

.category-grid .category-tile {
  min-height: 230px;
}

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

.service-card,
.quote-card,
.work-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.service-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.card-media-link {
  text-decoration: none;
}

.visual {
  position: relative;
  display: grid;
  min-height: 190px;
  place-items: center;
  overflow: hidden;
  background: var(--surface-soft);
}

.visual img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.visual span {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: 48px;
  font-weight: 900;
}

.visual i,
.visual b {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.visual i {
  width: 160px;
  height: 160px;
  right: -42px;
  bottom: -54px;
}

.visual b {
  width: 90px;
  height: 90px;
  left: 28px;
  top: 28px;
}

.visual-violet {
  background: linear-gradient(135deg, var(--violet), #7d42f0);
}

.visual-orange {
  background: linear-gradient(135deg, var(--orange), #ffb456);
}

.visual-green {
  background: linear-gradient(135deg, var(--green), #86a84a);
}

.service-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.service-card-body h3 a {
  text-decoration: none;
}

.service-card-body p:not(.eyebrow),
.quote-card p,
.work-card p {
  margin: 0;
  color: var(--muted);
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.price-row strong {
  color: var(--green);
  font-size: 20px;
}

.price-row span {
  color: var(--muted);
  text-decoration: line-through;
}

.price-row em {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-style: normal;
  font-weight: 800;
}

.text-split,
.question-section,
.service-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: start;
}

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

.quote-card,
.work-card {
  padding: 22px;
}

.quote-card strong,
.quote-card span,
.work-card span {
  display: block;
}

.quote-card strong {
  margin-top: 18px;
}

.quote-card span,
.work-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.work-card h3 {
  margin: 16px 0 12px;
}

.question-section {
  align-items: stretch;
  margin-bottom: 34px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lead-form {
  display: grid;
  gap: 14px;
}

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

.form-field,
.checkbox-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.form-field.full,
.checkbox-field {
  grid-column: 1 / -1;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf7;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  padding: 12px 13px;
  outline: none;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(49, 92, 50, 0.14);
}

.checkbox-field {
  display: flex;
  align-items: center;
}

.checkbox-field input {
  width: 20px;
  min-height: 20px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.page-head {
  padding-top: 72px;
  padding-bottom: 26px;
}

.page-head h1 {
  margin-bottom: 18px;
}

.back-link {
  width: max-content;
  margin-bottom: 24px;
  padding: 0 13px;
  border: 1px solid var(--green);
  color: var(--green);
}

.service-hero {
  align-items: stretch;
  padding-top: 56px;
}

.service-hero-copy {
  display: flex;
  min-height: 460px;
  flex-direction: column;
  justify-content: center;
}

.service-hero .price-row {
  margin-top: 26px;
}

.large-visual {
  min-height: 460px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.large-visual img {
  min-height: 460px;
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
}

.text-page {
  max-width: 860px;
}

.text-page h2 {
  margin-top: 28px;
  font-size: 26px;
}

.text-page p {
  color: var(--muted);
  font-size: 18px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 32px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

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

.footer-grid span {
  display: block;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

  .top-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-section,
  .text-split,
  .question-section,
  .service-hero,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .service-hero-copy {
    min-height: auto;
  }

  .category-grid,
  .service-grid,
  .review-grid,
  .work-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 42px;
  }
}

@media (max-width: 680px) {
  .site-header,
  .hero-section,
  .section-band,
  .question-section,
  .page-head,
  .service-hero,
  .site-footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-board,
  .category-grid,
  .service-grid,
  .review-grid,
  .work-grid,
  .footer-grid,
  .form-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-board {
    padding: 12px;
  }

  .category-tile {
    min-height: 190px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 30px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}
