/* ============================================================
   ECTO-BAT — Utilities
   ============================================================ */

/* ── SPACING ────────────────────────────────────────────── */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ── TEXT ALIGNMENT ─────────────────────────────────────── */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* ── VISIBILITY ─────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.hidden { display: none !important; }

@media (max-width: 768px) { .hide-mobile { display: none !important; } }
@media (min-width: 769px) { .hide-desktop { display: none !important; } }

/* ── REVEAL ANIMATIONS ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* ── NUMBER COUNTER ─────────────────────────────────────── */
.count-up {
  display: inline-block;
}

/* ── ORANGE ACCENT LINE ─────────────────────────────────── */
.accent-line {
  width: 48px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin-bottom: var(--space-md);
}

.accent-line--center {
  margin-inline: auto;
}

/* ── STICKY SIDEBAR ─────────────────────────────────────── */
.sticky-top {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

/* ── OVERFLOW SCROLL ────────────────────────────────────── */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── ASPECT RATIOS ──────────────────────────────────────── */
.ratio-16-9 {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

/* ── TECHNICAL DECORATION ───────────────────────────────── */
.tech-border {
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  position: relative;
}

.tech-border::before {
  content: '';
  position: absolute;
  top: -1px; left: 24px;
  width: 48px;
  height: 2px;
  background: var(--orange);
}

/* ── SEPARATOR WITH TEXT ────────────────────────────────── */
.sep-text {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--steel-lt);
  font-size: var(--t-xs);
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sep-text::before,
.sep-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ── PRINT ──────────────────────────────────────────────── */
@media print {
  .nav, .footer, .cta-banner, .btn { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* ── IMAGES ─────────────────────────────────────────────────── */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--r-lg);
}

.img-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--smoke);
}

.img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}

.img-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .18;
  mix-blend-mode: luminosity;
}

.img-stripe {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.img-card {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.img-section {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
}

.img-section-tall {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
  .img-section, .img-section-tall { height: 260px; }
  .img-stripe { height: 200px; }
}
