/* =========================================================================
   VNS — Vision Network Solutions
   Design system: "dark tech / network" direction
   Brand colours extracted directly from vns-logo.ai (vector fill values):
     red    #E02720
     yellow #FFD234
     black  #0C0E0C
   ========================================================================= */

:root {
  /* Brand */
  --vns-red: #E02720;
  --vns-red-dark: #B31E19;
  --vns-red-light: #F4514B;
  --vns-yellow: #FFD234;
  --vns-yellow-dark: #E6B800;
  --vns-black: #0C0E0C;

  /* Dark navy scale (tech base) */
  --vns-navy-950: #080B10;
  --vns-navy-900: #0E131B;
  --vns-navy-800: #171E29;
  --vns-navy-700: #232C3B;
  --vns-navy-600: #35414F;

  /* Light neutrals (content areas) */
  --vns-gray-50: #F7F8FA;
  --vns-gray-100: #EEF0F3;
  --vns-gray-200: #DFE3E8;
  --vns-gray-300: #C7CDD6;
  --vns-gray-400: #9AA4B2;
  --vns-gray-600: #5B6472;
  --vns-gray-800: #2B313B;
  --vns-white: #FFFFFF;

  /* Type */
  --font-heading: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow-sm: 0 1px 2px rgba(8, 11, 16, 0.06), 0 1px 1px rgba(8, 11, 16, 0.04);
  --shadow-md: 0 8px 24px rgba(8, 11, 16, 0.10), 0 2px 8px rgba(8, 11, 16, 0.06);
  --shadow-lg: 0 24px 48px rgba(8, 11, 16, 0.18), 0 8px 16px rgba(8, 11, 16, 0.08);

  --radius: 0.5rem;
  --radius-lg: 0.9rem;
}

/* ---------- Base ---------------------------------------------------- */

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--vns-gray-800);
  background: var(--vns-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--vns-navy-950);
  letter-spacing: -0.01em;
}

a { color: var(--vns-red); text-decoration: none; }
a:hover { color: var(--vns-red-dark); }

::selection { background: var(--vns-yellow); color: var(--vns-black); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vns-red);
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--vns-yellow);
  display: inline-block;
  border-radius: 2px;
}
.band-dark .eyebrow { color: var(--vns-yellow); }
.band-dark .eyebrow::before { background: var(--vns-red); }

/* ---------- Buttons --------------------------------------------------- */

.btn-vns, .actionbutton, a.actionbutton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: var(--vns-red);
  color: var(--vns-white) !important;
  border: 2px solid var(--vns-red);
  transition: all 0.18s ease;
  text-decoration: none !important;
}
.btn-vns:hover, .actionbutton:hover, a.actionbutton:hover {
  background: var(--vns-red-dark);
  border-color: var(--vns-red-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-vns-outline {
  background: transparent;
  color: var(--vns-red) !important;
}
.btn-vns-outline:hover {
  background: var(--vns-red);
  color: var(--vns-white) !important;
}
.btn-vns-light {
  background: var(--vns-white);
  border-color: var(--vns-white);
  color: var(--vns-navy-950) !important;
}
.btn-vns-light:hover {
  background: var(--vns-yellow);
  border-color: var(--vns-yellow);
  color: var(--vns-black) !important;
}
.btn-vns-ghost-dark {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--vns-white) !important;
}
.btn-vns-ghost-dark:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--vns-white);
}

/* ---------- Navbar ------------------------------------------------------ */

.vns-navbar {
  background: rgba(8, 11, 16, 0.88);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 1030;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.vns-navbar .navbar-brand img { height: 34px; width: auto; display: block; }

.vns-navbar .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82) !important;
  padding: 0.5rem 0.85rem !important;
}
.vns-navbar .nav-link:hover,
.vns-navbar .nav-link:focus,
.vns-navbar .nav-link.active { color: var(--vns-white) !important; }

.vns-navbar .dropdown-menu {
  background: var(--vns-navy-900);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  margin-top: 0.75rem;
}
.vns-navbar .dropdown-menu.mega {
  min-width: 620px;
  gap: 0;
  padding: 1.25rem;
}
.vns-navbar .dropdown-menu.mega.show {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 1.25rem;
}
.vns-navbar .dropdown-menu.mega .mega-col { padding: 0 0.9rem; }
.vns-navbar .dropdown-menu.mega .mega-col:not(:nth-child(2n+1)) {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.vns-navbar .mega-col h6 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--vns-yellow);
  margin-bottom: 0.6rem;
}
.vns-navbar .dropdown-item {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0.4rem;
  white-space: normal;
}
.vns-navbar .dropdown-item:hover,
.vns-navbar .dropdown-item:focus {
  background: rgba(255, 255, 255, 0.06);
  color: var(--vns-white);
}
.vns-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25);
}
.vns-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
  .vns-navbar .dropdown-menu.mega { min-width: 100%; }
  .vns-navbar .dropdown-menu.mega.show { grid-template-columns: 1fr; }
  .vns-navbar .dropdown-menu.mega .mega-col:not(:nth-child(2n+1)) { border-left: 0; border-top: 1px solid rgba(255,255,255,0.08); margin-top: .5rem; padding-top: .75rem; }
}

/* ---------- Hero bands -------------------------------------------------- */

.band-dark {
  background: linear-gradient(180deg, var(--vns-navy-950) 0%, var(--vns-navy-900) 100%);
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  overflow: hidden;
}
.band-dark h1, .band-dark h2, .band-dark h3 { color: var(--vns-white); }
.band-dark p { color: rgba(255, 255, 255, 0.72); }

/* Network node/line texture */
.band-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,0.14) 1px, transparent 1px),
    linear-gradient(120deg, rgba(224,39,32,0.10), transparent 45%),
    linear-gradient(300deg, rgba(255,210,52,0.06), transparent 40%);
  background-size: 32px 32px, cover, cover;
  background-position: -6px -6px, 0 0, 0 0;
  opacity: 0.9;
}

/* Faint triangle brand watermark */
.band-dark::after {
  content: "";
  position: absolute;
  top: -12%;
  right: -6%;
  width: 46%;
  padding-bottom: 46%;
  pointer-events: none;
  background: var(--vns-red);
  opacity: 0.06;
  clip-path: polygon(0% 0%, 100% 22%, 34% 100%);
  transform: rotate(8deg);
}

.hero {
  padding: 5.5rem 0 6rem;
  position: relative;
  z-index: 1;
}
.hero .container, .hero-page .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 1.25rem;
}
.hero .lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 42rem;
}

.hero-page {
  padding: 3rem 0 3.5rem;
  position: relative;
  z-index: 1;
}
.hero-page h1 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}
.hero-page .breadcrumb-vns {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.9rem;
}
.hero-page .breadcrumb-vns a { color: rgba(255,255,255,0.7); }
.hero-page .breadcrumb-vns a:hover { color: var(--vns-yellow); }

/* Angled divider between dark hero and light content below */
.band-divider {
  display: block;
  width: 100%;
  height: 46px;
  margin-bottom: -1px;
}
.band-divider path { fill: var(--vns-white); }

/* ---------- Section bands ------------------------------------------------ */

.section-band { padding: 4.5rem 0; }
.section-band-tight { padding: 3rem 0; }
.section-band-alt { background: var(--vns-gray-50); }

.section-head { max-width: 42rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.section-head p { color: var(--vns-gray-600); font-size: 1.05rem; }
.section-head.text-center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards --------------------------------------------------------- */

.vns-card {
  position: relative;
  background: var(--vns-white);
  border: 1px solid var(--vns-gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  height: 100%;
}
.vns-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--vns-gray-300);
}

.vns-card-service {
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}
.vns-card-service::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--vns-red), var(--vns-yellow));
  opacity: 0;
  transition: opacity 0.18s ease;
}
.vns-card-service:hover::before { opacity: 1; }
.vns-card-service .cat-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vns-red);
  background: rgba(224, 39, 32, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.vns-card-service h3, .vns-card-service h5 {
  font-size: 1.08rem;
  margin-bottom: 0.6rem;
}
.vns-card-service p { color: var(--vns-gray-600); font-size: 0.92rem; margin-bottom: 0; }
.vns-card-service .stretched-link::after { z-index: 2; }

.vns-card-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--vns-red);
  margin-top: 0.9rem;
}

/* Portfolio */
.vns-card-portfolio {
  overflow: hidden;
  position: relative;
}
.vns-card-portfolio .thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--vns-navy-900), var(--vns-navy-700));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.vns-card-portfolio .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.vns-card-portfolio:hover .thumb img { transform: scale(1.06); }
.vns-card-portfolio .thumb .thumb-fallback {
  color: rgba(255,255,255,0.35);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}
.vns-card-portfolio .body { padding: 1.1rem 1.25rem; }
.vns-card-portfolio h3 { font-size: 1rem; margin-bottom: 0; }

/* Testimonials */
.vns-card-quote {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.vns-card-quote .quote-mark {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1;
  color: var(--vns-yellow);
  -webkit-text-stroke: 1px var(--vns-red);
}
.vns-card-quote blockquote {
  font-size: 1rem;
  color: var(--vns-gray-800);
  margin: 0;
  flex: 1;
}
.vns-card-quote footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--vns-gray-200);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: var(--vns-gray-600);
}
.vns-card-quote footer img { max-height: 32px; width: auto; }
.vns-card-quote footer strong { color: var(--vns-navy-950); display: block; font-size: 0.88rem; }

.prose-quote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--vns-gray-800);
  margin-top: -0.5rem;
}
.prose-quote p { margin-bottom: 0.9rem; }
.prose-quote img {
  max-height: 34px;
  width: auto;
  border: 0 !important;
  filter: grayscale(1);
  opacity: 0.75;
  margin: 0.5rem 0 !important;
}
.prose-quote em {
  font-style: normal;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: var(--vns-gray-600);
  line-height: 1.4;
}

/* News */
.vns-card-news { display: flex; flex-direction: column; }
.vns-card-news .date-badge {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vns-gray-400);
  margin-bottom: 0.6rem;
}
.vns-card-news .body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.vns-card-news h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.vns-card-news p { color: var(--vns-gray-600); font-size: 0.9rem; flex: 1; }

/* Locations / office cards */
.vns-card-location { padding: 1.75rem; }
.vns-card-location h3 { font-size: 1.1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.vns-card-location h3::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--vns-red);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.vns-card-location p { margin-bottom: 0.4rem; font-size: 0.92rem; color: var(--vns-gray-600); }
.vns-card-location strong { color: var(--vns-navy-950); }

/* ---------- Prose (rendered article body content) ------------------------ */

.prose {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--vns-gray-800);
}
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--vns-gray-200);
}
.prose h3 { font-size: 1.2rem; margin-top: 1.8rem; margin-bottom: 0.75rem; }
.prose p { margin-bottom: 1.2rem; }
.prose ul, .prose ol { margin-bottom: 1.2rem; padding-left: 1.4rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a:not(.actionbutton) { text-decoration: underline; text-underline-offset: 2px; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose blockquote {
  border-left: 4px solid var(--vns-red);
  padding: 0.25rem 0 0.25rem 1.25rem;
  color: var(--vns-gray-600);
  font-style: italic;
  margin: 1.5rem 0;
}

.prose table {
  width: 100% !important;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.95rem;
}
.prose table td {
  padding: 0.85rem 1rem !important;
  border-bottom: 1px solid var(--vns-gray-200);
  vertical-align: top;
  width: auto !important;
}
.prose table tr:first-child td { border-top: 1px solid var(--vns-gray-200); }
.prose table td:first-child {
  font-family: var(--font-heading);
  color: var(--vns-navy-950);
  width: 30% !important;
}
.prose table td strong,
.prose table td span[style*="color"] {
  color: var(--vns-navy-950) !important;
  font-family: var(--font-heading);
  font-weight: 600;
}

.prose p > a.actionbutton:only-child {
  margin: 1.75rem 0;
}

/* ---------- Footer --------------------------------------------------------- */

.vns-footer {
  background: var(--vns-navy-950);
  color: rgba(255, 255, 255, 0.65);
  position: relative;
}
.vns-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--vns-red), var(--vns-yellow));
}
.vns-footer-main { padding: 4rem 0 2.5rem; }
.vns-footer h6 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vns-white);
  margin-bottom: 1.1rem;
}
.vns-footer ul { list-style: none; padding: 0; margin: 0; }
.vns-footer li { margin-bottom: 0.6rem; font-size: 0.9rem; }
.vns-footer a { color: rgba(255, 255, 255, 0.62); }
.vns-footer a:hover { color: var(--vns-yellow); }
.vns-footer .footer-brand img { height: 30px; margin-bottom: 1rem; }
.vns-footer .footer-brand p { font-size: 0.88rem; max-width: 22rem; color: rgba(255,255,255,0.5); }
.vns-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.42);
}
.vns-footer-bottom a { color: rgba(255, 255, 255, 0.55); }

/* ---------- Misc ------------------------------------------------------------ */

.badge-vns {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(224, 39, 32, 0.08);
  color: var(--vns-red);
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}
.stat-strip .stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.1rem;
  color: var(--vns-white);
  line-height: 1;
}
.stat-strip .stat span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

.cta-band {
  background: var(--vns-navy-950);
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 30%, rgba(255,210,52,0.10), transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(224,39,32,0.14), transparent 40%);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--vns-white); }
.cta-band p { color: rgba(255,255,255,0.7); }

@media (max-width: 767.98px) {
  .hero { padding: 3.5rem 0 4rem; }
  .section-band { padding: 3rem 0; }
}
