/* Bug-fix overrides (loaded after min.css) */

/*
 * Horizontal scrollbar on mobile: overflow often lives on the root, not only body.
 * Reinforce after min.css; avoid 100vw on html (scrollbar makes vw > layout width).
 */
html {
  max-width: 100%;
  overflow-x: clip;
}

body {
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

/* Single hero: desktop/tablet use main banner; mobile-only block removed from HTML — keep main banner visible on small screens */
@media (max-width: 768px) {
  #banner-wrap {
    display: block !important;
  }
}

/* Drawer menu: hide on desktop where horizontal .nav is used; show only on small screens */
@media (min-width: 769px) {
  #header-wrap .nav-menu {
    display: none !important;
  }
}

/* Mobile drawer: closed by default; opened via GSAP (height animation) */
@media (max-width: 768px) {
  /* Contain drawer + nav row so negative margins / wide flex rows cannot widen the page */
  #header-wrap {
    overflow-x: clip;
    max-width: 100%;
  }

  @supports not (overflow: clip) {
    #header-wrap {
      overflow-x: hidden;
    }
  }

  #header-wrap .col-xs-12.col-md-12.col-lg-12 {
    position: relative;
    max-width: 100%;
    min-width: 0;
  }

  /*
   * min.css (read manually): desktop nav uses .nav-menu{position:absolute;height:100%},
   * .nav-items{margin:6rem -7rem}, .nav-item-menu{font-size:0}, and critically
   * .nav-item-menu a{position:relative;top:140px;font-size:45px} — same top on every
   * link stacks them on top of each other in the mobile drawer. Reset everything
   * inside #mobile-drawer only.
   */
  #header-wrap #mobile-drawer.nav-menu,
  #header-wrap #mobile-drawer {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    display: block !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    height: 0;
    min-height: 0 !important;
    max-height: none;
    width: 100% !important;
    box-sizing: border-box;
    background: #000 !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    flex-wrap: nowrap;
    z-index: 9998;
  }

  #header-wrap #mobile-drawer .nav-menu-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    padding: 20px clamp(16px, 4vw, 28px) 28px;
    max-width: 100%;
    overflow: visible;
    background: transparent;
  }

  #header-wrap #mobile-drawer .nav-items {
    display: flex !important;
    flex-direction: column !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    width: 100%;
    box-sizing: border-box;
  }

  #header-wrap #mobile-drawer .nav-item-menu {
    position: relative !important;
    font-size: inherit !important;
    margin: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
  }

  #header-wrap #mobile-drawer .nav-item-menu a {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    font-size: clamp(1.05rem, 3.8vw, 1.25rem) !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
    line-height: 1.35 !important;
  }

  #header-wrap #mobile-drawer .nav-item-wrapper {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  #header-wrap #mobile-drawer .nav-item-wrapper::after {
    display: none !important;
    content: none !important;
  }

  #header-wrap #mobile-drawer .nav-info {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    align-items: stretch !important;
    width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  #header-wrap #mobile-drawer .nav-social {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 18px;
    width: 100% !important;
    max-width: 100%;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    flex-wrap: wrap;
    box-sizing: border-box;
  }

  #header-wrap .nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 9999;
  }

  #header-wrap #mobile-drawer .nav-menu-eyebrow {
    margin: 0 0 8px;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
  }

  #header-wrap #mobile-drawer .nav-items .nav-item-menu {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  #header-wrap #mobile-drawer .nav-items .nav-item-menu:last-child {
    border-bottom: none;
  }

  #header-wrap #mobile-drawer .nav-items .nav-item-menu a {
    display: block;
    padding: 16px 4px 16px 0;
    font-family: "Manrope", system-ui, sans-serif;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
  }

  #header-wrap #mobile-drawer .nav-items .nav-item-menu a:active {
    transform: translateX(2px);
  }

  #header-wrap #mobile-drawer .nav-info .address h3,
  #header-wrap #mobile-drawer .nav-info .links-social h3,
  #header-wrap #mobile-drawer .nav-info .nav-contact h3 {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
  }

  #header-wrap #mobile-drawer .nav-info .nav-portfolio p {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 10px;
  }

  #header-wrap #mobile-drawer .nav-social .links-social ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  /* min.css uses white fill, circle border, and :before slide — strip it in the drawer */
  #header-wrap #mobile-drawer .nav-social .links-social ul li a {
    display: inline-flex !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-right: 0 !important;
    line-height: 1 !important;
    font-size: 0 !important;
    text-decoration: none;
    overflow: visible !important;
    position: relative !important;
    z-index: 1;
    background: rgba(255, 255, 255, 0.07) !important;
    background-color: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition:
      background 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.2s ease,
      transform 0.2s ease;
  }

  #header-wrap #mobile-drawer .nav-social .links-social ul li a::before,
  #header-wrap #mobile-drawer .nav-social .links-social ul li a::after {
    display: none !important;
    content: none !important;
  }

  #header-wrap #mobile-drawer .nav-social .links-social ul li a .icon {
    position: static !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.125rem !important;
    line-height: 1 !important;
    z-index: 1 !important;
    bottom: auto !important;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  #header-wrap #mobile-drawer .nav-social .links-social ul li a:hover,
  #header-wrap #mobile-drawer .nav-social .links-social ul li a:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  }

  #header-wrap #mobile-drawer .nav-social .links-social ul li a:hover .icon,
  #header-wrap #mobile-drawer .nav-social .links-social ul li a:focus-visible .icon {
    color: #fff !important;
    transform: none !important;
  }

  #header-wrap #mobile-drawer .nav-social .links-social ul li:nth-child(1) a:hover {
    background: rgba(24, 119, 242, 0.35) !important;
    border-color: rgba(88, 144, 255, 0.55) !important;
  }

  #header-wrap #mobile-drawer .nav-social .links-social ul li:nth-child(2) a:hover {
    background: rgba(10, 102, 194, 0.4) !important;
    border-color: rgba(90, 163, 255, 0.5) !important;
  }

  #header-wrap #mobile-drawer .nav-social .links-social ul li:nth-child(3) a:hover {
    background: linear-gradient(
      145deg,
      rgba(225, 48, 108, 0.45) 0%,
      rgba(253, 203, 92, 0.25) 100%
    ) !important;
    border-color: rgba(255, 120, 180, 0.45) !important;
  }

  #header-wrap #mobile-drawer .nav-contact a {
    font-size: 15px;
    word-break: break-word;
  }
}

/* Lock scroll when mobile menu is open (class toggled in footer.php) */
body.drawer-open {
  overflow: hidden;
  touch-action: none;
}

@media (min-width: 769px) {
  #header-wrap .nav-toggle {
    display: none !important;
  }

  body.drawer-open {
    overflow: visible;
    touch-action: auto;
  }
}

/* Logo: keep visible in flex row; min.css .nav__list width:28% can collapse if image fails */
#header-wrap .nav-container {
  align-items: center;
}

#header-wrap .nav__list {
  flex-shrink: 0;
  display: flex !important;
  align-items: center;
  list-style: none !important;
}

#header-wrap .nav__links {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

#header-wrap .nav__links img {
  display: block;
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 48px;
  object-fit: contain;
  opacity: 1 !important;
  visibility: visible !important;
}

/*
  Contact forms in section.home-form:
  - thank_you.php (21 pages): grid + #contact-textarea
  - submitted.php (career-form): same grid + .career-form-upload (file)
*/
section.home-form .row {
  flex-direction: column;
}

section.home-form {
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(36px, 5vw, 64px);
}

section.home-form .form-head,
section.home-form .contact-form {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
}

section.home-form .contact-form {
  list-style: none;
}

section.home-form .contact-form input,
section.home-form .contact-form select,
section.home-form .contact-form textarea {
  visibility: visible;
  opacity: 1;
  box-sizing: border-box;
}

section.home-form form#my-form[action="thank_you.php"],
section.home-form form#my-form[action="submitted.php"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  align-items: stretch;
  list-style: none;
}

section.home-form form#my-form[action="thank_you.php"] > input[name="name"],
section.home-form form#my-form[action="thank_you.php"] > textarea,
section.home-form form#my-form[action="thank_you.php"] > .form-bottom,
section.home-form form#my-form[action="submitted.php"] > input[name="name"],
section.home-form form#my-form[action="submitted.php"] > .career-form-upload,
section.home-form form#my-form[action="submitted.php"] > .form-bottom {
  grid-column: 1 / -1;
}

section.home-form form#my-form[action="thank_you.php"] input,
section.home-form form#my-form[action="thank_you.php"] select,
section.home-form form#my-form[action="thank_you.php"] textarea,
section.home-form form#my-form[action="submitted.php"] input:not([type="file"]),
section.home-form form#my-form[action="submitted.php"] select {
  display: block;
  width: 100% !important;
  max-width: 100%;
  margin-bottom: 0;
  border-top-width: 1px !important;
  border-right-width: 1px !important;
  border-bottom-width: 1px !important;
  border-left-width: 1px !important;
  background-color: #161616 !important;
  color: #fff !important;
}

section.home-form form#my-form[action="thank_you.php"] input::placeholder,
section.home-form form#my-form[action="thank_you.php"] textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

section.home-form form#my-form[action="submitted.php"] .career-form-upload label {
  display: block;
  color: #fce383;
  font-size: 13px;
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

section.home-form form#my-form[action="submitted.php"] input[type="file"] {
  display: block;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  background-color: #161616;
  color: #e0e0e0;
  border: 1px solid rgba(252, 227, 131, 0.45);
  cursor: pointer;
  font-size: 15px;
}

section.home-form form#my-form[action="thank_you.php"] textarea#contact-textarea {
  font-family: "Poppins-Light", "Manrope", sans-serif;
  color: #fff !important;
  background-color: #161616 !important;
  min-height: 150px;
  padding: 16px 20px;
  line-height: 1.5;
  resize: vertical;
  -webkit-appearance: none;
  appearance: none;
}

section.home-form form#my-form[action="thank_you.php"] select#services,
section.home-form form#my-form[action="submitted.php"] select#services {
  color: #e8e8e8;
  cursor: pointer;
}

section.home-form form#my-form[action="thank_you.php"] select#services option,
section.home-form form#my-form[action="submitted.php"] select#services option {
  color: #111;
  background: #fff;
}

section.home-form form#my-form[action="thank_you.php"] .form-bottom,
section.home-form form#my-form[action="submitted.php"] .form-bottom {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  margin-top: 8px;
}

section.home-form form#my-form[action="thank_you.php"] .form-bottom .bottom-1 {
  flex: 1 1 260px;
  width: auto !important;
}

section.home-form form#my-form[action="thank_you.php"] .form-bottom .bottom-1 p {
  line-height: 1.45;
}

section.home-form form#my-form[action="thank_you.php"] .form-bottom .bottom-2,
section.home-form form#my-form[action="submitted.php"] .form-bottom .bottom-2 {
  flex: 0 0 auto;
  width: auto !important;
}

@media (max-width: 768px) {
  section.home-form form#my-form[action="thank_you.php"],
  section.home-form form#my-form[action="submitted.php"] {
    grid-template-columns: 1fr;
  }

  section.home-form form#my-form[action="thank_you.php"] > input[name="name"],
  section.home-form form#my-form[action="thank_you.php"] > textarea,
  section.home-form form#my-form[action="thank_you.php"] > .form-bottom,
  section.home-form form#my-form[action="submitted.php"] > input[name="name"],
  section.home-form form#my-form[action="submitted.php"] > .career-form-upload,
  section.home-form form#my-form[action="submitted.php"] > .form-bottom {
    grid-column: 1;
  }

  section.home-form form#my-form[action="thank_you.php"] .form-bottom,
  section.home-form form#my-form[action="submitted.php"] .form-bottom {
    flex-direction: column;
  }

  section.home-form form#my-form[action="thank_you.php"] .form-bottom .bottom-2,
  section.home-form form#my-form[action="submitted.php"] .form-bottom .bottom-2 {
    width: 100% !important;
  }

  section.home-form form#my-form[action="thank_you.php"] .form-bottom .bottom-2 button#form-button,
  section.home-form form#my-form[action="submitted.php"] .form-bottom .bottom-2 button#form-button {
    width: 100%;
    max-width: none;
  }

  section.home-form form#my-form[action="thank_you.php"] input,
  section.home-form form#my-form[action="thank_you.php"] select,
  section.home-form form#my-form[action="thank_you.php"] textarea,
  section.home-form form#my-form[action="submitted.php"] input:not([type="file"]),
  section.home-form form#my-form[action="submitted.php"] select,
  section.home-form form#my-form[action="submitted.php"] input[type="file"] {
    font-size: 16px !important;
  }
}

/* min.css hides these; show when the section exists (homepage / blogs).
   .logos-slides omitted: duplicate owl row removed from index — marquee is the single client strip. */
#testimonials,
#team,
#team-main,
section.home-blogs {
  display: block !important;
}

#team {
  margin-top: 70px;
}

.map_email a,
.map_phone a {
  color: inherit;
  text-decoration: none;
}

.map_email a:hover,
.map_phone a:hover {
  text-decoration: underline;
}
