:root {
  --ink: #172026;
  --muted: #5d6872;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #dfe4e4;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --coral: #d95f43;
  --amber: #e7a934;
  --sage: #dce8df;
  --shadow: 0 18px 50px rgba(23, 32, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid rgba(223, 228, 228, 0.75);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: white;
  font-weight: 800;
  background: var(--teal);
  border-radius: 8px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

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

.site-nav a {
  padding: 10px 13px;
  color: #27323a;
  font-weight: 700;
  border-radius: 6px;
}

.site-nav a:hover {
  background: var(--sage);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(780px, 92vh);
  display: grid;
  align-items: end;
  padding: 130px clamp(20px, 5vw, 64px) 86px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 38, 39, 0.86), rgba(15, 38, 39, 0.52) 48%, rgba(15, 38, 39, 0.18)),
    url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1800&q=84") center / cover;
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd479;
}

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

h1 {
  margin: 0;
  font-size: clamp(56px, 10vw, 116px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.2vw, 24px);
}

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

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

.button.primary {
  color: white;
  background: var(--coral);
}

.button.primary:hover {
  background: #c54e34;
}

.button.secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.intro-band,
.section,
.assistant-section,
.booking-section,
.contact-section {
  padding: clamp(64px, 8vw, 110px) clamp(20px, 5vw, 64px);
}

.intro-band {
  background: white;
}

.intro-grid,
.assistant-section,
.booking-section,
.contact-section,
.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.intro-grid > div:first-child {
  max-width: 760px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  overflow: hidden;
}

.metric-strip div {
  min-height: 132px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.metric-strip div:last-child {
  border-right: 0;
}

.metric-strip strong {
  display: block;
  color: var(--teal);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

.metric-strip span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 750;
}

.section-heading {
  width: min(820px, 100%);
  margin-bottom: 34px;
}

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

.service-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(23, 32, 38, 0.06);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card div {
  padding: 22px;
}

.service-card p {
  margin-bottom: 0;
}

.assistant-section {
  background: var(--teal-dark);
  color: white;
}

.assistant-section p,
.assistant-section li {
  color: rgba(255, 255, 255, 0.78);
}

.assistant-copy {
  max-width: 690px;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 14px;
  height: 14px;
  background: var(--amber);
  border-radius: 50%;
}

.workflow-panel {
  display: grid;
  gap: 12px;
}

.workflow-step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.workflow-step.active {
  background: white;
  color: var(--ink);
}

.workflow-step.active p {
  color: var(--muted);
}

.workflow-step span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: var(--amber);
  border-radius: 7px;
  font-weight: 900;
}

.workflow-step p {
  margin: 6px 0 0;
}

.savings-section {
  background: #f1f4f1;
}

.calculator,
.impact-panel,
.booking-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 32px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.calc-group {
  padding: 16px;
  border: 1px solid var(--line);
  background: #f7f8f5;
  border-radius: 8px;
}

.calc-group h3 {
  font-size: 18px;
}

.calc-group p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

label {
  display: grid;
  gap: 8px;
  color: #26343b;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  border: 1px solid #cfd8d6;
  border-radius: 7px;
  background: white;
}

textarea {
  resize: vertical;
}

input[type="range"] {
  padding: 0;
  accent-color: var(--teal);
}

.impact-total {
  display: grid;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.impact-total span {
  color: var(--muted);
  font-weight: 800;
}

.impact-total strong {
  color: var(--teal);
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1;
}

.impact-total p {
  margin: 0;
  font-weight: 700;
}

.bar-chart {
  display: grid;
  gap: 18px;
}

.bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 90px;
  gap: 12px;
  align-items: center;
}

.bar-row span,
.bar-row strong {
  font-weight: 850;
}

.bar-track {
  height: 18px;
  overflow: hidden;
  background: #e9eeee;
  border-radius: 5px;
}

.bar {
  width: 40%;
  height: 100%;
  transition: width 180ms ease;
}

.bar.revenue {
  background: var(--teal);
}

.bar.savings {
  background: var(--amber);
}

.bar.downtime {
  background: var(--coral);
}

.booking-section {
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.94), rgba(251, 250, 247, 0.72)),
    url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1600&q=82") center / cover;
}

.booking-copy {
  max-width: 680px;
}

.booking-form {
  box-shadow: 0 18px 60px rgba(23, 32, 38, 0.2);
}

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

.contact-section {
  background: white;
}

.contact-link {
  flex: 1 1 240px;
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
}

.contact-link span {
  color: var(--muted);
  font-weight: 800;
}

.contact-link strong {
  font-size: clamp(20px, 3vw, 28px);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 64px);
  color: white;
  background: var(--ink);
}

.site-footer span {
  color: rgba(255, 255, 255, 0.72);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chat-widget {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 40;
  display: grid;
  justify-items: end;
  gap: 12px;
  width: min(400px, calc(100vw - 32px));
  pointer-events: none;
}

.chat-launcher,
.chat-panel {
  pointer-events: auto;
}

.chat-launcher {
  min-height: 52px;
  padding: 0 18px;
  color: white;
  font: inherit;
  font-weight: 850;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: var(--teal);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(23, 32, 38, 0.2);
  cursor: pointer;
}

.chat-launcher:hover,
.chat-form button:hover,
.chat-quick-actions button:hover {
  filter: brightness(0.96);
}

.chat-panel {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(23, 32, 38, 0.24);
}

.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  color: white;
  background: var(--teal-dark);
}

.chat-panel-header strong,
.chat-panel-header span {
  display: block;
}

.chat-panel-header span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 750;
}

.chat-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: white;
  font-size: 24px;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  cursor: pointer;
}

.chat-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  height: 330px;
  padding: 16px;
  overflow-y: auto;
  background: #f7f8f5;
}

.chat-message {
  max-width: 88%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
}

.chat-message p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.chat-message.user {
  justify-self: end;
  color: white;
  border-color: var(--teal);
  background: var(--teal);
}

.chat-message.user p {
  color: white;
}

.chat-message.error {
  border-color: rgba(217, 95, 67, 0.36);
  background: #fff5f1;
}

.chat-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 0;
}

.chat-quick-actions button {
  min-height: 34px;
  padding: 7px 10px;
  color: var(--teal-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  border: 1px solid #bfd5d1;
  background: #edf7f4;
  border-radius: 7px;
  cursor: pointer;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 16px 8px;
}

.chat-form input {
  min-height: 44px;
}

.chat-form button {
  min-height: 44px;
  padding: 0 14px;
  color: white;
  font: inherit;
  font-weight: 850;
  border: 0;
  background: var(--coral);
  border-radius: 7px;
  cursor: pointer;
}

.chat-disclaimer {
  margin: 0;
  padding: 0 16px 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .intro-grid,
  .assistant-section,
  .booking-section,
  .contact-section,
  .calculator-layout {
    grid-template-columns: 1fr;
  }

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

  .service-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.45fr) 1fr;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .metric-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-strip div:last-child {
    border-bottom: 0;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    padding: 13px;
  }

  .hero {
    min-height: 720px;
    padding-top: 110px;
    padding-bottom: 54px;
  }

  .hero-media {
    background:
      linear-gradient(0deg, rgba(15, 38, 39, 0.94), rgba(15, 38, 39, 0.34)),
      url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1100&q=82") center / cover;
  }

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

  .bar-row {
    grid-template-columns: 1fr;
  }

  .bar-track {
    height: 20px;
  }

  .chat-widget {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .chat-messages {
    height: min(330px, 48vh);
  }
}
