/*
 * Gate Motor — Modern Header & Footer
 * This file is intentionally scoped to header/navigation/footer elements.
 * Homepage content and homepage modules are not modified here.
 */

:root {
  --gmhf-navy: #0b1b2b;
  --gmhf-blue: #145da0;
  --gmhf-blue-dark: #0c3d6d;
  --gmhf-red: #e53935;
  --gmhf-text: #142033;
  --gmhf-muted: #6b7b8d;
  --gmhf-border: #e3eaf2;
  --gmhf-soft: #f6f9fc;
  --gmhf-white: #ffffff;
}

/* ---------- Utility bar ---------- */
#top.gm-utility-bar {
  margin: 0;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: var(--gmhf-navy);
  color: #dce8f4;
}

.gm-utility-bar .container {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gm-utility-left,
.gm-utility-right,
.gm-utility-links {
  display: flex;
  align-items: center;
}

.gm-welcome {
  color: #dce8f4;
  font-size: 12px;
  line-height: 36px;
}

.gm-welcome .fa {
  margin-right: 6px;
  color: #67c2ff;
  font-size: 12px;
}

.gm-utility-right {
  gap: 16px;
}

.gm-utility-control {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #dce8f4;
  font-size: 12px;
}

.gm-utility-links {
  gap: 16px;
}

.gm-utility-links a {
  color: #dce8f4 !important;
  text-shadow: none !important;
  font-family: "Roboto-Regular", "Open Sans", sans-serif !important;
  font-size: 12px !important;
  transition: color .2s ease;
}

.gm-utility-links a:hover {
  color: #ffffff !important;
}

.gm-utility-links .fa {
  margin-right: 4px;
  font-size: 12px;
}

/* ---------- Main header ---------- */
.gm-main-header {
  position: relative;
  z-index: 20;
  padding: 18px 0;
  background: #fff;
  border-bottom: 1px solid var(--gmhf-border);
  box-shadow: 0 5px 22px rgba(11, 27, 43, .05);
}

.gm-header-main {
  min-height: 76px;
  display: grid;
  grid-template-columns: 245px minmax(260px, 1fr) 205px;
  align-items: center;
  gap: 28px;
}

.gm-brand {
  min-width: 0;
}

.gm-brand #logo {
  margin: 0;
  line-height: 1;
  text-align: left;
}

.gm-brand #logo a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.gm-brand #logo img {
  display: block;
  max-width: 100%;
  width: auto;
  max-height: 72px;
}

.gm-brand #logo h1 {
  margin: 0;
  font-size: 25px;
}

.gm-brand #logo h1 a {
  color: var(--gmhf-text);
}

/* Search component is the existing OpenCart component. */
.gm-header-search {
  min-width: 0;
}

.gm-header-search #search {
  width: 100%;
  margin: 0;
}

.gm-header-search #search .form-control {
  height: 48px;
  border: 1px solid #d7e1eb;
  border-right: 0;
  border-radius: 9px 0 0 9px;
  background: var(--gmhf-soft);
  box-shadow: none;
  font-family: "Roboto-Regular", "Open Sans", sans-serif;
  font-size: 14px;
  color: var(--gmhf-text);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.gm-header-search #search .form-control:focus {
  background: #fff;
  border-color: #9ec8e9;
  box-shadow: 0 0 0 3px rgba(20, 93, 160, .08);
}

.gm-header-search #search .btn {
  height: 48px;
  min-width: 54px;
  border: 1px solid var(--gmhf-blue);
  border-radius: 0 9px 9px 0;
  background: var(--gmhf-blue);
  color: #fff;
  text-shadow: none;
  transition: background .2s ease, border-color .2s ease;
}

.gm-header-search #search .btn:hover,
.gm-header-search #search .btn:focus {
  background: var(--gmhf-blue-dark);
  border-color: var(--gmhf-blue-dark);
  color: #fff;
}

.gm-header-cart {
  min-width: 0;
}

.gm-header-cart #cart {
  margin: 0;
  padding: 0;
  width: 100%;
}

.gm-header-cart #cart > button {
  position: relative;
  width: 100%;
  min-height: 54px;
  padding: 8px 15px 8px 48px;
  overflow: hidden;
  border: 1px solid var(--gmhf-border);
  border-radius: 10px;
  background: #fff;
  color: var(--gmhf-text);
  text-align: left;
  text-shadow: none;
  box-shadow: 0 5px 18px rgba(11, 27, 43, .06);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.gm-header-cart #cart > button:before {
  content: "\f07a";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  line-height: 25px;
  border-radius: 7px;
  background: var(--gmhf-blue);
  color: #fff;
  font-family: FontAwesome;
  font-size: 13px;
  text-align: center;
}

.gm-header-cart #cart > button:hover,
.gm-header-cart #cart.open > button {
  border-color: #b7d2e8;
  box-shadow: 0 8px 22px rgba(11, 27, 43, .09);
  transform: translateY(-1px);
}

.gm-header-cart #cart > button p {
  margin: 0;
  color: var(--gmhf-text);
  font-family: "Roboto-BoldCondensed", "Roboto-Condensed", sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  line-height: 18px;
}

.gm-header-cart #cart > button #cart-total {
  display: block;
  color: var(--gmhf-muted);
  font-family: "Roboto-Regular", "Open Sans", sans-serif;
  font-size: 11px;
  line-height: 16px;
}

.gm-header-cart #cart .dropdown-menu {
  top: calc(100% + 10px);
  right: 0;
  min-width: 330px;
  max-width: calc(100vw - 30px);
  padding: 8px;
  border: 1px solid var(--gmhf-border);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(11, 27, 43, .15);
  background: #fff;
}

/* ---------- Navigation ---------- */
.menu-header {
  position: relative;
  z-index: 19;
  padding: 0;
  background: var(--gmhf-blue-dark);
  border: 0;
}

.menu-header > .container {
  padding-left: 15px;
  padding-right: 15px;
}

.menu-header #menu {
  margin: 0;
  min-height: 50px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.menu-header #menu .navbar-header {
  min-height: 50px;
}

.menu-header #menu .navbar-toggle {
  margin: 8px 0;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 7px;
  background: rgba(255,255,255,.06);
  color: #fff;
}

.menu-header #menu #category {
  color: #fff;
  font-family: "Roboto-BoldCondensed", "Roboto-Condensed", sans-serif;
  font-size: 13px;
  line-height: 50px;
  text-transform: uppercase;
}

.menu-header #menu .nav > li > a {
  min-height: 50px;
  padding: 15px 17px;
  border-radius: 0;
  color: #fff;
  font-family: "Roboto-BoldCondensed", "Roboto-Condensed", sans-serif;
  font-size: 13px;
  letter-spacing: .2px;
  text-shadow: none;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}

.menu-header #menu .nav > li > a:hover,
.menu-header #menu .nav > li.open > a,
.menu-header #menu .nav > li.active > a {
  background: var(--gmhf-blue);
  color: #fff;
}

.menu-header #menu .dropdown-menu {
  top: 100%;
  min-width: 210px;
  margin: 0;
  padding: 8px 0 0;
  border: 1px solid var(--gmhf-border);
  border-top: 3px solid var(--gmhf-blue);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 18px 40px rgba(11, 27, 43, .15);
  background: #fff;
}

.menu-header #menu .dropdown-inner a,
.menu-header #menu .see-all {
  color: var(--gmhf-text);
  font-family: "Roboto-Regular", "Open Sans", sans-serif;
  font-size: 13px;
  padding: 8px 18px;
}

.menu-header #menu .dropdown-inner a:hover,
.menu-header #menu .see-all:hover {
  background: #f1f6fb;
  color: var(--gmhf-blue);
}

.menu-header #menu .see-all {
  margin-top: 4px;
  border-top: 1px solid var(--gmhf-border);
  border-radius: 0 0 8px 8px;
}





<!-- =========================================
     FLOATING CALL & WHATSAPP BUTTONS
     OpenCart 3.0.3.8
     ========================================= -->

<div class="gm-floating-contact">

    <!-- WhatsApp Button -->
    <a href="https://wa.me/971525223840"
       class="gm-floating-btn gm-whatsapp"
       target="_blank"
       rel="noopener"
       aria-label="Chat with us on WhatsApp"
       title="WhatsApp">
        <i class="fa fa-whatsapp"></i>
        <span class="gm-floating-label">WhatsApp</span>
    </a>

    <!-- Call Button -->
    <a href="tel:+971525223840"
       class="gm-floating-btn gm-call"
       aria-label="Call us"
       title="Call Us">
        <i class="fa fa-phone"></i>
        <span class="gm-floating-label">Call Us</span>
    </a>

</div>

<style>
/* =========================================
   FLOATING CONTACT BUTTONS
   ========================================= */

.gm-floating-contact {
    position: fixed;
    right: 20px;
    bottom: 25px;
    z-index: 99999;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Main Button */
.gm-floating-btn {
    width: 56px;
    height: 56px;

    border-radius: 50%;

    display: flex !important;
    align-items: center;
    justify-content: center;

    position: relative;

    color: #ffffff !important;
    text-decoration: none !important;

    font-size: 25px;

    box-shadow: 0 5px 18px rgba(0,0,0,0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* WhatsApp */
.gm-whatsapp {
    background: #25D366;
}

/* Call */
.gm-call {
    background: #0f6fff;
}

/* Hover */
.gm-floating-btn:hover {
    color: #ffffff !important;
    transform: translateY(-4px) scale(1.05);

    box-shadow: 0 8px 25px rgba(0,0,0,0.30);
}

/* Icon */
.gm-floating-btn i {
    color: #ffffff !important;
    line-height: 1;
}

/* Text Label */
.gm-floating-label {
    position: absolute;

    right: 68px;

    top: 50%;
    transform: translateY(-50%);

    background: #222;
    color: #ffffff;

    padding: 7px 12px;

    border-radius: 5px;

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

/* Small arrow */
.gm-floating-label:after {
    content: "";

    position: absolute;

    right: -6px;
    top: 50%;

    transform: translateY(-50%);

    border-width: 5px 0 5px 6px;
    border-style: solid;

    border-color: transparent transparent transparent #222;
}

/* Show label on hover */
.gm-floating-btn:hover .gm-floating-label {
    opacity: 1;
    visibility: visible;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {

    .gm-floating-contact {
        right: 15px;
        bottom: 18px;
        gap: 10px;
    }

    .gm-floating-btn {
        width: 50px;
        height: 50px;

        font-size: 22px;
    }

    /* Hide labels on mobile */
    .gm-floating-label {
        display: none;
    }
}


/* =========================================
   VERY SMALL SCREENS
   ========================================= */

@media (max-width: 380px) {

    .gm-floating-contact {
        right: 10px;
        bottom: 12px;
    }

    .gm-floating-btn {
        width: 46px;
        height: 46px;

        font-size: 20px;
    }
}
</style>











/* ---------- Footer ---------- */
.gm-footer {
  margin: 0;
  padding: 58px 0 0;
  background: var(--gmhf-navy);
  color: #aebfd1;
  border: 0;
}

.gm-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.35fr;
  gap: 42px;
  padding-bottom: 46px;
}

.gm-footer-column {
  min-width: 0;
}

.gm-footer-column h5 {
  position: relative;
  margin: 0 0 20px;
  padding: 0 0 12px;
  color: #fff !important;
  font-family: "Roboto-BoldCondensed", "Roboto-Condensed", sans-serif !important;
  font-size: 17px !important;
  font-weight: normal;
  letter-spacing: .4px;
  line-height: 1.2;
  text-transform: uppercase;
}

.gm-footer-column h5:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: var(--gmhf-red);
}

.gm-footer-column ul {
  margin: 0;
}

.gm-footer-column li {
  padding: 0;
  margin: 0;
}

.gm-footer-column li + li {
  margin-top: 9px;
}

.gm-footer-column li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: #b7c7d8;
  font-family: "Roboto-Regular", "Open Sans", sans-serif;
  font-size: 13px;
  line-height: 1.6;
  transition: color .2s ease, padding-left .2s ease;
}

.gm-footer-column li a:hover {
  padding-left: 3px;
  color: #fff;
}

.gm-footer-column li a .fa {
  width: 12px;
  margin: 0;
  color: #6bb8ee;
  font-size: 12px;
}

.gm-footer-contact {
  padding: 22px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}

.gm-contact-list {
  display: grid;
  gap: 13px;
}

.gm-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #b7c7d8;
  font-family: "Roboto-Regular", "Open Sans", sans-serif;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
}

.gm-contact-item a {
  color: #dbe8f3;
  transition: color .2s ease;
}

.gm-contact-item a:hover {
  color: #fff;
}

.gm-contact-icon {
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  line-height: 29px;
  border-radius: 8px;
  background: rgba(20,93,160,.28);
  color: #7bc6ff;
  text-align: center;
}

.gm-footer-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 7px;
  color: #fff !important;
  font-family: "Roboto-BoldCondensed", "Roboto-Condensed", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  background: rgba(255,255,255,.06);
  transition: background .2s ease, border-color .2s ease;
}

.gm-footer-contact-btn:hover {
  background: var(--gmhf-blue);
  border-color: var(--gmhf-blue);
}

.gm-footer-bottom {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,.09);
}

.gm-footer-brandline {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8fa4b8;
  font-size: 12px;
}

.gm-footer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gmhf-red);
  box-shadow: 0 0 0 4px rgba(229,57,53,.10);
}

.gm-back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  color: #c7d6e4 !important;
  font-size: 16px;
  transition: background .2s ease, color .2s ease;
}

.gm-back-top:hover {
  background: var(--gmhf-blue);
  color: #fff !important;
}

.gm-powered {
  margin: 0;
  padding: 13px 0;
  border: 0;
  background: #07131f;
  color: #8fa2b6;
  font-family: "Roboto-Regular", "Open Sans", sans-serif;
  font-size: 12px;
}

.gm-powered p {
  margin: 0;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .gm-header-main {
    grid-template-columns: 210px minmax(220px, 1fr) 185px;
    gap: 20px;
  }

  .menu-header #menu .nav > li > a {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 12px;
  }

  .gm-footer-grid {
    gap: 28px;
  }
}

@media (max-width: 991px) {
  .gm-header-main {
    grid-template-columns: 190px minmax(0, 1fr) 170px;
    gap: 15px;
  }

  .gm-brand #logo img {
    max-height: 62px;
  }

  .gm-header-cart #cart > button {
    padding-left: 43px;
  }

  .gm-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gm-footer-contact {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  #top.gm-utility-bar {
    min-height: 34px;
  }

  .gm-utility-bar .container {
    min-height: 34px;
  }

  .gm-utility-left {
    min-width: 0;
  }

  .gm-welcome {
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    line-height: 34px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .gm-utility-right {
    gap: 7px;
  }

  .gm-utility-control {
    min-height: 34px;
    font-size: 11px;
  }

  .gm-utility-links {
    gap: 0;
  }

  .gm-utility-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-size: 0 !important;
  }

  .gm-utility-links a .fa {
    margin: 0;
    font-size: 13px;
  }

  .gm-main-header {
    padding: 14px 0 16px;
  }

  .gm-header-main {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 0;
  }

  .gm-brand {
    flex: 1 1 100%;
  }

  .gm-brand #logo {
    text-align: center;
  }

  .gm-brand #logo a {
    justify-content: center;
    width: 100%;
  }

  .gm-brand #logo img {
    max-height: 58px;
  }

  .gm-header-search {
    flex: 1 1 calc(100% - 64px);
  }

  .gm-header-cart {
    flex: 0 0 52px;
  }

  .gm-header-cart #cart > button {
    width: 52px;
    min-height: 48px;
    padding: 0;
    border-radius: 9px;
    text-align: center;
  }

  .gm-header-cart #cart > button:before {
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
  }

  .gm-header-cart #cart > button p,
  .gm-header-cart #cart > button #cart-total {
    display: none;
  }

  .gm-header-cart #cart .dropdown-menu {
    position: absolute;
    right: 0;
    min-width: 300px;
  }

  .menu-header #menu .navbar-header {
    min-height: 46px;
  }

  .menu-header #menu #category {
    line-height: 46px;
  }

  .menu-header #menu .navbar-toggle {
    margin: 5px 0;
  }

  .menu-header #menu .navbar-collapse {
    border-top: 1px solid rgba(255,255,255,.10);
    box-shadow: none;
  }

  .menu-header #menu .nav {
    margin: 0 -15px;
  }

  .menu-header #menu .nav > li > a {
    min-height: 44px;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .menu-header #menu .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    border: 0;
    border-top: 1px solid rgba(255,255,255,.08);
    border-radius: 0;
    box-shadow: none;
    background: rgba(0,0,0,.10);
  }

  .menu-header #menu .dropdown-inner a,
  .menu-header #menu .see-all {
    color: #e4edf5;
    padding: 9px 25px;
    background: transparent;
  }

  .menu-header #menu .dropdown-inner a:hover,
  .menu-header #menu .see-all:hover {
    color: #fff;
    background: rgba(255,255,255,.07);
  }

  .gm-footer {
    padding-top: 42px;
  }

  .gm-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 35px;
  }

  .gm-footer-contact {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .gm-utility-left {
    display: none;
  }

  .gm-utility-bar .container {
    justify-content: flex-end;
  }

  .gm-header-search {
    flex-basis: calc(100% - 58px);
  }

  .gm-header-cart {
    flex-basis: 46px;
  }

  .gm-header-cart #cart > button {
    width: 46px;
  }

  .gm-header-cart #cart .dropdown-menu {
    min-width: 285px;
  }
}
