/* ==========================================================================
   Nano Generators public site — page components
   (header / footer / buttons live in public-header.css)
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body.ng-site {
  margin: 0;
  background: #fff;
  color: var(--ng-text);
  font-family: var(--ng-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Base element rules use :where() so component classes always win. */
:where(.ng-site) img { display: block; max-width: 100%; }
:where(.ng-site) a { color: inherit; }
:where(.ng-site) :is(h1, h2, h3, h4, h5, h6) {
  margin: 0;
  color: var(--ng-ink);
  font-family: var(--ng-font);
  font-weight: 600;
  line-height: 1.2;
}
:where(.ng-site) p { margin: 0; }
:where(.ng-site) :is(button, input, select, textarea) { font: inherit; }

.ng-container { width: min(1290px, calc(100% - 48px)); margin-inline: auto; }
.ng-section { padding: 110px 0; }
.ng-section--tight { padding: 80px 0; }
.ng-bg-light { background: var(--ng-surface-2); }
.ng-bg-soft { background: var(--ng-surface); }
.ng-center { text-align: center; }

.ng-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--ng-green);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.ng-eyebrow::before {
  width: 14px;
  height: 14px;
  background: var(--ng-navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 2l5 6-5 6h2.5l5-6-5-6zM6 2l5 6-5 6h2.5l5-6-5-6z'/%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 16 16'%3E%3Cpath d='M1 2l5 6-5 6h2.5l5-6-5-6zM6 2l5 6-5 6h2.5l5-6-5-6z'/%3E%3C/svg%3E") center / contain no-repeat;
  content: "";
}

.ng-eyebrow--dark { color: var(--ng-ink); }

.ng-title { font-size: clamp(2rem, 4.2vw, 3.5rem); letter-spacing: -.01em; }
.ng-title--md { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.ng-title span { color: var(--ng-green); }

[data-ng-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s cubic-bezier(.22, .61, .36, 1); }
[data-ng-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- Home hero slider ---------- */

.ng-hero {
  position: relative;
  height: clamp(560px, 72vh, 760px);
  overflow: hidden;
  background: #0b1624;
  color: #fff;
}

/* Crossfade: the incoming slide fades in on top while the outgoing slide
   stays fully visible underneath (no dip to black between images). */
.ng-slide {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: flex;
  overflow: hidden;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s ease, visibility 0s linear 1.5s;
}

.ng-slide.is-active { z-index: 2; opacity: 1; visibility: visible; transition: opacity 1.5s ease, visibility 0s; }
.ng-slide.is-leaving { z-index: 1; opacity: 1; visibility: visible; transition: none; }
.ng-slide.is-leaving .ng-slide-content { opacity: 0; transition: opacity .35s ease; }

.ng-slide-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.08);
  transition: transform 7s ease-out;
  will-change: transform;
}

.ng-slide.is-active .ng-slide-bg,
.ng-slide.is-leaving .ng-slide-bg { transform: scale(1); }

.ng-slide::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgb(4 12 22 / 72%) 0%, rgb(4 12 22 / 35%) 45%, rgb(4 12 22 / 0%) 70%);
  content: "";
}

.ng-slide-content { position: relative; z-index: 2; width: min(1190px, calc(100% - 200px)); margin-inline: auto; padding-top: 60px; }

.ng-slide h1,
.ng-slide h2 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-shadow: 0 4px 30px rgb(0 0 0 / 35%);
}

.ng-slide p { margin-top: 18px; color: #fff; font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 500; }
.ng-slide .ng-btn { margin-top: 34px; }

.ng-slide.is-active h1,
.ng-slide.is-active h2,
.ng-slide.is-active p,
.ng-slide.is-active .ng-btn { animation: ng-rise .7s cubic-bezier(.22, .61, .36, 1) .3s both; }
.ng-slide.is-active p { animation-duration: .9s; animation-delay: .5s; }
.ng-slide.is-active .ng-btn { animation-duration: 1.1s; animation-delay: .7s; }

@keyframes ng-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

.ng-slider-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 0;
  background: rgb(14 58 102 / 90%);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s ease;
}

.ng-slider-arrow:hover { background: var(--ng-green); }
.ng-slider-arrow svg { width: 22px; height: 22px; }
.ng-slider-arrow--prev { left: 30px; }
.ng-slider-arrow--next { right: 30px; }

.ng-slider-dots { position: absolute; z-index: 5; right: 0; bottom: 34px; left: 0; display: flex; justify-content: center; gap: 10px; }
.ng-slider-dots button { width: 34px; height: 4px; border: 0; padding: 0; background: rgb(255 255 255 / 45%); cursor: pointer; transition: background .2s ease, width .2s ease; }
.ng-slider-dots button.is-active { width: 54px; background: var(--ng-green); }

/* ---------- Inner page banner ---------- */

.ng-banner {
  position: relative;
  display: flex;
  min-height: 560px;
  align-items: center;
  overflow: hidden;
  background: #0b1624;
  color: #fff;
}

.ng-banner-bg {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  animation: ng-zoom-out 2.4s cubic-bezier(.22, .61, .36, 1) both;
}

@keyframes ng-zoom-out { from { opacity: .4; transform: scale(1.12); } to { opacity: 1; transform: scale(1); } }

.ng-banner-inner > div:first-child > * { animation: ng-rise .8s cubic-bezier(.22, .61, .36, 1) both; }
.ng-banner-inner > div:first-child > :nth-child(2) { animation-delay: .15s; }
.ng-banner-inner > div:first-child > :nth-child(3) { animation-delay: .3s; }
.ng-banner-image { animation: ng-slide-in 1.2s cubic-bezier(.22, .61, .36, 1) .2s both; }

@keyframes ng-slide-in { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }

.ng-banner::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgb(4 12 22 / 70%) 0%, rgb(4 12 22 / 25%) 55%, rgb(4 12 22 / 0%) 100%);
  content: "";
}

.ng-banner-inner {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1290px, calc(100% - 48px));
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 30px;
  margin-inline: auto;
  padding: calc(var(--ng-header-h) + 40px) 0 50px;
}

.ng-banner h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.015em;
}

.ng-banner p { margin-top: 16px; max-width: 560px; color: rgb(255 255 255 / 88%); font-size: 1.1rem; }

.ng-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; color: rgb(255 255 255 / 75%); font-size: .92rem; }
.ng-breadcrumb li + li::before { margin-right: 8px; color: var(--ng-green); content: "/"; }
.ng-breadcrumb a { color: #fff; text-decoration: none; }
.ng-breadcrumb a:hover { color: var(--ng-green); }

.ng-banner-image { justify-self: end; width: min(100%, 640px); filter: drop-shadow(0 30px 40px rgb(0 0 0 / 45%)); }
.ng-banner-image img { width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.ng-banner-image--photo img { border-radius: 4px; }

/* ---------- About ---------- */

.ng-about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: start; }
.ng-about-lead { font-size: clamp(1.5rem, 2.6vw, 2.05rem); font-weight: 500; line-height: 1.32; }
.ng-about-lead span { color: var(--ng-green); }
.ng-about-side p { color: var(--ng-text); }
.ng-about-side h5 { margin: 30px 0 14px; color: var(--ng-green); font-size: 1.45rem; font-weight: 600; }
.ng-about-side .ng-strong-text { color: var(--ng-ink); font-weight: 500; }
.ng-about-side .ng-btn { margin-top: 36px; }

.ng-gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 50px;
  clip-path: polygon(0 0, calc(100% - 50px) 0, 100% 50px, 100% 100%, 0 100%);
}

.ng-gallery-strip a { position: relative; display: block; height: 300px; overflow: hidden; background: #dfe4e8; }
.ng-gallery-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ng-gallery-strip a:hover img { transform: scale(1.06); }
.ng-gallery-strip a::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(0 0 0 / 35%)); content: ""; }

.ng-gallery-link { display: flex; justify-content: flex-end; margin-top: 18px; }
.ng-gallery-link a { color: var(--ng-green); font-weight: 600; text-decoration: none; }
.ng-gallery-link a:hover { color: var(--ng-navy); }

/* ---------- Stats & feature cards ---------- */

.ng-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin: 60px 0 70px;
  text-align: center;
}

.ng-stat strong { display: inline-flex; align-items: flex-start; justify-content: center; color: var(--ng-navy); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 500; line-height: 1; }
.ng-stat { display: flex; flex-direction: column; align-items: center; }
.ng-stat > span { display: block; margin-top: 14px; color: var(--ng-text); font-size: 1.02rem; }

/* Odometer: each digit is a vertical strip of 0-9 (twice) that rolls into place. */
.ng-odo { display: inline-flex; }
.ng-odo-digit { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.ng-odo-strip { display: block; transition: transform 2.2s cubic-bezier(.2, .75, .25, 1); }
.ng-odo-strip > span { display: block; height: 1em; }
.ng-odo-sep { display: inline-block; height: 1em; line-height: 1; }

.ng-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }

/* Escon-style card: soft grey with green border, turns solid green on hover. */
.ng-feature-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--ng-green);
  padding: 28px 22px;
  background: var(--ng-surface);
  clip-path: polygon(0 0, 79% 0, 100% 0, 100% 100%, 0 100%);
  transition: background .5s ease, border-color .5s ease, box-shadow .5s ease, transform .5s ease;
}

.ng-feature-card img { width: 62px; height: 62px; margin-bottom: 46px; object-fit: contain; transition: filter .5s ease; }
.ng-feature-card h5 { margin-top: 0; font-size: 1.45rem; font-weight: 600; transition: color .5s ease; }
.ng-feature-card p { margin-top: 12px; transition: color .5s ease; }
.ng-feature-card:hover { border-color: var(--ng-green); background: var(--ng-green); box-shadow: 0 24px 44px rgb(0 152 71 / 25%); }
.ng-feature-card:hover h5 { color: #fff; }
.ng-feature-card:hover p { color: rgb(255 255 255 / 85%); }
.ng-feature-card:hover img { filter: brightness(0) invert(1); animation: ng-fold .3s linear; }

@keyframes ng-fold { 0% { transform: rotateY(0); } 50% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }

/* Staggered entrance like Escon's fadeInUpBig. */
.ng-feature-grid > [data-ng-reveal] { transform: translateY(80px); transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.22, .61, .36, 1), background .5s ease, box-shadow .5s ease; }
.ng-feature-grid > [data-ng-reveal]:nth-child(3n + 2) { transition-delay: .15s, .15s, 0s, 0s; }
.ng-feature-grid > [data-ng-reveal]:nth-child(3n) { transition-delay: .3s, .3s, 0s, 0s; }
.ng-feature-grid > [data-ng-reveal].is-revealed { transform: none; }

/* ---------- Products ---------- */

.ng-products-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 50px; }

.ng-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }

.ng-product-card {
  position: relative;
  display: block;
  height: 450px;
  overflow: hidden;
  background: linear-gradient(180deg, #f2f4f6, #dfe4e9);
  text-decoration: none;
}

.ng-product-card img { position: absolute; inset: 30px 24px 80px; width: calc(100% - 48px); height: calc(100% - 110px); object-fit: contain; transition: transform .6s ease; }
.ng-product-card:hover img { transform: scale(1.06); }

.ng-product-label {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  width: 78%;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--ng-green);
  color: #fff;
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.2;
  transition: width .35s ease, background .35s ease;
}

.ng-product-label svg { width: 22px; height: 22px; flex: 0 0 auto; opacity: 0; transform: translateX(-10px); transition: opacity .3s ease, transform .3s ease; }
.ng-product-card:hover .ng-product-label { width: 100%; background: var(--ng-navy); }
.ng-product-card:hover .ng-product-label svg { opacity: 1; transform: none; }

/* ---------- Industries ---------- */

/* ---------- Auto-scrolling carousel (industries, testimonials) ---------- */

.ng-carousel { --per-view: 5; --gap: 30px; position: relative; overflow: hidden; }
.ng-carousel-track { display: flex; gap: var(--gap); will-change: transform; }
.ng-carousel-track > * { flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view)); }

.ng-industries { --per-view: 5; margin-top: 50px; }

.ng-industry {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 12px 8px;
  text-align: center;
}

.ng-industry::after { position: absolute; top: 10%; right: calc(var(--gap) / -2); bottom: 10%; width: 1px; background: linear-gradient(180deg, transparent, rgb(0 0 0 / 10%), transparent); content: ""; }
.ng-industry img { width: 74px; height: 74px; object-fit: contain; transition: transform .4s ease; }
.ng-industry:hover img { transform: translateY(-6px) scale(1.05); }
.ng-industry span { color: var(--ng-text); font-size: .95rem; }

/* ---------- Testimonials ---------- */

.ng-testimonials { position: relative; overflow: hidden; background: #dfe3e8; }
.ng-testimonials::before { position: absolute; inset: 0; background: url("../images/site/band-warehouse.webp") center / cover no-repeat; content: ""; opacity: .35; }
.ng-testimonials::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(255 255 255 / 85%), rgb(255 255 255 / 55%)); content: ""; }
.ng-testimonials-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 2fr; align-items: center; gap: 40px; }
.ng-testimonials .ng-title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.12; }
.ng-testimonial-nav { display: flex; gap: 14px; margin-top: 40px; }
.ng-testimonial-nav button { display: grid; width: 50px; height: 50px; place-items: center; border: 0; background: var(--ng-green); color: #fff; cursor: pointer; transition: background .25s ease; }
.ng-testimonial-nav button:hover { background: var(--ng-navy); }
.ng-testimonial-nav svg { width: 20px; height: 20px; }
.ng-testimonial-carousel { --per-view: 2; }

.ng-testimonial {
  position: relative;
  display: flex;
  min-height: 420px;
  flex-direction: column;
  margin: 0;
  padding: 34px 32px 60px;
  background: #fff;
  box-shadow: 0 18px 40px rgb(21 42 64 / 8%);
}

.ng-testimonial::after { position: absolute; right: 50px; bottom: -6px; color: rgb(0 0 0 / 7%); content: "\201D"; font: 700 9rem/1 Georgia, serif; }
.ng-testimonial-head { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.ng-testimonial-avatar { display: grid; width: 74px; height: 74px; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 50%; background: linear-gradient(135deg, var(--ng-navy), var(--ng-green)); color: #fff; font-size: 1.6rem; font-weight: 700; }
.ng-testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ng-testimonial h6 { font-size: 1.2rem; font-weight: 600; }
.ng-testimonial-role { margin-top: 4px; color: var(--ng-text); font-size: .92rem; line-height: 1.45; }
.ng-testimonial-stars { margin-top: 6px; color: #ffc62d; letter-spacing: 2px; }
.ng-testimonial blockquote { margin: 0; color: var(--ng-text); font-size: 1.02rem; line-height: 1.75; }
.ng-sample-badge { display: inline-block; margin-bottom: 14px; border: 1px dashed #c2410c; padding: 2px 10px; color: #c2410c; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Contact ---------- */

.ng-contact { position: relative; overflow: hidden; background: #e6e4e5; }
.ng-contact::before { position: absolute; inset: 0; background: url("../images/site/contact-world-map.webp") left center / 70% auto no-repeat; content: ""; opacity: .9; }

.ng-contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }

.ng-contact-list { display: grid; gap: 28px; margin: 40px 0 0; padding: 0; list-style: none; }
.ng-contact-list li { display: flex; align-items: flex-start; gap: 28px; }

.ng-contact-icon {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  place-items: center;
  background: var(--ng-green);
  clip-path: polygon(0 0, 78% 0, 100% 22%, 100% 100%, 0 100%);
  color: #fff;
}

.ng-contact-icon svg { width: 26px; height: 26px; }
.ng-contact-list h6 { font-size: 1.3rem; font-weight: 600; }
.ng-contact-list p, .ng-contact-list a { margin-top: 6px; color: var(--ng-text); font-size: 1.02rem; text-decoration: none; }
.ng-contact-list a:hover { color: var(--ng-green); }
.ng-contact-links a { display: block; overflow-wrap: anywhere; }
.ng-contact-links h6 + a { margin-top: 8px; }
.ng-contact-links a + a { margin-top: 4px; }

.ng-form-card {
  position: relative;
  padding: 30px;
  background: #fff;
  clip-path: polygon(0 0, calc(100% - 60px) 0, 100% 60px, 100% 100%, 0 100%);
}

.ng-form-inner { border-radius: 10px; padding: 34px 32px; background: #fff; box-shadow: 0 12px 40px rgb(21 42 64 / 10%); }
.ng-form-head { margin-bottom: 26px; border-bottom: 1px solid rgb(0 0 0 / 8%); padding-bottom: 22px; text-align: center; }
.ng-form-head h3 { font-size: 1.85rem; font-weight: 500; }
.ng-form-head p { margin-top: 10px; color: #4a5877; }

.ng-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ng-form .ng-wide { grid-column: 1 / -1; }
.ng-form label { display: grid; gap: 6px; color: var(--ng-ink); font-size: .9rem; font-weight: 500; }
.ng-form input,
.ng-form select,
.ng-form textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid #c9ced8;
  border-radius: 4px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ng-ink);
  font-size: .98rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.ng-form textarea { min-height: 110px; resize: vertical; }
.ng-form input:focus, .ng-form select:focus, .ng-form textarea:focus { border-color: var(--ng-green); outline: 0; box-shadow: 0 0 0 3px rgb(0 152 71 / 15%); }
.ng-form .ng-btn { justify-self: center; min-width: 200px; border-radius: 30px; }

/* ---------- Content (inner pages) ---------- */

.ng-content { padding: 70px 0 100px; }
.ng-intro p + p { margin-top: 18px; }
.ng-intro p { font-size: 1.04rem; }

.ng-block { margin-top: 70px; }
.ng-block > h2,
.ng-block > h3 { margin-bottom: 22px; font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 600; }
.ng-block p + p { margin-top: 16px; }
.ng-block p a, .ng-intro p a { color: var(--ng-green); font-weight: 500; text-decoration: none; }
.ng-block p a:hover, .ng-intro p a:hover { text-decoration: underline; }

.ng-range-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 50px; }

.ng-model-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; text-decoration: none; transition: box-shadow .3s ease, transform .3s ease; }
.ng-model-card:hover { box-shadow: 0 25px 45px rgb(21 42 64 / 12%); transform: translateY(-6px); }
.ng-model-image { display: grid; height: 260px; place-items: center; padding: 20px; background: #fff; }
.ng-model-image img { max-width: 82%; max-height: 220px; width: auto; object-fit: contain; transition: transform .5s ease; }
.ng-model-card:hover .ng-model-image img { transform: scale(1.06); }
.ng-model-body { display: flex; flex: 1; flex-direction: column; padding: 26px 20px 22px; background: var(--ng-surface); }
.ng-model-body h5 { font-size: 1.45rem; font-weight: 600; }
.ng-model-body p { margin-top: 12px; flex: 1; }
.ng-model-more { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; color: var(--ng-ink); font-weight: 600; }
.ng-model-more span:last-child { display: grid; width: 32px; height: 32px; place-items: center; background: #e2e2e2; transition: background .25s ease, color .25s ease; }
.ng-model-more svg { width: 16px; height: 16px; }
.ng-model-card:hover .ng-model-more span:last-child { background: var(--ng-green); color: #fff; }

.ng-checklist { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.ng-checklist--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.ng-checklist li { position: relative; padding-left: 32px; color: var(--ng-text); }
.ng-checklist li::before {
  position: absolute;
  top: 3px;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--ng-green);
  -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='2.2'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='m7.5 12.2 3 3 6-6.2'/%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='2.2'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='m7.5 12.2 3 3 6-6.2'/%3E%3C/svg%3E") center / contain no-repeat;
  content: "";
}

.ng-detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.ng-detail-item { border-left: 3px solid var(--ng-green); padding: 18px 20px; background: var(--ng-surface); }
.ng-detail-item strong { display: block; color: var(--ng-ink); font-size: 1.1rem; font-weight: 600; }
.ng-detail-item p { margin-top: 6px; }

.ng-table-wrap { overflow-x: auto; border: 1px solid #dfe3e8; -webkit-overflow-scrolling: touch; }
.ng-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .97rem; }
.ng-table th,
.ng-table td { padding: 13px 14px; border-bottom: 1px solid #e8ebef; text-align: left; vertical-align: top; }
.ng-table thead th { background: var(--ng-navy); color: #fff; font-weight: 600; white-space: nowrap; }
.ng-table tbody th { color: var(--ng-ink); font-weight: 600; white-space: nowrap; }
.ng-table tbody tr:nth-child(even) { background: #f3f4f6; }
.ng-table tbody tr:hover { background: #eaf6ef; }
.ng-table .ng-group th { background: var(--ng-navy); color: #fff; }
.ng-table-note { margin-top: 14px; font-size: .95rem; }

.ng-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 26px; }
.ng-tier { display: flex; flex-direction: column; border-top: 4px solid var(--ng-green); padding: 26px 22px; background: var(--ng-surface); }
.ng-tier h4 { font-size: 1.3rem; }
.ng-tier p { margin-top: 12px; flex: 1; }
.ng-tier a { margin-top: 18px; color: var(--ng-green); font-weight: 600; text-decoration: none; }
.ng-tier a:hover { color: var(--ng-navy); }

.ng-cta-row { display: flex; justify-content: flex-end; margin-top: 26px; }

.ng-explore { margin-top: 50px; border-top: 1px solid #e4e7eb; padding-top: 26px; line-height: 1.9; }
.ng-explore strong { color: var(--ng-ink); }
.ng-explore a { color: var(--ng-green); text-decoration: none; }
.ng-explore a:hover { text-decoration: underline; }

.ng-faq { display: grid; gap: 20px; margin-top: 26px; }
.ng-faq details { border: 1px solid #e3e6ea; background: var(--ng-surface); transition: background .2s ease; }
.ng-faq details[open] { background: #fff; box-shadow: 0 12px 30px rgb(21 42 64 / 7%); }
.ng-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; color: var(--ng-ink); cursor: pointer; font-size: 1.2rem; font-weight: 500; list-style: none; }
.ng-faq summary::-webkit-details-marker { display: none; }
.ng-faq summary::after { flex: 0 0 auto; color: var(--ng-ink); content: "+"; font-size: 1.6rem; font-weight: 400; line-height: 1; }
.ng-faq details[open] summary { border-bottom: 1px solid #e3e6ea; color: var(--ng-green); }
.ng-faq details[open] summary::after { color: var(--ng-green); content: "−"; }
.ng-faq .ng-faq-body { padding: 20px 22px 24px; }

/* ---------- Model detail page ---------- */

.ng-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.ng-detail-grid .ng-lead { font-size: 1.08rem; }
.ng-sidebar { position: sticky; top: calc(var(--ng-header-h) + 24px); display: grid; gap: 30px; }
.ng-side-card { padding: 36px 34px; background: var(--ng-surface); }
.ng-side-card h5 { margin-bottom: 20px; font-size: 1.45rem; }
.ng-side-card p { margin-bottom: 22px; }
.ng-side-card .ng-btn { width: 100%; }
.ng-side-links { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ng-side-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #e3e6ea; padding: 14px 18px; background: #fff; color: var(--ng-ink); font-weight: 500; text-decoration: none; transition: border-color .2s ease, color .2s ease; }
.ng-side-links a:hover, .ng-side-links a.is-current { border-color: var(--ng-green); color: var(--ng-green); }
.ng-side-links svg { width: 16px; height: 16px; }

.ng-cta-band {
  position: relative;
  margin-top: 70px;
  overflow: hidden;
  padding: 70px 50px;
  background: #f1f1f1 url("../images/site/cta-handshake.webp") right center / cover no-repeat;
}

.ng-cta-band::before { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(241 241 241 / 96%) 0%, rgb(241 241 241 / 80%) 45%, rgb(241 241 241 / 0%) 75%); content: ""; }
.ng-cta-band > * { position: relative; }
.ng-cta-band h3 { max-width: 460px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.ng-cta-band .ng-btn { margin-top: 30px; }

/* ---------- About page ---------- */

.ng-why-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.ng-why-item { display: flex; align-items: center; gap: 18px; border: 1px solid var(--ng-green); padding: 22px; background: var(--ng-surface); color: var(--ng-ink); font-size: 1.1rem; font-weight: 600; }
.ng-why-item img { width: 50px; height: 50px; object-fit: contain; }

.ng-service-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 0; }
.ng-service-band h3 { font-size: 1.6rem; }
.ng-service-band p { margin-top: 8px; }

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
  .ng-industries { --per-view: 4; }
  .ng-detail-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}

@media (max-width: 991px) {
  .ng-industries { --per-view: 3; }
  .ng-testimonial-carousel { --per-view: 1; }
  .ng-testimonials-grid { grid-template-columns: 1fr; }
  .ng-section { padding: 80px 0; }
  .ng-slide-content { width: calc(100% - 48px); }
  .ng-slider-arrow { top: auto; bottom: 24px; width: 48px; height: 48px; transform: none; }
  .ng-slider-arrow--prev { left: auto; right: 84px; }
  .ng-slider-arrow--next { right: 24px; }
  .ng-slider-dots { right: auto; left: 24px; justify-content: flex-start; }
  .ng-banner { min-height: 0; }
  .ng-banner-inner { grid-template-columns: 1fr; }
  .ng-banner-image { justify-self: center; width: min(100%, 520px); }
  .ng-about-grid,
  .ng-contact-grid,
  .ng-detail-grid { grid-template-columns: 1fr; gap: 50px; }
  .ng-sidebar { position: static; }
  .ng-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .ng-feature-grid,
  .ng-product-grid,
  .ng-range-grid,
  .ng-tiers,
  .ng-why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ng-gallery-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ng-gallery-strip a { height: 220px; }
}

@media (max-width: 640px) {
  .ng-carousel { --gap: 16px; }
  .ng-industries { --per-view: 2; }
  .ng-testimonial { min-height: 0; padding: 26px 22px 50px; }
  .ng-container { width: calc(100% - 32px); }
  .ng-section { padding: 64px 0; }
  .ng-hero { height: 600px; }
  .ng-slide::before { background: linear-gradient(180deg, rgb(4 12 22 / 75%) 0%, rgb(4 12 22 / 45%) 60%, rgb(4 12 22 / 25%) 100%); }
  .ng-slide-bg { background-position: 70% center; }
  .ng-slide-content { width: calc(100% - 32px); padding-top: 0; }
  .ng-banner-inner { width: calc(100% - 32px); padding-top: calc(var(--ng-header-h) + 30px); }
  .ng-feature-grid,
  .ng-product-grid,
  .ng-range-grid,
  .ng-tiers,
  .ng-why-list,
  .ng-detail-list,
  .ng-checklist--cols,
  .ng-form { grid-template-columns: 1fr; }
  .ng-feature-card { min-height: 0; }
  .ng-feature-card img { margin-bottom: 26px; }
  .ng-product-card { height: 360px; }
  .ng-gallery-strip { clip-path: none; }
  .ng-gallery-strip a { height: 160px; }
  .ng-contact::before { background-size: 160% auto; }
  .ng-form-card { padding: 14px; clip-path: none; }
  .ng-form-inner { padding: 26px 18px; }
  .ng-contact-list li { gap: 18px; }
  .ng-cta-band { padding: 50px 24px; }
  .ng-cta-band::before { background: rgb(241 241 241 / 88%); }
  .ng-side-card { padding: 28px 22px; }
  .ng-faq summary { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  /* Keep fades, counters and carousels; drop large zoom / slide movements. */
  html { scroll-behavior: auto; }
  .ng-slide-bg { transform: none !important; transition: none !important; }
  .ng-banner-bg { animation: ng-fade-in 1s ease both !important; }
  .ng-slide.is-active :is(h1, h2, p, .ng-btn),
  .ng-banner-inner > div:first-child > *,
  .ng-banner-image { animation-name: ng-fade-in !important; }
  [data-ng-reveal] { transform: none !important; }
}

@keyframes ng-fade-in { from { opacity: 0; } to { opacity: 1; } }


/* ---------- Utilities ---------- */
.ng-link { color: var(--ng-green); font-weight: 600; text-decoration: none; }
.ng-link:hover { color: var(--ng-navy); text-decoration: underline; }
.ng-mt { margin-top: 16px; }
.ng-gallery-strip--flush { margin-top: 0; }
.ng-cta-text { max-width: 460px; margin-top: 12px; }
.ng-industries-head { margin-top: 100px; }
.ng-block--first { margin-top: 0; }
.ng-side-title { margin-bottom: 18px; font-size: 1.45rem; }
.ng-mt-lg { margin-top: 50px; }
.ng-feature-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199px) { .ng-feature-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ng-feature-grid--4 { grid-template-columns: 1fr; } }
