/* Shared styles used across every Avansim page.
   Generated by extracting the CSS rules that were byte-identical
   (aside from whitespace) across the site's pages.
   Edit here once instead of in every page's <style> block. */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body { font-family: 'Montserrat', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }

.top-bar { background: var(--bg-soft); padding: 12px 48px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-light); }

.top-bar img { height: 46px; width: auto; }

.top-bar-logo-link { display: flex; align-items: center; line-height: 0; }

.top-bar-contact { display: flex; align-items: center; gap: 16px; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; color: var(--text-muted); text-transform: uppercase; }

.top-bar-contact strong { color: var(--orange); font-weight: 700; margin-right: 4px; }

nav { background: var(--dark); display: flex; justify-content: space-between; align-items: stretch; border-bottom: 3px solid var(--purple); position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 24px rgba(30,22,72,0.35); }

.nav-links { display: flex; align-items: stretch; }

.nav-links a {
      color: var(--on-dark-muted);
      text-decoration: none; font-size: 11px; font-weight: 700;
      letter-spacing: 2px; text-transform: uppercase;
      padding: 17px 26px; display: flex; align-items: center;
      border-right: 1px solid var(--border-dark);
      transition: color 0.2s, background 0.2s;
      position: relative;
    }

.nav-links a:first-child { border-left: 1px solid var(--border-dark); }

.nav-links a::after {
      content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
      height: 3px; background: var(--orange);
      transition: left 0.25s, right 0.25s;
    }

.nav-links a:hover::after, .nav-links a.active::after { left: 0; right: 0; }

.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.07); }

.nav-dropdown { position: relative; display: flex; align-items: stretch; }

.nav-drop-btn { background: none; border: none; cursor: pointer; color: var(--on-dark-muted); font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 17px 26px; display: flex; align-items: center; gap: 7px; border-right: 1px solid var(--border-dark); transition: color 0.2s, background 0.2s; position: relative; }

.nav-drop-btn::after { content: ''; position: absolute; bottom: 0; left: 50%; right: 50%; height: 3px; background: var(--orange); transition: left 0.25s, right 0.25s; }

.nav-dropdown.open .nav-drop-btn::after { left: 0; right: 0; }

.nav-drop-btn:hover { color: #fff; background: rgba(255,255,255,0.07); }

.nav-dropdown.open .nav-drop-btn { color: #fff; background: rgba(255,255,255,0.07); }

.drop-arrow { font-size: 10px; transition: transform 0.2s; display: inline-block; }

.nav-dropdown.open .drop-arrow { transform: rotate(180deg); }

.nav-drop-menu a { display: block; color: var(--on-dark-muted); text-decoration: none; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 13px 20px; border-bottom: 1px solid var(--border-dark); transition: background 0.15s, color 0.15s; white-space: nowrap; }

.nav-drop-menu a:hover { background: rgba(107,63,160,0.25); color: #fff; }

.nav-dropdown.open .nav-drop-menu { display: block; }

.nav-cta:hover { background: #e06a00; }

.nav-cta.top-bar-cta { padding: 9px 20px; font-size: 10px; }

/* ── Nav flag / Weglot language switcher (added by nav.js) ── */
.nav-flag-btn { background: none; border: none; padding: 3px; margin: 0; line-height: 0; cursor: pointer; display: flex; align-items: center; border-radius: 3px; opacity: 0.85; transition: opacity 0.2s, box-shadow 0.2s; }

.nav-flag-btn:hover { opacity: 1; }

.nav-flag-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--orange); }

.nav-flag-btn.active { opacity: 1; box-shadow: 0 0 0 2px var(--orange); }

.nav-flag-fallback { display: inline-block; min-width: 26px; padding: 2px 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; color: #fff; background: var(--purple); border-radius: 3px; text-align: center; }

.accent-strip { height: 4px; background: linear-gradient(90deg, var(--dark) 0%, var(--purple) 30%, var(--orange) 55%, var(--purple) 75%, var(--dark) 100%); }

.page-hero { background: var(--dark); padding: 56px 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; }

.page-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--purple), transparent); }

.page-hero .eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }

.page-hero h1 { font-size: 40px; font-weight: 800; color: #fff; letter-spacing: 3px; text-transform: uppercase; }

.page-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--lavender), #fff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.page-hero p.sub { color: var(--on-dark-muted); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; margin-top: 10px; }

.section-label::before { content: ''; width: 28px; height: 3px; background: var(--orange); flex-shrink: 0; }

.section-label h2 { font-size: 11px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--orange); }

.btn-outline { background: transparent; color: var(--purple); text-decoration: none; display: inline-block; padding: 11px 30px; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; border: 2px solid var(--purple); transition: all 0.2s; clip-path: polygon(8px 0%,100% 0%,calc(100% - 8px) 100%,0% 100%); }

.btn-outline:hover { background: var(--purple); color: #fff; }

.btn-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--purple); text-decoration: none; padding: 12px 28px; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; border: 2px solid var(--purple); transition: all 0.2s; clip-path: polygon(8px 0%,100% 0%,calc(100% - 8px) 100%,0% 100%); }

.btn-back:hover { background: var(--purple); color: #fff; }

/* Per-product "Request a Demo" CTA row on simulator/software pages (sits next to
   the existing back-link). Reuses .nav-cta's solid-orange look so it reads as the
   primary action; .btn-back stays outline/secondary. */
.sim-cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.sim-cta-row .btn-back { margin-top: 0; }

.footer { position: relative; min-height: 260px; overflow: hidden; background: var(--dark); border-top: 3px solid var(--purple); }

.footer-bg { position: absolute; inset: 0; }

.footer-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.12; }

.footer-content p { color: var(--on-dark-muted); font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; line-height: 2.4; }

.footer-content p.region { font-size: 10px; color: var(--lavender); margin-bottom: 10px; letter-spacing: 4px; }

.footer-linkedin { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--on-dark-muted); text-decoration: none; font-size: 11px; letter-spacing: 1.5px; border: 1px solid var(--border-dark); padding: 9px 20px; transition: all 0.2s; }

.footer-linkedin:hover { color: #fff; border-color: var(--lavender); background: rgba(107,63,160,0.2); }

.footer-nav-links { display: flex; justify-content: center; padding: 14px 0; background: rgba(15,10,40,0.6); border-top: 1px solid var(--border-dark); flex-wrap: wrap; }

.footer-nav-links a { color: var(--on-dark-soft); text-decoration: none; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; padding: 0 20px; border-right: 1px solid var(--border-dark); transition: color 0.2s; }

.footer-nav-links a:last-child { border-right: none; }

.footer-nav-links a:hover { color: #fff; }

.footer-bottom { background: rgba(10,7,30,0.8); padding: 14px 48px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--border-dark); }

.footer-bottom p, .footer-bottom a { color: var(--on-dark-soft); font-size: 10px; text-decoration: none; letter-spacing: 1px; }

.footer-bottom a:hover { color: #fff; }

/* ── PHOTO CAROUSEL (filmstrip: all slides visible, active slide enlarged; used on Simulator and Companion Product pages) ── */
.sim-carousel { position: relative; background: var(--dark); overflow: hidden; padding: 0 56px; }

.sim-carousel-viewport { overflow: hidden; display: flex; align-items: center; }

/* min-height reserves space for the active slide (380px) so the row can't shrink
   below that during the height transition below -- without this, the active slide
   growing while the outgoing one shrinks makes the row's height genuinely dip for
   a moment (both cross momentarily through a shorter height on the way), which
   shoves all the page content below the carousel up and back down as it happens. */
.sim-carousel-track { display: flex; align-items: center; gap: 0; padding: 20px 0; min-height: 380px; box-sizing: content-box; transition: transform 0.4s ease; will-change: transform; }

/* Placeholder slides (no real photo yet) have no intrinsic size, so give them one. */
.sim-carousel-track .gallery-item {
  flex: 0 0 auto;
  width: 260px;
  height: 190px;
  background: var(--dark-mid);
  cursor: pointer;
  opacity: 0.55;
  filter: brightness(0.7);
  transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
}

.sim-carousel-track .gallery-item.active {
  width: 520px;
  height: 380px;
  opacity: 1;
  filter: brightness(1);
  cursor: default;
}

/* Real photos: size by height only and let width follow the image's own aspect ratio,
   so the full picture shows edge-to-edge with no letterbox bars. */
.sim-carousel-track img {
  flex: 0 0 auto;
  display: block;
  height: 190px;
  width: auto;
  cursor: pointer;
  opacity: 0.55;
  filter: brightness(0.7);
  transition: height 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
}

.sim-carousel-track img.active {
  height: 380px;
  opacity: 1;
  filter: brightness(1);
  cursor: default;
}

.sim-carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); background: rgba(30,22,72,0.55); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s, border-color 0.2s; z-index: 5; }

.sim-carousel-arrow:hover { background: var(--purple); border-color: var(--purple); }

.sim-carousel-arrow-prev { left: 20px; }

.sim-carousel-arrow-next { right: 20px; }

.sim-carousel-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }

.sim-carousel-dot { width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; background: rgba(255,255,255,0.35); cursor: pointer; transition: background 0.2s, transform 0.2s; }

.sim-carousel-dot.active { background: var(--orange); transform: scale(1.25); }

/* ── MOBILE NAV (hamburger) ──
   .nav-toggle is injected by nav.js on every page (not hand-written into each
   page's markup) so this works site-wide without editing every HTML file. */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 44px; height: 44px; align-items: center; justify-content: center; flex-shrink: 0; }

.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ''; display: block; width: 22px; height: 2px; background: #fff; position: relative; transition: transform 0.25s ease, opacity 0.25s ease, background 0.2s; }

.nav-toggle span::before { position: absolute; top: -7px; }

.nav-toggle span::after { position: absolute; top: 7px; }

nav.mobile-open .nav-toggle span { background: transparent; }

nav.mobile-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }

nav.mobile-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .top-bar-contact strong { display: none; }

  nav { flex-wrap: wrap; justify-content: flex-end; padding: 6px 20px; position: relative; }

  .nav-toggle { display: flex; }

  .nav-links, nav .nav-right { display: none; width: 100%; order: 3; }

  nav .nav-right { order: 4; }

  nav.mobile-open .nav-links, nav.mobile-open .nav-right { display: flex; }

  .nav-links { flex-direction: column; align-items: stretch; }

  .nav-links a, nav .nav-drop-btn { width: 100%; padding: 16px 20px; border-right: none; border-left: none !important; border-bottom: 1px solid var(--border-dark); }

  .nav-dropdown { flex-direction: column; align-items: stretch; }

  nav .nav-drop-menu { position: static; box-shadow: none; border-top: none; min-width: 0; width: 100%; }

  nav .nav-flags { justify-content: center; width: 100%; padding: 14px 20px; }
}
