/* ==========================================================================
   360navtech.com company home (/): introduces 360nav POS and Nav360 HR.
   Uses the tokens and components of styles.css, which loads first. Headlines
   here are set in Archivo, the site's sans, not the display serif.
   ========================================================================== */

/* The Archivo file is variable, so the heavy weight comes from the same file. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/f6.woff2") format('woff2');
}

.home-title,
.home-h2 {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  color: var(--ink);
}

/* ---- Hero --------------------------------------------------------------- */
.home-hero {
  padding: 140px 0 88px;
}
.home-title {
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.home-lead {
  margin-top: 24px;
  max-width: 54ch;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
}
.home-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.home-hero-photo {
  display: block;
  margin-top: 48px;
  width: 100%;
  height: clamp(200px, 24vw, 340px);
  object-fit: cover;
  border-radius: 16px;
  opacity: 1;
  filter: none;
}

/* ---- The two products --------------------------------------------------- */
.home-row-section {
  padding-bottom: 88px;
  scroll-margin-top: 96px;
}
.home-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.home-row--flip .home-row-body {
  order: -1;
}
.home-row-media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  opacity: 1;
  filter: none;
}
.home-row-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.home-row-body > p {
  max-width: 52ch;
  font-size: 17px;
  color: var(--ink-2);
}
.home-row-body > .home-product-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--stamp-hover);
}
.home-h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.home-h2--lg {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
}
.home-points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-strong);
  font-size: 15px;
  font-weight: 600;
}
.home-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}
.home-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--stamp-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.home-text-link:hover {
  color: var(--ink);
}

/* ---- Better together ---------------------------------------------------- */
.home-together {
  background: #E3EEF9;
  padding: 88px 0;
}
.home-together-lead {
  margin-top: 16px;
  max-width: 58ch;
  font-size: 18px;
  color: var(--ink-2);
}
.home-moments {
  list-style: none;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px 28px;
}
.home-moments li {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-moments span {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.home-moments h3 {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.home-moments p {
  font-size: 15px;
  color: var(--ink-2);
}
.home-offer {
  margin-top: 48px;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.home-offer a {
  color: var(--stamp-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---- Demos -------------------------------------------------------------- */
.home-demo-section {
  padding: 88px 0;
}
.home-demos {
  margin-top: 28px;
  border-top: 2px solid var(--ink);
}
.home-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 6px 40px;
  align-items: baseline;
  padding: 24px 0;
  color: var(--ink-2);
}
.home-demo + .home-demo {
  border-top: 1px solid var(--rule-strong);
}
.home-demo h3 {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--stamp);
  text-underline-offset: 6px;
}
.home-demo:hover {
  color: var(--ink-2);
}
.home-demo:hover h3 {
  color: var(--stamp-hover);
}
.home-contact {
  margin-top: 24px;
  color: var(--ink-2);
}

@media (max-width: 1100px) {
  .home-moments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .home-hero {
    padding: 112px 0 56px;
  }
  .home-hero-photo {
    margin-top: 32px;
  }
  .home-row,
  .home-demo {
    grid-template-columns: 1fr;
  }
  .home-row--flip .home-row-body {
    order: 0;
  }
  .home-row-section {
    padding-bottom: 56px;
  }
  .home-together,
  .home-demo-section {
    padding: 56px 0;
  }
}
@media (max-width: 640px) {
  .home-actions .btn {
    width: 100%;
  }
  .home-points,
  .home-moments {
    grid-template-columns: 1fr;
  }
}
