:root {
  --ink: #142522;
  --muted: #5d6a66;
  --surface: #f8faf6;
  --paper: #ffffff;
  --line: #dbe3dc;
  --teal: #0d7a73;
  --teal-dark: #07524d;
  --mint: #dff4ea;
  --gold: #e3bd5c;
  --coral: #c96f57;
  --shadow: 0 24px 70px rgba(20, 37, 34, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(219, 227, 220, 0.82);
  background: rgba(248, 250, 246, 0.9);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  box-shadow: 0 10px 20px rgba(13, 122, 115, 0.2);
}

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

.nav a,
.site-footer a {
  transition: color 160ms ease;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--teal);
}

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

.header-action,
.button.primary {
  color: #fff;
  background: var(--teal);
}

.button.secondary {
  border-color: rgba(20, 37, 34, 0.22);
  background: rgba(255, 255, 255, 0.74);
}

.header-action:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(20, 37, 34, 0.15);
}

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

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

.hero-image {
  object-fit: cover;
  object-position: 55% 50%;
  z-index: -2;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(248, 250, 246, 0.98) 0%, rgba(248, 250, 246, 0.82) 32%, rgba(248, 250, 246, 0.08) 68%),
    linear-gradient(180deg, rgba(20, 37, 34, 0.08), rgba(20, 37, 34, 0.16));
}

.hero-content {
  display: grid;
  align-content: center;
  max-width: 680px;
  min-height: min(760px, calc(100vh - 72px));
  padding: clamp(76px, 12vw, 132px) clamp(20px, 6vw, 86px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 20px;
  font-size: clamp(3.8rem, 9vw, 8rem);
  line-height: 0.92;
}

h2 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.hero-copy {
  max-width: 600px;
  margin-bottom: 30px;
  color: #30443f;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

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

.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.trust-bar div {
  padding: 28px clamp(20px, 4vw, 48px);
  background: var(--paper);
}

.trust-bar strong,
.value-list strong {
  display: block;
  margin-bottom: 5px;
}

.trust-bar span,
.value-list span,
.service-card p,
.steps p,
.estimate-copy p,
.value-copy p {
  color: var(--muted);
}

.section,
.estimate-section {
  padding: clamp(72px, 10vw, 128px) clamp(20px, 6vw, 86px);
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}

.section-intro {
  position: sticky;
  top: 110px;
}

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

.service-card {
  min-height: 224px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(20, 37, 34, 0.04);
}

.card-icon,
.steps span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: var(--mint);
  font-weight: 900;
}

.value-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
  color: #fff;
  background: var(--teal-dark);
}

.value-section .eyebrow,
.value-section .value-copy p,
.value-list span {
  color: rgba(255, 255, 255, 0.78);
}

.value-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
}

.value-list div {
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.process {
  background:
    linear-gradient(180deg, rgba(223, 244, 234, 0.65), rgba(248, 250, 246, 0)),
    var(--surface);
}

.process > h2,
.process > .eyebrow {
  text-align: center;
  margin-inline: auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 46px auto 0;
}

.steps article {
  padding: 28px;
  border-top: 5px solid var(--gold);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.estimate-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(320px, 1fr);
  gap: clamp(30px, 7vw, 86px);
  align-items: start;
  background: #eef4ef;
}

.estimate-copy {
  position: sticky;
  top: 110px;
}

.estimate-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.form-honeypot {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

label {
  display: grid;
  gap: 7px;
  color: #334742;
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cdd9d1;
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fbfdfb;
  font: inherit;
}

textarea {
  resize: vertical;
}

.contact-preference,
.option-group {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0;
  border: 0;
  padding: 0;
}

.contact-preference legend,
.option-group legend {
  width: 100%;
  margin-bottom: 7px;
  color: #334742;
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-preference label,
.option-group label {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  border: 1px solid #cdd9d1;
  border-radius: 8px;
  padding: 0 14px;
  background: #fbfdfb;
}

.contact-preference input,
.option-group input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--teal);
}

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

.business-type[hidden] {
  display: none;
}

.estimate-total {
  display: grid;
  min-height: 70px;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 18px 20px;
  border: 1px solid rgba(13, 122, 115, 0.24);
  border-radius: 8px;
  padding: 18px 20px;
  background: var(--mint);
}

.estimate-breakdown {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
}

.estimate-breakdown[hidden] {
  display: none;
}

.church-capacity-field {
  grid-template-columns: minmax(120px, 0.75fr) minmax(120px, 0.5fr) auto;
  gap: 14px;
  align-items: center;
  color: #334742;
  font-size: 0.92rem;
}

.church-capacity-field input {
  min-height: 40px;
}

.church-capacity-field span {
  color: var(--teal-dark);
  font-weight: 900;
  white-space: nowrap;
}

.estimate-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.75fr) minmax(150px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  color: #334742;
  font-size: 0.92rem;
}

.estimate-row input[type="range"] {
  width: 100%;
  min-height: 24px;
  border: 0;
  padding: 0;
  accent-color: var(--teal);
  background: transparent;
}

.estimate-row span:first-child {
  font-weight: 800;
}

.estimate-row span:nth-child(3) {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.estimate-row strong {
  color: var(--teal-dark);
  white-space: nowrap;
}

.estimate-adjustment {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(13, 122, 115, 0.18);
  padding-top: 12px;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.estimate-adjustment[hidden] {
  display: none;
}

.estimate-total span {
  color: var(--teal-dark);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.estimate-total strong {
  color: var(--teal-dark);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1;
}

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

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

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

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(13, 122, 115, 0.18);
  border-color: var(--teal);
}

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

.bottom-visual {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(280px, 1fr);
  gap: clamp(24px, 6vw, 76px);
  align-items: center;
  padding: clamp(56px, 8vw, 92px) clamp(20px, 6vw, 86px);
  background: #f5faf6;
}

.bottom-visual-copy h2 {
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
}

.bottom-visual picture {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mint);
  box-shadow: 0 18px 44px rgba(20, 37, 34, 0.12);
}

.bottom-visual img {
  width: 100%;
  aspect-ratio: 3 / 1.7;
  object-fit: cover;
  object-position: center;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 6vw, 86px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .nav {
    display: none;
  }

  .trust-bar,
  .split,
  .value-section,
  .steps,
  .estimate-section,
  .bottom-visual {
    grid-template-columns: 1fr;
  }

  .section-intro,
  .estimate-copy {
    position: static;
  }

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

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding-inline: 14px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .header-action {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 0.85rem;
  }

  .hero,
  .hero-content {
    min-height: calc(92vh - 64px);
  }

  .hero-image {
    object-position: 66% 50%;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(248, 250, 246, 0.98) 0%, rgba(248, 250, 246, 0.9) 52%, rgba(248, 250, 246, 0.18) 100%),
      linear-gradient(180deg, rgba(20, 37, 34, 0.04), rgba(20, 37, 34, 0.18));
  }

  h1 {
    font-size: clamp(3.4rem, 17vw, 5.2rem);
  }

  .trust-bar div,
  .service-card,
  .steps article {
    padding: 22px;
  }

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

  .estimate-choice-grid {
    grid-template-columns: 1fr;
  }

  .estimate-row {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
  }

  .church-capacity-field {
    grid-template-columns: 1fr;
  }

  .church-capacity-field span {
    white-space: normal;
  }

  .estimate-row input[type="range"] {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .estimate-row span:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
  }

  .estimate-row strong {
    grid-column: 2;
    grid-row: 3;
  }

  .site-footer {
    display: grid;
  }
}
