/*
 Theme Name:     Seebu Solutions
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Seebu Solutions - Web and Mobile Design and Development Solutions
 Author:         Team Seebu
 Author URI:     https://seebusolutions.com
 Template:       Divi
 Version:        1.0.0
*/

/* ================================================= */
/* GLOBAL HEADER LAYOUT (LOGO LEFT / MENU RIGHT)     */
/* ================================================= */

#main-header .container {
  display: flex !important;
  align-items: center;
}

#logo {
  padding: 7px;
  max-width: 50%;
  margin-right: auto; /* keeps logo left */
}

/* Push menu to the right */
#et-top-navigation {
  margin-left: auto;
}

/* ================================================= */
/* DESKTOP MENU – CORPORATE STYLE                   */
/* ================================================= */
@media (min-width: 981px) {

  #top-menu {
    display: flex;
    align-items: center;
    gap: 6px;
	margin-bottom: 25px !important;
  }

  #top-menu > li {
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
  }

  /* Top-level links */
  #top-menu > li > a {
    position: relative;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #111 !important;
    padding: 12px 14px !important;
    border-radius: 8px;
    transition: all 180ms ease;
    text-decoration: none !important;
  }

  /* Hover + active */
  #top-menu > li > a:hover,
  #top-menu > li.current-menu-item > a,
  #top-menu > li.current-menu-ancestor > a {
    color: #007acc !important;
    background: rgba(0, 122, 204, 0.08);
  }

  /* Clean underline */
  #top-menu > li > a:after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    background: #007acc;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: all 180ms ease;
    border-radius: 2px;
  }

  #top-menu > li:hover > a:after,
  #top-menu > li.current-menu-item > a:after,
  #top-menu > li.current-menu-ancestor > a:after {
    opacity: 1;
    transform: scaleX(1);
  }

  /* Remove default Divi artifacts */
  #top-menu a {
    border-bottom: none !important;
    box-shadow: none !important;
  }

  #top-menu a:focus {
    outline: none !important;
  }

  /* ================================================= */
  /* DROPDOWN MENU                                    */
  /* ================================================= */

  #top-menu li ul.sub-menu {
    border-top: none !important; /* remove blue bar */
    border-radius: 12px;
    padding: 10px 8px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.12);
    background: #ffffff;
    min-width: 240px;
  }

  #top-menu li ul.sub-menu li {
    padding: 0 !important;
    margin: 0 !important;
  }

  #top-menu li ul.sub-menu li a {
    font-size: 14px;
    font-weight: 600;
    color: #222 !important;
    padding: 10px 12px !important;
    border-radius: 10px;
    transition: all 160ms ease;
    text-decoration: none !important;
  }

  #top-menu li ul.sub-menu li a:hover,
  #top-menu li ul.sub-menu li.current-menu-item > a {
    color: #007acc !important;
    background: rgba(0, 122, 204, 0.10);
  }

  /* Remove submenu bullets / artifacts */
  #top-menu li ul.sub-menu li a:before {
    content: "";
    display: none !important;
  }

  /* REMOVE caret/arrow on Services */
  #top-menu li.menu-item-has-children > a:before,
  #top-menu li.menu-item-has-children > a:after {
    display: none !important;
  }

  /* CTA should not get underline */
  #top-menu > li.menu-book-cta > a:after {
    display: none !important;
  }
}

/* ================================================ */
/* RAISE DESKTOP MENU TEXT SLIGHTLY                 */
/* ================================================ */

@media (min-width: 981px) {

  /* Reduce header vertical padding */
  #main-header {
   	/* padding-top: -20px !important; */
    padding-bottom: 10px !important;
  }

  /* Vertically center menu items */
  #top-menu > li > a {
    line-height: 1.2 !important;
    /* padding-top: -15px !important;   */
    padding-bottom: 15px !important;
  }

  /* Ensure nav container aligns center */
  #et-top-navigation {
    display: flex;
    align-items: center;
  }
}



/* ================================================= */
/* MENU CTA BUTTON – OVERRIDE HEADER STYLES          */
/* ================================================= */

#top-menu > li.menu-book-cta > a {
  background-color: #000000 !important;
  color: #ffffff !important;
  font-weight: 700;
  padding: 12px 20px !important;
  border-radius: 10px;
  text-decoration: none !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  transition: all 180ms ease;
}

/* Hover */
#top-menu > li.menu-book-cta > a:hover {
  background-color: #0062a3 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(0, 122, 204, 0.35);
  transform: translateY(-1px);
}

/* Kill underline / hover bars from main menu CSS */
#top-menu > li.menu-book-cta > a:after,
#top-menu > li.menu-book-cta > a:before {
  display: none !important;
}

/* Prevent background hover from generic menu rules */
#top-menu > li.menu-book-cta > a:hover {
  background-image: none !important;
}
