:root {
  --ink: #142523;
  --ink-soft: #35504c;
  --muted: #657774;
  --paper: #ffffff;
  --panel: #f4f9f8;
  --wash: #edf6f4;
  --line: #d5e6e3;
  --logo-bg: #95e1d3;
  --logo-bg-deep: #73c7b8;
  --teal: #0f766e;
  --teal-dark: #0b4f49;
  --aqua: #14b8a6;
  --blue: #4257b7;
  --gold: #d9a441;
  --charcoal: #192b32;
  --shadow: 0 18px 50px rgba(20, 37, 35, 0.12);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 12px clamp(18px, 4vw, 52px);
  background: var(--logo-bg);
  border-bottom: 1px solid var(--logo-bg-deep);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: clamp(150px, 20vw, 230px);
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--ink-soft);
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.56);
  color: var(--teal-dark);
}

.home-hero {
  position: relative;
  min-height: min(660px, 74vh);
  display: flex;
  align-items: center;
  padding: clamp(64px, 11vw, 120px) clamp(20px, 5vw, 72px);
  background: var(--charcoal);
  color: var(--paper);
  overflow: hidden;
}

.hero-rotator,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  animation: heroCycle 14s infinite;
  transform: scale(1.01);
}

.hero-slide-office {
  background-image: url("commercial-cleaning-hero.png");
}

.hero-slide-daycare {
  background-image: url("daycare-cleaning-hero.png");
  animation-delay: 7s;
}

@keyframes heroCycle {
  0%,
  43% {
    opacity: 1;
  }

  50%,
  93% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 24, 28, 0.88) 0%, rgba(9, 24, 28, 0.72) 36%, rgba(9, 24, 28, 0.18) 70%),
    linear-gradient(180deg, rgba(9, 24, 28, 0.18), rgba(9, 24, 28, 0.38));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.hero-dots span {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  animation: dotCycle 14s infinite;
}

.hero-dots span:nth-child(2) {
  animation-delay: 7s;
}

@keyframes dotCycle {
  0%,
  43% {
    background: var(--logo-bg);
  }

  50%,
  93% {
    background: rgba(255, 255, 255, 0.38);
  }

  100% {
    background: var(--logo-bg);
  }
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--teal);
  color: var(--paper);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.24);
}

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

.button.secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal-dark);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--paper);
}

.button.wide,
.submit-button {
  width: 100%;
}

.trust-strip {
  width: min(var(--max), calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: -38px auto 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.trust-strip div {
  min-height: 132px;
  padding: 24px;
  background: var(--paper);
}

.trust-strip strong,
.scope-list strong,
.result-stats strong,
.recommendation strong {
  display: block;
  color: var(--teal-dark);
}

.trust-strip span,
.scope-list span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.section,
.split-band,
.cta-band,
.calculator-layout,
.page-hero {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: clamp(72px, 10vw, 112px) 0;
}

.section-heading {
  max-width: 790px;
}

.section-heading h2,
.split-copy h2,
.cta-band h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
}

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

.service-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--paper), var(--panel));
}

.service-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--charcoal);
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
}

.service-card h3 {
  margin: 24px 0 10px;
  font-size: 22px;
}

.service-card p,
.split-copy p,
.page-hero p,
.fine-print,
.recommendation p {
  color: var(--muted);
  line-height: 1.65;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: clamp(52px, 8vw, 86px) 0;
  border-top: 1px solid var(--line);
}

.split-copy p {
  max-width: 690px;
}

.scope-list {
  display: grid;
  gap: 12px;
}

.scope-list div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 72px;
  padding: clamp(34px, 5vw, 52px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(66, 87, 183, 0.12)),
    var(--charcoal);
  color: var(--paper);
}

.cta-band h2 {
  max-width: 760px;
}

.page-hero {
  padding: clamp(46px, 7vw, 76px) 0 26px;
}

.contact-success-section {
  width: min(var(--max), calc(100% - 36px));
  margin: 28px auto 0;
}

.contact-success-banner {
  display: grid;
  gap: 5px;
  padding: 18px 22px;
  border: 1px solid var(--logo-bg-deep);
  border-radius: 8px;
  background: var(--logo-bg);
  color: var(--teal-dark);
  box-shadow: var(--shadow);
}

.contact-success-banner span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-success-banner strong {
  font-size: 17px;
  line-height: 1.4;
}

.page-hero.compact h1 {
  font-size: clamp(34px, 5vw, 60px);
  color: var(--ink);
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 18px;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 24px;
  align-items: start;
  padding: 18px 0 78px;
}

.estimate-form,
.estimate-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.estimate-form {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.form-section {
  margin: 0;
  padding: clamp(20px, 4vw, 30px);
  border: 0;
  background: var(--paper);
}

.form-section:nth-child(even) {
  background: var(--panel);
}

.form-section h2,
.form-section legend,
.line-items h2 {
  margin: 0 0 18px;
  color: var(--teal-dark);
  font-size: 18px;
  font-weight: 800;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

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

textarea {
  resize: vertical;
}

.field-help {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

.conditional-field[hidden] {
  display: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(20, 184, 166, 0.22);
  border-color: var(--teal);
}

.checkbox-line {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.checkbox-line input,
.checkbox-card input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

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

.checkbox-card {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  min-height: 56px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

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

.estimate-result {
  position: sticky;
  top: 98px;
  padding: 26px;
}

.estimate-total {
  margin-top: 6px;
  color: var(--teal-dark);
  font-size: clamp(40px, 6vw, 58px);
  line-height: 1;
  font-weight: 800;
}

.estimate-range {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.result-stats div {
  padding: 16px;
  border-radius: 8px;
  background: var(--wash);
}

.result-stats span,
.recommendation span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recommendation {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--paper), var(--panel));
}

.recommendation p {
  margin: 8px 0 0;
  font-size: 14px;
}

.line-items {
  margin-top: 24px;
}

.line-items ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.line-items li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}

.line-items li strong {
  color: var(--ink);
  text-align: right;
}

.fine-print {
  margin: 22px 0;
  font-size: 12px;
}

.request-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.request-summary {
  background: var(--charcoal);
  color: var(--paper);
}

.request-summary .estimate-total,
.request-summary .recommendation strong,
.request-summary .result-stats strong,
.request-summary .line-items li strong {
  color: var(--paper);
}

.request-summary .estimate-range,
.request-summary .recommendation p,
.request-summary .line-items li,
.request-summary .fine-print {
  color: rgba(255, 255, 255, 0.72);
}

.request-summary .result-stats div,
.request-summary .recommendation {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.request-summary .line-items li {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.form-message {
  min-height: 24px;
  margin: 0;
  padding: 0 30px 28px;
  background: var(--paper);
  color: var(--teal-dark);
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 52px);
  border-top: 1px solid var(--logo-bg-deep);
  background: var(--logo-bg);
  color: var(--teal-dark);
}

.site-footer img {
  width: 160px;
}

.site-footer p {
  max-width: 580px;
  margin: 0;
  line-height: 1.5;
  text-align: right;
}

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

  .main-nav {
    justify-content: flex-start;
  }

  .home-hero {
    min-height: 68vh;
  }

  .hero-slide {
    background-position: 64% center;
  }

  .trust-strip,
  .service-grid,
  .split-band,
  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    margin-top: 0;
    width: 100%;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .estimate-result {
    position: static;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-dots span {
    animation: none;
  }

  .hero-slide-office {
    opacity: 1;
  }

  .hero-slide-daycare {
    opacity: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: auto;
  }

  .brand img {
    width: 172px;
  }

  .main-nav a {
    padding: 0 10px;
    font-size: 13px;
  }

  .home-hero {
    min-height: 70vh;
    padding: 48px 20px;
  }

  .hero-content h1,
  .page-hero h1 {
    font-size: 42px;
  }

  .hero-copy,
  .page-hero p {
    font-size: 16px;
  }

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

  .button {
    width: 100%;
  }

  .field-grid,
  .option-grid,
  .result-stats {
    grid-template-columns: 1fr;
  }

  .section,
  .split-band,
  .cta-band,
  .calculator-layout,
  .page-hero {
    width: min(100% - 24px, var(--max));
  }

  .form-section,
  .estimate-result {
    padding: 20px;
  }

  .form-message {
    padding: 0 20px 22px;
  }
}
