/* ══════════════════════════════════════════
   Niport Connect — Shared Stylesheet
══════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --np-navy:       #003B62;
  --np-orange:     #FF8600;
  --np-white:      #ffffff;
  --np-text:       #003B62;
  --np-muted:      #4a6274;
  --np-line:       rgba(0,59,98,0.14);
  --radius-xl:     22px;
  --radius-lg:     16px;
  --radius-md:     10px;
  --shadow:        0 20px 50px rgba(0,59,98,0.12);
  --shadow-sm:     0 4px 14px rgba(0,59,98,0.08);
  --transition:    220ms ease;
  --header-h:      114px;
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter","Inter var",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color: var(--np-text);
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--header-h);
}

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.1rem,4.5vw,4rem); color: #0f2846; }
h2 { font-size: clamp(1.6rem,3vw,2.6rem); color: var(--np-navy); }
h3 { font-size: clamp(1.1rem,2vw,1.5rem); color: var(--np-navy); }
h4 { font-size: 1.05rem; color: var(--np-navy); }
p  { color: var(--np-muted); line-height: 1.7; }
a  { color: var(--np-orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── UTILITIES ── */
.container { width: min(1180px, 92%); margin: 0 auto; }
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--np-orange); margin-bottom: 0.7rem;
}
.section-label::before {
  content: ""; display: block; width: 28px; height: 3px;
  background: var(--np-orange); border-radius: 2px;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.78rem; font-weight: 800;
  color: var(--np-orange); margin-bottom: 0.8rem;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 50px; padding: 0 1.5rem; border-radius: 999px;
  border: 2px solid transparent; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15,44,78,0.2); text-decoration: none; }
.btn-primary { background: var(--np-orange); color: #fff; }
.btn-primary:hover { background: #e07500; }
.btn-secondary { border-color: var(--np-line); color: var(--np-navy); background: #fff; }
.btn-outline-white { border-color: rgba(255,255,255,0.6); color: #fff; background: transparent; }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }
.btn-white { background: #fff; color: var(--np-orange); border-color: #fff; }
.btn-white:hover { background: #fff; }

/* ── ANIMATION ── */
@keyframes rise { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.animate { animation: rise 650ms ease both; }
.delay-1 { animation-delay: 80ms; }
.delay-2 { animation-delay: 160ms; }
.delay-3 { animation-delay: 240ms; }
.delay-4 { animation-delay: 320ms; }

/* ══════════════════════════════════════
   HEADER & NAVIGATION
══════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background-color: var(--np-navy);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.site-header.scrolled {
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0,59,98,0.14);
  box-shadow: 0 8px 24px rgba(0,59,98,0.12);
}

/* ── TOP INFO STRIP ── */
.top-strip {
  border-bottom: 1px solid rgba(255,255,255,0.16);
  transition: border-color 220ms ease;
}
.site-header.scrolled .top-strip { border-bottom-color: rgba(0,59,98,0.12); }
.top-strip-inner {
  min-height: 34px; display: flex; align-items: center;
  justify-content: flex-end; gap: 1.2rem; padding: 0.15rem 0;
}
.top-strip-inner a {
  color: rgba(255,255,255,0.9); font-size: 0.82rem; font-weight: 500;
  text-decoration: none; transition: color 220ms ease;
}
.top-strip-inner a:hover { color: var(--np-orange); }
.site-header.scrolled .top-strip-inner a { color: var(--np-navy); }

.nav-bar {
  display: flex; align-items: center; justify-content: space-between; min-height: 80px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; position: relative; }
.brand-logo { height: 48px; width: auto; display: block; }
.brand-logo-light {
  opacity: 1;
  transition: opacity 300ms ease;
}
.brand-logo-dark {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  opacity: 0;
  transition: opacity 300ms ease;
}
.site-header.scrolled .brand-logo-light { opacity: 0; }
.site-header.scrolled .brand-logo-dark  { opacity: 1; }

/* nav links */
.nav-links {
  display: flex; align-items: stretch; gap: 0; list-style: none; height: 80px;
}
.nav-links > li { position: relative; display: flex; align-items: center; }
.nav-links > li > a {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0 1rem; height: 100%;
  color: #ffffff; font-weight: 700; font-size: 0.9rem;
  text-decoration: none; white-space: nowrap; text-transform: uppercase;
  transition: color 300ms ease, border-color 300ms ease;
  border-bottom: 3px solid transparent;
}
.nav-links > li > a .chevron {
  width: 12px; height: 12px; fill: none; stroke: currentColor;
  stroke-width: 2.5; transition: transform 220ms ease;
}
.nav-links > li > a:hover,
.nav-links > li.active > a { color: var(--np-orange); border-bottom-color: var(--np-orange); }
.site-header.scrolled .nav-links > li > a { color: var(--np-navy); }
.site-header.scrolled .nav-links > li > a:hover { color: var(--np-orange); }
.nav-links > li:hover > a .chevron { transform: rotate(180deg); }

/* dropdowns */
.dropdown, .mega-menu {
  position: absolute; top: calc(100% + 1px); left: 0;
  background: #fff; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 20px 60px rgba(12,39,71,0.18); border: 1px solid var(--np-line);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}
.nav-links > li:hover .dropdown,
.nav-links > li:hover .mega-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.dropdown { min-width: 220px; padding: 0.6rem 0; }
.dropdown a {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.62rem 1.3rem; color: var(--np-text); font-size: 0.88rem; font-weight: 500;
  text-decoration: none; transition: background var(--transition), color var(--transition);
}
.dropdown a:hover { background: rgba(246,146,30,0.08); color: var(--np-orange); }
.dropdown a .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--np-orange); flex-shrink: 0; }

/* mega menu */
.mega-menu {
  left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(960px, 96vw); padding: 2rem;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
}
.nav-links > li:hover .mega-menu { transform: translateX(-50%) translateY(0); }
.mega-col { padding: 0 1.2rem; }
.mega-col + .mega-col { border-left: 1px solid var(--np-line); }
.mega-col-heading {
  font-size: 0.73rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--np-navy); margin-bottom: 0.9rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(18,63,109,0.14);
}
.mega-col a {
  display: flex; align-items: flex-start; gap: 0.55rem;
  padding: 0.55rem 0; color: var(--np-text); font-size: 0.87rem; font-weight: 500;
  text-decoration: none; border-bottom: 1px solid rgba(18,63,109,0.07);
  transition: color var(--transition);
}
.mega-col a:last-child { border-bottom: none; }
.mega-col a:hover { color: var(--np-orange); }
.mega-col a .icon {
  width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0; margin-top: 1px;
  background: rgba(18,63,109,0.08); display: flex; align-items: center; justify-content: center;
}
.mega-col a .icon img { width: 15px; height: 15px; object-fit: contain; display: block; }
.mega-col a .icon svg { width: 15px; height: 15px; fill: none; stroke: var(--np-orange); stroke-width: 2; }
.mega-col a .link-text small { display: block; font-size: 0.75rem; color: var(--np-muted); font-weight: 400; margin-top: 1px; }
.mega-col a:hover .icon { background: rgba(246,146,30,0.2); }

/* nav right */
.nav-right { display: flex; align-items: center; gap: 0.6rem; }
.nav-signin {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1.1rem; border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.3); color: #fff; font-weight: 600; font-size: 0.87rem;
  text-decoration: none; transition: all var(--transition);
}
.nav-signin svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.nav-signin:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.6); }
.site-header.scrolled .nav-signin { border-color: var(--np-navy); color: var(--np-navy); }
.site-header.scrolled .nav-signin:hover { background: var(--np-navy); color: #fff; }

/* hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 6px; background: none; border: none;
}
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }
.site-header.scrolled .hamburger span { background: var(--np-navy); }
.mobile-nav {
  display: none; flex-direction: column; background: #fff;
  border-top: 1px solid var(--np-line); padding: 1rem 0 1.5rem;
  max-height: 80vh; overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 0.75rem 1.5rem; color: var(--np-navy); font-weight: 500; font-size: 0.93rem;
  text-decoration: none; border-bottom: 1px solid rgba(18,63,109,0.06);
}
.mobile-nav a:hover { background: rgba(246,146,30,0.07); color: var(--np-orange); }
.mobile-nav-section { padding: 0.5rem 1.5rem 0.2rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--np-orange); }

/* ══════════════════════════════════════
   HERO (Homepage)
══════════════════════════════════════ */
#home {
  background: #ffffff;
  position: relative; overflow: hidden;
}
.hero-bg-pattern { display: none; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 0.85fr;
  gap: 3rem; align-items: center; padding: 6rem 0 5rem; position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,134,0,0.1); border: 1px solid rgba(255,134,0,0.28);
  border-radius: 999px; padding: 0.3rem 0.9rem; margin-bottom: 1.4rem;
  font-size: 0.78rem; font-weight: 700; color: var(--np-orange); letter-spacing: 0.08em; text-transform: uppercase;
}
.hero-copy h1 { color: var(--np-navy); margin-bottom: 1.3rem; }
.hero-copy .lede { color: var(--np-muted); font-size: clamp(1rem,1.8vw,1.15rem); max-width: 52ch; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-badges { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 600; color: var(--np-muted);
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--np-orange); }
.hero-visual { position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 24px 60px rgba(0,38,71,0.18); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,59,98,0.18);
}
.hero-visual-badge {
  position: absolute; bottom: 1.2rem; left: 1.2rem; z-index: 2;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border: 1px solid rgba(0,59,98,0.12); border-radius: var(--radius-md); padding: 0.7rem 1rem;
}
.hero-visual-badge .title { color: var(--np-navy); font-size: 0.85rem; font-weight: 700; }
.hero-visual-badge .sub { color: var(--np-muted); font-size: 0.75rem; }

/* ══════════════════════════════════════
   PAGE HERO (Subpages)
══════════════════════════════════════ */
.page-hero {
  background: #ffffff;
  position: relative; overflow: hidden; padding: 5rem 0 4rem;
}
.page-hero-bg { display: none; }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem;
  font-size: 0.82rem; color: var(--np-muted); flex-wrap: wrap;
}
.breadcrumb a { color: var(--np-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--np-orange); }
.breadcrumb .sep { color: rgba(0,59,98,0.25); }
.breadcrumb .current { color: var(--np-navy); font-weight: 600; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.page-hero h1 { color: var(--np-navy); font-size: clamp(1.9rem,4vw,3.2rem); margin-bottom: 1rem; }
.page-hero .subtitle { color: var(--np-muted); font-size: 1.08rem; max-width: 50ch; margin-bottom: 2rem; }
.page-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.page-hero-image { border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 24px 60px rgba(0,38,71,0.15); aspect-ratio: 16/9; }
.page-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero-image-overlay {
  position: relative;
}
.page-hero-image-overlay::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-xl);
  background: rgba(0,59,98,0.12);
}
.service-badge-strip {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem;
}
.s-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.85rem; border-radius: 999px;
  background: rgba(0,59,98,0.07); border: 1px solid rgba(0,59,98,0.14);
  font-size: 0.77rem; font-weight: 600; color: var(--np-navy);
}
.s-badge .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--np-orange); }

/* ══════════════════════════════════════
   STATS BAR
══════════════════════════════════════ */
.stats-bar { background: var(--np-navy); padding: 1.8rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; text-align: center; }
.stat-number { font-size: clamp(1.8rem,3vw,2.8rem); font-weight: 800; color: #fff; line-height: 1; }
.stat-label { font-size: 0.82rem; color: #fff; margin-top: 0.3rem; font-weight: 500; letter-spacing: 0.04em; }

/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
#about { padding: 6rem 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-image-wrap { position: relative; border-radius: var(--radius-xl); overflow: visible; display: flex; flex-direction: column; gap: 1rem; }
.about-image-wrap > img:first-child { width: 100%; display: block; border-radius: var(--radius-xl); }
.about-img-secondary { width: 72%; margin-left: auto; display: block; border-radius: var(--radius-lg); box-shadow: 0 12px 32px rgba(0,59,98,0.18); }
.about-badge-overlay {
  position: absolute; bottom: 1.5rem; right: 1.5rem;
  background: var(--np-navy); border-radius: var(--radius-lg); padding: 1rem 1.4rem; text-align: center;
}
.about-badge-overlay .big { font-size: 1.8rem; font-weight: 800; color: #fff; }
.about-badge-overlay .small { font-size: 0.78rem; color: #fff; font-weight: 500; }
.about-content h2 { margin-bottom: 1.2rem; }
.about-content .intro { font-size: 1.05rem; color: var(--np-text); margin-bottom: 1.4rem; }
.about-content p { margin-bottom: 1rem; }
.quote-block {
  border-left: 4px solid var(--np-orange); padding: 1rem 1.4rem;
  background: rgba(246,146,30,0.06); border-radius: 0 var(--radius-md) var(--radius-md) 0; margin: 1.5rem 0;
}
.quote-block p { color: var(--np-navy); font-style: italic; font-size: 1.05rem; margin: 0; }
.about-actions { margin-top: 1.8rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ══════════════════════════════════════
   SERVICES OVERVIEW GRID (Homepage)
══════════════════════════════════════ */
#services-overview {
  padding: 5rem 0;
  background: #ffffff;
}
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.05rem; }
.services-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; }
.service-card {
  background: var(--np-white); border-radius: var(--radius-lg);
  border: 1px solid var(--np-line); padding: 1.8rem 1.4rem;
  border-top: 4px solid var(--np-navy); box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  text-decoration: none; display: block;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  text-decoration: none;
  background: #ffe9d1;
  border-color: var(--np-orange);
}
.service-card:hover .service-card-icon { background: rgba(246,146,30,0.16); }
.service-card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(18,63,109,0.08); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.service-card-icon img { width: 26px; height: 26px; object-fit: contain; display: block; }
.service-card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--np-navy); stroke-width: 1.8; }
.service-card h3 { font-size: 1rem; color: var(--np-navy); margin-bottom: 0.5rem; }
.service-card p { font-size: 0.86rem; line-height: 1.55; }
.service-card .learn-more {
  margin-top: 1rem; font-size: 0.82rem; font-weight: 700;
  color: var(--np-orange); display: inline-flex; align-items: center; gap: 0.3rem;
}
.service-card .learn-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; }

/* ══════════════════════════════════════
   SERVICE CONTENT (Subpages)
══════════════════════════════════════ */
.service-content-section { padding: 5rem 0; }
.service-content-section.alt-bg { background: #f7f9fb; }
.service-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.service-layout.reverse { direction: rtl; }
.service-layout.reverse > * { direction: ltr; }
.service-image { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); }
.service-image img { width: 100%; display: block; }
.service-text h2 { margin-bottom: 1.2rem; }
.service-text p { margin-bottom: 1rem; }
.feature-list { list-style: none; margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.6rem; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.91rem; color: var(--np-text); line-height: 1.55;
}
.feature-list li::before {
  content: ""; display: block; width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='9' stroke='%23f6921e' stroke-width='1.5'/%3E%3Cpath d='M6 10l3 3 5-5' stroke='%23f6921e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.feature-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.feature-card {
  background: var(--np-white); border-radius: var(--radius-md);
  border: 1px solid var(--np-line); padding: 1.2rem;
}
.feature-card h4 { color: var(--np-navy); font-size: 0.93rem; margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.83rem; margin: 0; }
.feature-card-icon { width: 36px; height: 36px; border-radius: 9px; background: rgba(18,63,109,0.08); display: flex; align-items: center; justify-content: center; margin-bottom: 0.7rem; }
.feature-card-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--np-navy); stroke-width: 2; }
.capability-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.pill { padding: 0.35rem 0.85rem; background: rgba(18,63,109,0.07); border-radius: 999px; font-size: 0.78rem; font-weight: 600; color: var(--np-navy); }
.contract-tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 1.5rem; }
.tier { background: var(--np-white); border-radius: var(--radius-md); border: 1px solid var(--np-line); padding: 1.2rem; text-align: center; }
.tier.featured { background: var(--np-navy); border-color: var(--np-navy); }
.tier.featured h4 { color: #fff; }
.tier.featured p { color: rgba(255,255,255,0.65); }
.tier-name { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--np-orange); margin-bottom: 0.4rem; }
.tier h4 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.tier p { font-size: 0.8rem; margin: 0; }

/* process steps */
.process-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 2rem; }
.process-step { text-align: center; padding: 1.8rem 1.2rem; background: var(--np-white); border-radius: var(--radius-lg); border: 1px solid var(--np-line); }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--np-orange); color: #fff; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.process-step h4 { margin-bottom: 0.5rem; }
.process-step p { font-size: 0.85rem; margin: 0; }

/* ══════════════════════════════════════
   RELATED SERVICES
══════════════════════════════════════ */
.related-section { padding: 4rem 0; background: #ffffff; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }

/* ══════════════════════════════════════
   CLIENTS / CASE STUDIES (Homepage)
   — copied exactly from New project/styles.css
══════════════════════════════════════ */
.case-studies {
  padding: 3rem 0;
  background: var(--np-navy);
  color: #e6eef7;
}
.case-studies .eyebrow,
.case-studies h2 {
  color: #fff;
}
.case-carousel-wrap {
  position: relative;
  margin-top: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0;
}
.case-carousel {
  flex: 1;
  overflow: hidden;
}
.case-grid {
  display: flex;
  gap: 1rem;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
/* ── Client slider arrows ── */
.case-arrow {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  color: #fff;
  z-index: 2;
}
.case-arrow:hover {
  background: rgba(255,255,255,0.28);
  transform: scale(1.08);
}
.case-arrow svg {
  width: 20px; height: 20px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
}
.case-arrow-prev { margin-right: 0.75rem; }
.case-arrow-next { margin-left: 0.75rem; }
/* ── Client slider dots ── */
.case-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.case-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.case-dot.active {
  background: #fff;
  transform: scale(1.3);
}
.case-grid article {
  flex: 0 0 auto;   /* width set dynamically by JS */
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
}
.case-logo {
  width: 100%;
  height: 64px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 0.9rem;
  background: rgba(255,255,255,0.95);
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
}
.case-grid h3 { color: #fff; }
.case-grid p { color: #d5e1ef; }
.case-grid a { color: #ffd9b4; font-weight: 700; }

/* ── Trust badge below section heading ── */
.case-trust-badge {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
  margin-top: -0.35rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

/* ── Testimonial quote ── */
.case-quote {
  margin: 0.75rem 0 0.6rem;
  padding: 0;
  border: none;
  font-style: italic;
  font-size: 1.0rem;
  line-height: 1.55;
  color: #e6f0fb;
  position: relative;
  flex-grow: 1;
}

/* ── Human cite line (name + role) ── */
.case-cite {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  margin: 0.3rem 0 0.65rem;
  font-style: normal;
  letter-spacing: 0.01em;
}

/* ── Verified attribution label ── */
.case-attribution {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.case-attr-icon {
  color: #4db87a;
  font-size: 0.8rem;
  line-height: 1;
}

/* ── Consistent card height via flex column ── */
.case-grid article {
  display: flex;
  flex-direction: column;
}
.case-grid article .case-quote {
  flex: 1 1 auto;
}
.case-grid article a {
  margin-top: auto;
}

/* ══════════════════════════════════════
   TEAM VISUAL STRIP
══════════════════════════════════════ */
.team-visual-section { padding: 5rem 0; background: #ffffff; }
.team-visual-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.team-visual-content .section-label { display: inline-block; margin-bottom: 1rem; }
.team-visual-content h2 { margin-bottom: 1.2rem; }
.team-visual-content p { margin-bottom: 1rem; font-size: 1.02rem; }
.team-visual-img { position: relative; border-radius: var(--radius-xl); overflow: hidden; }
.team-visual-img img { width: 100%; display: block; border-radius: var(--radius-xl); aspect-ratio: 4/3; object-fit: cover; }
.team-visual-badge {
  position: absolute; bottom: 1.2rem; left: 1.2rem;
  background: var(--np-navy); color: #fff;
  border-radius: var(--radius-md); padding: 0.55rem 1rem;
  font-size: 0.82rem; font-weight: 600;
}

/* ══════════════════════════════════════
   CTA BANNER
══════════════════════════════════════ */
.cta-banner { background: #fff; padding: 3rem 0; text-align: center; }
.cta-banner h2 { color: var(--np-navy); font-size: clamp(1.5rem,3vw,2.4rem); margin-bottom: 0.8rem; }
.cta-banner p { color: var(--np-navy); font-size: 1.05rem; max-width: 52ch; margin: 0 auto 2rem; }
.cta-banner .cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-banner .btn-white { background: var(--np-orange); color: #fff; border-color: var(--np-orange); }
.cta-banner .btn-white:hover { background: #e07500; border-color: #e07500; }
.cta-banner .btn-outline-white { background: transparent; color: var(--np-orange); border-color: var(--np-orange); }
.cta-banner .btn-outline-white:hover { background: rgba(246,146,30,0.08); }

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
#contact { padding: 6rem 0; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { margin-bottom: 2rem; font-size: 1.02rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1.1rem; background: #ffffff; border-radius: var(--radius-md); border: 1px solid var(--np-line); }
.contact-item-icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(246,146,30,0.1); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.contact-item-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--np-orange); stroke-width: 2; }
.contact-item-text .label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--np-muted); margin-bottom: 0.2rem; }
.contact-item-text a, .contact-item-text span { color: var(--np-navy); font-weight: 600; font-size: 0.95rem; }
.contact-item-text a:hover { color: var(--np-orange); text-decoration: none; }
.contact-form-card { background: var(--np-white); border-radius: var(--radius-xl); border: 1px solid var(--np-line); padding: 2.5rem; box-shadow: var(--shadow); }
.contact-form-card h3 { margin-bottom: 1.5rem; font-size: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.83rem; font-weight: 600; color: var(--np-navy); margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem; border: 2px solid rgba(18,63,109,0.15);
  border-radius: var(--radius-md); font-family: inherit; font-size: 0.92rem;
  color: var(--np-text); background: #fff; outline: none; transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--np-orange); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { cursor: pointer; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer { background: var(--np-navy); padding: 3.5rem 0 1.5rem; color: #ecf4ff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-brand p { color: rgba(236,244,255,0.55); font-size: 0.85rem; margin-top: 1rem; max-width: 28ch; line-height: 1.6; }
.footer-logo { width: min(220px,100%); height: auto; display: block; margin-bottom: 0.5rem; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.footer-social a svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.footer-social a:hover { background: rgba(255,255,255,0.18); color: #fff; }
.footer-col h4 { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer-col a { display: block; color: rgba(236,244,255,0.7); font-size: 0.86rem; text-decoration: none; padding: 0.28rem 0; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-col p { color: rgba(236,244,255,0.65); font-size: 0.86rem; line-height: 1.65; margin-bottom: 0.5rem; }
.footer-col p strong { color: rgba(255,255,255,0.9); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin: 0; }
.footer-badges { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.f-badge { padding: 0.28rem 0.75rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.5); }
.f-badge.highlight { background: rgba(255,255,255,0.14); color: #fff; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1060px) {
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .about-grid, .service-layout, .contact-grid, .page-hero-grid, .team-visual-grid { grid-template-columns: 1fr; }
  .team-visual-img { order: -1; }
  .service-layout.reverse { direction: ltr; }
  .service-image { order: -1; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .contract-tiers { grid-template-columns: 1fr; }
  .feature-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-right > a:first-child { display: none; }
  .hamburger { display: flex; }
  .nav-right { gap: 0.4rem; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid, .page-hero { padding: 3.5rem 0 3rem; }
  .process-steps { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .top-strip-inner { justify-content: center; }
}

/* The container that hides the overflow */
.clients-carousel-wrapper {
  overflow-x: auto;
  padding-bottom: 20px;
  cursor: grab;
  scrollbar-width: none; /* Hides scrollbar on Firefox */
}

.clients-carousel-wrapper::-webkit-scrollbar {
  display: none; /* Hides scrollbar on Chrome/Safari */
}

/* The grid now acts as a long row */
.clients-grid {
  display: flex;
  gap: 20px;
  scroll-snap-type: x mandatory; /* Makes cards 'snap' into place */
  -webkit-overflow-scrolling: touch;
}

/* Ensure cards don't shrink and stay a consistent size */
.client-card {
  flex: 0 0 300px; /* Adjust 300px to your preferred card width */
  scroll-snap-align: start;
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #eee;
  /* Add your specific card styling here */
}

@media (max-width: 768px) {
  .client-card {
    flex: 0 0 85%; /* Shows most of one card and a peek of the next on mobile */
  }
}
