/* ================================
   Global Typography Improvements
   Applied site-wide via nav.css
   ================================ */

html, body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-smooth: always; /* Safe non-standard property */
}




/* ============================================
   Top Navigation — Updated (Option A)
   ============================================ */

/* Lock vertical scrollbar width + prevent horizontal scroll */
html {
  overflow-x: hidden;
  overflow-y: scroll;   /* keeps layout width stable → no horizontal jiggle */
}

body {
  overflow-x: hidden;
}

/* We keep the class for semantics, but it no longer pushes content down.
   This avoids the 34px dark bar on mobile AND the cropped bottom of slides
   on smaller laptops. */
body.has-top-nav {
  padding-top: 0 !important;
}

/* Desktop top nav */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  font-weight: 400;
  z-index: 1200;
  height: 34px;          /* was 48px → ~30% thinner */
  line-height: 34px;     /* keep text vertically centered */
  background: rgba(20,20,20,0.90);
  backdrop-filter: blur(4px);
  box-sizing: border-box; /* prevents overflow from shadows/borders */
  display: none;          /* hidden on mobile */
}

.top-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.top-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}

.top-nav-links li {
  margin: 0;
  padding: 0;
}

.top-nav-links a {
  position: relative;
  display: inline-block;
  padding: 4px 10px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 1px 1px 0 #000000;  /* ink-style bottom-right edge */
  text-decoration: none !important; /* remove underline ALWAYS */
  border-radius: 2px;
  transition: background 0.2s ease,
              transform 0.15s ease,
              box-shadow 0.15s ease;
}

/* Hover state: subtle lift */
.top-nav-links a:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.7);
}

/* ============================================
   ACTIVE STATE (Option A)
   - Slight bold (300)
   - Soft background tint
   - No underline
   ============================================ */
.top-nav-links a.active {
  font-weight: 400;              /* soft bold */
  background: rgba(255,255,255,0.06);
  text-decoration: none !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.9);
}

/* Desktop only: actually show the top nav */
@media (min-width: 992px) {
  .top-nav {
    display: block;
  }
}

/* ================================
   Desktop Services Dropdown
   ================================ */

.top-nav .has-dropdown {
  position: relative;
}

/* Base dropdown styling */
.top-nav .has-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: rgba(10,10,10,0.96);
  border-radius: 4px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.7);
  z-index: 1300;

  /* override Bootstrap's display:none */
  display: none;
}

/* Show on hover */
.top-nav .has-dropdown:hover > .dropdown-menu {
  display: block;
}

/* Dropdown item links */
.top-nav .has-dropdown .dropdown-menu a {
  display: block;
  padding: 6px 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 1px 1px 0 #000;
  text-decoration: none;
  white-space: nowrap;
}

.top-nav .has-dropdown .dropdown-menu a:hover {
  background: rgba(255,255,255,0.08);
}
