/* common.css - shared by every page: one scroll animation and the mobile menu */

/* ---------------------------------------------------------------
   Scroll animation: one pattern for the whole site.
   Every animated element fades in and slides up 30px.
   Use style="--delay: 0.2s" on an element to stagger it.
   --------------------------------------------------------------- */
.fade-in-up,
.fade-in-zoom,
.zoom-in,
.zoom-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}

.fade-in-up.show,
.fade-in-zoom.show,
.zoom-in.show,
.zoom-on-scroll.show {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-up, .fade-in-zoom, .zoom-in, .zoom-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------------------------------------------------------
   Mobile menu button (three lines)
   --------------------------------------------------------------- */
.menu-icon {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  min-width: 40px;
  flex-shrink: 0;
  height: 40px;
  padding: 9px 8px;
  background: none;
  border: 0;
  cursor: pointer;
}

@media (max-width: 991px) {
  .menu-icon {
    display: flex;
  }
}

.menu-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: #000;
  border-radius: 2px;
}

/* ---------------------------------------------------------------
   Mobile menu panel
   --------------------------------------------------------------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 26, 54, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10001;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: min(86vw, 340px);
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  color: #001a36;
  padding: 22px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
  z-index: 10002;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 10px 0 30px rgba(0, 26, 54, 0.25);
}

.sidebar.active {
  transform: translateX(0);
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

/* Head: logo + close */
.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 26, 54, 0.1);
}

.sidebar-logo {
  width: 120px;
  height: auto;
  display: block;
}

.sidebar-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(0, 26, 54, 0.2);
  background: transparent;
  color: #001a36;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-close:hover {
  background: rgba(0, 26, 54, 0.06);
  transform: rotate(90deg);
}

/* Links */
.sidebar-nav {
  display: flex;
  flex-direction: column;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 4px;
  color: #1c1c1c;
  text-decoration: none;
  font-size: 18px;
  border-bottom: 1px solid rgba(0, 26, 54, 0.08);
  transition: color 0.2s ease, padding-left 0.25s ease;
}

.sidebar-num {
  font-size: 11px;
  color: #001a36;
  opacity: 0.55;
  letter-spacing: 1px;
  min-width: 18px;
}

.sidebar-label {
  flex: 1;
}

.sidebar-arrow {
  opacity: 0.35;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: #001a36;
  font-weight: 700;
  padding-left: 10px;
}

.sidebar-nav a.active .sidebar-num {
  opacity: 1;
}

.sidebar-nav a:hover .sidebar-arrow,
.sidebar-nav a.active .sidebar-arrow {
  opacity: 1;
  transform: none;
}

/* Links slide in one after another when the menu opens */
.sidebar .sidebar-nav a {
  opacity: 0;
  transform: translateX(-12px);
}

.sidebar.active .sidebar-nav a {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.2s ease, padding-left 0.25s ease;
}

.sidebar.active .sidebar-nav a:nth-child(1) { transition-delay: 0.08s, 0.08s, 0s, 0s; }
.sidebar.active .sidebar-nav a:nth-child(2) { transition-delay: 0.13s, 0.13s, 0s, 0s; }
.sidebar.active .sidebar-nav a:nth-child(3) { transition-delay: 0.18s, 0.18s, 0s, 0s; }
.sidebar.active .sidebar-nav a:nth-child(4) { transition-delay: 0.23s, 0.23s, 0s, 0s; }
.sidebar.active .sidebar-nav a:nth-child(5) { transition-delay: 0.28s, 0.28s, 0s, 0s; }

/* Call to action */
.sidebar-cta {
  display: block;
  text-align: center;
  background: #001a36;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 20px;
  border-radius: 40px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-cta:hover {
  background: #0b3a6e;
  transform: translateY(-1px);
}

/* Contact rows */
.sidebar-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #3a3a3a;
  text-decoration: none;
  font-size: 14px;
}

.sidebar-info-row svg {
  flex-shrink: 0;
  color: #001a36;
}

a.sidebar-info-row:hover {
  color: #001a36;
}

/* Map */
.sidebar-map {
  position: relative;
  display: block;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 26, 54, 0.12);
  background: #eef1f5;
  flex-shrink: 0;
}

.sidebar-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none; /* tapping opens Google Maps instead */
  filter: grayscale(0.2);
}

.sidebar-map-label {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 26, 54, 0.88);
  color: #fff;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 8px;
}

.sidebar-map-label svg {
  color: #fff;
}

/* Social icons */
.sidebar-bottom-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 26, 54, 0.1);
}

.sidebar-bottom-socials a img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  padding: 1px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

.sidebar-bottom-socials a:hover img {
  transform: scale(1.1);
}

/* ---------------------------------------------------------------
   Co-branded header logo (Noble x ShreddMate), shredder pages only
   --------------------------------------------------------------- */
.logo-cobrand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.logo-cobrand img {
  display: block;
}

.logo-cobrand > a:first-child img {
  width: 150px;
  max-height: 90px;
}

.cobrand-x {
  color: #001a36;
  display: flex;
  opacity: 0.7;
}

.logo-cobrand .cobrand-partner img {
  width: 190px;
  height: auto;
  max-height: none;
}

@media (max-width: 1200px) {
  .logo-cobrand > a:first-child img { width: 120px; }
  .logo-cobrand .cobrand-partner img { width: 150px; }
}

@media (max-width: 480px) {
  .logo-cobrand { gap: 8px; }
  .logo-cobrand > a:first-child img { width: 92px; }
  .logo-cobrand .cobrand-partner img { width: 118px; }
  .cobrand-x svg { width: 13px; height: 13px; }
}

/* ---------------------------------------------------------------
   Header fit on laptop screens (5 menu items + optional co-brand logo)
   --------------------------------------------------------------- */
.desktop-nav a {
  white-space: nowrap;
}

@media (max-width: 1440px) {
  .noble-header { gap: 40px; padding: 15px 30px; }
}

@media (max-width: 1280px) {
  /* social icons stay in the footer and the mobile menu */
  .noble-header .social-icons { display: none; }
}

@media (max-width: 1100px) and (min-width: 992px) {
  .desktop-nav { gap: 4px; }
  .desktop-nav .dot { margin: 0 2px; }
  .desktop-nav a { font-size: 15px; }
}

/* Page canvas is always white */
html { background: #fff; }

/* ---------------------------------------------------------------
   Desktop dropdown menus (Services, Products)
   --------------------------------------------------------------- */
.nav-item { position: relative; display: inline-flex; }
.desktop-nav .nav-item > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-chevron { transition: transform 0.25s ease; }
.has-dropdown:hover .nav-chevron, .has-dropdown:focus-within .nav-chevron { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 240px;
  padding: 10px;
  margin-top: 12px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1000;
}
/* invisible bridge so the menu stays open while the mouse moves down to it */
.nav-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.desktop-nav .nav-dropdown a {
  display: block;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  color: #333;
  font-size: 14px;
  white-space: nowrap;
  transform: none;
}
.desktop-nav .nav-dropdown a:hover {
  background: #f4f4f2;
  color: #000;
  border: 0;
  transform: none;
}
.desktop-nav .nav-dropdown a.nav-dropdown-all {
  font-weight: 700;
  color: #000;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 8px 8px 0 0;
  margin-bottom: 4px;
}

/* Mobile menu: sub-links under Services / Products */
.sidebar-sub {
  display: flex;
  flex-direction: column;
  padding: 2px 0 10px 36px;
  border-bottom: 1px solid rgba(0, 26, 54, 0.08);
}
.sidebar-nav .sidebar-sub a {
  padding: 7px 0;
  font-size: 14px;
  color: #555;
  border: 0;
  opacity: 1;
  transform: none;
}
.sidebar-nav .sidebar-sub a:hover { color: #001a36; padding-left: 4px; }
