/*
Theme Name: Sonic
Author: Josh Yager
Author URI: https://thedevq.com/
Description: Custom Theme build by The Dev Q
Version: 1.0.0
*/

a {
  color: var(--primary);
  font-weight: 500;
}

nav#menu:not(.mm-menu) {
  display: none;
}

.container-fluid {
  max-width: 2400px;
  margin: auto;
}

/* @media (min-width:1600px) {
  .container {
    max-width: 1550px;
  }
} */

body, p, ul, li {
  font-family: var(--font2);
  font-weight: 400;
  color: #333131;
  line-height: 1.5;
}


html, body {
  /* overflow-x: hidden !important; */
  position: relative;
}

.maincopy ul li {
  list-style: none;
  position: relative;
  margin-bottom: 15px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font1);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
}


h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.3rem;
}

h5 {
  font-size: 1.2rem;
}

@media (max-width:991px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  h4 {
    font-size: 1.5rem;
  }

  h5 {
    font-size: 1.25rem;
  }
}

img {
  max-width: 100%;
}

.btn {
  text-decoration: none;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  width: 300px;
  border-radius: 2px;
  font-weight: 600;
  text-align: center;
  transition: all .3s ease-in-out;
  border: 2px solid var(--primary);
}

.btn i {
  margin-right: 8px;
  font-size: 14px;
}

.btn.btn-secondary {
  background: var(--secondary);
  color: black;
  border: 2px solid var(--secondary);
}

.btn.btn-tertiary {
  background: var(--tertiary);
  border: 2px solid var(--tertiary);
  color: white;
}

.btn.btn-white {
  background: white;
  color: var(--primary);
  border: 2px solid white;
}

.btn.white:hover {
  background: var(--primary);
  color: white;
}

.btn:hover {
  background: var(--secondary);
  color: black;
  border: var(--secondary);
}

.btn.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.btn.btn-secondary.border {
  background: transparent;
  color: var(--secondary);
}

.btn.btn-secondary.border:hover {
  background: var(--secondary);
  border: 2px solid var(--secondary);
  color: black;
}

.cs-topper {
  font-family: var(--font2);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  margin-top: 0;
  color: var(--secondary);
  letter-spacing: 3px;
}

.cs-title {
  font-size: 34px;
  margin: 0;
  line-height: 1;
  font-weight: 800;
  max-width: 530px;
  color: var(--primary);
}



::selection {
  background: var(--tertiary);
  color: var(--secondary);
}

::-webkit-scrollbar-track {
  background-color: #f5f5f5;
  -webkit-box-shadow: inset 0 0 6px rgb(0 0 0 / 30%);
}

::-webkit-scrollbar-thumb {
  -webkit-border-radius: 10px;
  border-radius: 10px;
  background: var(--tertiary);
}

::-webkit-scrollbar {
  width: 10px;
}

.mobileonly {
  display: none;
}

html {
  scroll-behavior: smooth;
}

/* Basic Html */
body {
  margin: 0px;
  background: #fff;
}

html, body {
  margin: 0;
  padding: 0;
}


/* Header Styles & Main Logo */
.mainLogo {
  padding: 0;
  display: block;
  width: 355px;
  height: auto;
  margin: 0;
  position: relative;
  max-height: 60px;
}

.menutop ul {
  display: flex;
  list-style: none;
}

/* Drop Down Menu */
.dropdown-menu {
  display: none;
  transform-origin: center top 0;
  transition: all .1s ease 0s;
  min-width: 270px;
  left: -10px;
  overflow: hidden;
  padding-top: 10px;
}

.menu-depth-1 {
  position: relative;
}

/* Hamburger Styles */
.mburger strong {
  display: block;
  position: absolute;
  left: calc(var(--mb-button-size)*((1 - var(--mb-bar-width))/2));
  width: calc(var(--mb-button-size)*var(--mb-bar-width));
  height: var(--mb-bar-height);
  border-radius: calc(var(--mb-bar-height)/2);
  background: black;
  color: inherit;
  opacity: 1;
}

.mburger strong {
  border-radius: 0px;
}

.mburger {
  color: #fff;
}

.mburger:hover, .mburger:focus, .mburger:active {
  color: #fff;
}

.mburger strong:nth-of-type(1) {
  bottom: calc(45% + var(--mb-bar-spacing));
}

.mburger strong:nth-of-type(3) {
  top: calc(45% + var(--mb-bar-spacing));
}

.mburger span {
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.mm-menu {
  --mm-color-background: #fff;
}

.mm-listitem__text, .mm-navbar__title>span {
  font-weight: 600;
  color: var(--primary);
}


/* Menu Tablet */
@media screen and (max-width:1199px) {
  .mobileonly {
    display: inherit;
  }

  .mainLogo {
    margin: 0px auto;
    width: 200px;
    height: auto;
  }
}

.videoWrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;
}

.videoWrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.devq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 15px 0;
}

.menutop ul li a {
  text-decoration: none;
  margin-left: 30px;
  font-weight: 500;
  color: initial;
  font-size: 18px;
  transition: all .1s ease-in-out;
  display: flex;
  align-items: center;
}

.menutop ul li a:hover {
  color: var(--secondary);
}

.footerfluid2 {
  padding: 15px 0;
  background: var(--secondary);
}

.footerfluid2 p {
  color: white;
  margin: 0;
  padding: 10px 0;
  font-size: 16px;
}

.mobileOnly {
  display: none;
}

.flextophead {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

img.mobilelogo {
  width: 230px;
  margin: 0 15px;
}

.mobilemen {
  margin: -10px 10px 0 0;
}

img.mobileLogo {
  padding: 30px;
}

ul.dropdown-menu {
  display: none;
}

a.dropdown-toggle i {
  padding-left: 5px;
  font-size: 14px;
}

.dropdown:hover ul.dropdown-menu {
  display: block;
  position: absolute;
  color: white;
  padding-top: 10px;
  z-index: 3;
}

.menu-item-has-children {
  position: relative;
}

.dropdown-menu a {
  margin: 0 !important;
}

.dropdown-menu li a {
  background: var(--primary);
  padding: 10px 15px;
  color: white !important;
  display: block;
  border-bottom: 1px solid white;
  transition: all .1s ease-in-out;
}

.dropdown-menu li:last-child a {
  border-bottom: 0;
}

.dropdown-menu li a:hover {
  background: var(--secondary);
  color: white !important;
}

.mobilemen {
  display: none;
}

@media (max-width:1199px) {
  .desktopOnly {
    display: none;
  }

  .mobileOnly {
    display: initial;
  }

  .footerfluidcolor {
    padding: 70px 0 40px;
  }

  .footerfluid2 p {
    text-align: center;
  }

  .mobilemen {
    display: inherit;
  }

  .menutop {

    display: none;
  }
}



/* Mega Menu Styles */
/* Add to your existing styles */
.main-navigation a.has-mega-menu {
  position: relative;
}

.main-navigation a.has-mega-menu i {
  font-size: 12px;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

/* Optional: rotate arrow on hover */
.main-navigation li:hover a.has-mega-menu i {
  transform: rotate(180deg);
}

.main-navigation>ul>li {
  position: relative;
}

.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  max-width: 95vw;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px 30px 0 30px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Add styles for the new heading */
.mega-menu-heading {
  margin: 0 0 15px;
  font-size: 21px;
  color: #000;
  font-weight: 700;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}



.main-navigation a {
  text-decoration: none;
  color: #000;
  transition: all .2s ease-in-out;
}

a.mainA {
  padding: 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  font-weight: 600;
  font-size: 14px;
}

.main-navigation a:hover {
  background: var(--secondary);
  color: black !important;
}

.main-navigation>ul>li:hover .mega-menu {
  display: block;
  opacity: 1;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mega-menu-item {
  display: flex;
  align-items: flex-start;
  padding: 15px;
  transition: all 0.3s ease;
  border-radius: 4px;
  border: 2px solid transparent;
}

.mega-menu-item:hover {
  background-color: rgba(var(--primary-rgb), 0.1);
  border: 2px solid var(--primary);
}

.mega-menu-icon {
  width: 30px;
  height: 30px;
  margin-right: 15px;
  flex-shrink: 0;
}

.mega-menu-content h4 {
  margin: 0 0 5px;
  font-size: 16px;
  color: var(--primary);
}

.mega-menu-content p {
  margin: 0;
  font-size: 13px;
  color: #333;
  font-style: italic;
}

.mega-menu-cta {
  margin-top: 20px;
  padding: 20px 30px;
  background: whitesmoke;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: calc(100% + 60px);
  margin-left: -30px;
}

li.menu-btn .mainA {
  padding: 0;
  background: var(--primary);
  padding: 20px;
  margin-left: 15px;
  color: white;
  border-radius: 3px;
  transition: all .3s ease-in-out;
  min-width: 200px;
}

li.menu-btn .mainA:hover {
  background: var(--secondary);
  color: black !important;
}


.mega-menu-cta .btn {
  color: white;
}

.mega-menu-cta .btn:hover {
  color: black;
}

a.text-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: all .3s ease-in-out;
}

a.text-link:hover {
  color: black;
  background: transparent;
}



.main-navigation>ul>li.mega-active>a {
  background: var(--secondary);
  color: black !important;
}

.main-navigation>ul>li.mega-active>a i {
  transform: rotate(180deg);
}



/* Mobile Adjustments */
@media (max-width: 1199px) {
  .mega-menu {
    display: none !important;
  }

  nav.main-navigation {
    display: none;
  }

  .mm-listview .mega-menu-item {
    padding: 10px 20px;
  }

  .mm-listview .mega-menu-content h4 {
    margin: 0;
  }

  .mm-listview .mega-menu-content p,
  .mm-listview .mega-menu-cta {
    display: none;
  }
}


/* overlaid navigation style */
.ol {
  display: none;
}

@media (min-width:1199px) {
  .header-container.overlay-menu {
    width: 100%;
    position: absolute;
    z-index: 9999;
    top: 0px;
    left: 0px;
  }

  .header-container.overlay-menu a.mainA {
    color: white;
  }

  .ol {
    display: none;
  }

  .header-container.overlay-menu .ol {
    display: block;
  }

  .header-container.overlay-menu .ml {
    display: none;
  }
}


/* footer */

.site-footer {
  --footer-spacing: 30px;
}

.footer-form {
  background-color: var(--primary);
  padding: 40px 0;
  color: white;
}

.footer-form__content {
  text-align: left;
  margin-bottom: 20px;
}

.footer-form__form .gform_fields {
  display: flex !important;
}

.footer-form__form .gform_fields .gfield {
  width: 20%;
  position: relative;
}

.footer-form__form .gform_fields .gfield:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--secondary);
}


.footer-form__form .gform_fields .gfield input[type="submit"] {
  background: var(--secondary) !important;
  color: black !important;
  border: none !important;
  padding: 0 20px !important;
  height: 50px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.footer-form__form .gform_fields .gfield input[type="submit"]:hover {
  background: white !important;
}

.footer-form__form .gform_fields .gfield--type-submit:after {
  display: none !important;
}

.footer-form__form .gform_fields .gfield input {
  height: 50px;
  background: transparent;
  border: 1px solid white;
  box-shadow: none;
  color: white;
  position: relative;
}

.footer-form__title {
  margin: 0;
  color: white;
}

p.footer-form__copy {
  color: white;
  margin: 10px 0 0;
}

.footer-form__form label {
  display: none !important;
}

/* Quote Buttons Section */
.footer-cta {
  background-color: var(--tertiary);
  padding: var(--footer-spacing) 0;
}

.footer-cta__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.footer-cta__left {
  width: 45%;
  text-align: center;
  display: flex;
  align-items: center;
  color: white;
  gap: 20px;
}

.footer-cta__right {
  width: 55%;
  text-align: center;
  display: flex;
  gap: 20px;
  display: flex;
  align-items: center;
  color: white;
  gap: 20px;
  justify-content: flex-end;
}

.footer-cta__left p, .footer-cta__right p {
  color: white;
}

.footer-cta__desc {
  margin-bottom: 15px;
}

/* Main Footer Section */
.footer-main {
  background-color: var(--tertiary);
  padding-bottom: var(--footer-spacing);
}

.footer-main__divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 0 0 var(--footer-spacing);
}

.footer-main__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--footer-spacing);
}

.footer-main__menu {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-main__menu a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  position: relative;
  overflow: hidden;
  display: inline-block;
  transition: color 0.3s ease;
}

.footer-main__menu a:hover {
  color: var(--secondary);
}



.footer-main__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: white;
}

.footer-main__tagline {
  margin: 0;
}

p.footer-main__tagline {
  color: white;
  font-size: 24px;
  max-width: 500px;
  margin: 0;
  font-weight: 600;
}

.footer-main__contact {
  text-align: right;
}

.footer-main__address {
  margin-bottom: 15px;
  color: white;
}

.footer-main__social {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.footer-main__social-link {
  color: white;
  font-size: 18px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid white;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.footer-main__social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: white;
  transition: left 0.3s ease;
  z-index: 0;
}

.footer-main__social-link:hover::before {
  left: 0;
}

.footer-main__social-link i {
  position: relative;
  z-index: 1;
}

.footer-main__social-link:hover {
  color: var(--tertiary);
}

.footer-copyright {
  background-color: white;
  padding: 15px 0;
  font-size: 14px;
}

.footer-copyright__text {
  margin: 0;
  text-align: center;
}

.footer-copyright a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-copyright a:hover {
  color: var(--secondary);
}

.mega-menu-heading:not(:first-of-type) {
  margin: 15px 0 0;
}

/* Responsive Styles */
@media (max-width: 1199px) {
  .footer-cta__wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .footer-cta__left, .footer-cta__right {
    width: 100%;
    justify-content: center;
  }

  .footer-main__menu {
    gap: 20px;
  }
}

@media (max-width: 991px) {
  .footer-form {
    padding: 40px 0;
  }

  .footer-cta__left, .footer-cta__right {
    flex-direction: column;
    gap: 0;
  }

  .footer-main__top {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .footer-main__menu {
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 30px;
  }

  .footer-main__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .footer-main__contact {
    text-align: center;
  }

  .footer-main__social {
    justify-content: center;
  }

  .footer-main__logo {
    max-width: 200px;
    margin: 0 auto;
  }

  .footer-main__logo img {
    max-width: 100%;
    height: auto;
  }

  .footer-form__form .gform_fields {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .footer-form__form .gform_fields .gfield {
    width: 100%;
  }

  .footer-form__form .gform_fields .gfield:after {
    display: none;
  }

  .footer-form__form .gform_fields .gfield input[type="submit"] {
    width: 100% !important;
  }

  .footer-form__form .gform_fields .gfield input {
    width: 100%;
  }


}

@media (max-width: 767px) {
  :root {
    --footer-spacing: 20px;
  }

  .footer-form__title {
    font-size: 24px;
  }

  .footer-main__social-link {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .footer-copyright {
    padding: 10px 0;
    font-size: 12px;
  }
}