/* ============================================================
   product-nh.css — Shared design system for NestHR-style product pages
   Used by: attendance-payroll-software.html, lead-generation-software.html
   ============================================================ */

/* ===== SPLIT HERO ===== */
.nh-hero-split {
  padding: 40px 0 0 !important;
  overflow: hidden !important;
}
.nh-hs-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: flex-end;
  min-height: 340px;
}
.nh-hs-left {
  padding-bottom: 48px;
}
.nh-hs-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid var(--primary-900);
  color: var(--primary-900);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.nh-hs-left h1 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  color: var(--primary-900);
  margin: 0 0 16px;
  line-height: 1.15;
}
.nh-hs-left p {
  color: var(--primary-900);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 28px;
  max-width: 420px;
}
.nh-hs-cta {
  display: inline-block;
  background: #fff;
  color: #044bab;
  font-weight: 800;
  font-size: 15px;
  padding: 13px 30px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, color 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.nh-hs-cta:hover {
  background: #fa731b;
  color: #fff;
  transform: translateY(-2px);
}
.nh-hs-right {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.nh-hs-person {
  position: relative;
  z-index: 2;
  display: block;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.2));
}
.nh-hs-dashboard {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(4, 75, 171, 0.25);
  margin-bottom: 32px;
}
@media (max-width: 860px) {
  .nh-hs-inner {
    grid-template-columns: 1fr;
    min-height: unset;
    padding: 0 20px;
  }
  .nh-hs-left {
    padding-bottom: 0;
    text-align: center;
  }
  .nh-hs-left p {
    max-width: 100%;
  }
  .nh-hs-right {
    min-height: 260px;
    margin-top: 24px;
  }
  .nh-hs-person {
    height: 350px;
  }
  .nh-hs-dashboard {
    margin-bottom: 0;
  }
}

/* ===== GENERAL ===== */
.nh-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.nh-section-title {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 800;
  color: #111;
  margin: 0 0 12px;
  line-height: 1.25;
}
.nh-section-sub {
  color: #515152;
  font-size: 16px;
  margin: 0 auto 40px;
  max-width: 640px;
}
.nh-accent {
  color: #044bab;
}

/* ===== SLIDE ANIMATIONS ===== */
.slide-up,
.slide-left,
.slide-right {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.slide-up {
  transform: translateY(40px);
}
.slide-left {
  transform: translateX(-50px);
}
.slide-right {
  transform: translateX(50px);
}
.slide-up.in-view,
.slide-left.in-view,
.slide-right.in-view {
  opacity: 1;
  transform: translate(0);
}

/* ===== ABOUT SECTION ===== */
.nh-about-section {
  padding: 72px 0 56px;
  background: #fff;
}
.nh-about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) {
  .nh-about-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.nh-about-tag {
  display: inline-block;
  background: #e8f0ff;
  color: #044bab;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.nh-about-left h2 {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  color: #111;
  margin: 0 0 16px;
  line-height: 1.25;
}
.nh-about-left p {
  color: #515152;
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 28px;
}
.nh-about-highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nh-about-highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.nh-hl-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #e8f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nh-hl-icon i {
  color: #044bab;
  font-size: 17px;
}
.nh-hl-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin-bottom: 2px;
}
.nh-hl-text span {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}
.nh-about-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== YOUTUBE SHORT CARD ===== */
.nh-yt-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 20px 60px rgba(4, 75, 171, 0.25);
  background: #000;
  transition: transform 0.25s, box-shadow 0.25s;
}
.nh-yt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 72px rgba(4, 75, 171, 0.35);
}
.nh-yt-card img.nh-yt-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}
.nh-yt-card:hover img.nh-yt-thumb {
  transform: scale(1.04);
}
.nh-yt-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.75) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.nh-yt-play-btn {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, background 0.2s;
}
.nh-yt-card:hover .nh-yt-play-btn {
  transform: scale(1.1);
  background: #fff;
}
.nh-yt-play-btn svg {
  width: 28px;
  height: 28px;
  fill: #fa731b;
  margin-left: 4px;
}
.nh-yt-card-label {
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
}
.nh-yt-card-label-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fa731b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 6px;
}
.nh-yt-card-label-tag svg {
  width: 12px;
  height: 12px;
  fill: #fff;
}
.nh-yt-card-label p {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.nh-yt-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
.nh-yt-modal-backdrop.active {
  display: flex;
}
.nh-yt-modal {
  position: relative;
  width: min(360px, 90vw);
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
  animation: nh-modal-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes nh-modal-in {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.nh-yt-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.nh-yt-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  transition: background 0.2s;
  z-index: 10;
}
.nh-yt-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===== SCREENSHOT / METHODS GRID ===== */
.nh-methods-section {
  padding: 64px 0;
  background: #fff;
  text-align: center;
}
.nh-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 768px) {
  .nh-methods-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .nh-methods-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}
.nh-method-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(4, 75, 171, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.nh-method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(4, 75, 171, 0.14);
}
.nh-method-card-img-wrap {
  position: relative;
  overflow: hidden;
}
.nh-method-card-img-wrap img {
  width: 80%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
  margin: 0 auto;
  padding-top: 10px;
}
.nh-method-card:hover .nh-method-card-img-wrap img {
  transform: scale(1.04);
}
.nh-method-card-zoom {
  position: absolute;
  inset: 0;
  background: rgba(4, 75, 171, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}
.nh-method-card:hover .nh-method-card-zoom {
  opacity: 1;
}
.nh-method-card-zoom svg {
  width: 36px;
  height: 36px;
  fill: #fff;
}
.nh-method-card-body {
  padding: 14px 16px 16px;
  text-align: center;
}
.nh-method-card-body p {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 14px;
  color: #111;
}
.nh-method-card-body span {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}
.nh-dash-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
.nh-dash-modal-backdrop.active {
  display: flex;
}
.nh-dash-modal {
  position: relative;
  max-width: min(900px, 94vw);
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
  animation: nh-modal-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.nh-dash-modal img {
  width: 100%;
  height: auto;
  display: block;
}
.nh-dash-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  transition: background 0.2s;
  z-index: 10;
}
.nh-dash-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===== KEY FEATURES GRID ===== */
.nh-features-section {
  padding: 72px 0;
  background: #f7fbff;
  text-align: center;
}
.nh-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  text-align: left;
}
@media (max-width: 900px) {
  .nh-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .nh-features-grid {
    grid-template-columns: 1fr;
  }
}
.nh-feat-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 2px 16px rgba(4, 75, 171, 0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nh-feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(4, 75, 171, 0.13);
}
.nh-feat-icon {
  width: 48px;
  height: 48px;
  background: #e8f0ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.nh-feat-icon i {
  color: #044bab;
  font-size: 20px;
}
.nh-feat-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin: 0 0 8px;
}
.nh-feat-card p {
  font-size: 13px;
  color: #555;
  line-height: 1.65;
  margin: 0;
}

/* ===== INDUSTRIES ===== */
.nh-industries-section {
  padding: 72px 0;
  background: #fff;
  text-align: center;
}
.nh-industries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .nh-industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 480px) {
  .nh-industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.nh-industry-item {
  background: #f7fbff;
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
}
.nh-industry-item:hover {
  background: #e8f0ff;
  transform: translateY(-3px);
}
.nh-industry-item i {
  font-size: 28px;
  color: #044bab;
  margin-bottom: 10px;
  display: block;
}
.nh-industry-item span {
  font-size: 13px;
  font-weight: 600;
  color: #111;
}

/* ===== WHY SECTION ===== */
.nh-why-section {
  padding: 72px 0;
  background: #f7fbff;
}
.nh-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .nh-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .nh-why-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.nh-why-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(4, 75, 171, 0.06);
}
.nh-why-card i {
  font-size: 28px;
  color: #fa731b;
  margin-bottom: 12px;
  display: block;
}
.nh-why-card strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}
.nh-why-card p {
  font-size: 12px;
  color: #666;
  line-height: 1.55;
  margin: 0;
}

/* ===== TESTIMONIALS CAROUSEL ===== */
.nh-testi-section {
  padding: 72px 0 56px;
  background: #f7fbff;
  text-align: center;
}
.nh-testi-carousel-wrap {
  position: relative;
  margin-top: 40px;
  overflow: hidden;
}
.nh-testi-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.nh-testi-card {
  flex: 0 0 calc((100% - 40px) / 3);
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(4, 75, 171, 0.09);
  aspect-ratio: 9/16;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
@media (max-width: 860px) {
  .nh-testi-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}
@media (max-width: 540px) {
  .nh-testi-card {
    flex: 0 0 80%;
  }
}
.nh-testi-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 24px;
  height: 100%;
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f0ff 100%);
}
.nh-testi-placeholder-icon {
  width: 56px;
  height: 56px;
  background: #044bab;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nh-testi-placeholder-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  margin-left: 4px;
}
.nh-testi-placeholder h4 {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin: 0;
}
.nh-testi-placeholder p {
  font-size: 12px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}
.nh-testi-coming-tag {
  display: inline-block;
  background: #fa731b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}
.nh-testi-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.nh-testi-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #044bab;
  background: #fff;
  color: #044bab;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  font-size: 18px;
}
.nh-testi-btn:hover {
  background: #044bab;
  color: #fff;
}
.nh-testi-dots {
  display: flex;
  gap: 8px;
}
.nh-testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c5d5f0;
  transition: background 0.2s, width 0.2s;
  cursor: pointer;
}
.nh-testi-dot.active {
  background: #044bab;
  width: 22px;
  border-radius: 4px;
}

/* ===== CLIENTS / BRANDS SECTION ===== */
.nh-clients-section {
  padding: 72px 0;
  background: #fff;
  text-align: center;
}
.nh-brand-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 40px 0 0;
}
.nh-brand-strip img {
  height: 85px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.7);
  transition: filter 0.2s;
}
.nh-brand-strip img:hover {
  filter: none;
}
.nh-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  text-align: left;
}
@media (max-width: 768px) {
  .nh-testimonials {
    grid-template-columns: 1fr;
  }
}
.nh-testimonials .nh-testi-card {
  background: #f0f6ff;
  border-radius: 16px;
  padding: 28px 24px;
  aspect-ratio: unset;
  display: block;
  box-shadow: none;
}
.nh-testi-stars {
  color: #fa731b;
  font-size: 18px;
  margin-bottom: 12px;
}
.nh-testimonials .nh-testi-card p {
  color: #333;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 18px;
  font-style: italic;
}
.nh-testi-author strong {
  font-size: 14px;
  color: #111;
}
.nh-testi-author span {
  font-size: 12px;
  color: #747577;
}

/* ===== STATS ===== */
.nh-stats-section {
  padding: 64px 0;
  background: #044bab;
}
.nh-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 600px) {
  .nh-stats-grid {
    grid-template-columns: 1fr;
  }
}
.nh-stat-item {
  padding: 20px;
}
.nh-stat-num {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  color: #fff;
  display: inline-block;
}
.nh-stat-plus {
  font-size: 40px;
  font-weight: 800;
  color: #fa731b;
  display: inline-block;
}
.nh-stat-label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 6px;
}

/* ===== CTA BANNER ===== */
.nh-cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, #044bab 0%, #0a35e0 100%);
  text-align: center;
}
.nh-cta-banner h2 {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 32px;
  line-height: 1.4;
}
.nh-cta-btn {
  display: inline-block;
  background: #fa731b;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.nh-cta-btn:hover {
  background: #e05a00;
  transform: translateY(-2px);
}

/* ===== DETAILED FEATURE SECTIONS (NSF) ===== */
.nsf-section {
  background: #fff;
  padding: 64px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nsf-row {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.nsf-img-box img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}
.nsf-content h2 {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
  color: #111;
  margin: 0 0 4px;
  line-height: 1.25;
}
.nsf-content h2 span {
  display: block;
  color: #fa731b;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  margin-top: 4px;
}
.nsf-content p {
  color: #555;
  font-size: 15px;
  line-height: 1.75;
  margin: 16px 0 24px;
}
.nsf-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.nsf-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  line-height: 1.5;
}
.nsf-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #044bab;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.nsf-check i {
  color: #fff;
  font-size: 10px;
}
@media (max-width: 860px) {
  .nsf-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ===== MOBILE APP SECTION ===== */
.nh-mobile-app-section {
  background: #fff;
}
