/* =========================================================================
   NUPSUK TECH AND POWER — Design tokens
   Ink Navy #0F2540 · Circuit Gold #E3A63E · Paper #F6F4EF
   Slate #4B5A6A · Signal Green #2F7A5C
   Display: Space Grotesk · Body: Inter · Mono: JetBrains Mono
   ========================================================================= */

:root {
  --ink: #0F2540;
  --ink-soft: #16324F;
  --gold: #E3A63E;
  --gold-soft: #F3C979;
  --paper: #F6F4EF;
  --paper-dim: #EDE9DF;
  --slate: #4B5A6A;
  --green: #2F7A5C;
  --white: #FFFFFF;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 14px;
  --shadow-soft: 0 12px 32px -12px rgba(15, 37, 64, 0.18);
  --shadow-strong: 0 20px 45px -15px rgba(15, 37, 64, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { text-decoration: none; }

.skip-link {
  position: absolute;
  top: -60px;
  left: 0;
  background: var(--ink);
  color: var(--white);
  padding: 10px 18px;
  z-index: 2000;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.mono-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: rgba(227, 166, 62, 0.12);
  padding: 2px 8px;
  border-radius: 5px;
  white-space: nowrap;
}
.mono-code.small { font-size: 0.68rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.eyebrow-light { color: var(--gold-soft); }
.eyebrow i { color: var(--gold); }

/* =========================================================================
   TOPBAR
   ========================================================================= */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 7px 0;
}
.topbar-item { color: rgba(255,255,255,0.85); }
.topbar a.topbar-item:hover { color: var(--gold-soft); }

/* =========================================================================
   NAVBAR
   ========================================================================= */
.site-navbar {
  background: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid rgba(15,37,64,0.08);
  transition: box-shadow 0.2s ease, padding 0.2s ease;
  z-index: 1030;
}
.site-navbar.scrolled {
  box-shadow: var(--shadow-soft);
  padding: 8px 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  background: var(--ink);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 2px solid var(--gold);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-line1 { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.brand-line2 { font-family: var(--font-mono); font-size: 1.02rem; color: var(--green); letter-spacing: 0.06em; }

.nav-link {
  font-weight: 500;
  color: var(--ink) !important;
  padding: 8px 16px !important;
  border-radius: 8px;
  position: relative;
}
.nav-link:hover { color: var(--green) !important; }
.nav-link.active {
  color: var(--ink) !important;
  font-weight: 700;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.btn-quote {
  background: var(--ink);
  color: var(--white) !important;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-quote:hover { background: var(--green); transform: translateY(-1px); }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn-primary-ntp {
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 10px;
  border: 2px solid var(--gold);
  transition: all 0.2s ease;
}
.btn-primary-ntp:hover {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline-ntp {
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 10px;
  border: 2px solid rgba(15,37,64,0.2);
  transition: all 0.2s ease;
}
.btn-outline-ntp:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.btn-light-ntp {
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 10px;
  border: 2px solid var(--gold);
  transition: all 0.2s ease;
}
.btn-light-ntp:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding: 90px 0 70px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(227,166,62,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227,166,62,0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at top right, black, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; }
.hero .container {
  padding-left: 3px;
  padding-right: 3px;
}

.hero-title {
  color: var(--white);
  font-size: clamp(0.5rem, o.7vw, 0.8rem);
  line-height: 0.5;
  margin-bottom: 0.5rem;
}
.hero-lead {
  color: rgba(255,255,255,0.78);
  font-size: 1.08rem;
  max-width: 520px;
}

.hero-stats { max-width: 460px; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold);
}
.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(6px);
}
.hero-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 10px;
  border-bottom: 1px dashed rgba(255,255,255,0.18);
}
.hero-panel-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(227,166,62,0.18);
}
.hero-panel-list { list-style: none; margin: 0; padding: 0; }
.hero-panel-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  font-weight: 500;
}
.hero-panel-list li:last-child { border-bottom: none; }
.hero-panel-list li i { color: var(--gold); margin-right: 8px; }

.hero-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* =========================================================================
   SECTIONS (generic)
   ========================================================================= */
.section { padding: 84px 0; }
.section-alt { background: var(--paper-dim); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 0.6rem; }
.section-sub { color: var(--slate); font-size: 1.02rem; }

.page-header {
  background: var(--ink);
  color: var(--white);
  padding: 20px 0 10px;
}
.page-header h1 { color: var(--white); font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.page-header-sub { color: rgba(255,255,255,0.72); max-width: 620px; margin-top: 0.5rem; }

.breadcrumb-ntp {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.breadcrumb-ntp li:not(:last-child)::after { content: "/"; margin-left: 8px; color: rgba(255,255,255,0.35); }
.breadcrumb-ntp a { color: rgba(255,255,255,0.75); }
.breadcrumb-ntp a:hover { color: var(--gold-soft); }

/* =========================================================================
   SIGNATURE: SPEC PLATE CARDS (product lines on Home)
   ========================================================================= */
.spec-plate {
  display: block;
  background: var(--white);
  border: 1px solid rgba(15,37,64,0.09);
  border-radius: var(--radius);
  padding: 26px;
  height: 100%;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
}
.spec-plate::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.spec-plate:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}
.spec-plate:hover::before { transform: scaleX(1); }

.spec-plate-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.spec-plate-icon { font-size: 1.6rem; color: var(--green); }
.spec-plate-title { font-size: 1.2rem; margin-bottom: 8px; color: var(--ink); }
.spec-plate-desc { color: var(--slate); font-size: 0.92rem; margin-bottom: 18px; min-height: 44px; }
.spec-plate-cta {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.spec-plate-cta i { transition: transform 0.2s ease; }
.spec-plate:hover .spec-plate-cta i { transform: translateX(4px); }

/* =========================================================================
   FEATURE CARDS
   ========================================================================= */
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  height: 100%;
  box-shadow: var(--shadow-soft);
}
.feature-icon { font-size: 1.6rem; color: var(--gold); margin-bottom: 12px; display: block; }
.feature-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.feature-card p { color: var(--slate); font-size: 0.92rem; margin: 0; }

/* =========================================================================
   PRODUCT CARDS (catalog grid)
   ========================================================================= */
.product-group { margin-bottom: 64px; scroll-margin-top: 110px; }
.product-group-head { margin-bottom: 24px; }
.product-group-head h2 { font-size: 1.5rem; margin: 8px 0 6px; }
.product-group-head p { color: var(--slate); max-width: 560px; }

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(15,37,64,0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-4px); }
.product-card-media {
  aspect-ratio: 16/11;
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-soft);
  font-size: 2.4rem;
  overflow: hidden;
}
.product-card-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card-body h3 { font-size: 1.05rem; margin: 8px 0 6px; }
.product-card-body h3 a { color: var(--ink); }
.product-card-body h3 a:hover { color: var(--green); }
.product-card-body p { color: var(--slate); font-size: 0.9rem; margin-bottom: 12px; flex: 1; }
.product-card-link { font-weight: 700; font-size: 0.85rem; color: var(--green); }
.product-card-link:hover { color: var(--ink); }

/* =========================================================================
   FILTER PILLS (Products page)
   ========================================================================= */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-pill {
  background: var(--white);
  border: 1px solid rgba(15,37,64,0.14);
  color: var(--ink);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.filter-pill:hover { border-color: var(--gold); }
.filter-pill.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* =========================================================================
   PRODUCT DETAIL
   ========================================================================= */
.product-detail-media {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-soft);
  font-size: 4rem;
  overflow: hidden;
}
.product-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.badge-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(47,122,92,0.1);
  color: var(--green);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.product-detail-summary { font-size: 1.15rem; font-weight: 500; color: var(--ink); }
.product-detail-desc { color: var(--slate); line-height: 1.7; }

/* =========================================================================
   ABOUT PAGE
   ========================================================================= */
.mv-card {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
}
.mv-icon { font-size: 1.4rem; color: var(--green); margin-bottom: 8px; display: block; }
.mv-card h4 { margin-bottom: 6px; font-size: 1.05rem; }
.mv-card p { color: var(--slate); margin: 0; font-size: 0.92rem; }

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  height: 100%;
  position: relative;
}
.step-num {
  font-family: var(--font-mono);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 10px;
}
.step-card h4 { font-size: 1rem; margin-bottom: 6px; }
.step-card p { color: var(--slate); font-size: 0.88rem; margin: 0; }

.stat-strip {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 40px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--gold); }
.stat-label { color: rgba(255,255,255,0.72); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }

.client-logo-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 120px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15,37,64,0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.client-logo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--gold);
}
.client-logo {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.22s ease, opacity 0.22s ease;
}
.client-logo-card:hover .client-logo {
  filter: grayscale(0%);
  opacity: 1;
}

@media (min-width: 992px) {
  .client-logo-card {
    flex: 0 0 12.5%;
    max-width: 12.5%;
  }
}

/* =========================================================================
   CTA BAND
   ========================================================================= */
.cta-band {
  background: linear-gradient(120deg, var(--green), var(--ink));
  color: var(--white);
  padding: 40px 0;
}
.cta-title { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 700px; margin: 0 auto; }

/* =========================================================================
   CONTACT PAGE
   ========================================================================= */
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
}
.contact-info-icon { font-size: 1.3rem; color: var(--gold); margin-bottom: 8px; display: block; }
.contact-info-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-info-card p { color: var(--slate); margin: 0; font-size: 0.9rem; }
.contact-info-card a { color: var(--slate); }
.contact-info-card a:hover { color: var(--green); }

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-soft);
}
.contact-form-card .form-label { font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.contact-form-card .form-control,
.contact-form-card .form-select {
  border-radius: 8px;
  border: 1px solid rgba(15,37,64,0.16);
  padding: 11px 14px;
}
.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(227,166,62,0.18);
}

.map-section iframe { display: block; filter: grayscale(15%); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); }
.footer-brand {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 10px;
  border: 2px solid var(--gold); color: var(--white);
  font-family: var(--font-display); font-weight: 700;
}
.footer-about { font-size: 0.9rem; max-width: 340px; }
.footer-heading { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.72); }
.footer-links a:hover { color: var(--gold-soft); }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.social-btn:hover { background: var(--gold); color: var(--ink); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* =========================================================================
   BACK TO TOP
   ========================================================================= */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-strong);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1040;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold); color: var(--ink); }

/* =========================================================================
   CEO IMAGE
   ========================================================================= */
.ceo-image-container {
  position: relative;
  margin-bottom: 1.5rem;
}

.ceo-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 12px;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

/* =========================================================================
   CLIENTS SECTION
   ========================================================================= */
.clients-section {
  margin-top: 2rem;
}

.clients-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.clients-row:last-child {
  margin-bottom: 0;
}

.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 12px;
  padding: 0;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  aspect-ratio: 1;
  overflow: hidden;
}

.client-logo-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border: 2px solid var(--gold);
}

.client-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.client-logo-item:hover .client-logo {
  filter: grayscale(0%);
}

.client-placeholder {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 991.98px) {
  .hero { padding: 60px 0 44px; }
  .section { padding: 60px 0; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .navbar-collapse { padding-top: 14px; }
  .nav-link.active::after { display: none; }
  .clients-row { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}

@media (max-width: 767.98px) {
  .clients-row { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
}

@media (max-width: 575.98px) {
  .contact-form-card { padding: 22px; }
  .hero-title { font-size: 1rem; }
  .clients-row { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
}
