/* AbSpatial Labs homepage styles. Scoped to .it-home so product pages stay untouched. */
.it-home {
  --it-ink: #12263f;
  --it-text: #435368;
  --it-muted: #6c7a8b;
  --it-line: #dce5ee;
  --it-soft: #f3f7fb;
  --it-blue: #163a63;
  --it-blue-2: #2f6f9f;
  --it-teal: #167a7f;
  --it-green: #4f7d57;
  --it-white: #ffffff;
  background: #f5f7fa;
  color: var(--it-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}
.it-home a { text-decoration: none; }
.it-home .it-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.it-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #eef4f9 100%);
  border-bottom: 1px solid var(--it-line);
}
.it-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: 38px;
  align-items: center;
  padding: 58px 0 48px;
}
.it-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #415d7a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.it-eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--it-teal); }
.it-hero h1 { margin: 0; color: var(--it-ink); font-size: 46px; line-height: 1.14; font-weight: 700; letter-spacing: 0; }
.it-hero p { color: var(--it-text); font-size: 17px; margin: 18px 0 0; max-width: 720px; }
.it-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.it-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 8px;
  border: 1px solid #cad5df;
  background: #fff;
  color: #21364d;
  font-weight: 700;
  font-size: 14px;
}
.it-btn-primary { background: var(--it-blue); border-color: var(--it-blue); color: #fff; }
.it-btn-primary:hover { background: #102b49; color: #fff; }
.it-btn:hover { background: #f0f5f9; color: #102b49; }
.it-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.it-stat { background: #fff; border: 1px solid var(--it-line); border-radius: 8px; padding: 16px; }
.it-stat strong { display: block; color: var(--it-blue); font-size: 23px; line-height: 1; }
.it-stat span { display: block; color: var(--it-muted); font-size: 13px; margin-top: 8px; }
.it-visual {
  min-height: 430px;
  border: 1px solid var(--it-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(14, 42, 70, 0.08);
  overflow: hidden;
}
.it-visual-main {
  height: clamp(205px, 24vw, 245px);
  background-image: linear-gradient(180deg, rgba(12,34,58,0.08), rgba(12,34,58,0.18)), url('../../../image/catalog/home/abspatial-translational-workflow-large-text-20260718.png');
  background-size: cover;
  background-position: center;
}
.it-visual-body { padding: 20px; }
.it-visual-body h2 { margin: 0 0 10px; color: var(--it-ink); font-size: 22px; }
.it-visual-body p { margin: 0; color: #4f6073; font-size: 15px; }
.it-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.it-chip { background: #eef4f8; color: #314c67; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; }
.it-section { padding: 56px 0; }
.it-section-white { background: #fff; border-top: 1px solid var(--it-line); border-bottom: 1px solid var(--it-line); }
.it-section-dark { background: #112b49; color: #d8e5f2; }
.it-section-head { display: flex; justify-content: space-between; gap: 22px; align-items: end; margin-bottom: 24px; }
.it-section-head h2 { margin: 0; color: var(--it-ink); font-size: 34px; line-height: 1.2; }
.it-section-dark .it-section-head h2 { color: #fff; }
.it-section-note { max-width: 520px; margin: 0; color: var(--it-muted); font-size: 14px; }
.it-section-dark .it-section-note { color: #b9cce0; }
.it-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.it-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.it-tile, .it-product, .it-contact-card {
  background: #fff;
  border: 1px solid var(--it-line);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(11, 35, 64, 0.045);
}
.it-tile { padding: 22px; }
.it-tile-link { display: block; color: inherit; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
.it-tile-link:hover, .it-tile-link:focus { color: inherit; text-decoration: none; transform: translateY(-2px); border-color: #9cced8; box-shadow: 0 14px 32px rgba(23, 74, 103, 0.12); }
.it-tile-link:focus-visible { outline: 3px solid rgba(0, 140, 160, 0.28); outline-offset: 3px; }
.it-tile i { color: var(--it-teal); font-size: 24px; margin-bottom: 14px; }
.it-tile h3, .it-product h3, .it-contact-card h3 { margin: 0 0 10px; color: #17314f; font-size: 20px; line-height: 1.3; }
.it-tile p, .it-product p, .it-contact-card p { margin: 0; color: #4f6073; font-size: 15px; }
.it-product { overflow: hidden; }
.it-product-link { display: block; color: inherit; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
.it-product-link:hover, .it-product-link:focus { color: inherit; text-decoration: none; transform: translateY(-2px); border-color: #9cced8; box-shadow: 0 14px 32px rgba(23, 74, 103, 0.12); }
.it-product-link:focus-visible { outline: 3px solid rgba(0, 140, 160, 0.28); outline-offset: 3px; }
.it-product img { display: block; width: 100%; height: 148px; object-fit: contain; background: #f0f4f8; padding: 8px; }
.it-product-body { padding: 18px; }
.it-product-meta { color: #657589; font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.it-dark-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.it-dark-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 22px; }
.it-dark-card h3 { margin: 0 0 10px; color: #fff; font-size: 20px; }
.it-dark-card p { margin: 0; color: #d8e5f2; font-size: 15px; }
.it-contact-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.it-contact-card { padding: 24px; }
.it-contact-list { display: grid; gap: 14px; margin-top: 16px; }
.it-contact-list div { display: grid; gap: 4px; }
.it-contact-list strong { color: #17314f; }
.it-contact-list span, .it-contact-list a { color: #4f6073; }
.it-contact-side { background: var(--it-blue); color: #fff; border-radius: 8px; padding: 24px; }
.it-contact-side h3 { color: #fff; margin: 0 0 12px; }
.it-contact-side p, .it-contact-side a { color: #d9e6f3; }
.it-link-list { display: grid; gap: 10px; margin-top: 16px; }
.it-link-list a { color: #d9e6f3; }
@media (max-width: 980px) {
  .it-hero-grid, .it-section-head, .it-contact-grid, .it-dark-grid { grid-template-columns: 1fr; display: grid; }
  .it-grid-3, .it-grid-4, .it-stats { grid-template-columns: 1fr; }
  .it-hero h1 { font-size: 36px; }
  .it-section-head h2 { font-size: 28px; }
  .it-visual { min-height: 0; }
}


.it-map-card {
  margin-top: 18px;
  border: 1px solid var(--it-line);
  border-radius: 8px;
  overflow: hidden;
  background: #f3f7fb;
}
.it-map-card iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
}
@media (max-width: 980px) {
  .it-map-card iframe { height: 260px; }
}

/* Homepage contact spacing */
.it-contact-section {
  padding-bottom: 16px;
  border-bottom: 0;
}

.it-contact-section .it-contact-grid {
  align-items: stretch;
}

.it-contact-section .it-contact-card,
.it-contact-section .it-contact-side {
  min-height: 100%;
}

.it-contact-section .it-map-card {
  margin-top: 24px;
}

.it-contact-section .it-map-card iframe {
  height: 340px;
}

.it-contact-section + * {
  margin-top: 0;
}

@media (max-width: 980px) {
  .it-contact-section {
    padding-bottom: 16px;
  }

  .it-contact-section .it-map-card iframe {
    height: 300px;
  }
}

/* Forced homepage contact/footer separation */
.it-home .it-contact-section {
  padding-top: 64px !important;
  padding-bottom: 8px !important;
  margin-bottom: 0 !important;
}

.it-home .it-contact-section .it-contact-card {
  padding-bottom: 34px !important;
}

.it-home .it-contact-section .it-map-card {
  display: block !important;
  min-height: 360px !important;
  margin-top: 28px !important;
  margin-bottom: 0 !important;
}

.it-home .it-contact-section .it-map-card iframe {
  display: block !important;
  height: 360px !important;
}

.it-home + footer,
.it-home ~ footer {
  margin-top: 0 !important;
}

/* Tighten homepage map-to-footer spacing */
body:has(#common-home) main {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
#common-home .it-contact-section {
  padding-bottom: 8px !important;
  margin-bottom: 0 !important;
}
#common-home .it-contact-section .it-map-card {
  margin-bottom: 0 !important;
}

/* Modern visual polish for service cards and workflow section */
.it-service-grid {
  align-items: stretch;
}
.it-service-tile {
  position: relative;
  overflow: hidden;
  padding: 0 0 22px;
}
.it-service-image {
  display: block;
  height: clamp(118px, 12vw, 138px);
  overflow: hidden;
  background: linear-gradient(135deg, #edf4f8, #f7fbfd);
}
.it-service-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform 220ms ease;
}
.it-service-tile:hover .it-service-image img,
.it-service-tile:focus .it-service-image img {
  transform: scale(1.055);
}
.it-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -22px 22px 14px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--it-blue-2), var(--it-teal));
  box-shadow: 0 8px 18px rgba(22, 122, 127, 0.22);
}
.it-service-icon i {
  margin: 0;
  color: #fff;
  font-size: 20px;
}
.it-service-tile h3,
.it-service-tile p {
  margin-left: 22px;
  margin-right: 22px;
}
.it-workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.it-workflow-photo {
  margin: 0;
  min-height: 190px;
  max-height: 230px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
}
.it-workflow-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 190px;
  max-height: 230px;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 980px) {
  .it-workflow-grid {
    grid-template-columns: 1fr;
  }
  .it-service-image {
    height: 170px;
  }
}
/* Service cards without overlay icons */
.it-service-tile {
  padding-bottom: 24px;
}
.it-service-icon {
  display: none !important;
}
.it-service-tile h3 {
  margin-top: 18px;
}

/* Subtle motion for homepage hero/workflow visual images */
.it-visual-main {
  animation: itHeroImageDrift 11s ease-in-out infinite alternate;
  transform-origin: center center;
}
.it-visual:hover .it-visual-main {
  animation-play-state: paused;
}
@keyframes itHeroImageDrift {
  0% { transform: scale(1.055) translateX(-2.2%); }
  100% { transform: scale(1.055) translateX(2.2%); }
}
@media (prefers-reduced-motion: reduce) {
  .it-visual-main {
    animation: none;
    transform: none;
  }
}

/* Homepage readable text scale */
.it-home {
  font-size: 16px;
  line-height: 1.6;
}
.it-hero p {
  font-size: 17px;
  line-height: 1.6;
}
.it-btn {
  font-size: 14px;
}
.it-stat span {
  font-size: 13px;
  line-height: 1.42;
}
.it-visual-body h2 {
  font-size: 21px;
}
.it-visual-body p,
.it-tile p,
.it-product p,
.it-dark-card p,
.it-contact-card p,
.it-contact-list span,
.it-contact-list a {
  font-size: 15px;
  line-height: 1.58;
}
.it-tile h3,
.it-product h3,
.it-dark-card h3,
.it-contact-card h3 {
  font-size: 19px;
  line-height: 1.28;
}
.it-product-meta,
.it-chip,
.it-eyebrow {
  font-size: 12px;
}
@media (max-width: 980px) {
  .it-hero p,
  .it-visual-body p,
  .it-tile p,
  .it-product p,
  .it-dark-card p,
  .it-contact-card p,
  .it-contact-list span,
  .it-contact-list a {
    font-size: 15px;
  }
}

/* Space between the final workflow section and footer after removing the homepage map. */
#common-home > .it-section-dark:last-of-type {
  margin-bottom: 48px;
}

@media (max-width: 980px) {
  #common-home > .it-section-dark:last-of-type {
    margin-bottom: 36px;
  }
}

#common-home .it-footer-spacer {
  height: 14px;
  background: #112b49;
}

@media (max-width: 980px) {
  #common-home .it-footer-spacer {
    height: 12px;
  }
}

