:root {
  --background: #f8f4ee;
  --foreground: #102120;
  --muted: #5f675f;
  --panel: #fffaf2;
  --ink: #102120;
  --evergreen: #112121;
  --evergreen-soft: #18302e;
  --gold: #e2bc8f;
  --gold-light: #f6d3a5;
  --copper: #c79a67;
  --sage: #5f7d70;
  --line: #d8c9b5;
  --shadow: 0 18px 60px rgb(16 33 32 / 16%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-optical-sizing: auto;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  min-height: 68px;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgb(226 188 143 / 24%);
  background: rgb(17 33 33 / 92%);
  padding: 14px clamp(18px, 4vw, 54px);
  color: #ffffff;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
  font-size: clamp(1rem, 1vw + 0.8rem, 1.2rem);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid rgb(226 188 143 / 50%);
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgb(0 0 0 / 22%);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  color: rgb(255 255 255 / 82%);
  font-size: 0.95rem;
  font-weight: 700;
}

nav a,
.header-cta,
.button,
.contact-panel a {
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: #ffffff;
}

.header-cta {
  min-width: 104px;
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: 6px;
  padding: 10px 14px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 800;
}

.header-cta:hover,
.header-cta:focus-visible {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: calc(87svh - 68px);
  overflow: hidden;
  color: #ffffff;
}

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

.hero-media {
  z-index: -2;
  background: var(--evergreen);
}

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

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgb(16 33 32 / 90%) 0%, rgb(16 33 32 / 72%) 42%, rgb(16 33 32 / 24%) 100%),
    linear-gradient(0deg, rgb(16 33 32 / 24%), rgb(16 33 32 / 10%));
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  align-self: center;
  padding: clamp(30px, 4vw, 54px) 0 clamp(28px, 4vw, 48px);
  margin-left: clamp(18px, 6vw, 88px);
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .section-kicker {
  color: var(--gold-light);
}

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

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

h1 {
  max-width: 720px;
  font-size: clamp(2.5rem, 5.6vw, 5.7rem);
  line-height: 0.98;
  font-weight: 900;
}

h2 {
  font-size: clamp(2rem, 3.2vw, 3.6rem);
  line-height: 1.05;
  font-weight: 900;
}

h3 {
  font-size: clamp(1.1rem, 1vw + 0.9rem, 1.5rem);
  line-height: 1.18;
  font-weight: 850;
}

.hero-copy {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgb(255 255 255 / 84%);
  font-size: clamp(1.05rem, 1vw + 0.8rem, 1.32rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 13px 18px;
  font-weight: 850;
}

.button:hover,
.button:focus-visible,
.contact-panel a:hover,
.contact-panel a:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--gold);
  color: var(--ink);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--gold-light);
}

.button.secondary {
  border-color: rgb(255 255 255 / 40%);
  background: rgb(255 255 255 / 10%);
  color: #ffffff;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: #ffffff;
  background: rgb(255 255 255 / 18%);
}

.hero-stats {
  display: grid;
  max-width: 620px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(18px, 3vw, 28px) 0 0;
  overflow: hidden;
  border: 1px solid rgb(226 188 143 / 28%);
  border-radius: 8px;
  background: rgb(226 188 143 / 16%);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-badges .badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgb(226 188 143 / 45%);
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
  padding: 8px 16px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
}

.hero-stats div {
  min-width: 0;
  padding: 16px;
  background: rgb(17 33 33 / 66%);
}

.hero-stats dt {
  font-size: clamp(1.35rem, 2.5vw, 2.15rem);
  font-weight: 900;
  line-height: 1;
}

.hero-stats dd {
  margin: 7px 0 0;
  color: rgb(255 255 255 / 72%);
  font-size: 0.84rem;
  line-height: 1.25;
}

.trust-band {
  border-block: 1px solid var(--line);
  background: #fffaf2;
}

.trust-inner {
  display: flex;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: none;
}

.trust-inner::-webkit-scrollbar {
  display: none;
}

.trust-inner span {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf0df;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 9vw, 112px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.75fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(28px, 5vw, 46px);
}

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

.section-heading p:not(.section-kicker),
.diagnostic-copy p:not(.section-kicker),
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 0.7vw + 0.9rem, 1.18rem);
  line-height: 1.7;
}

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

.service-card,
.process-step,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.service-card {
  min-height: 300px;
  padding: 24px;
  box-shadow: 0 12px 36px rgb(17 24 39 / 7%);
}

.service-card > p:first-child {
  margin: 0 0 12px;
  color: var(--sage);
  font-size: 0.79rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.service-card > p:last-child,
.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.62;
}

.card-rule {
  display: block;
  width: 42px;
  height: 4px;
  margin: 22px 0;
  background: var(--copper);
}

.diagnostic-band {
  display: grid;
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, #fffaf2 0%, #fffaf2 50%, #e7ddd0 50%, #e7ddd0 100%);
  padding-inline: max(18px, calc((100vw - 1180px) / 2));
}

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

.diagnostic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.diagnostic-list li {
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgb(199 154 103 / 32%);
  border-radius: 8px;
  background: rgb(255 250 242 / 86%);
  padding: 14px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.3;
}

.diagnostic-list span {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  background: var(--evergreen-soft);
  box-shadow: 6px 6px 0 var(--gold);
}

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

.process-step {
  padding: 24px;
}

.process-step span {
  display: block;
  margin-bottom: 38px;
  color: var(--sage);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 900;
}

.process-step h3 {
  margin-bottom: 14px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
}

.contact-panel {
  padding: 10px;
  box-shadow: var(--shadow);
}

.contact-panel a {
  display: grid;
  gap: 6px;
  border-radius: 6px;
  padding: 18px;
}

.contact-panel a + a {
  border-top: 1px solid var(--line);
}

.contact-panel a:hover,
.contact-panel a:focus-visible {
  background: #f7ead7;
}

.contact-panel span {
  color: var(--evergreen-soft);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-panel strong {
  color: var(--ink);
  font-size: clamp(1.05rem, 1vw + 0.9rem, 1.35rem);
  overflow-wrap: anywhere;
}

.contact-panel p {
  margin: 8px 0 0;
  border-top: 1px solid var(--line);
  padding: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.quote-form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-field label {
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--copper);
  outline-offset: 1px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.form-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.thank-you p {
  max-width: 620px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: calc(84svh - 68px);
  }

  .hero-content {
    width: min(680px, calc(100% - 32px));
    margin-left: clamp(16px, 5vw, 48px);
  }

  .section-heading,
  .diagnostic-band,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .diagnostic-band {
    background: #ffffff;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 60px;
    gap: 12px;
    padding: 10px 14px;
  }

  .brand {
    gap: 9px;
    font-size: 0.98rem;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .header-cta {
    min-width: 86px;
    padding: 9px 10px;
    font-size: 0.84rem;
  }

  .hero {
    min-height: calc(82svh - 60px);
  }

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

  .hero-shade {
    background:
      linear-gradient(90deg, rgb(16 33 32 / 90%) 0%, rgb(16 33 32 / 72%) 72%, rgb(16 33 32 / 42%) 100%),
      linear-gradient(0deg, rgb(16 33 32 / 28%), rgb(16 33 32 / 14%));
  }

  .hero-content {
    align-self: start;
    width: calc(100% - 28px);
    margin: 0 auto;
    padding: 30px 0 24px;
  }

  h1 {
    font-size: clamp(2.16rem, 12vw, 3.15rem);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(1.9rem, 9vw, 2.55rem);
  }

  .hero-copy {
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .button {
    width: 100%;
    min-height: 46px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .hero-stats div {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: end;
    gap: 12px;
    padding: 11px 13px;
  }

  .hero-stats dd {
    margin: 0;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 50px 0;
  }

  .service-grid,
  .process-grid,
  .diagnostic-list {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .button {
    width: 100%;
  }

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

  .diagnostic-band {
    padding-inline: 14px;
  }
}

@media (max-width: 430px) {
  .brand span:last-child {
    max-width: 122px;
    white-space: normal;
    line-height: 1.05;
  }

  .hero {
    min-height: auto;
  }

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

  .section-kicker {
    font-size: 0.75rem;
  }

  h1 {
    font-size: 2.08rem;
  }
}

@media (max-width: 680px) and (max-height: 700px) {
  .hero-content {
    padding-bottom: 18px;
  }

  .hero-copy {
    font-size: 0.96rem;
    line-height: 1.45;
  }

  .hero-actions {
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 16px;
  }

  .button {
    width: auto;
    min-height: 42px;
    flex: 1 1 0;
    padding: 10px;
    font-size: 0.9rem;
  }

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

  .hero-stats div {
    display: block;
    padding: 10px 8px;
  }

  .hero-stats dt {
    font-size: 1.22rem;
  }

  .hero-stats dd {
    margin-top: 5px;
    font-size: 0.7rem;
  }
}
