/* ─── Base ─────────────────────────────────────────────────────────── */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html { font-size: 16px; }
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1a1a2e;
  background: #ffffff;
  margin: 0;
}

/* ─── Colour palette ────────────────────────────────────────────────── */
:root {
  --nsl-navy:    #0d1b2a;
  --nsl-blue:    #1b4f8a;
  --nsl-accent:  #00b4d8;
  --nsl-orange:  #f4a22d;
  --nsl-light:   #f0f4f8;
  --nsl-text:    #1a1a2e;
  --nsl-muted:   #6c757d;
}

/* ─── Navbar ────────────────────────────────────────────────────────── */
.nsl-navbar {
  background: var(--nsl-navy) !important;
  padding: 0.4rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nsl-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffffff !important;
  text-decoration: none;
}

.nsl-logo {
  height: 52px;
  width: auto;
  display: block;
}

.nsl-brand-suffix {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  line-height: 1.2;
  align-self: flex-end;
  padding-bottom: 4px;
}

.nsl-navbar .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  transition: color 0.2s;
}

.nsl-navbar .nav-link:hover,
.nsl-navbar .nav-link:focus {
  color: var(--nsl-accent) !important;
}

.nsl-navbar .dropdown-menu {
  background: var(--nsl-navy);
  border: 1px solid rgba(255,255,255,0.1);
}

.nsl-navbar .dropdown-item {
  color: rgba(255,255,255,0.85);
}

.nsl-navbar .dropdown-item:hover {
  background: var(--nsl-blue);
  color: #fff;
}

.nsl-navbar .navbar-toggler {
  border-color: rgba(255,255,255,0.3);
}

.nsl-navbar .navbar-toggler-icon {
  filter: invert(1);
}

/* ─── Hero carousel ─────────────────────────────────────────────────── */
.nsl-hero-carousel { width: 100%; }

.nsl-hero-carousel .carousel-item {
  overflow: hidden;
  height: 520px;
}

.nsl-hero-img {
  height: 650px;
  max-height: none;
  object-fit: cover;
  width: 100%;
  will-change: transform;
}

/* Placeholder shown when no hero image has been uploaded yet */
.nsl-hero-placeholder {
  height: 650px;
  background: linear-gradient(135deg, var(--nsl-navy) 0%, var(--nsl-blue) 60%, #1a3a5c 100%);
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nsl-hero-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(0,180,216,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 75% 30%, rgba(244,162,45,0.08) 0%, transparent 55%);
}

.nsl-hero-carousel .carousel-caption {
  background: rgba(13,27,42,0.65);
  border-radius: 0.5rem;
  padding: 1.5rem 2rem;
  bottom: 2.5rem;
  backdrop-filter: blur(4px);
}

.nsl-hero-carousel .carousel-caption h1 {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.nsl-hero-carousel .carousel-caption p {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
}

/* ─── Sections ──────────────────────────────────────────────────────── */
.nsl-section { padding: 4.5rem 0; }

.nsl-section-title {
  font-weight: 700;
  color: var(--nsl-navy);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

/* Accent underline on section titles */
.nsl-section-title::after {
  content: '';
  display: block;
  height: 3px;
  width: 48px;
  background: linear-gradient(90deg, var(--nsl-accent), var(--nsl-orange));
  border-radius: 2px;
  margin-top: 0.4rem;
}

.nsl-intro { background: #fff; }

/* ─── Product cards (home) ──────────────────────────────────────────── */
.nsl-portfolio-section { background: var(--nsl-light); }

.nsl-product-card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.nsl-product-card::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--nsl-blue), var(--nsl-accent));
}

.nsl-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.13);
}

.nsl-product-card .card-title {
  font-weight: 700;
  color: var(--nsl-blue);
  font-size: 1.1rem;
}

/* ─── CTA banner ─────────────────────────────────────────────────────── */
.nsl-cta-banner {
  background: linear-gradient(135deg, var(--nsl-navy) 0%, var(--nsl-blue) 100%);
  color: #fff;
  padding: 5rem 0;
  overflow: hidden;
  position: relative;
}

.nsl-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(0,180,216,0.15) 0%, transparent 60%);
}

.nsl-cta-banner .container { will-change: transform; position: relative; }

.nsl-cta-banner h2 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.nsl-cta-banner .lead {
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.5rem;
}

/* ─── Product hero (portfolio pages) ────────────────────────────────── */
.nsl-product-hero {
  position: relative;
  overflow: hidden;
  background: var(--nsl-navy);
  min-height: 340px;
  display: flex;
  align-items: flex-end;
}

.nsl-product-hero-img {
  position: absolute;
  left: 0; right: 0;
  width: 100%;
  top: -15%;
  height: 130%;
  object-fit: cover;
  opacity: 0.3;
  will-change: transform;
}

.nsl-product-hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 3.5rem 0;
  color: #fff;
}

.nsl-product-hero-overlay h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.nsl-product-hero-overlay .lead {
  color: rgba(255,255,255,0.88);
  max-width: 640px;
}

/* ─── Feature cards (portfolio pages) ───────────────────────────────── */
.nsl-feature-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  padding: 2rem;
  height: 100%;
  transition: transform 0.25s, box-shadow 0.25s;
  border-top: 3px solid var(--nsl-accent);
}

.nsl-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.11);
}

.nsl-feature-card .nsl-slot-title {
  color: var(--nsl-blue);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0.5rem 0 0.75rem;
}

.nsl-feature-card .nsl-slot-body {
  color: var(--nsl-muted);
  line-height: 1.7;
}

.nsl-feature-card .nsl-slot-image {
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* ─── Page header strip ─────────────────────────────────────────────── */
.nsl-page-header {
  background: linear-gradient(135deg, var(--nsl-navy) 0%, var(--nsl-blue) 100%);
  color: #fff;
  padding: 3rem 0;
  overflow: hidden;
  position: relative;
}

.nsl-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 80%, rgba(0,180,216,0.12) 0%, transparent 55%);
}

.nsl-page-header .container {
  will-change: transform;
  position: relative;
}

.nsl-page-header h1 {
  font-weight: 700;
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

/* ─── About ──────────────────────────────────────────────────────────── */
.nsl-about-block {
  border-left: 4px solid var(--nsl-accent);
  padding-left: 1.5rem;
}

.nsl-about-block .nsl-section-title {
  color: var(--nsl-navy);
}

/* ─── Contact form ───────────────────────────────────────────────────── */
.nsl-section .form-control:focus,
.nsl-section .form-select:focus {
  border-color: var(--nsl-blue);
  box-shadow: 0 0 0 0.2rem rgba(27,79,138,0.2);
}

/* ─── Thank you page ─────────────────────────────────────────────────── */
.nsl-thankyou-icon {
  font-size: 4rem;
  color: var(--nsl-accent);
  line-height: 1;
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
.nsl-footer {
  background: var(--nsl-navy);
  color: rgba(255,255,255,0.7);
  padding: 1.5rem 0;
  font-size: 0.9rem;
  margin-top: auto;
}

.nsl-footer-logo-block {
  text-align: center;
  padding: 1.5rem 0 0.75rem;
}

.nsl-logo-footer {
  height: 80px;
  width: auto;
}

.nsl-brand-footer {
  font-weight: 700;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Address block */
.nsl-footer-address {
  text-align: center;
  margin: 0.75rem 0 0;
}

.nsl-footer-address address {
  font-style: normal;
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  line-height: 1.8;
  margin: 0;
}

.nsl-footer-phone {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  font-weight: 500;
}

.nsl-footer-divider {
  border-color: rgba(255,255,255,0.12);
  margin: 1.25rem 0;
}

.nsl-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .nsl-footer-links { justify-content: flex-start; }
}

.nsl-footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.nsl-footer-links a:hover { color: var(--nsl-accent); }

.nsl-footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* ─── Focus ring ─────────────────────────────────────────────────────── */
.btn:focus-visible,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(0,180,216,0.35);
}
