/* ── Design tokens (shared with homepage) ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0B1220;
  --slate:  #1E2D3D;
  --teal:   #1FD4A0;
  --amber:  #FFB830;
  --cream:  #F5F4F0;
  --cream2: #E8E6DF;
  --grey:   #888888;
  --dgrey:  #444444;
  --teal-dk:#065C42;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  background: var(--cream);
  color: var(--navy);
  overflow-x: hidden;
}

/* ── Nav (copy from homepage — same nav across all pages) ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  height: 72px;
  background: rgba(11,18,32,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31,212,160,0.12);
  transition: all 0.3s ease;
}
.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-mark { display: grid; grid-template-columns: repeat(4,10px); grid-template-rows: repeat(4,10px); gap: 2px; }
.nm { width: 10px; height: 10px; border-radius: 1.5px; }
.nm-navy  { background: #fff; }
.nm-teal  { background: var(--teal); }
.nm-amber { background: var(--amber); }
.nm-ghost { background: rgba(255,255,255,0.1); border: 0.5px solid rgba(255,255,255,0.15); }
.nav-wordmark { line-height: 1; }
.nav-wordmark span:first-child {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 18px;
  letter-spacing: 0.04em; color: #fff; text-transform: uppercase;
}
.nav-wordmark span:last-child {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: 12px;
  letter-spacing: 0.25em; color: var(--teal); text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-family: 'Barlow', sans-serif;
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65); text-decoration: none;
  text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }
.nav-cta {
  background: var(--teal); color: var(--navy) !important;
  padding: 10px 22px; border-radius: 3px; font-weight: 700 !important;
}
.nav-cta:hover { background: #2de8b0 !important; }

/* Dropdown */
.nav-dropdown { position: relative; padding-bottom: 20px; margin-bottom: -20px; }
.nav-dropdown > .nav-dropdown-toggle { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.nav-dropdown-toggle svg { width: 10px; height: 10px; stroke: var(--teal); transition: transform 0.25s, stroke 0.2s; }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); stroke: var(--teal); }
.nav-dropdown-panel {
  position: absolute; top: 100%; left: 50%;
  width: 260px;
  background: rgba(11,18,32,0.98); backdrop-filter: blur(16px);
  border: 1px solid rgba(31,212,160,0.12); border-top: 2px solid var(--teal);
  border-radius: 0 0 4px 4px;
  padding: 20px 0 8px; margin-top: 0;
  opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.22s, transform 0.22s; z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-panel a {
  display: flex; align-items: center; gap: 10px; padding: 11px 20px;
  font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.6);
  text-decoration: none; transition: color 0.15s, background 0.15s, padding-left 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav-dropdown-panel a:last-child { border-bottom: none; }
.nav-dropdown-panel a::before {
  content: ''; width: 6px; height: 6px; border-radius: 2px;
  background: var(--teal); opacity: 0; transition: opacity 0.15s; flex-shrink: 0;
}
.nav-dropdown-panel a:hover { color: #fff; background: rgba(31,212,160,0.06); padding-left: 24px; }
.nav-dropdown-panel a:hover::before { opacity: 1; }
.nav-dropdown-panel .nav-dropdown-all {
  margin: 6px 12px 4px; padding: 10px 16px;
  background: rgba(31,212,160,0.08); border: 1px solid rgba(31,212,160,0.2);
  border-radius: 3px; color: var(--teal) !important; font-weight: 600 !important;
  letter-spacing: 0.08em !important; text-transform: uppercase !important;
  font-size: 11px !important; justify-content: center; border-bottom: none !important;
}

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; padding: 8px;
  border-radius: 4px; transition: background 0.2s; position: relative; z-index: 200;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.06); }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s, opacity 0.3s, width 0.3s; transform-origin: center; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 150;
  background: rgba(11,18,32,0.98); backdrop-filter: blur(16px);
  flex-direction: column; justify-content: flex-start; align-items: flex-start;
  padding: 80px 32px 32px; overflow-y: auto;
  opacity: 0; pointer-events: none; transition: opacity 0.35s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }

/* ── Shared inner page layout ── */
.ns-main { padding-top: 72px; min-height: 60vh; }
.ns-inner { max-width: 1160px; margin: 0 auto; padding: 0 40px; }

/* Inner page hero banner */
.ns-page-hero,
.ns-single-hero {
  background: var(--navy);
  padding: 80px 0 64px;
}
.ns-404 .ns-inner,
.ns-archive .ns-inner { padding-top: 80px; padding-bottom: 80px; }

/* Shared typography */
.section-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.section-h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(36px, 5vw, 64px); font-weight: 900;
  line-height: 1.0; letter-spacing: -0.01em; color: var(--navy);
  margin-bottom: 20px;
}
.section-h2.light { color: #fff; }
.section-intro { font-size: 17px; font-weight: 300; line-height: 1.7; color: var(--dgrey); max-width: 600px; }
.section-intro.light { color: rgba(255,255,255,0.7); }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--teal); color: var(--navy);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 3px; text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover { background: #2de8b0; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--teal); color: var(--teal);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 13px 26px; border-radius: 3px; text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover { background: rgba(31,212,160,0.08); }

/* Insights meta shared styles */
.ins-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 10px;
  display: block;
}
.ins-meta { display: flex; gap: 16px; align-items: center; margin-top: 16px; }
.ins-date, .ins-read {
  font-size: 12px; font-weight: 500; color: var(--grey); letter-spacing: 0.06em; text-transform: uppercase;
}

/* Post grid (blog index / archive) */
.ns-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.ns-post-card {
  background: #fff; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--cream2); transition: box-shadow 0.2s;
}
.ns-post-card:hover { box-shadow: 0 8px 32px rgba(11,18,32,0.08); }
.ns-post-card-img img { width: 100%; height: 220px; object-fit: cover; display: block; }
.ns-post-card-body { padding: 28px; }
.ns-post-card-h { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.ns-post-card-h a { color: var(--navy); text-decoration: none; }
.ns-post-card-h a:hover { color: var(--teal); }
.ns-post-card-excerpt { font-size: 14px; color: var(--dgrey); line-height: 1.6; }

/* Single post */
.ns-single-featured-img { max-height: 520px; overflow: hidden; }
.ns-single-featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ns-single-content { padding-top: 60px; padding-bottom: 60px; max-width: 760px; }
.ns-single-content h2, .ns-single-content h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; margin: 32px 0 16px; }
.ns-single-content p { font-size: 17px; line-height: 1.75; margin-bottom: 20px; color: var(--dgrey); }
.ns-single-content img { max-width: 100%; border-radius: 3px; }
.ns-single-meta { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; }
.ns-single-footer { padding-bottom: 80px; }

/* Pagination */
.ns-pagination { margin-top: 48px; }
.ns-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.ns-no-posts { color: var(--grey); margin-top: 48px; font-size: 16px; }

/* Page content */
.ns-page-content { padding-top: 60px; padding-bottom: 80px; }
.ns-page-content h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 32px; margin: 40px 0 16px; }
.ns-page-content p { font-size: 17px; line-height: 1.75; margin-bottom: 20px; color: var(--dgrey); }
.ns-page-content ul, .ns-page-content ol { padding-left: 24px; margin-bottom: 20px; }
.ns-page-content li { font-size: 17px; line-height: 1.75; color: var(--dgrey); margin-bottom: 8px; }

/* Footer (copy from homepage) */
footer {
  background: var(--navy);
  padding: 64px 40px 32px;
}
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.4); max-width: 280px; margin-top: 8px; }
.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px; color: rgba(255,255,255,0.55);
  text-decoration: none; margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--teal); }
.footer-btm {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-btm p { font-size: 12px; color: rgba(255,255,255,0.2); }
.footer-mark { display: flex; align-items: center; gap: 10px; }
.mini-mark { display: grid; grid-template-columns: repeat(4,8px); grid-template-rows: repeat(4,8px); gap: 1.5px; }
.mm { width: 8px; height: 8px; border-radius: 1px; }
.footer-mark span { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: rgba(255,255,255,0.2); text-transform: uppercase; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .ns-inner { padding: 0 24px; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .ns-post-grid { grid-template-columns: 1fr; }
  .footer-btm { flex-direction: column; gap: 16px; text-align: center; }
}

/* ══════════════════════════════════════════════════════
   SERVICE PAGE TEMPLATE
   ══════════════════════════════════════════════════════ */

/* ── Hero ── */
.svc-hero {
  background: var(--navy);
  padding: 120px 0 80px;
  position: relative;
}
.svc-hero .section-tag { margin-bottom: 16px; }
.svc-hero .section-h2 { margin-bottom: 24px; }
.svc-hero .section-intro { margin-bottom: 40px; }
.svc-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.svc-hero-back { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.6); }
.svc-hero-back:hover { background: rgba(255,255,255,0.06); color: #fff; }
.svc-hero-rule {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--amber) 50%, transparent 100%);
  opacity: 0.4;
}

/* ── Features grid ── */
.svc-features {
  background: var(--cream);
  padding: 96px 0;
}
.svc-features .section-h2 { margin-bottom: 48px; }
.svc-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.svc-feature-card {
  background: #fff;
  border: 1px solid var(--cream2);
  border-radius: 4px;
  padding: 36px;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.svc-feature-card:hover {
  box-shadow: 0 8px 32px rgba(11,18,32,0.07);
  border-color: rgba(31,212,160,0.3);
}
.svc-feature-card:nth-child(even) { border-top: 3px solid var(--amber); }
.svc-feature-card:nth-child(odd)  { border-top: 3px solid var(--teal); }
.svc-feature-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 0.15em;
  color: var(--teal); margin-bottom: 16px;
}
.svc-feature-card:nth-child(even) .svc-feature-num { color: var(--amber); }
.svc-feature-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 800; color: var(--navy);
  line-height: 1.2; margin-bottom: 12px;
}
.svc-feature-text {
  font-size: 15px; line-height: 1.7; color: var(--dgrey);
}

/* ── Approach ── */
.svc-approach {
  background: var(--slate);
  padding: 96px 0;
}
.svc-approach-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  align-items: start;
}
.svc-steps { margin-top: 48px; display: flex; flex-direction: column; gap: 0; }
.svc-step {
  display: flex;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.svc-step:first-child { border-top: 1px solid rgba(255,255,255,0.06); }
.svc-step-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px; font-weight: 900; color: var(--teal);
  opacity: 0.5; min-width: 40px; line-height: 1;
  padding-top: 2px;
}
.svc-step-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px; font-weight: 800; color: #fff;
  margin-bottom: 8px;
}
.svc-step-text { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.55); }

/* Approach aside box */
.svc-approach-aside { position: sticky; top: 104px; }
.svc-aside-box {
  background: rgba(11,18,32,0.5);
  border: 1px solid rgba(31,212,160,0.15);
  border-left: 3px solid var(--teal);
  border-radius: 4px;
  padding: 36px;
}
.svc-aside-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 16px;
}
.svc-aside-text {
  font-size: 15px; line-height: 1.7; color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}
.svc-aside-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal); text-decoration: none;
  transition: opacity 0.2s;
}
.svc-aside-link:hover { opacity: 0.7; }

/* ── Service CTA ── */
.svc-cta {
  background: var(--navy);
  padding: 96px 0;
  text-align: center;
}
.svc-cta .ns-inner { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.cta-h {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(36px, 5vw, 60px); font-weight: 900;
  color: #fff; line-height: 1.0; letter-spacing: -0.01em;
}
.cta-h em { color: var(--teal); font-style: normal; }
.cta-sub {
  font-size: 17px; font-weight: 300; color: rgba(255,255,255,0.55);
  max-width: 520px; line-height: 1.6; margin-top: 16px;
}
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ── Scroll reveal (inner pages) ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.reveal-delay-1 { transition-delay: 0.1s; }
.reveal.reveal-delay-2 { transition-delay: 0.2s; }
.reveal.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .svc-approach-inner { grid-template-columns: 1fr; }
  .svc-approach-aside { position: static; margin-top: 40px; }
  .svc-features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .svc-hero { padding: 100px 0 60px; }
  .svc-features, .svc-approach, .svc-cta { padding: 64px 0; }
}

/* ── Case Study Single ── */
.cs-single-img { line-height: 0; }
.cs-single-img img { width: 100%; height: auto; display: block; }

.cs-single-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 60px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 80px;
  align-items: start;
}

.cs-single-h {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900; line-height: 1;
  letter-spacing: -0.01em; color: var(--navy);
  margin-top: 12px; margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 3px solid var(--teal);
}

.cs-single-body h2,
.cs-single-body h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 28px; margin: 36px 0 14px; color: var(--navy); }
.cs-single-body p { font-size: 17px; line-height: 1.75; margin-bottom: 20px; color: var(--dgrey); }
.cs-single-body ul,
.cs-single-body ol { padding-left: 24px; margin-bottom: 20px; }
.cs-single-body li { font-size: 17px; line-height: 1.75; color: var(--dgrey); margin-bottom: 8px; }
.cs-single-body img { max-width: 100%; border-radius: 3px; margin: 8px 0; }
.cs-single-body blockquote {
  border-left: 3px solid var(--teal);
  margin: 32px 0; padding: 12px 24px;
  font-size: 19px; font-style: italic;
  color: var(--navy); line-height: 1.6;
}

.cs-single-sidebar { position: sticky; top: 96px; }

.cs-sidebar-allbtn { display: flex; justify-content: center; margin-bottom: 36px; }

.cs-sidebar-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--grey);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cream2);
}

.cs-sidebar-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--cream2);
  text-decoration: none; color: var(--navy);
  transition: color 0.2s;
}
.cs-sidebar-item:hover { color: var(--teal); }
.cs-sidebar-item:last-child { border-bottom: none; }

.cs-sidebar-item-img {
  flex-shrink: 0;
  width: 72px; height: 52px;
  overflow: hidden; border-radius: 2px;
  background: var(--cream2);
}
.cs-sidebar-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cs-sidebar-item-cat {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 4px;
}
.cs-sidebar-item-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 1100px) {
  .cs-single-wrap { padding: 48px 40px 64px; gap: 48px; }
}
@media (max-width: 900px) {
  .cs-single-wrap { grid-template-columns: 1fr; padding: 40px 24px 60px; gap: 48px; }
  .cs-single-sidebar { position: static; }
}
