:root {
  --teal: #1abc9c;
  --teal-dark: #16a085;
  --ink: #484f58;
  --muted: #777777;
  --grey: #ecf0f1;
  --dark: #252629;
  --line: #e2e7e9;
  --white: #ffffff;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--muted);
  background: var(--white);
  font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

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

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
.btn,
.login-button {
  font-family: Montserrat, Arial, Helvetica, sans-serif;
}

h1,
h2 {
  margin: 0 0 0.55em;
  color: var(--ink);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1;
  text-align: center;
}

h3 {
  margin: 1em 0;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.1;
}

h4,
h5 {
  color: var(--ink);
}

.grid {
  width: min(1120px, calc(100% - 34px));
  margin: 0 auto;
}

.wrap {
  padding: 92px 0 110px;
}

.grey {
  background: var(--grey);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 104px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(37, 38, 41, 0.88);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 4px;
  background: #ffffff;
}

.brand-logo {
  width: clamp(250px, 30vw, 460px);
  max-height: 72px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.4vw, 18px);
  margin-left: auto;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 30px;
  color: #ffffff;
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.login-button,
.primary-link,
.close-button,
.login-mode button,
.secondary-form-button {
  min-height: 38px;
  border: 0;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 800;
}

.login-button,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  background: var(--teal);
  color: #ffffff;
}

.login-button:hover,
.primary-link:hover,
.btn:hover {
  background: var(--teal-dark);
  color: #ffffff;
}

.invento-hero {
  min-height: 650px;
  display: grid;
  place-items: center;
  padding: 120px 18px 80px;
  color: #ffffff;
  text-align: center;
  background:
    linear-gradient(rgba(24, 28, 32, 0.64), rgba(24, 28, 32, 0.7)),
    radial-gradient(circle at 30% 20%, rgba(26, 188, 156, 0.34), transparent 32%),
    linear-gradient(135deg, #3d434a, #1f2930 58%, #14191d);
  background-attachment: fixed;
}

.invento-hero h1,
.invento-hero h2 {
  color: #ffffff;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: 0;
  line-height: 1.05;
}

.invento-hero h2 {
  font-size: clamp(1.7rem, 4vw, 3.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.5em 1.6em;
  border: 2px solid var(--teal);
  border-radius: 30px;
  background: var(--teal);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.btn-ghost {
  background: transparent;
}

.curve {
  display: block;
  width: 100%;
  height: 80px;
  margin: -79px 0 0;
  fill: #ffffff;
}

.curve-down {
  margin: 0 0 -79px;
  fill: var(--grey);
}

.services-wrap h2,
.about-wrap h2,
.products-wrap h2,
.contact h2 {
  margin-bottom: 56px;
}

.service-grid-invento,
.quote-grid,
.contact-grid {
  display: grid;
  gap: 26px;
}

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

.service-box {
  text-align: center;
}

.circle-icon {
  display: grid;
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #ffffff;
  font-size: 2.4rem;
  font-weight: 900;
}

.service-box p,
.about-wrap p,
.contact p {
  margin: 0 0 16px;
}

.about-wrap .grid {
  max-width: 980px;
}

.about-wrap p {
  color: #60676f;
  font-size: 1.08rem;
  text-align: justify;
}

.quotes-wrap {
  background: #ffffff;
}

.quote-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quote-grid article {
  padding: 28px;
  text-align: center;
}

.quote-mark {
  display: block;
  color: var(--teal);
  font-size: 4rem;
  line-height: 1;
}

.product-slider {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.product-slider img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  background: #ffffff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.customer-logo-section {
  padding: 72px 0;
  overflow: hidden;
  background: #ffffff;
}

.customer-logo-section h2 {
  margin-bottom: 38px;
}

.customer-logo-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-block: 1px solid var(--line);
  background: #ffffff;
}

.customer-logo-marquee::before,
.customer-logo-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 2;
  width: min(90px, 14vw);
  height: 100%;
  pointer-events: none;
}

.customer-logo-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0));
}

.customer-logo-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #ffffff, rgba(255, 255, 255, 0));
}

.customer-logo-track {
  display: flex;
  align-items: center;
  gap: 54px;
  width: max-content;
  padding: 24px 54px;
  animation: logoScroll 38s linear infinite;
}

.customer-logo-track img {
  flex: 0 0 auto;
  width: 170px;
  height: 86px;
  object-fit: contain;
  filter: saturate(1.05);
}

@keyframes logoScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  align-items: start;
}

address {
  font-style: normal;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d7dcde;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .btn {
  justify-self: start;
}

.invento-footer {
  padding: 34px 0;
  color: #d0d0d0;
  background: var(--dark);
  text-align: center;
}

.login-dialog {
  width: min(520px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-dialog::backdrop {
  background: rgba(15, 34, 51, 0.62);
}

.login-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: #ffffff;
}

.login-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.login-head h2 {
  margin: 0;
  text-align: left;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.close-button {
  width: 36px;
  height: 36px;
  background: var(--grey);
  color: var(--ink);
}

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

.login-mode button {
  padding: 0 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--teal-dark);
}

.login-mode button.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.login-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.login-panel input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  font: inherit;
}

.otp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.secondary-form-button {
  border: 1px solid var(--line);
  padding: 0 12px;
  background: #ffffff;
  color: var(--teal-dark);
}

.login-submit {
  width: 100%;
  border: 0;
}

.login-message {
  min-height: 18px;
  margin: 0;
  color: #227a55;
  font-weight: 800;
}

.login-message.is-error {
  color: #ba3a32;
}

.login-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .service-grid-invento,
  .quote-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: 0;
  }

  .brand-logo {
    width: min(330px, calc(100vw - 64px));
  }

  .invento-hero {
    min-height: 560px;
  }

  .service-grid-invento,
  .quote-grid,
  .contact-grid,
  .login-mode,
  .otp-row {
    grid-template-columns: 1fr;
  }

  .product-slider img {
    width: min(320px, 100%);
  }
}

/* Device compatibility refinements */
body {
  overflow-x: hidden;
}

.invento-hero {
  padding-top: 160px;
}

@media (max-width: 1180px) {
  .site-header {
    gap: 10px;
    padding-inline: 18px;
  }

  .brand-logo {
    width: clamp(220px, 28vw, 360px);
  }

  .site-nav {
    gap: 4px;
  }

  .site-nav a {
    padding: 0 7px;
    font-size: 0.76rem;
  }

  .login-button {
    padding-inline: 16px;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: sticky;
    top: 0;
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: 0;
  }

  .site-nav a,
  .login-button {
    min-height: 34px;
    font-size: 0.74rem;
  }

  .invento-hero {
    padding-top: 72px;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding: 10px 12px;
  }

  .brand-mark {
    width: 100%;
  }

  .brand-logo {
    width: 100%;
  }

  .site-nav,
  .login-button {
    width: 100%;
  }

  .site-nav a {
    flex: 1 1 calc(50% - 6px);
  }

  .login-dialog {
    width: calc(100vw - 16px);
  }
}
