/* ==========================================================================
   101 LOCKER — Product Layer  |  css/101locker.css  (loaded after zerotouch.css)
   101 Locker runs on the Zero Touch gold-on-black design system. This layer
   adds the product lockup (badge + name + "by Zero Touch"), the hero badge,
   problem/solution cards, the "A Zero Touch Product" family section and the
   "Powered by Zero Touch" footer strip.
   ========================================================================== */

/* 00. STICKY HEADER ------------------------------------------------------- */
/* .site-header is position:sticky, but main.js injects it into <div id="site-header">,
   which is only as tall as the header — so it could never stick. Let the wrapper's
   children take part in the page flow directly. */
#site-header {
  display: contents;
}

/* in-page links (#tv-locker, #faq…) land below the sticky header, not under it */
[id] {
  scroll-margin-top: calc(var(--navbar-height, 72px) + 16px);
}

/* 01. BRAND LOCKUP (navbar, drawer, footer) ------------------------------- */
.l101-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.nav-brand.l101-brand .nav-brand-logo.l101-brand-badge {
  height: 46px;
  width: auto;
  max-width: none;
  margin: 0;
  filter: drop-shadow(0 0 10px rgba(209, 189, 114, 0.25));
}

.l101-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.l101-brand-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  background: var(--zt-metal-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.l101-brand-by {
  margin-top: 0.22rem;
  color: #9C947D;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.l101-brand-by b {
  color: var(--zt-gold);
  font-weight: 700;
}

@media (max-width: 991px) {
  .nav-brand.l101-brand .nav-brand-logo.l101-brand-badge { height: 40px; }
  .l101-brand-name { font-size: 1.08rem; }
}

@media (max-width: 380px) {
  .nav-brand.l101-brand .nav-brand-logo.l101-brand-badge { height: 34px; }
  .l101-brand { gap: 0.45rem; }
  .l101-brand-name { font-size: 0.98rem; }
  .l101-brand-by { font-size: 0.52rem; letter-spacing: 0.12em; }
}

/* small laptops (desktop menu, but under ~1280px): the full header needs ~1165px,
   so compact it — hide the phone button, shorten the CTA, tighten menu spacing. */
.nav-cta {
  white-space: nowrap;
}

@media (min-width: 1025px) and (max-width: 1279px) {
  .navbar { gap: 1rem; }
  .nav-menu { gap: 0; }
  .site-header .nav-link { padding-inline: 0.6rem; }
  .site-header .nav-hotline-btn { display: none !important; }
  .nav-cta { padding-inline: 1rem; }
}

/* "Schedule Free Demo" → "Free Demo" until there is room for the full label */
@media (min-width: 1025px) and (max-width: 1439px) {
  .l101-cta-long { display: none; }
}

/* touch screens: comfortable tap targets for the phone button and footer contact links */
@media (max-width: 1024px) {
  .site-header .nav-hotline-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .footer-contact-item a,
  .footer-legal-link {
    display: inline-block;
    padding-block: 0.6rem;
  }

  .footer-social-link {
    min-width: 44px;
    min-height: 44px;
  }
}

/* footer variant — a little larger */
.l101-brand--footer {
  margin-bottom: var(--space-4, 1rem);
}

.l101-brand--footer .nav-brand-logo.l101-brand-badge {
  height: 58px !important;
}

.l101-brand--footer .l101-brand-name {
  font-size: 1.45rem;
}

/* 02. LOADER — badge + "A Zero Touch Product" ----------------------------- */
.site-loader {
  flex-direction: column;
  gap: 1.1rem;
}

.loader-logo.l101-loader-logo {
  width: 66%;
  height: 66%;
}

.l101-loader-by {
  margin: 0;
  color: var(--zt-gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* 03. HERO BADGE ----------------------------------------------------------- */
.l101-hero-badge {
  position: relative;
  width: clamp(104px, 12vw, 136px);
  margin: 0 auto 1.25rem;
  animation: ztRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.l101-hero-badge img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(209, 189, 114, 0.35));
  animation: l101Float 5s ease-in-out infinite;
}

.l101-hero-badge-ring {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 135%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(209, 189, 114, 0.22) 0%, rgba(209, 189, 114, 0.05) 45%, transparent 70%);
}

@keyframes l101Float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* status strip: keep each label on one line. The hero column is capped at 960px,
   so the strip is allowed to grow past it (centred) on wide screens. */
@media (min-width: 992px) {
  .zt-hero-status {
    width: max-content;
    max-width: calc(100vw - 2rem);
    align-self: center;
  }

  .zt-status-text strong,
  .zt-status-text span {
    white-space: nowrap;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .zt-status-pill {
    display: none;
  }
}

/* three status items instead of two */
@media (min-width: 601px) and (max-width: 991px) {
  .zt-hero-status { flex-wrap: wrap; justify-content: center; }
  .zt-hero-status .zt-status-divider:last-of-type { display: none; }
}

/* six "why" items read best as a clean 3 × 2 grid on desktop */
@media (min-width: 992px) {
  #why-brand .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 04. PROBLEM → SOLUTION -------------------------------------------------- */
.l101-ps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.l101-ps-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 20px;
  background: linear-gradient(165deg, var(--zt-card-hi) 0%, var(--zt-card) 55%, #0D0B08 100%);
  border: 1px solid rgba(209, 189, 114, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 246, 216, 0.04), 0 14px 34px -18px rgba(0, 0, 0, 0.8);
}

.l101-ps-card--solution {
  border-color: rgba(209, 189, 114, 0.38);
  box-shadow: var(--zt-glow);
}

.l101-ps-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.l101-ps-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  color: var(--zt-gold);
  background: rgba(209, 189, 114, 0.08);
  border: 1px solid rgba(209, 189, 114, 0.26);
}

.l101-ps-card--problem .l101-ps-icon {
  color: #E08A6E;
  background: rgba(224, 138, 110, 0.08);
  border-color: rgba(224, 138, 110, 0.3);
}

.l101-ps-card--solution .l101-ps-icon {
  color: #0A0907;
  background: var(--zt-metal);
  border-color: rgba(247, 234, 185, 0.6);
}

.l101-ps-icon svg {
  width: 22px;
  height: 22px;
}

.l101-ps-kicker {
  display: block;
  color: var(--zt-gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.l101-ps-card--problem .l101-ps-kicker {
  color: #E08A6E;
}

.l101-ps-title {
  margin: 0.25rem 0 0;
  color: #F6F0DF;
  font-size: 1.2rem;
}

.l101-ps-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.l101-ps-list li {
  position: relative;
  padding-left: 1.75rem;
  color: #C9C1AB;
  line-height: 1.55;
}

.l101-ps-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(224, 138, 110, 0.75);
}

.l101-ps-card--solution .l101-ps-list li::before {
  top: 0.32em;
  width: 16px;
  height: 16px;
  border: 0;
  background: var(--zt-gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

.l101-ps-arrow {
  display: grid;
  place-items: center;
  align-self: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #0A0907;
  background: var(--zt-metal);
  box-shadow: 0 0 0 6px rgba(209, 189, 114, 0.08), 0 10px 26px -8px rgba(209, 189, 114, 0.6);
}

.l101-ps-arrow svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 860px) {
  .l101-ps-grid {
    grid-template-columns: 1fr;
  }

  .l101-ps-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
}

/* 05. STORY EMBLEM — 101 badge + "Powered by Zero Touch" ------------------ */
.l101-emblem .zt-emblem-mark {
  width: 74%;
  height: 74%;
}

.l101-emblem-powered {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.l101-emblem-powered span {
  color: #CFC3A0;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.l101-emblem-powered .zt-emblem-wordmark {
  width: clamp(130px, 16vw, 190px);
}

/* 06. A ZERO TOUCH PRODUCT — family section ------------------------------- */
.l101-family {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 45% 60% at 0% 50%, rgba(209, 189, 114, 0.09), transparent 70%),
    linear-gradient(180deg, #0B0A07 0%, #070605 100%);
  border-block: 1px solid rgba(209, 189, 114, 0.12);
}

.l101-family::before {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: clamp(260px, 34vw, 480px);
  aspect-ratio: 1;
  background: url("../assets/zerotouch/logo-mark.png") center / contain no-repeat;
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
}

.l101-family-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.l101-family-logo {
  display: block;
  width: clamp(180px, 22vw, 250px);
  height: auto;
  margin: 1.1rem 0 1.4rem;
  filter: drop-shadow(0 0 14px rgba(209, 189, 114, 0.18));
}

.l101-family-copy .section-title {
  text-align: left;
  margin-bottom: 1rem;
}

.l101-family-desc {
  color: #C9C1AB;
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.l101-family-desc strong {
  color: #F3E3AE;
  font-weight: 600;
}

.l101-family-tagline {
  margin-bottom: 1.8rem;
  padding-left: 1rem;
  border-left: 2px solid var(--zt-gold);
  color: #9C947D;
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.7;
}

.l101-family-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.l101-family-panel {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(30, 26, 18, 0.8), rgba(12, 11, 8, 0.85));
  border: 1px solid rgba(209, 189, 114, 0.22);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 246, 216, 0.06);
}

.l101-family-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding-bottom: 1.4rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid rgba(209, 189, 114, 0.14);
}

.l101-family-stat {
  text-align: center;
}

.l101-family-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  background: var(--zt-metal-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.l101-family-stat span {
  display: block;
  margin-top: 0.2rem;
  color: #8F8873;
  font-size: 0.74rem;
  line-height: 1.35;
}

.l101-family-label {
  margin: 0 0 0.85rem;
  color: var(--zt-gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.l101-family-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.l101-family-services li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(209, 189, 114, 0.2);
  background: rgba(209, 189, 114, 0.04);
  color: #D9D1BC;
  font-size: 0.8rem;
  font-weight: 500;
}

.l101-family-services li.is-current {
  border-color: rgba(247, 234, 185, 0.6);
  background: rgba(209, 189, 114, 0.14);
  color: #FFF6D8;
  font-weight: 600;
}

.l101-family-services li img {
  width: 20px;
  height: auto;
}

.l101-family-services li em {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--zt-metal);
  color: #0A0907;
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 991px) {
  .l101-family-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .l101-family-actions .btn {
    width: 100%;
  }
}

/* 07. FOOTER — "Powered by Zero Touch" strip ------------------------------ */
.l101-powered {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding: 1.1rem 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(209, 189, 114, 0.16);
  background: linear-gradient(110deg, rgba(209, 189, 114, 0.08), rgba(18, 16, 12, 0.6) 55%, transparent);
}

.l101-powered-link {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: none;
  text-decoration: none;
}

.l101-powered-label {
  color: #8F8873;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.l101-powered-logo {
  display: block;
  width: 170px;
  height: auto;
  transition: filter 0.3s ease;
}

.l101-powered-link:hover .l101-powered-logo {
  filter: drop-shadow(0 0 12px rgba(209, 189, 114, 0.45));
}

.l101-powered-text {
  margin: 0;
  padding-left: clamp(1rem, 3vw, 2rem);
  border-left: 1px solid rgba(209, 189, 114, 0.18);
  color: #9C947D;
  font-size: 0.85rem;
  line-height: 1.6;
}

@media (max-width: 680px) {
  .l101-powered {
    flex-direction: column;
    align-items: flex-start;
  }

  .l101-powered-text {
    padding-left: 0;
    padding-top: 0.9rem;
    border-left: 0;
    border-top: 1px solid rgba(209, 189, 114, 0.18);
  }
}

/* 08. CAPABILITY MATRIX — "not available" cells ---------------------------- */
.badge--muted {
  background: transparent;
  border: 1px dashed rgba(209, 189, 114, 0.2);
  color: #6F6957;
}

.data-table td.l101-cell-label small {
  display: block;
  margin-top: 0.15rem;
  color: #8F8873;
  font-size: 0.72rem;
  font-weight: 500;
}

/* 3-column card grids: centre an incomplete last row on desktop.
   A 6-track grid lets each card span 2 tracks, so 1 or 2 leftover cards can sit centred. */
@media (min-width: 1100px) {
  .page-services .services-deep-grid,
  #services .services-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .page-services .services-deep-grid > *,
  #services .services-grid > * {
    grid-column: span 2;
  }

  /* one leftover card → middle */
  #services .services-grid > :last-child:nth-child(3n + 1) {
    grid-column: 3 / span 2;
  }

  /* two leftover cards → centred pair */
  .page-services .services-deep-grid > :nth-last-child(2):nth-child(3n + 1) {
    grid-column: 2 / span 2;
  }
}

/* plain-HTML nav shown only when JavaScript is off (crawlers / no-JS visitors) */
.l101-noscript-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  padding: 1rem;
  background: #050403;
  border-bottom: 1px solid rgba(209, 189, 114, 0.2);
}

.l101-noscript-nav a {
  color: var(--zt-gold);
  font-weight: 600;
  text-decoration: none;
}

/* 09. MOTION SAFETY --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .l101-hero-badge,
  .l101-hero-badge img {
    animation: none;
  }
}
