/* ===== Northshield Technology — shared stylesheet =====
   Design language: engineered darkness. One canvas, one foreground,
   teal as a hairline signal. No shadows, no gradients — depth comes
   from borders and contrast. One typeface at every scale. */

:root {
  --canvas: #0a0e12;        /* near-black with a cool blue undertone */
  --raised: #11202b;        /* the only raised solid surface */
  --ice: #e6f1f2;           /* sole foreground: text, borders, outlines */
  --ice-muted: #7d8e95;     /* muted helper text only */
  --line: #25333c;          /* dashed dividers, structural lines */
  --teal: #00c8c8;          /* hairline accent — never a fill */
  --navy: #1a4a7a;

  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-card: 12px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--ice);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: normal;
}

img { max-width: 100%; display: block; }
a { color: var(--ice); text-decoration: none; }

.container {
  width: min(1240px, 92%);
  margin-inline: auto;
}

/* ===== Buttons — ghost pills, no fills, no shadows ===== */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: normal;
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.btn-primary {
  color: var(--teal);
  border: 1px solid var(--teal);
}
.btn-primary:hover {
  color: var(--canvas);
  background: var(--teal);
}

.btn-secondary {
  color: var(--ice);
  border: 1px solid var(--ice);
}
.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 18, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
/* light chip behind the logo so it never blends into the dark canvas */
.nav-brand img {
  height: 84px;
  width: auto;
  background: var(--ice);
  border-radius: 14px;
  padding: 7px;
}
.nav-brand span {
  font-weight: 500;
  font-size: 1.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ice);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a:not(.btn) {
  color: var(--ice);
  font-size: 0.82rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.nav-links a:not(.btn):hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.nav-links .btn { padding: 0.5rem 1.3rem; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ice);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px dashed var(--line);
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  padding: 6rem 0 8rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 7.5vw, 5.4rem);
  font-weight: 500;
  line-height: 0.98;
  margin-bottom: 1.8rem;
}
.hero h1 .accent { color: var(--teal); }

/* character-stagger reveal */
.hero h1 .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero h1 .char {
  display: inline-block;
  transform: translateY(115%);
  animation: char-up 0.65s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes char-up {
  to { transform: translateY(0); }
}

.hero p {
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: var(--ice-muted);
  max-width: 600px;
  margin-bottom: 2.4rem;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* scroll prompt */
.scroll-prompt {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ice-muted);
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.scroll-prompt.hidden { opacity: 0; }
.scroll-prompt svg {
  width: 16px;
  height: 16px;
  stroke: var(--teal);
  animation: prompt-bob 2.2s ease-in-out infinite;
}
@keyframes prompt-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Sub-page hero */
.page-hero {
  padding: 7rem 0 4.5rem;
  border-bottom: 1px dashed var(--line);
}
.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 0.98;
  margin-bottom: 1.4rem;
  max-width: 800px;
}
.page-hero p {
  color: var(--ice-muted);
  max-width: 640px;
  font-size: 1.1rem;
}

/* ===== Sections ===== */
section { padding: 6.5rem 0; }
section + section,
.cta-section { border-top: 1px dashed var(--line); }

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 0.98;
  text-align: left;
  margin-bottom: 0.9rem;
  max-width: 700px;
}
.section-subtitle {
  text-align: left;
  color: var(--ice-muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 3.5rem;
}
.section-title + .grid, .section-title + .cards { margin-top: 3.5rem; }

/* Fade-in on scroll (stagger delays set by script.js) */
.fade-in {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.visible { opacity: 1; transform: none; }

/* ===== Service cards — flat, hairline-bordered ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: transparent;
  border: 1px solid rgba(230, 241, 242, 0.16);
  border-radius: var(--radius-card);
  padding: 2.2rem 1.9rem;
  transition: border-color 0.3s ease;
}
.card:hover { border-color: var(--teal); }

.card .icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  margin-bottom: 1.4rem;
}
.card .icon svg { width: 24px; height: 24px; stroke: var(--teal); stroke-width: 1.5; }

.card h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.card p { color: var(--ice-muted); margin-bottom: 1.5rem; font-size: 0.97rem; }
.card .card-link {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ice);
  border-bottom: 1px solid var(--teal);
  padding-bottom: 2px;
  transition: color 0.3s ease;
}
.card .card-link:hover { color: var(--teal); }

/* ===== Why us ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0;
  margin-top: 3.5rem;
  border-top: 1px dashed var(--line);
}

.value {
  padding: 2rem 1.6rem 2rem 0;
  border-bottom: 1px dashed var(--line);
}
.value h3 {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ice);
  margin-bottom: 0.6rem;
  padding-left: 0.9rem;
  border-left: 1px solid var(--teal);
}
.value p { color: var(--ice-muted); font-size: 0.95rem; padding-left: calc(0.9rem + 1px); }

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 1px solid rgba(230, 241, 242, 0.16);
  border-radius: var(--radius-card);
  padding: 2.4rem 2rem;
  transition: border-color 0.3s ease;
}
.price-card:hover { border-color: var(--teal); }

.step-label {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  border-bottom: 1px solid var(--teal);
  padding-bottom: 3px;
  margin-bottom: 1.4rem;
}

.step-note {
  color: var(--ice-muted);
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
}

.price-card .tier { font-size: 1.5rem; margin-bottom: 0.2rem; }
.price-card .tier-sub {
  color: var(--ice-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 2.1rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ice);
  margin-bottom: 0.5rem;
}
.price .old {
  font-size: 1.1rem;
  color: var(--ice-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 0.5rem;
}
.price-note { color: var(--ice-muted); font-size: 0.88rem; margin-bottom: 1.6rem; }

.price-card ul {
  list-style: none;
  margin-bottom: 1.6rem;
  flex-grow: 1;
}
.price-card ul li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: var(--ice);
  font-size: 0.94rem;
  border-bottom: 1px dashed var(--line);
}
.price-card ul li:last-child { border-bottom: none; }
.price-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 9px;
  height: 1px;
  background: var(--teal);
}

.best-for {
  font-size: 0.88rem;
  color: var(--ice-muted);
  margin-bottom: 1.6rem;
}
.price-card .btn { width: 100%; text-align: center; }

/* ===== CTA banner — raised surface, teal hairlines ===== */
.cta-banner {
  background: var(--raised);
  border-top: 1px solid var(--teal);
  border-bottom: 1px solid var(--teal);
  padding: 4.5rem 0;
}
.cta-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.cta-banner h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.05;
  color: var(--ice);
  max-width: 640px;
  text-align: left;
  margin: 0;
}
.cta-banner .btn {
  color: var(--teal);
  border: 1px solid var(--teal);
  flex-shrink: 0;
}
.cta-banner .btn:hover { color: var(--canvas); background: var(--teal); }

/* ===== Footer ===== */
footer {
  border-top: 1px dashed var(--line);
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.2rem;
}

.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-brand img {
  height: 64px;
  width: auto;
  background: var(--ice);
  border-radius: 10px;
  padding: 5px;
}
.footer-brand .name {
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-brand .tagline { color: var(--ice-muted); font-size: 0.85rem; }

.footer-nav { display: flex; gap: 1.8rem; list-style: none; flex-wrap: wrap; }
.footer-nav a {
  color: var(--ice-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}
.footer-nav a:hover { color: var(--teal); }

.footer-copy {
  text-align: center;
  color: var(--ice-muted);
  font-size: 0.8rem;
  border-top: 1px dashed var(--line);
  padding-top: 1.6rem;
}

/* ===== Contact page ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  background: transparent;
  border: 1px solid rgba(230, 241, 242, 0.16);
  border-radius: var(--radius-card);
  padding: 2.5rem;
}

.form-group { margin-bottom: 1.8rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

label {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 0.5rem;
}
label .optional { color: var(--ice-muted); font-weight: 400; text-transform: none; letter-spacing: normal; }

/* ghost inputs — bottom border only */
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(230, 241, 242, 0.35);
  border-radius: 0;
  color: var(--ice);
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.55rem 0.1rem;
  transition: border-color 0.3s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-bottom-color: var(--teal);
}
textarea {
  resize: vertical;
  min-height: 110px;
  border: 1px dashed var(--line);
  border-radius: 0;
  padding: 0.8rem;
}
textarea:focus { border-color: var(--teal); }
select {
  appearance: none;
  cursor: pointer;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%237d8e95" stroke-width="1.5"><polyline points="6 9 12 15 18 9"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  background-size: 16px;
}
select option { background: var(--canvas); color: var(--ice); }

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  padding-top: 0.3rem;
}
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 400;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: normal;
  margin: 0;
  cursor: pointer;
  color: var(--ice);
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
  cursor: pointer;
}

.trust-panel {
  border: 1px dashed var(--line);
  border-radius: var(--radius-card);
  padding: 2rem;
  position: sticky;
  top: 96px;
}
.trust-panel h3 {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.2rem;
}
.trust-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--line);
}
.trust-item:last-child { border-bottom: none; padding-bottom: 0; }
.trust-item svg { width: 22px; height: 22px; stroke: var(--teal); stroke-width: 1.5; flex-shrink: 0; margin-top: 2px; }
.trust-item strong { display: block; font-weight: 500; font-size: 0.98rem; }
.trust-item span { color: var(--ice-muted); font-size: 0.88rem; }

/* ===== Managed IT page ===== */
.services-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.service-block {
  background: transparent;
  border: 1px solid rgba(230, 241, 242, 0.16);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  transition: border-color 0.3s ease;
}
.service-block:hover { border-color: var(--teal); }
.service-block h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.service-block h2 svg { width: 26px; height: 26px; stroke: var(--teal); stroke-width: 1.5; }
.service-block > p { color: var(--ice-muted); margin-bottom: 1.8rem; font-size: 0.98rem; }

.icon-list { list-style: none; }
.icon-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0;
  font-size: 0.96rem;
  border-bottom: 1px dashed var(--line);
}
.icon-list li:last-child { border-bottom: none; }
.icon-list svg { width: 16px; height: 16px; stroke: var(--teal); stroke-width: 2; flex-shrink: 0; }

.cta-section {
  text-align: left;
  padding: 6rem 0;
}
.cta-section h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 0.98;
  margin-bottom: 2rem;
  max-width: 700px;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  /* bigger brand on mobile too, without crowding the menu toggle */
  .nav-brand { gap: 0.6rem; }
  .nav-brand img { height: 72px; border-radius: 12px; padding: 6px; }
  .nav-brand span {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 14, 18, 0.98);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { padding: 0.9rem 5%; border-top: 1px dashed var(--line); }
  .nav-links .btn { display: block; text-align: center; }

  .contact-layout, .services-detail, .form-row { grid-template-columns: 1fr; }
  .trust-panel { position: static; }
  .checkbox-group { grid-template-columns: 1fr; }
  section { padding: 4rem 0; }
  .value { padding-right: 0; }
  .cta-banner .container { flex-direction: column; align-items: flex-start; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .hero h1 .char { animation: none; transform: none; }
  .scroll-prompt svg { animation: none; }
  .fade-in { transition: none; opacity: 1; transform: none; }
}
