/* ==========================================================================
   Royal Elementor Theme - Header Style 2 Stylesheet
   Site: GearShift Auto Clinic (Auto Repair & Garage Service Center)
   Theme: Industrial Bold - White Header, Red #ef4444 Accent, Orange #f97316 CTA
   Fonts: Oswald (Headings) + Inter (Body)
   ========================================================================== */

/* Top Header Bar (.headertop) */
.headertop {
  background-color: #161616;
  border-bottom: 2px solid #ef4444;
  padding: 8px 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #c0c0c0;
  position: relative;
  z-index: 1002;
}

.headertop .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.headertop a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
}

.headertop a:hover {
  color: #f97316;
}

.headertop .top-left,
.headertop .top-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.headertop .top-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.headertop .top-item i {
  color: #ef4444;
  font-size: 13px;
}

.headertop .hours-badge {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.headertop .social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.headertop .social-links a {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #262626;
  color: #ddd;
  font-size: 12px;
  border: 1px solid #383838;
  transition: all 0.25s ease;
}

.headertop .social-links a:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

/* ==========================================================================
   Header Style 2: White Header with Red Accent Line (.header)
   ========================================================================== */
.header {
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1001;
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.header .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
  transition: height 0.3s ease;
}

.header.scrolled .container {
  height: 72px;
}

/* Logo Warper */
#logowarper {
  display: flex;
  align-items: center;
}

.branding-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.brand-text h1.site-title {
  margin: 0;
  font-family: 'Oswald', sans-serif;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #1a1a1a;
  line-height: 1;
}

.brand-text h1.site-title span {
  color: #ef4444;
}

.brand-text .site-description {
  margin: 3px 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #737373;
  font-weight: 600;
}

/* Desktop Navigation (.desktopmenu) */
.desktopmenu {
  display: flex;
  align-items: center;
}

.royalmenu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
}

.royalmenu > li {
  position: relative;
}

.royalmenu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #1f1f1f;
  text-decoration: none;
  padding: 30px 0;
  transition: all 0.25s ease;
  position: relative;
}

.royalmenu > li > a::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 0;
  height: 3px;
  background: #ef4444;
  transition: width 0.25s ease;
}

.royalmenu > li:hover > a,
.royalmenu > li.active > a {
  color: #ef4444;
}

.royalmenu > li:hover > a::after,
.royalmenu > li.active > a::after {
  width: 100%;
}

.royalmenu > li > a i.dropdown-arrow {
  font-size: 11px;
  color: #ef4444;
  transition: transform 0.25s ease;
}

.royalmenu > li:hover > a i.dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Sub-menu */
.royalmenu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #ffffff;
  border-top: 3px solid #ef4444;
  border-radius: 0 0 8px 8px;
  padding: 10px 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 999;
}

.royalmenu > li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.royalmenu .sub-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  text-decoration: none;
  transition: all 0.2s ease;
}

.royalmenu .sub-menu li a i {
  color: #ef4444;
  font-size: 13px;
  width: 18px;
}

.royalmenu .sub-menu li a:hover {
  background: #fef2f2;
  color: #ef4444;
  padding-left: 26px;
}

/* Right Actions & Orange CTA (.royal-action-btn) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.royal-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff !important;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.35);
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.royal-action-btn:hover {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
  color: #ffffff !important;
}

/* Mobile Hamburger Toggle (#navigation-icon) */
#navigation-icon {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  z-index: 1100;
}

#navigation-icon span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: #1a1a1a;
  border-radius: 2px;
  transition: all 0.3s ease;
}

#navigation-icon.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: #ef4444;
}

#navigation-icon.open span:nth-child(2) {
  opacity: 0;
}

#navigation-icon.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: #ef4444;
}

/* Mobile Drawer & Backdrop */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #ffffff;
  border-left: 3px solid #ef4444;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 20px;
}

.mobile-menu ul.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu ul.mobile-nav-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-menu ul.mobile-nav-list li a:hover,
.mobile-menu ul.mobile-nav-list li.active a {
  background: #fef2f2;
  color: #ef4444;
}

.mobile-menu .mobile-submenu {
  list-style: none;
  padding: 4px 0 8px 16px;
  margin: 0;
  display: none;
}

.mobile-menu .mobile-submenu.open {
  display: block;
}

.mobile-menu .mobile-submenu li a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  text-transform: none;
  color: #555;
  padding: 8px 12px;
}

.mobile-menu .mobile-submenu li a:hover {
  color: #ef4444;
}

.mobile-menu-cta {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Responsive */
@media (max-width: 991px) {
  .desktopmenu {
    display: none;
  }
  #navigation-icon {
    display: flex;
  }
  .headertop .top-right {
    display: none;
  }
  .header .container {
    height: 72px;
  }
}

@media (max-width: 575px) {
  .headertop {
    display: none;
  }
  .royal-action-btn {
    display: none;
  }
  .mobile-menu-cta .royal-action-btn {
    display: inline-flex;
    justify-content: center;
  }
}
