/* Google Antigravity Clean Navigation System */

/* Header Base */
.qotg-header {
  background: var(--wp--preset--color--canvas, #ffffff) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.3s ease;
}
.qotg-header.is-hidden {
  transform: translateY(-100%);
}
@media (prefers-reduced-motion: reduce) {
  .qotg-header { transition: none; }
}
.qotg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1320px, calc(100% - 48px));
  margin-inline: auto;
  padding: 10px 0;
}
.qotg-navigation .qotg-drawer-logo { display: none; }
.qotg-navigation .wp-block-navigation-item:has(> .qotg-drawer-logo) { display: none; }

/* Remove "See how it works" button everywhere */
.qotg-header .qotg-nav-secondary,
.qotg-navigation .qotg-nav-secondary,
.wp-block-navigation-item.qotg-nav-secondary {
  display: none !important;
}

/* Desktop Navigation (>= 1025px) */
@media(min-width: 1025px) {
  .qotg-header .qotg-navigation,
  .qotg-header .wp-block-navigation__responsive-container,
  .qotg-header .wp-block-navigation__responsive-close,
  .qotg-header .wp-block-navigation__responsive-dialog,
  .qotg-header .wp-block-navigation__responsive-container-content {
    position: static !important;
  }
  .qotg-header .qotg-navigation .wp-block-navigation__container {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .qotg-header .qotg-navigation .qotg-mega {
    position: static !important;
  }

  /* Direct top-level nav links and buttons: Google pill shape */
  .qotg-header .wp-block-navigation__container > .wp-block-navigation-item:not(.qotg-signin):not(.qotg-nav-primary):not(.qotg-nav-secondary) > .wp-block-navigation-item__content {
    padding: 8px 18px !important;
    min-height: 38px !important;
    border-radius: 9999px !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    color: var(--wp--preset--color--ink, #1f1f1f) !important;
    background: transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    line-height: 1 !important;
  }
  .qotg-header .wp-block-navigation__container > .wp-block-navigation-item:not(.qotg-signin):not(.qotg-nav-primary):not(.qotg-nav-secondary) > .wp-block-navigation-item__content:hover {
    background: #f1f3f4 !important;
    color: var(--wp--preset--color--ink, #1f1f1f) !important;
    text-decoration: none !important;
  }

  /* Top menu button with dropdown: unify label + chevron inside pill */
  .qotg-header .wp-block-navigation__container > .wp-block-navigation-item.has-child > .wp-block-navigation-submenu__toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 16px !important;
    background: transparent !important;
    color: var(--wp--preset--color--ink, #1f1f1f) !important;
  }
  .qotg-header .wp-block-navigation__container > .wp-block-navigation-item.has-child > .wp-block-navigation-submenu__toggle:hover,
  .qotg-header .wp-block-navigation__container > .wp-block-navigation-item.has-child:hover > .wp-block-navigation-submenu__toggle {
    background: #f1f3f4 !important;
  }
  .qotg-header .wp-block-navigation__container > .wp-block-navigation-item.has-child > .wp-block-navigation-submenu__toggle[aria-expanded="true"] {
    background: #f1f3f4 !important;
    color: var(--wp--preset--color--ink, #1f1f1f) !important;
    box-shadow: none !important;
  }

  /* Chevron inside/alongside toggle button */
  .qotg-navigation .wp-block-navigation__submenu-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 2px !important;
    pointer-events: none !important;
    color: inherit !important;
  }
  .qotg-navigation .wp-block-navigation__submenu-icon svg {
    width: 10px !important;
    height: 10px !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    transition: transform 0.2s ease !important;
  }
  .qotg-navigation .wp-block-navigation-submenu__toggle[aria-expanded="true"] .wp-block-navigation__submenu-icon svg,
  .qotg-navigation .wp-block-navigation-submenu__toggle[aria-expanded="true"] + .wp-block-navigation__submenu-icon svg {
    transform: rotate(180deg) !important;
  }

  /* CSS fallback if chevron is adjacent sibling before JS moves it inside */
  .qotg-header .wp-block-navigation__container > .wp-block-navigation-item.has-child:not(:has(> .wp-block-navigation-submenu__toggle > .wp-block-navigation__submenu-icon)) {
    display: inline-flex !important;
    align-items: center !important;
  }
  .qotg-header .wp-block-navigation__container > .wp-block-navigation-item.has-child:not(:has(> .wp-block-navigation-submenu__toggle > .wp-block-navigation__submenu-icon)) > .wp-block-navigation-submenu__toggle {
    padding-right: 28px !important;
  }
  .qotg-header .wp-block-navigation__container > .wp-block-navigation-item.has-child:not(:has(> .wp-block-navigation-submenu__toggle > .wp-block-navigation__submenu-icon)) > .wp-block-navigation__submenu-icon {
    margin-left: -22px !important;
    margin-right: 12px !important;
    position: relative !important;
    z-index: 1 !important;
  }

  /* Header Right CTAs */
  .qotg-navigation .qotg-signin,
  .qotg-navigation .wp-block-navigation-item.qotg-signin {
    display: inline-flex !important;
    align-items: center !important;
    margin-left: 14px !important;
  }
  .qotg-header .wp-block-navigation__container > .wp-block-navigation-item.qotg-signin > a.wp-block-navigation-item__content,
  .qotg-navigation .qotg-signin > a.wp-block-navigation-item__content,
  .qotg-navigation .wp-block-navigation-item.qotg-signin a {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    line-height: 38px !important;
    padding: 0 18px !important;
    border-radius: 9999px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--wp--preset--color--ink, #121212) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
  }
  .qotg-header .wp-block-navigation__container > .wp-block-navigation-item.qotg-signin > a.wp-block-navigation-item__content:hover,
  .qotg-navigation .qotg-signin > a.wp-block-navigation-item__content:hover,
  .qotg-navigation .wp-block-navigation-item.qotg-signin a:hover {
    background: #f1f3f4 !important;
    color: var(--wp--preset--color--ink, #121212) !important;
    text-decoration: none !important;
  }

  /* Start Free Coloured Button */
  .qotg-navigation .qotg-nav-primary,
  .qotg-navigation .wp-block-navigation-item.qotg-nav-primary {
    display: inline-flex !important;
    align-items: center !important;
    margin-left: 8px !important;
  }
  .qotg-header .wp-block-navigation__container > .wp-block-navigation-item.qotg-nav-primary > a.wp-block-navigation-item__content,
  .qotg-navigation .qotg-nav-primary > a.wp-block-navigation-item__content,
  .qotg-navigation .wp-block-navigation-item.qotg-nav-primary a {
    background: var(--wp--preset--color--orange, #F37A22) !important;
    color: var(--wp--preset--color--ink, #121212) !important;
    border: 1px solid var(--wp--preset--color--orange, #F37A22) !important;
    border-radius: 9999px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    line-height: 38px !important;
    padding: 0 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 10px rgba(243, 122, 34, 0.25) !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease !important;
  }
  .qotg-header .wp-block-navigation__container > .wp-block-navigation-item.qotg-nav-primary > a.wp-block-navigation-item__content:hover,
  .qotg-navigation .qotg-nav-primary > a.wp-block-navigation-item__content:hover,
  .qotg-navigation .wp-block-navigation-item.qotg-nav-primary a:hover {
    background: var(--wp--preset--color--ember, #E5531A) !important;
    border-color: var(--wp--preset--color--ember, #E5531A) !important;
    color: var(--wp--preset--color--ink, #121212) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(243, 122, 34, 0.35) !important;
    text-decoration: none !important;
  }
  .qotg-header .wp-block-navigation__container > .wp-block-navigation-item.qotg-nav-primary > a.wp-block-navigation-item__content:active,
  .qotg-navigation .qotg-nav-primary > a.wp-block-navigation-item__content:active,
  .qotg-navigation .wp-block-navigation-item.qotg-nav-primary a:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(243, 122, 34, 0.2) !important;
  }

  /* Mega Dropdown Panel: Clean Antigravity Surface */
  .qotg-header .qotg-navigation .qotg-mega > .wp-block-navigation__submenu-container {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    width: 100vw !important;
    max-width: 100% !important;
    background: #ffffff !important;
    border: none !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 0 !important;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.12) !important;
    padding: 44px max(44px, calc((100vw - 1200px) / 2)) !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 340px 1fr 1fr !important;
    gap: 16px 28px !important;
    align-items: start !important;
    max-height: calc(100dvh - 80px) !important;
    overflow-y: auto !important;
  }

  /* Left Promo Column */
  .qotg-navigation .qotg-menu-overview {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    background: transparent !important;
    color: var(--wp--preset--color--ink, #1f1f1f) !important;
    align-self: stretch !important;
    border-right: 1px solid #f1f3f4 !important;
    padding-right: 36px !important;
    margin-right: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }
  .qotg-navigation .qotg-mega-product .qotg-menu-overview::before {
    content: "Explore our complete quote-to-payment workflow";
    display: block;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--wp--preset--color--ink, #1f1f1f);
    margin-bottom: 24px;
    text-align: left !important;
  }
  .qotg-navigation .qotg-mega-solutions .qotg-menu-overview::before {
    content: "Built around the way your service team works";
    display: block;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--wp--preset--color--ink, #1f1f1f);
    margin-bottom: 24px;
    text-align: left !important;
  }
  .qotg-header .qotg-navigation .qotg-menu-overview a.wp-block-navigation-item__content,
  .qotg-navigation .qotg-menu-overview a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: flex-start !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    background: #f1f3f4 !important;
    color: var(--wp--preset--color--ink, #1f1f1f) !important;
    border-radius: 9999px !important;
    padding: 0 16px !important;
    height: 34px !important;
    min-height: 0 !important;
    max-height: 34px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 34px !important;
    width: fit-content !important;
    border: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    transition: background-color 0.15s ease, transform 0.15s ease !important;
    text-decoration: none !important;
  }
  .qotg-header .qotg-navigation .qotg-menu-overview a.wp-block-navigation-item__content:hover,
  .qotg-navigation .qotg-menu-overview a:hover {
    background: #e8eaed !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
  }
  .qotg-header .qotg-navigation .qotg-menu-overview a .wp-block-navigation-item__label,
  .qotg-navigation .qotg-menu-overview .wp-block-navigation-item__label {
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: inherit !important;
    background: transparent !important;
    display: inline-block !important;
  }
  .qotg-navigation .qotg-menu-overview a::after { content: none !important; }

  /* Product Left Column Secondary Links (Eliminates text overlap) */
  .qotg-navigation .qotg-mega-product .qotg-menu-rail:nth-child(8) {
    grid-column: 1 !important;
    grid-row: 3 !important;
    border-right: 1px solid #f1f3f4 !important;
    padding-right: 36px !important;
    margin-right: 8px !important;
    border-top: 1px solid #f1f3f4 !important;
    padding-top: 16px !important;
    align-self: end !important;
  }
  .qotg-navigation .qotg-mega-product .qotg-menu-rail:nth-child(8) a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #5f6368 !important;
    text-decoration: none !important;
    background: transparent !important;
    padding: 6px 0 !important;
    width: fit-content !important;
    border: none !important;
  }
  .qotg-navigation .qotg-mega-product .qotg-menu-rail:nth-child(8) a:hover {
    color: var(--wp--preset--color--primary, #f25c05) !important;
    background: transparent !important;
  }
  .qotg-navigation .qotg-mega-product .qotg-menu-rail:nth-child(8) a::after {
    content: "↗" !important;
    font-size: 14px !important;
    color: var(--wp--preset--color--primary, #f25c05) !important;
  }
  .qotg-navigation .qotg-mega-product .qotg-menu-rail:nth-child(9) {
    display: none !important;
  }

  /* Right Menu Item Cards: Clean borderless Google Antigravity style with outline icons */
  .qotg-navigation .qotg-menu-card {
    border: none !important;
    border-radius: 14px !important;
    background: transparent !important;
    box-shadow: none !important;
    min-width: 0 !important;
    overflow: visible !important;
  }
  .qotg-navigation .qotg-menu-card > a.wp-block-navigation-item__content,
  .qotg-navigation .qotg-menu-card a {
    min-height: 0 !important;
    height: auto !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    transition: background-color 0.15s ease !important;
    display: grid !important;
    grid-template-columns: 40px 1fr !important;
    column-gap: 14px !important;
    align-items: start !important;
    position: relative !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }
  .qotg-navigation .qotg-menu-card > a.wp-block-navigation-item__content:hover,
  .qotg-navigation .qotg-menu-card a:hover {
    background: #f8f9fa !important;
    text-decoration: none !important;
  }
  .qotg-navigation .qotg-menu-card > a::before,
  .qotg-navigation .qotg-menu-card a::before {
    content: "" !important;
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    background-color: #f1f3f4 !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px 20px !important;
    display: block !important;
    transition: background-color 0.15s ease, transform 0.15s ease !important;
  }
  .qotg-navigation .qotg-menu-card > a:hover::before,
  .qotg-navigation .qotg-menu-card a:hover::before {
    background-color: #e8eaed !important;
    transform: scale(1.05) !important;
  }
  .qotg-navigation .qotg-menu-card .wp-block-navigation-item__label {
    grid-column: 2 !important;
    grid-row: 1 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--wp--preset--color--ink, #1f1f1f) !important;
    line-height: 1.3 !important;
    padding: 0 !important;
    margin: 0 0 3px 0 !important;
  }
  .qotg-navigation .qotg-menu-card .wp-block-navigation-item__description {
    grid-column: 2 !important;
    grid-row: 2 !important;
    display: block !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: #5f6368 !important;
    margin: 0 !important;
  }
  .qotg-navigation .qotg-menu-card a::after {
    content: none !important;
  }

  /* Grid cell mapping */
  .qotg-navigation .qotg-mega-product .qotg-menu-card:nth-child(2),
  .qotg-navigation .qotg-mega-solutions .qotg-menu-card:nth-child(2) { grid-column: 2; grid-row: 1; }
  .qotg-navigation .qotg-mega-product .qotg-menu-card:nth-child(3),
  .qotg-navigation .qotg-mega-solutions .qotg-menu-card:nth-child(3) { grid-column: 3; grid-row: 1; }
  .qotg-navigation .qotg-mega-product .qotg-menu-card:nth-child(4),
  .qotg-navigation .qotg-mega-solutions .qotg-menu-card:nth-child(4) { grid-column: 2; grid-row: 2; }
  .qotg-navigation .qotg-mega-product .qotg-menu-card:nth-child(5),
  .qotg-navigation .qotg-mega-solutions .qotg-menu-card:nth-child(5) { grid-column: 3; grid-row: 2; }
  .qotg-navigation .qotg-mega-product .qotg-menu-card:nth-child(6) { grid-column: 2; grid-row: 3; }
  .qotg-navigation .qotg-mega-product .qotg-menu-card:nth-child(7) { grid-column: 3; grid-row: 3; }

  /* Resources dropdown: 2 columns matching Google Antigravity panel aesthetic */
  .qotg-header .qotg-navigation .qotg-mega-resources > .wp-block-navigation__submenu-container {
    grid-template-columns: 1fr 1fr !important;
    max-width: 780px !important;
    left: auto !important;
    right: max(32px, calc((100vw - 1240px) / 2)) !important;
    border-radius: 24px !important;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding: 28px 32px !important;
    gap: 12px 24px !important;
  }
}

/* Dropdown Icons via SVG Data URIs */
.qotg-navigation .qotg-menu-card a[href*="quotes-approvals"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1f1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cpolyline points='9 15 11 17 15 13'/%3E%3C/svg%3E") !important;
}
.qotg-navigation .qotg-menu-card a[href*="jobs-scheduling"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1f1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3Ccircle cx='12' cy='15' r='2'/%3E%3C/svg%3E") !important;
}
.qotg-navigation .qotg-menu-card a[href*="invoices-payments"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1f1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3Cline x1='5' y1='15' x2='9' y2='15'/%3E%3C/svg%3E") !important;
}
.qotg-navigation .qotg-menu-card a[href*="customers-expenses"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1f1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") !important;
}
.qotg-navigation .qotg-menu-card a[href*="analytics-reporting"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1f1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='20' x2='18' y2='10'/%3E%3Cline x1='12' y1='20' x2='12' y2='4'/%3E%3Cline x1='6' y1='20' x2='6' y2='14'/%3E%3C/svg%3E") !important;
}
.qotg-navigation .qotg-menu-card a[href*="ai-smart-tools"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1f1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3-1.9 5.8a2 2 0 0 1-1.3 1.3L3 12l5.8 1.9a2 2 0 0 1 1.3 1.3L12 21l1.9-5.8a2 2 0 0 1 1.3-1.3L21 12l-5.8-1.9a2 2 0 0 1-1.3-1.3z'/%3E%3C/svg%3E") !important;
}
.qotg-navigation .qotg-menu-card a[href*="trades-contractors"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1f1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E") !important;
}
.qotg-navigation .qotg-menu-card a[href*="field-service-businesses"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1f1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 17h4V5H2v12h3'/%3E%3Cpath d='M20 17h2v-3.34a4 4 0 0 0-1.17-2.83L19 9h-5v8h2'/%3E%3Ccircle cx='7.5' cy='17.5' r='2.5'/%3E%3Ccircle cx='17.5' cy='17.5' r='2.5'/%3E%3C/svg%3E") !important;
}
.qotg-navigation .qotg-menu-card a[href*="freelancers-consultants"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1f1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2' ry='2'/%3E%3Cline x1='8' y1='21' x2='16' y2='21'/%3E%3Cline x1='12' y1='17' x2='12' y2='21'/%3E%3C/svg%3E") !important;
}
.qotg-navigation .qotg-menu-card a[href*="growing-service-teams"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1f1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") !important;
}
.qotg-navigation .qotg-menu-card a[href*="how-it-works"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1f1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolygon points='10 8 16 12 10 16 10 8'/%3E%3C/svg%3E") !important;
}
.qotg-navigation .qotg-menu-card a[href*="faq"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1f1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E") !important;
}
.qotg-navigation .qotg-menu-card a[href*="integrations"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1f1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E") !important;
}
.qotg-navigation .qotg-menu-card a[href*="about"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1f1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E") !important;
}
.qotg-navigation .qotg-menu-card a[href*="blog"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1f1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E") !important;
}

/* Mobile & Tablet Navigation Drawer (<= 1024px) */
@media(max-width: 1024px) {
  .qotg-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .qotg-navigation .wp-block-navigation__responsive-container-open {
    display: flex !important;
    margin-left: auto;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  /* Drawer Container: Clean White Surface */
  .qotg-header .qotg-navigation .wp-block-navigation__responsive-container.is-menu-open {
    inset: 0 0 0 auto !important;
    width: min(480px, 100vw) !important;
    height: 100dvh !important;
    box-sizing: border-box !important;
    padding: 24px 20px !important;
    background: #ffffff !important;
    color: #1f1f1f !important;
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.12) !important;
    overflow-y: auto !important;
  }

  /* Dark Circular Close Button matching Google Antigravity */
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
    top: 20px !important;
    right: 20px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 9999px !important;
    background: #1f1f1f !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  }
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
    width: 18px !important;
    height: 18px !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
  }

  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    padding-top: 0 !important;
  }
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0 !important;
  }

  /* Drawer Logo */
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .qotg-drawer-logo {
    display: block !important;
    width: auto !important;
    margin: 0 0 28px !important;
    order: 0 !important;
  }
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:has(> .qotg-drawer-logo) {
    display: block !important;
    width: 100% !important;
    order: 0 !important;
  }
  .qotg-navigation .qotg-drawer-logo img {
    filter: none !important;
    height: 36px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain !important;
  }

  /* Main Accordion Rows: Clean border-bottom dividers */
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .qotg-mega {
    position: relative !important;
    border-bottom: 1px solid #f1f3f4 !important;
    border-top: none !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    order: 1 !important;
  }
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .qotg-mega > button,
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle {
    width: 100% !important;
    text-align: left !important;
    padding: 18px 4px !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    color: #1f1f1f !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer !important;
  }
  /* Submenu chevron icon: visible, styled, and positioned at far right end of the line */
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon,
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle .wp-block-navigation__submenu-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    color: #1f1f1f !important;
    pointer-events: none !important;
    flex-shrink: 0 !important;
  }
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon svg,
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle .wp-block-navigation__submenu-icon svg {
    width: 14px !important;
    height: 14px !important;
    stroke: #1f1f1f !important;
    stroke-width: 2.2 !important;
    fill: none !important;
    display: block !important;
    transition: transform 0.2s ease !important;
  }
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle[aria-expanded="true"] .wp-block-navigation__submenu-icon svg,
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .qotg-mega:has(> button[aria-expanded="true"]) .wp-block-navigation__submenu-icon svg {
    transform: rotate(180deg) !important;
  }
  /* Sibling fallback if icon is outside button before JS moves it */
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .qotg-mega > .wp-block-navigation__submenu-icon {
    position: absolute !important;
    top: 22px !important;
    right: 4px !important;
  }

  /* Submenu when open in mobile drawer */
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .qotg-mega > .wp-block-navigation__submenu-container {
    display: none !important;
    position: static !important;
    width: 100% !important;
    padding: 6px 0 16px !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: inherit !important;
    gap: 6px !important;
  }
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .qotg-mega:has(> button[aria-expanded="true"]) > .wp-block-navigation__submenu-container {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Submenu items in mobile drawer: clean borderless list with icons & NO descriptions */
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .qotg-menu-card {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    border: none !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .qotg-menu-card a {
    padding: 10px 8px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    text-decoration: none !important;
    background: transparent !important;
    box-sizing: border-box !important;
    transition: background-color 0.15s ease !important;
  }
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .qotg-menu-card a::before {
    content: "" !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 10px !important;
    background-color: #f1f3f4 !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 18px 18px !important;
    flex-shrink: 0 !important;
  }
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .qotg-menu-card a:hover,
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .qotg-menu-card a:active {
    background: #f8f9fa !important;
  }
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .qotg-menu-card .wp-block-navigation-item__label {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #1f1f1f !important;
    background: transparent !important;
    white-space: normal !important;
    word-break: normal !important;
    line-height: 1.35 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  /* Remove descriptions of each sub-item on mobile menu */
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__description {
    display: none !important;
  }
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .qotg-menu-card a::after {
    content: none !important;
  }
  /* Hide desktop large overview text on mobile */
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .qotg-menu-overview::before {
    content: none !important;
    display: none !important;
  }
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .qotg-mega-product .qotg-menu-rail:nth-child(8),
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .qotg-mega-product .qotg-menu-rail:nth-child(9) {
    display: none !important;
  }

  /* Mobile "See overview" Pill Button at bottom of expanded section */
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .qotg-menu-rail {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 8px 0 4px !important;
    order: 99 !important;
  }
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .qotg-menu-rail a {
    background: #f1f3f4 !important;
    color: #1f1f1f !important;
    border-radius: 9999px !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    width: 100% !important;
    border: none !important;
    text-decoration: none !important;
  }
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .qotg-menu-rail a:hover {
    background: #e8eaed !important;
  }
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .qotg-menu-rail a::after {
    content: none !important;
  }

  /* Pricing link & Sign in rows */
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-link:not(.qotg-nav-primary):not(.qotg-nav-secondary):not(.qotg-menu-card):not(.qotg-menu-rail) {
    border-bottom: 1px solid #f1f3f4 !important;
    width: 100% !important;
    margin: 0 !important;
    order: 1 !important;
  }
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-link:not(.qotg-nav-primary):not(.qotg-nav-secondary):not(.qotg-menu-card):not(.qotg-menu-rail) > a {
    padding: 18px 4px !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    color: #1f1f1f !important;
    display: block !important;
    text-decoration: none !important;
  }

  /* CTAs at the bottom of the drawer */
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .qotg-nav-primary {
    display: flex !important;
    width: 100% !important;
    margin: 24px 0 0 !important;
    order: 3 !important;
  }
  .qotg-header nav.qotg-navigation .wp-block-navigation__responsive-container.is-menu-open .qotg-nav-primary a {
    width: 100% !important;
    padding: 14px 20px !important;
    border-radius: 9999px !important;
    background: var(--wp--preset--color--orange, #F37A22) !important;
    color: var(--wp--preset--color--ink, #121212) !important;
    text-align: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: 1px solid var(--wp--preset--color--orange, #F37A22) !important;
    box-shadow: 0 2px 10px rgba(243, 122, 34, 0.25) !important;
    text-decoration: none !important;
  }
}

@media(prefers-reduced-motion: reduce) {
  .qotg-navigation *, .qotg-navigation *::after {
    animation: none !important;
    transition: none !important;
  }
}
