/* ---------------------------------------------------------------------------
   Northline Digital — site styles
   Palette: white / warm grey / navy. No gradients, no neon.
   --------------------------------------------------------------------------- */

:root {
  --navy: #12233d;
  --navy-dark: #0b1728;
  --navy-soft: #eef2f7;
  --ink: #1c2733;
  --muted: #5d6b7a;
  --line: #e2e6ec;
  --surface: #f6f7f9;
  --white: #ffffff;
  --radius: 0.875rem;
  --shadow-sm: 0 1px 2px rgba(18, 35, 61, 0.06), 0 4px 14px rgba(18, 35, 61, 0.05);
  --shadow-md: 0 10px 30px rgba(18, 35, 61, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a {
  color: var(--navy);
  text-decoration-color: rgba(18, 35, 61, 0.35);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy-dark);
}

:focus-visible {
  outline: 3px solid rgba(18, 35, 61, 0.45);
  outline-offset: 2px;
}

/* Accessibility ------------------------------------------------------------ */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1080;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: top 0.15s ease-in-out;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

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

.btn {
  border-radius: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.65rem 1.35rem;
}

.btn-primary {
  --bs-btn-bg: var(--navy);
  --bs-btn-border-color: var(--navy);
  --bs-btn-hover-bg: var(--navy-dark);
  --bs-btn-hover-border-color: var(--navy-dark);
  --bs-btn-active-bg: var(--navy-dark);
  --bs-btn-active-border-color: var(--navy-dark);
  --bs-btn-disabled-bg: #7d8b9c;
  --bs-btn-disabled-border-color: #7d8b9c;
  box-shadow: 0 1px 2px rgba(18, 35, 61, 0.18);
}

.btn-outline-secondary {
  --bs-btn-color: var(--navy);
  --bs-btn-border-color: #c9d1da;
  --bs-btn-hover-bg: var(--navy-soft);
  --bs-btn-hover-border-color: #c9d1da;
  --bs-btn-hover-color: var(--navy);
  --bs-btn-active-bg: var(--navy-soft);
  --bs-btn-active-border-color: #c9d1da;
  --bs-btn-active-color: var(--navy);
}

.btn-light {
  --bs-btn-bg: var(--white);
  --bs-btn-border-color: var(--white);
  --bs-btn-color: var(--navy);
  --bs-btn-hover-bg: #e9edf2;
  --bs-btn-hover-border-color: #e9edf2;
  --bs-btn-hover-color: var(--navy);
}

/* Header ------------------------------------------------------------------- */

.site-header .navbar {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  backdrop-filter: blur(6px);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.5rem;
  background: var(--navy);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
}

.brand-text {
  font-size: 1.05rem;
}

.site-header .nav-link {
  color: var(--muted);
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 0.4rem;
}

.site-header .nav-link:hover {
  color: var(--navy);
  background: var(--surface);
}

.site-header .nav-link.active {
  color: var(--navy);
  font-weight: 600;
}

.navbar-toggler {
  border-color: var(--line);
  padding: 0.35rem 0.6rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(18, 35, 61, 0.15);
}

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

.hero {
  padding: 6rem 0 5rem;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--navy);
}

.hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 34rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 3rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2.75rem;
  margin: 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.hero-facts dt {
  color: var(--navy);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-facts dd {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2rem;
}

.hero-panel-title {
  margin: 0 0 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-panel-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.hero-panel-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.hero-panel-list li:last-child {
  border-bottom: 0;
}

.hero-panel-list i {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 0.95rem;
}

.hero-panel-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Sections ----------------------------------------------------------------- */

.section {
  padding: 5.5rem 0;
}

.section-muted {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 40rem;
  margin-bottom: 3rem;
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Service cards ------------------------------------------------------------ */

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.9rem 1.6rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #cdd6e0;
  box-shadow: var(--shadow-md);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.35rem;
  border-radius: 0.65rem;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 1.35rem;
}

.service-title {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}

.service-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Why us ------------------------------------------------------------------- */

.value-item {
  padding-top: 1.25rem;
  border-top: 2px solid var(--navy);
}

.value-number {
  display: block;
  margin-bottom: 0.75rem;
  color: #97a4b3;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.value-title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.value-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* CTA ---------------------------------------------------------------------- */

.cta-band {
  padding: 3.75rem 0;
  background: var(--navy);
  color: var(--white);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}

.cta-title {
  margin: 0 0 0.35rem;
  color: var(--white);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.cta-text {
  color: #c3cdd9;
}

/* Contact ------------------------------------------------------------------ */

.contact-section {
  min-height: 60vh;
}

.contact-details {
  margin: 2.5rem 0 0;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.contact-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.55rem;
  background: var(--navy-soft);
  color: var(--navy);
}

.contact-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2.25rem;
}

.form-label {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.form-control {
  border-color: #cfd6df;
  border-radius: 0.5rem;
  padding: 0.7rem 0.9rem;
}

.form-control:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 0.25rem rgba(18, 35, 61, 0.12);
}

.form-control::placeholder {
  color: #9aa6b4;
}

.form-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.alert {
  border-radius: 0.6rem;
  font-size: 0.95rem;
}

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

.site-footer {
  padding: 2.75rem 0;
  background: var(--navy-dark);
  color: #b9c4d1;
}

.footer-brand {
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-copy {
  color: #93a1b2;
  font-size: 0.875rem;
}

.footer-links li {
  margin-left: 1.25rem;
}

.footer-links a {
  color: #b9c4d1;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Responsive --------------------------------------------------------------- */

@media (min-width: 768px) {
  .service-title {
    min-height: 2.7rem;
  }
}

@media (max-width: 991.98px) {
  .hero {
    padding: 4.5rem 0 3.5rem;
  }

  .hero-actions {
    margin-bottom: 2.25rem;
  }

  .site-header .navbar-collapse {
    padding-top: 1rem;
  }

  .site-header .nav-link {
    padding: 0.6rem 0;
  }
}

@media (max-width: 575.98px) {
  .section {
    padding: 4rem 0;
  }

  .hero-facts {
    gap: 1.75rem;
  }

  .form-card {
    padding: 1.5rem;
  }

  .footer-links li {
    margin-left: 0;
    margin-right: 1.25rem;
  }

  .footer-links {
    text-align: left !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .service-card,
  .skip-link {
    transition: none;
  }
}
