/* ═══════════════════════════════════════════
   NICHNYA INTERNATIONAL ENTERPRISES LIMITED
   nx- prefix — all classes unique to this project
   ═══════════════════════════════════════════ */

:root {
  --orange: #E8501A;
  --orange-dark: #C4411A;
  --orange-light: #FF6B3D;
  --navy: #0D2137;
  --navy-mid: #1A3550;
  --white: #FFFFFF;
  --off-white: #F8F6F3;
  --grey-light: #EEEBE6;
  --grey: #9CA3AF;
  --text: #1C1C1E;
  --text-muted: #6B7280;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --sh-sm: 0 1px 3px rgba(13, 33, 55, .08);
  --sh-md: 0 4px 20px rgba(13, 33, 55, .12);
  --sh-lg: 0 12px 40px rgba(13, 33, 55, .18);
  --sh-xl: 0 24px 60px rgba(13, 33, 55, .24);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t: 0.3s;
  --nav-h: 72px;
  --sec-p: clamp(4rem, 8vw, 7rem);
  --wrap: 1200px;
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased
}

img {
  max-width: 100%;
  display: block
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t) var(--ease)
}

ul {
  list-style: none
}

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

/* ── Layout ── */
.nx-wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem)
}

.nx-sec {
  padding-block: var(--sec-p)
}

.nx-sec--dark {
  background: var(--navy);
  color: var(--white)
}

.nx-about {
  padding-top: var(--sec-p);
  padding-bottom: clamp(2rem, 4vw, 3.5rem)
}

/* ── Labels / headings / body ── */
.nx-label {
  display: inline-block;
  width: fit-content;
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(232, 80, 26, .1);
  padding: .35em 1em;
  border-radius: 100px;
  margin-bottom: 1rem
}

.nx-label--lite {
  color: var(--off-white);
  background: rgba(255, 255, 255, .12)
}

.nx-h2 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy)
}

.nx-h2--lite {
  color: var(--white)
}

.nx-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem
}

.nx-sec-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem)
}

.nx-sec-sub {
  margin-top: .75rem;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin-inline: auto
}

.nx-sec-sub--lite {
  color: rgba(255, 255, 255, .6)
}

/* ── Buttons ── */
.nx-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
  padding: .85rem 1.85rem;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t) var(--ease);
  white-space: nowrap;
  text-decoration: none
}

.nx-btn--primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange)
}

.nx-btn--primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 80, 26, .38)
}

.nx-btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .45)
}

.nx-btn--ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: var(--white)
}

.nx-btn--full {
  width: 100%;
  justify-content: center
}

.nx-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0
}

/* ════════ HEADER ════════ */
.nx-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(13, 33, 55, .93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background var(--t) var(--ease), box-shadow var(--t) var(--ease)
}

.nx-header.scrolled {
  background: var(--navy);
  box-shadow: var(--sh-lg)
}

.nx-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem
}

/* Logo */
.nx-nav__logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0
}

.nx-logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  object-fit: contain;
  background: var(--orange);
  padding: 2px;
  flex-shrink: 0
}

.nx-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15
}

.nx-logo-text strong {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.01em
}

.nx-logo-text small {
  font-size: .68rem;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .04em;
  text-transform: uppercase
}

/* Desktop nav links — visible by default, hidden on mobile */
.nx-nav__links {
  display: flex;
  align-items: center;
  gap: .25rem
}

.nx-nav__link {
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .75);
  padding: .5rem 1rem;
  border-radius: var(--r-sm);
  transition: all var(--t) var(--ease);
  white-space: nowrap
}

.nx-nav__link:hover,
.nx-nav__link.active {
  color: var(--white);
  background: rgba(255, 255, 255, .08)
}

.nx-nav__link--cta {
  background: var(--orange);
  color: var(--white);
  margin-left: .5rem;
  padding: .5rem 1.25rem
}

.nx-nav__link--cta:hover {
  background: var(--orange-dark)
}

/* Hamburger — hidden on desktop */
.nx-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  width: 40px;
  height: 40px;
  flex-shrink: 0
}

.nx-nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--t) var(--ease)
}

.nx-nav__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.nx-nav__toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0)
}

.nx-nav__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

/* ════════ HERO ════════ */
.nx-hero {
  position: relative;
  min-height: 100svh;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden
}

.nx-hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0
}

.nx-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top
}

.nx-hero__photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(13, 33, 55, .96) 0%, rgba(13, 33, 55, .85) 55%, rgba(13, 33, 55, .6) 100%)
}

.nx-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 56px 56px
}

.nx-hero__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding-block: clamp(1rem, 3vh, 2.5rem);
  width: 100%
}

.nx-hero__left {
  display: flex;
  flex-direction: column;
  gap: .9rem
}

.nx-hero__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -.02em;
  animation: nx-fadeup .8s .15s ease both
}

.nx-hero__title-em {
  display: block;
  font-style: italic;
  color: var(--orange)
}

.nx-hero__sub {
  font-size: clamp(.875rem, 1.3vw, 1rem);
  color: rgba(255, 255, 255, .65);
  line-height: 1.65;
  max-width: 460px;
  animation: nx-fadeup .8s .3s ease both
}

.nx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  animation: nx-fadeup .8s .45s ease both
}

.nx-hero__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  animation: nx-fadeup .8s .5s ease both
}

.nx-stat-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-md);
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  transition: all var(--t) var(--ease)
}

.nx-stat-card:hover {
  background: rgba(255, 255, 255, .1);
  transform: translateY(-3px)
}

.nx-stat-card--accent {
  background: rgba(232, 80, 26, .15);
  border-color: rgba(232, 80, 26, .35)
}

.nx-stat-card--accent:hover {
  background: rgba(232, 80, 26, .22)
}

.nx-stat-card__icon {
  width: 24px;
  height: 24px;
  color: var(--orange);
  margin-bottom: .2rem
}

.nx-stat-card__icon svg {
  width: 100%;
  height: 100%
}

.nx-stat-card strong {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1
}

.nx-stat-card span {
  font-size: .72rem;
  color: rgba(255, 255, 255, .5);
  text-transform: uppercase;
  letter-spacing: .06em
}

/* ════════ ABOUT ════════ */
.nx-about__inner {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start
}

.nx-about__visual {
  position: relative;
  align-self: start
}

.nx-about__img-wrap {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-xl)
}

.nx-about__img-wrap img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform .6s ease
}

.nx-about__img-wrap:hover img {
  transform: scale(1.03)
}

.nx-about__img-badge {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--r-md);
  padding: .85rem 1.1rem;
  text-align: center;
  box-shadow: var(--sh-lg)
}

.nx-about__img-badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1
}

.nx-about__img-badge small {
  font-size: .72rem;
  opacity: .9
}

.nx-dot-grid {
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  width: 70px;
  height: 70px;
  background-image: radial-gradient(circle, var(--orange) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: .2;
  z-index: -1
}

.nx-about__content {
  display: flex;
  flex-direction: column;
  gap: 1rem
}

.nx-vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem
}

.nx-vm-card {
  background: var(--off-white);
  border-radius: var(--r-md);
  padding: 1.1rem;
  border-left: 3px solid var(--orange)
}

.nx-vm-card__icon {
  width: 24px;
  height: 24px;
  color: var(--orange);
  margin-bottom: .5rem
}

.nx-vm-card__icon svg {
  width: 100%;
  height: 100%
}

.nx-vm-card h3 {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .3rem;
  text-transform: uppercase;
  letter-spacing: .06em
}

.nx-vm-card p {
  font-size: .85rem;
  color: var(--text-muted)
}

/* ════════ SERVICES ════════ */
.nx-services {
  background-color: var(--navy);
  background-image: linear-gradient(135deg, rgba(13, 33, 55, .95) 0%, rgba(13, 33, 55, .88) 100%), url('../images/services-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white)
}

.nx-svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem
}

.nx-svc-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease)
}

.nx-svc-card:hover {
  border-color: rgba(232, 80, 26, .55);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35)
}

.nx-svc-card--featured {
  border-color: rgba(232, 80, 26, .42);
  background: rgba(232, 80, 26, .09)
}

.nx-svc-icon {
  width: 36px;
  height: 36px;
  color: var(--orange);
  margin-bottom: .85rem
}

.nx-svc-icon svg {
  width: 100%;
  height: 100%
}

.nx-svc-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .55rem
}

.nx-svc-card p {
  font-size: .875rem;
  color: rgba(255, 255, 255, .68);
  line-height: 1.65
}

/* ════════ PRODUCTS ════════ */
.nx-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 2rem;
  justify-content: center
}

.nx-tab-btn {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--grey-light);
  border: 1px solid transparent;
  border-radius: 100px;
  padding: .5em 1.2em;
  cursor: pointer;
  transition: all var(--t) var(--ease)
}

.nx-tab-btn:hover {
  color: var(--navy);
  background: #E2DDD5
}

.nx-tab-btn--active {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange)
}

.nx-tab-panel {
  display: none
}

.nx-tab-panel--active {
  display: block;
  animation: nx-fadein .3s ease
}

.nx-prod-row {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start
}

.nx-prod-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .65rem;
  padding: 1.5rem;
  background: var(--off-white);
  border-radius: var(--r-lg);
  border: 1px solid var(--grey-light)
}

.nx-prod-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  padding: .5rem .6rem;
  border-radius: var(--r-sm);
  transition: background var(--t) var(--ease)
}

.nx-prod-item:hover {
  background: var(--white);
  box-shadow: var(--sh-sm)
}

.nx-prod-dot {
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0
}

.nx-prod-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  height: 260px
}

.nx-prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.nx-prod-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding: 2rem 2.25rem;
  background: var(--navy);
  border-radius: var(--r-xl);
  color: var(--white)
}

.nx-prod-cta p {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700
}

/* ════════ CONTACT ════════ */
.nx-contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: stretch
}

.nx-contact__info {
  display: flex;
  flex-direction: column
}

.nx-contact__sub {
  color: rgba(255, 255, 255, .65);
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.65
}

.nx-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem
}

.nx-contact-item {
  display: flex;
  gap: .85rem;
  align-items: flex-start
}

.nx-contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange)
}

.nx-contact-icon svg {
  width: 18px;
  height: 18px
}

.nx-contact-item-body strong {
  display: block;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .45);
  margin-bottom: .15rem
}

.nx-contact-item-body a,
.nx-contact-item-body span {
  display: block;
  color: rgba(255, 255, 255, .85);
  font-size: .9rem;
  line-height: 1.5;
  word-break: break-word
}

.nx-contact-item-body a:hover {
  color: var(--orange-light)
}

.nx-map-wrap {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  min-height: 200px;
  flex: 1;
  margin-top: 1.5rem
}

.nx-map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: block;
  filter: invert(90%) hue-rotate(180deg) saturate(.8)
}

/* Form */
.nx-form {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  box-shadow: var(--sh-xl)
}

.nx-form h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.5rem
}

.nx-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem
}

.nx-form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: .85rem
}

.nx-form-group label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy)
}

.nx-form-group label span {
  color: var(--orange)
}

.nx-form-group input,
.nx-form-group select,
.nx-form-group textarea {
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  background: var(--off-white);
  border: 1.5px solid var(--grey-light);
  border-radius: var(--r-sm);
  padding: .7rem .95rem;
  transition: all var(--t) var(--ease);
  width: 100%
}

.nx-form-group input::placeholder,
.nx-form-group textarea::placeholder {
  color: var(--grey)
}

.nx-form-group input:focus,
.nx-form-group select:focus,
.nx-form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(232, 80, 26, .1)
}

.nx-form-group input.error,
.nx-form-group select.error,
.nx-form-group textarea.error {
  border-color: #EF4444;
  background: #FEF2F2
}

.nx-form-error {
  font-size: .75rem;
  color: #EF4444;
  min-height: 1em
}

.nx-form-group textarea {
  resize: vertical;
  min-height: 100px
}

.nx-form-success {
  display: none;
  align-items: center;
  gap: .75rem;
  background: #ECFDF5;
  color: #065F46;
  border-radius: var(--r-sm);
  padding: 1rem;
  font-size: .9rem;
  font-weight: 500;
  margin-top: 1rem
}

.nx-form-success.visible {
  display: flex
}

.nx-form-success svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0
}

/* ════════ FOOTER ════════ */
.nx-footer {
  background: #070F1A;
  color: rgba(255, 255, 255, .7);
  padding-top: 3.5rem
}

.nx-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07)
}

.nx-footer__brand p {
  font-size: .875rem;
  line-height: 1.7;
  margin-top: 1rem;
  color: rgba(255, 255, 255, .5);
  max-width: 280px
}

.nx-footer-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .25rem
}

.nx-footer__col h4 {
  font-family: var(--font-head);
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--white);
  margin-bottom: 1.1rem
}

.nx-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: .6rem
}

.nx-footer__col ul a {
  font-size: .875rem;
  color: rgba(255, 255, 255, .5);
  transition: color var(--t) var(--ease)
}

.nx-footer__col ul a:hover {
  color: var(--orange)
}

.nx-footer__col address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: .6rem
}

.nx-footer__col address p {
  font-size: .875rem
}

.nx-footer__col address a {
  color: rgba(255, 255, 255, .5);
  transition: color var(--t) var(--ease)
}

.nx-footer__col address a:hover {
  color: var(--orange)
}

.nx-footer__bottom {
  padding: 1.25rem 0
}

.nx-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .78rem;
  color: rgba(255, 255, 255, .3)
}

/* ════════ BACK TO TOP ════════ */
.nx-back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 42px;
  height: 42px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-lg);
  transition: all var(--t) var(--ease);
  opacity: 0;
  pointer-events: none
}

.nx-back-top:not([hidden]) {
  opacity: 1;
  pointer-events: auto
}

.nx-back-top:hover {
  background: var(--orange-dark);
  transform: translateY(-3px)
}

.nx-back-top svg {
  width: 20px;
  height: 20px
}

/* ════════ KEYFRAMES ════════ */
@keyframes nx-fadeup {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes nx-fadein {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */

/* ── ≤1024px — small laptops / large tablets ── */
@media(max-width:1024px) {
  .nx-hero__layout {
    grid-template-columns: 1fr 1fr;
    gap: 2rem
  }

  .nx-about__inner {
    grid-template-columns: 1fr;
    gap: 2rem
  }

  .nx-about__visual {
    max-width: 480px;
    margin: 0 auto
  }

  .nx-svc-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .nx-prod-row {
    grid-template-columns: 1fr 280px
  }

  .nx-contact__inner {
    grid-template-columns: 1fr;
    align-items: start
  }

  .nx-map-wrap {
    flex: none;
    height: 220px;
    min-height: 220px
  }

  .nx-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem
  }
}

/* ── ≤900px — NAV BREAKPOINT (hamburger appears here) ── */
@media(max-width:900px) {

  /* Show hamburger */
  .nx-nav__toggle {
    display: flex
  }

  /* Hide desktop links — slide down when .open */
  .nx-nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: .2rem;
    transform: translateY(-110%);
    transition: transform var(--t) var(--ease);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
    z-index: 999;
    /* prevent interaction when hidden */
    pointer-events: none;
    visibility: hidden
  }

  .nx-nav__links.open {
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible
  }

  .nx-nav__link {
    padding: .8rem 1rem;
    width: 100%;
    border-radius: var(--r-sm);
    color: rgba(255, 255, 255, .85);
    font-size: .95rem
  }

  .nx-nav__link:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--white)
  }

  .nx-nav__link--cta {
    margin-left: 0;
    margin-top: .5rem;
    text-align: center;
    background: var(--orange);
    color: var(--white)
  }
}

/* ── ≤768px — tablets ── */
@media(max-width:768px) {
  :root {
    --nav-h: 60px;
    --sec-p: 3.5rem
  }

  .nx-hero__layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-block: 1.25rem
  }

  .nx-hero__title {
    font-size: clamp(1.75rem, 7vw, 2.6rem)
  }

  .nx-hero__sub {
    font-size: .9rem;
    max-width: 100%
  }

  .nx-hero__cards {
    grid-template-columns: repeat(2, 1fr);
    gap: .65rem
  }

  .nx-stat-card {
    padding: .9rem .85rem
  }

  .nx-stat-card strong {
    font-size: 1.05rem
  }

  .nx-about__img-wrap img {
    height: 240px
  }

  .nx-vm-grid {
    grid-template-columns: 1fr
  }

  /* Hide the image column on tablets — text only */
  .nx-about__visual {
    display: none
  }

  .nx-svc-grid {
    grid-template-columns: 1fr
  }

  .nx-prod-row {
    grid-template-columns: 1fr
  }

  .nx-prod-img {
    height: 180px
  }

  .nx-prod-cta {
    flex-direction: column;
    text-align: center
  }

  .nx-tabs {
    gap: .35rem
  }

  .nx-tab-btn {
    font-size: .75rem;
    padding: .45em 1em
  }

  .nx-form-row {
    grid-template-columns: 1fr
  }

  .nx-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem
  }

  .nx-footer__bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: .35rem
  }
}

/* ── ≤600px — large phones ── */
@media(max-width:600px) {
  .nx-footer__inner {
    grid-template-columns: 1fr
  }

  .nx-wrap {
    padding-inline: 1rem
  }

  .nx-prod-list {
    grid-template-columns: 1fr 1fr
  }
}

/* ── ≤480px — small phones ── */
@media(max-width:480px) {
  :root {
    --nav-h: 56px;
    --sec-p: 2.75rem
  }

  .nx-hero__layout {
    padding-block: 1rem;
    gap: 1rem
  }

  .nx-hero__title {
    font-size: clamp(1.6rem, 9vw, 2.2rem)
  }

  .nx-hero__actions {
    flex-direction: column;
    gap: .6rem
  }

  .nx-hero__actions .nx-btn {
    width: 100%;
    justify-content: center;
    padding: .8rem 1.5rem
  }

  .nx-hero__cards {
    grid-template-columns: 1fr 1fr;
    gap: .5rem
  }

  .nx-stat-card {
    padding: .75rem .7rem
  }

  .nx-stat-card strong {
    font-size: 1rem
  }

  .nx-stat-card span {
    font-size: .65rem
  }

  .nx-h2 {
    font-size: clamp(1.5rem, 6vw, 2rem)
  }

  .nx-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: .5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none
  }

  .nx-tabs::-webkit-scrollbar {
    display: none
  }

  .nx-tab-btn {
    white-space: nowrap;
    flex-shrink: 0
  }

  .nx-prod-list {
    grid-template-columns: 1fr
  }

  .nx-prod-cta {
    padding: 1.5rem
  }

  .nx-contact-icon {
    width: 36px;
    height: 36px
  }

  .nx-about__img-wrap img {
    height: 200px
  }

  .nx-footer__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem
  }

  .nx-logo-text small {
    display: none
  }
}

/* ── ≤360px — very small phones ── */
@media(max-width:360px) {
  .nx-hero__title {
    font-size: 1.5rem
  }

  .nx-stat-card strong {
    font-size: .9rem
  }

  .nx-stat-card span {
    font-size: .6rem
  }

  .nx-logo-text strong {
    font-size: .9rem
  }

  .nx-btn {
    font-size: .82rem;
    padding: .75rem 1.25rem
  }

  .nx-svc-card {
    padding: 1.25rem 1rem
  }
}

/* ── Landscape phones ── */
@media(max-height:500px) and (orientation:landscape) {
  .nx-hero {
    min-height: auto
  }

  .nx-hero__layout {
    padding-block: .75rem;
    gap: 1rem;
    grid-template-columns: 1fr 1fr
  }

  .nx-hero__cards {
    display: none
  }

  .nx-hero__title {
    font-size: clamp(1.4rem, 5vw, 2rem)
  }
}

@media print {

  .nx-header,
  .nx-back-top {
    display: none !important
  }

  .nx-sec--dark,
  .nx-services {
    background: #f5f5f5 !important;
    color: #000 !important
  }
}