/* GSC header layout override. Load after the existing style.css. */
/* Removes the old red diagnostic outline found in the supplied stylesheet. */
body { border: 0 !important; }

#header .header-t .holder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}
#header .header-t .holder > .tel { min-width: 0; flex: 1 1 280px; }
#header .header-t .tel a { overflow-wrap: anywhere; }
#header .header-t .social { margin: 0; gap: 12px; }
#header .header-t .social a { margin-left: 0; }

#header .header-b { padding: 10px 0; }
#header .header-b > .row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  margin: 0;
}
#header .header-b > .row > :first-child {
  flex: 0 0 144px;
  width: 144px;
  max-width: 144px;
  padding: 0 24px 0 0;
}
#header .header-b > .row > :last-child {
  flex: 1 1 0%;
  width: auto;
  min-width: 0;
  max-width: none;
  padding: 0;
}
#header .header-b .logo {
  background: transparent;
  padding: 0;
  margin: 0;
  width: auto;
  max-width: none;
  top: auto;
}
#header .header-b .logo::before,
#header .header-b .logo::after { display: none; }
#header .header-b .logo a { display: inline-block; vertical-align: middle; }
#header .header-b .logo img {
  display: block;
  width: 120px;
  height: 120px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 4px;
}
#header .navbar { padding: 0; position: relative; }
#header .navbar > .container-fluid { padding: 0; }
#header .navbar-collapse { min-width: 0; margin: 0; gap: 14px; }
#header .navbar-nav {
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 4px;
}
#header .navbar .nav-item { margin: 0; }
#header .navbar .nav-link {
  font-size: 15px;
  line-height: 1.4;
  padding: 12px 5px;
  white-space: nowrap;
}
#header .call {
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 0;
  border-radius: 4px;
  background: var(--primaryColor, #dc3545);
  white-space: nowrap;
}
#header .call .ico {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  line-height: 36px;
  margin: 0;
}
#header .call .top-txt { font-size: 13px; line-height: 18px; }
#header .call .tel { font-size: 20px; line-height: 26px; white-space: nowrap; }

/* Give the phone its own line on narrower desktop/tablet layouts. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  #header .navbar-collapse { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  #header .navbar-nav { flex: 0 0 100%; width: 100%; margin-right: 0 !important; }
  #header .call { padding: 8px 12px; }
}
@media (min-width: 992px) {
  #header .navbar .close-toggler { display: none; }
}

/* Match Bootstrap's 992px breakpoint, including the old 991px gap. */
@media (max-width: 991.98px) {
  #header .header-t .holder { padding: 10px 0; gap: 8px 14px; }
  #header .header-t .holder > .tel { font-size: 13px; text-align: left; }
  #header .header-t .social { justify-content: flex-start; margin: 0; }
  #header .header-t .selecloc { display: none; }
  #header .header-b > .row > :first-child { flex-basis: 104px; width: 104px; max-width: 104px; padding-right: 20px; }
  #header .header-b .logo img { width: 84px; height: 84px; }
  #header .navbar > .container-fluid { justify-content: flex-end; }
  #header .navbar .navbar-toggler {
    display: block;
    position: static;
    margin: 0;
    padding: 10px 14px;
    color: #161616;
    background: #eee;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
  #header .navbar-collapse {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 100%;
    width: 100%;
    margin: 0;
    padding: 56px 20px 24px;
    overflow-y: auto;
    overflow-x: hidden;
    visibility: hidden;
    background: #181818;
    z-index: 10000;
  }
  #header .navbar-collapse.show { visibility: visible; transform: translateX(-100%); }
  #header .navbar .close-toggler {
    display: block;
    position: absolute;
    top: 8px;
    right: 16px;
    border: 0;
    padding: 5px;
    background: transparent;
    color: #fff;
    font-size: 28px;
  }
  #header .navbar-nav { flex-direction: column; align-items: stretch; gap: 0; margin-bottom: 18px !important; }
  #header .navbar .nav-link { padding: 12px 0; color: #fff; white-space: normal; }
  #header .navbar .nav-link.active { color: var(--primaryColor, #dc3545); }
  #header .navbar-nav .dropdown-menu {
    position: static !important;
    left: auto;
    top: auto;
    float: none;
    min-width: 0;
    max-width: 100%;
    transform: none !important;
    margin: 0 0 0 12px;
  }
  #header .navbar-nav .dropdown-item { white-space: normal; }
  #header .call { display: inline-flex; }
}

/* The same square logo can also replace the old footer logo. */
footer img[src*="gsc-logo-2026.png"] {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
