:root {
  --ink: #17212b;
  --muted: #5d6b78;
  --line: #dce4ea;
  --paper: #ffffff;
  --surface: #f5f8fa;
  --primary: #146a70;
  --primary-strong: #0f4f55;
  --accent: #c4892a;
  --accent-soft: #fff4dd;
  --steel: #41505c;
  --shadow: 0 18px 48px rgba(23, 33, 43, 0.14);
  --radius: 8px;
  --container: 1180px;
}

* {
  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);
  line-height: 1.5;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  color: #ffffff;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 26px rgba(23, 33, 43, 0.09);
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
}

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

.brand strong {
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand small {
  margin-top: 3px;
  font-size: 12px;
  color: currentColor;
  opacity: 0.78;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 28px;
  justify-content: center;
  font-size: 14px;
  font-weight: 650;
}

.main-nav a,
.footer-layout a,
.text-link {
  transition: color 160ms ease;
}

.main-nav a:hover,
.footer-layout a:hover,
.text-link:hover {
  color: var(--accent);
}

.header-cta {
  justify-self: end;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.header-cta svg,
.button svg,
.text-link svg,
.contact-methods svg,
.visit-points svg,
.timeline svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.1;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  padding: 116px 0 86px;
}

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

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

.hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 19, 24, 0.88) 0%, rgba(9, 19, 24, 0.7) 40%, rgba(9, 19, 24, 0.2) 78%),
    linear-gradient(0deg, rgba(9, 19, 24, 0.34), rgba(9, 19, 24, 0.16));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 40px));
  margin-left: max(20px, calc((100vw - var(--container)) / 2));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.visit-layout h2,
.contact-copy h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.04;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(42px, 7vw, 76px);
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 10px 26px rgba(20, 106, 112, 0.28);
}

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

.button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 1px;
  width: min(680px, 100%);
  margin: 42px 0 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.hero-metrics div {
  min-height: 96px;
  padding: 17px 18px;
  background: rgba(9, 19, 24, 0.34);
}

.hero-metrics dt {
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
}

.hero-metrics dd {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.intro-band {
  background: var(--ink);
  color: #ffffff;
}

.intro-grid {
  min-height: 116px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
}

.intro-grid p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 800;
  white-space: nowrap;
}

.section {
  padding: 92px 0;
}

.section-heading {
  max-width: 770px;
  margin-bottom: 38px;
}

.section-heading h2,
.visit-layout h2,
.contact-copy h2 {
  font-size: clamp(32px, 4.2vw, 52px);
}

.section-heading p,
.visit-layout p,
.contact-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.8fr);
  align-items: end;
  gap: 40px;
}

.standard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.standard-card {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 6px 24px rgba(23, 33, 43, 0.05);
}

.icon-box {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--primary);
  border-radius: 8px;
}

.standard-card svg {
  width: 22px;
  height: 22px;
}

.standard-card h3,
.service-list h3,
.timeline h3 {
  margin: 22px 0 10px;
  font-size: 22px;
  letter-spacing: 0;
}

.standard-card p,
.service-list p,
.timeline p {
  margin: 0;
  color: var(--muted);
}

.services-section,
.contact-section {
  background: var(--surface);
}

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

.service-list article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid #d8e1e7;
  border-radius: var(--radius);
  background: #ffffff;
}

.service-list span {
  display: inline-flex;
  min-width: 42px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: #875b17;
  font-weight: 850;
}

.process-section {
  background: #ffffff;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.timeline article {
  min-height: 238px;
  padding: 28px;
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.timeline article:last-child {
  border-right: 0;
}

.timeline svg {
  width: 30px;
  height: 30px;
  color: var(--primary);
}

.visit-band {
  padding: 78px 0;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(23, 33, 43, 0.95), rgba(23, 33, 43, 0.86)),
    url("assets/hero-smart-home-supply-chain.png") center / cover;
}

.visit-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
  align-items: center;
  gap: 50px;
}

.visit-layout p {
  color: rgba(255, 255, 255, 0.78);
}

.visit-points {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.visit-points li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.visit-points svg {
  color: var(--accent);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.7fr);
  gap: 52px;
  align-items: start;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-methods a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 760;
}

.contact-methods a:hover {
  border-color: var(--primary);
}

.contact-methods svg {
  color: var(--primary);
}

.inquiry-form {
  display: grid;
  gap: 15px;
  padding: 26px;
  border: 1px solid #d8e1e7;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.inquiry-form label {
  display: grid;
  gap: 7px;
}

.inquiry-form label > span {
  font-size: 13px;
  font-weight: 800;
  color: var(--steel);
}

.inquiry-form .button span {
  color: #ffffff;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid #cbd6dd;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

.inquiry-form input,
.inquiry-form select {
  min-height: 46px;
  padding: 0 12px;
}

.inquiry-form textarea {
  min-height: 130px;
  padding: 12px;
  resize: vertical;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 106, 112, 0.14);
}

.form-button {
  width: 100%;
}

.site-footer {
  padding: 28px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-layout p {
  margin: 0;
}

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

  .main-nav {
    display: none;
  }

  .standard-grid,
  .service-list,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline article:nth-child(2) {
    border-right: 0;
  }

  .timeline article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .split-heading,
  .visit-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    min-height: 64px;
    padding: 10px 14px;
  }

  .brand small {
    display: none;
  }

  .header-cta span {
    display: none;
  }

  .header-cta {
    width: 42px;
    padding: 0;
  }

  .hero {
    min-height: 88vh;
    padding: 92px 0 54px;
  }

  .hero-content {
    width: min(100% - 28px, 720px);
    margin-inline: auto;
  }

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

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

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

  .hero-metrics,
  .intro-grid,
  .standard-grid,
  .service-list,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-metrics div {
    min-height: 78px;
  }

  .intro-grid {
    padding: 24px 0;
  }

  .section {
    padding: 64px 0;
  }

  .standard-card,
  .service-list article,
  .timeline article {
    min-height: auto;
  }

  .timeline article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline article:last-child {
    border-bottom: 0;
  }

  .visit-band {
    padding: 62px 0;
  }

  .inquiry-form {
    padding: 18px;
  }

  .footer-layout {
    align-items: flex-start;
    flex-direction: column;
  }
}
