/* ============================================================
   ZipLink Systems — Brand Stylesheet
   Primary Red:  #b32035  (softened ZipLink red — same hue, less saturated)
   Dark Red:     #8f1929  (hover / depth)
   Light Red:    #c9384f  (accents / focus rings)
   Near-black:   #111827  (text & dark surfaces)
   Light gray:   #f3f4f6  (section backgrounds)
   ============================================================ */

:root {
  --zl-primary: #b32035;
  --zl-primary-dark: #8f1929;
  --zl-primary-light: #c9384f;
  --zl-dark: #111827;
  --zl-gray: #6b7280;
  --zl-light: #f3f4f6;
}

/* ── Bootstrap primary overrides ───────────────────────────── */

.bg-primary {
  background-color: var(--zl-primary) !important;
}

.text-primary {
  color: var(--zl-primary) !important;
}

.btn-primary {
  background-color: var(--zl-primary);
  border-color: var(--zl-primary);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--zl-primary-dark);
  border-color: var(--zl-primary-dark);
}

.btn-outline-primary {
  color: var(--zl-primary);
  border-color: var(--zl-primary);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--zl-primary);
  border-color: var(--zl-primary);
  color: #fff;
}

/* ── Typography ─────────────────────────────────────────────── */

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--zl-dark);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--zl-dark);
}

/* ── Logo handling ──────────────────────────────────────────── */

/* Navbar logo — 200×530 horizontal format, fits cleanly in the navbar. */

.navbar-logo {
  height: 60px;
  width: auto;
  display: block;
}

/* Footer / dark-background variant.
   brightness(0)  → turns everything solid black
   invert(1)      → flips black to white
   Result: clean all-white logo silhouette — legible on any dark surface. */

.logo-dark-bg {
  height: 48px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.90;
  margin: -4px 0;
}

/* ── Navigation ─────────────────────────────────────────────── */

.navbar {
  transition: box-shadow 0.3s ease;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  color: var(--zl-dark);
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--zl-primary);
}

/* ── Top bar ────────────────────────────────────────────────── */

.top-bar {
  font-size: 0.875rem;
}

.top-bar a:hover {
  text-decoration: underline !important;
}

/* ── Hero ───────────────────────────────────────────────────── */

.hero-section {
  background: linear-gradient(140deg, #1c1c1c 0%, #2e1119 50%, var(--zl-primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle dot-grid texture */

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Red accent stripe at bottom of hero */

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--zl-primary);
}

.min-vh-50 {
  min-height: 50vh;
}

.hero-image-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── Cards ──────────────────────────────────────────────────── */

.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

.feature-icon {
  transition: transform 0.2s ease;
}

.card:hover .feature-icon {
  transform: scale(1.1);
}

/* ── Image placeholders ─────────────────────────────────────── */

.image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--zl-light);
}

/* ── Buttons ────────────────────────────────────────────────── */

.btn {
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-light {
  background-color: #ffffff;
  color: var(--zl-primary);
}

.btn-light:hover {
  background-color: var(--zl-light);
  color: var(--zl-primary-dark);
}

/* ── Footer ─────────────────────────────────────────────────── */

footer a:hover {
  color: #ffffff !important;
}

/* ── Mobile sticky call bar ─────────────────────────────────── */

@media (max-width: 767.98px) {
  body {
    padding-bottom: 80px;
  }
}

@media (max-width: 767.98px) {
  footer {
    padding-bottom: 100px !important;
  }
}

/* ── Responsive typography ──────────────────────────────────── */

@media (max-width: 991.98px) {
  .hero-section {
    text-align: center;
  }
}

@media (max-width: 991.98px) {
  .hero-section .d-flex {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .display-4 {
    font-size: 2rem;
  }
}

@media (max-width: 575.98px) {
  .lead {
    font-size: 1rem;
  }
}

/* ── Accessibility: focus rings ─────────────────────────────── */

a:focus, button:focus, .btn:focus {
  outline: 2px solid var(--zl-primary-light);
  outline-offset: 2px;
}

/* ── Misc ───────────────────────────────────────────────────── */

html {
  scroll-behavior: smooth;
}

.badge {
  font-weight: 500;
  padding: 0.5em 1em;
}

.blockquote p {
  line-height: 1.8;
}

/* ── Pricing Cards ──────────────────────────────────────────── */

.pricing-card {
  border-radius: 1rem;
}

.pricing-card--featured {
  border: 2px solid var(--zl-primary) !important;
  border-radius: 1rem;
  position: relative;
}

.pricing-speed {
  color: var(--zl-dark);
  line-height: 1;
}

.pricing-price {
  line-height: 1;
}

/* ── Page Hero (inner pages) ────────────────────────────────── */

.page-hero {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* ── Legal / Policy pages ───────────────────────────────────── */

.col-lg-9 h6.fw-bold {
  color: var(--zl-dark);
  margin-top: 1.5rem;
}

