/* ============================================================
   Synethos — Top Navigation v5
   Fixes: true centering + full-nav-width dropdown
   ============================================================ */

#synethos-nav *,
#synethos-nav *::before,
#synethos-nav *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Nav shell: this is the dropdown anchor ── */
#synethos-nav {
  display: flex !important;
  justify-content: center !important;
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#synethos-nav.is-scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

/* ── Inner bar: flex, logo left, cta right, links truly centered ── */
.syn-nav-inner {
  max-width: 1200px;
  display: flex;
  align-items: center;
  height: 70px;
  padding: 0 32px;
  width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
}


/* ── Logo: fixed width so center calc is symmetric ── */
.syn-logo {
  display: flex !important;
  align-items: center;
  text-decoration: none;
  flex: 1 1 0% !important;
}

.syn-logo img {
  height: 70px;
  width: auto;
  display: block;
}

/* ── Nav links: auto-sized, pushed to center by flex siblings ── */
.syn-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-shrink: 0;    /* don't compress */
}

/* ── Right CTA: flex:1 + text-align right mirrors the logo side ── */
.syn-nav-right {
  flex: 1 1 0% !important;
  display: flex !important;
  justify-content: flex-end;
}

#synethos-nav .syn-logo {
  flex-grow: 1 !important;
  flex-shrink: 1 !important;
  flex-basis: 0% !important;
}

#synethos-nav .syn-nav-right {
  flex-grow: 1 !important;
  flex-shrink: 1 !important;
  flex-basis: 0% !important;
}

.syn-btn-cta {
  padding: 11px 26px;
  border-radius: 8px;
  border: none;
  background: #2BAE96;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.14s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.syn-btn-cta:hover { background: #229e88; color: #fff; }

/* ── Nav item: NOT position:relative — dropdown anchors to #synethos-nav ── */
.syn-nav-item {
  position: static;
}

.syn-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: #5a5a5a;  /* Color of the Top menu bar text */
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.14s;
  white-space: nowrap;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.syn-nav-btn:hover,
.syn-nav-btn.is-active { color: #2BAE96; }

.syn-chevron {
  width: 11px;
  height: 11px;
  transition: transform 0.2s;
  color: #aaa;
  flex-shrink: 0;
}
.syn-nav-btn.is-active .syn-chevron {
  transform: rotate(180deg);
  color: #2BAE96;
}

/* ─────────────────────────────────────────────────────────────
   DROPDOWN
   Anchored to #synethos-nav (position:sticky).
   left:0 / right:0 = full width of the viewport,
   then the inner content is constrained to 1200px via max-width.
   ───────────────────────────────────────────────────────────── */

.syn-dropdown {
  position: absolute;   /* relative to #synethos-nav */
  top: 70px;            /* nav height */
  left: 0;
  right: 0;

  background: #ffffff;
  border-top: 2px solid #2BAE96;
  border-bottom: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 16px 48px rgba(0,0,0,0.09);

  /* hide/show */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
  z-index: 9998;
}

.syn-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Inner content constrained to same max-width as nav, with 30px padding */
.syn-dd-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 32px;
}

/* ── Two-column grid, always 5 rows ── */
.syn-dd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(5, 1fr);
  grid-auto-flow: column;
  gap: 0 48px;
  list-style: none;
  min-height: 260px;
}

.syn-dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.syn-dd-item:hover { background: #f8fffe; }

/* No border on the 5th item of each column */
.syn-dd-grid > li:nth-child(5) .syn-dd-item,
.syn-dd-grid > li:nth-child(10) .syn-dd-item,
.syn-dd-grid > li:last-child .syn-dd-item {
  border-bottom: none;
}

.syn-dd-empty {
  pointer-events: none;
  cursor: default;
}

.syn-dd-bullet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 2px solid #2BAE96;
  flex-shrink: 0;
  transition: background 0.12s;
}
.syn-dd-item:hover .syn-dd-bullet { background: #2BAE96; }

.syn-dd-title {
  font-size: 15px;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.35;
}

.syn-dd-title em {
  font-style: normal;
  font-weight: 700;
}


#synethos-nav .syn-dropdown {
  left: 50% !important;
  right: auto !important;
  width: 1200px !important;
  transform: translateX(-50%) !important;
}

#synethos-nav .syn-dropdown.is-open {
  transform: translateX(-50%) !important;
}

#synethos-nav .syn-dd-inner {
  max-width: 100%;
  padding: 30px 30px !important;
}

/* ── Nav button hover: color only, no background ── */
#synethos-nav .syn-nav-btn:hover,
#synethos-nav .syn-nav-btn.is-active {
  color: #2BAE96 !important;
  background: transparent !important;
}

/* ── Dropdown items: h3 style ── */
#synethos-nav .syn-dd-title {
  font-size: 20px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  color: #5E5E5E;
}

#synethos-nav .syn-dd-title em {
  font-style: normal !important;
  font-weight: 700 !important;
}

/* ── Bullet: ring + inner dot with white gap on hover ── */
#synethos-nav .syn-dd-bullet {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  border: 2px solid #2BAE96 !important;
  background: transparent !important;
  flex-shrink: 0 !important;
  transition: all 0.15s ease !important;
}

#synethos-nav .syn-dd-item:hover .syn-dd-bullet {
  width: 16px !important;
  height: 16px !important;
  border: 2px solid #2BAE96 !important;
  /* white gap between ring and inner dot via box-shadow */
  background: #2BAE96 !important;
  box-shadow: inset 0 0 0 3px #ffffff !important;
}

/* ── Remove background on dropdown item hover ── */
#synethos-nav .syn-dd-item:hover {
  background: transparent !important;
}

/* ── More spacing between nav items ── */
#synethos-nav .syn-nav-links {
  gap: 10px !important;
}

#synethos-nav .syn-nav-btn {
  padding: 8px 20px !important;
  font-size: 15px !important;
}

/* ── Bigger Book a demo button ── */
#synethos-nav .syn-btn-cta {
  padding: 10px 35px !important;
  font-size: 16px !important;
}


/* ── Mobile toggle ── */
.syn-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 7px;
  margin-left: auto;
}
.syn-mobile-toggle span {
  display: block;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.syn-mobile-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.syn-mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.syn-mobile-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile drawer ── */
.syn-mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0; right: 0; bottom: 0;
  background: #ffffff;
  overflow-y: auto;
  padding: 16px 20px 40px;
  z-index: 9997;
  border-top: 2px solid #2BAE96;
}
.syn-mobile-menu.is-open { display: block; }

.syn-mobile-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #2BAE96;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 16px 4px 8px;
  display: block;
}
.syn-mobile-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 8px;
  font-size: 15px;
  color: #222;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  text-decoration: none;
}
.syn-mobile-link::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  border: 2px solid #2BAE96;
  flex-shrink: 0;
}
.syn-mobile-cta {
  display: block;
  margin-top: 24px;
  padding: 14px;
  background: #2BAE96;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .syn-nav-links,
  .syn-nav-right { display: none; }
  .syn-mobile-toggle { display: flex; }
  .syn-logo { flex: unset; }
}
@media (max-width: 480px) {
  .syn-nav-inner { padding: 0 16px; }
}

/* ── Hide Book a demo on mobile ── */
@media (max-width: 960px) {
  #synethos-nav .syn-btn-cta {
    display: none !important;
  }
}

/* ── Logo: preserve aspect ratio on mobile ── */
@media (max-width: 960px) {
  #synethos-nav .syn-logo img {
    height: 32px !important;
    width: auto !important;
    object-fit: contain !important;
  }
}

/* ── Mobile nav inner padding ── */
@media (max-width: 960px) {
  #synethos-nav .syn-nav-inner {
    padding: 0 20px !important;
  }
}