/* ==========================================================================
   Base — element defaults on top of Bootstrap's Reboot.
   ========================================================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  padding-top: var(--navbar-height);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4 {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  text-wrap: balance; /* no single orphan word on the last line */
}

/* Michroma reads only at label length — long phrases stay in the body face */
.service-tagline {
  font-family: var(--font-body);
}

/* Small uppercase labels echo the logo's "ECOSOFT PVT LTD" line.
   Michroma has one weight, so never let the browser fake a bold. */
.section-label,
.eyebrow,
.footer-heading,
.contact-card-label,
.process-num,
.breadcrumb-gold,
.service-number,
.hero-tab-num,
.ticker-track span,
.service-detail-num {
  font-family: var(--font-accent);
  font-weight: 400 !important;
  font-synthesis: none;
  letter-spacing: 0.12em;
}

/* Keyboard focus: one clear, consistent gold ring on everything interactive
   (:focus-visible = keyboard only; mouse clicks don't show it) */
:focus-visible {
  outline: 2px solid var(--zt-gold);
  outline-offset: 3px;
}

.btn:focus-visible,
.nav-link:focus-visible,
.dropdown-item:focus-visible,
.navbar-toggler:focus-visible {
  outline: 2px solid var(--zt-gold-light);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(var(--zt-gold-rgb), 0.25);
}

/* "Skip to content" — first Tab stop, lets keyboard users jump past the navbar */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.75rem 1.25rem;
  border-radius: 0.65rem;
  font-weight: 600;
  color: var(--zt-black);
  background: var(--zt-gold);
  text-decoration: none;
}

/* The skip link moves focus to <main>; don't outline the whole page */
main:focus {
  outline: none;
}

/* Icon placeholder: the icon stylesheet loads without blocking render, so give every
   icon its final 1em box up front — nothing shifts when the glyphs arrive.
   :where() keeps specificity at zero so the real icon `content` always wins. */
:where(.bi)::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  line-height: 1;
  vertical-align: -0.125em;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: rgba(var(--brand-primary-rgb), 0.2);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
