/* =========================================================
   ROPAR CONNECT — NAVBAR
   Two Row Premium Navigation
   Color Theme:
   Orange: #FF7A00
   Green:  #1B8F3A
   Dark:   #121212
   White:  #FFFFFF
========================================================= */

/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {
  --rc-orange: #ff7a00;
  --rc-orange-light: #ffb067;

  --rc-green: #1b8f3a;
  --rc-green-light: #5ac26f;

  --rc-dark: #121212;
  --rc-text: #333333;
  --rc-muted: #707070;

  --rc-white: #ffffff;
  --rc-bg: #f7f9f4;

  --rc-border: rgba(18, 18, 18, 0.08);

  --rc-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);

  --rc-transition: all 0.3s ease;
}

/* =========================================================
   GLOBAL NAVBAR RESET
========================================================= */

.rc-navbar,
.rc-navbar * {
  box-sizing: border-box;
}

.rc-navbar a {
  text-decoration: none;
}

.rc-navbar button {
  font-family: inherit;
}

/* =========================================================
   MAIN NAVBAR
========================================================= */

.rc-navbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;

  background: var(--rc-white);

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* =========================================================
   COMMON CONTAINER
========================================================= */

.rc-container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* =========================================================
   TOP INFORMATION BAR
========================================================= */

.rc-topbar {
  width: 100%;
  height: 42px;

  background: var(--rc-white);

  border-bottom: 1px solid var(--rc-border);
}

.rc-topbar-inner {
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================================================
   LOCATION
========================================================= */

.rc-location {
  display: flex;
  align-items: center;
  gap: 9px;

  color: var(--rc-dark);

  font-size: 13px;
  font-weight: 600;

  letter-spacing: 0.1px;
}

/* Location Orange Badge */

.rc-location-badge {
  width: 25px;
  height: 25px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 122, 0, 0.1);

  color: var(--rc-orange);

  border-radius: 50%;

  font-size: 12px;

  transition: var(--rc-transition);
}

.rc-location:hover .rc-location-badge {
  background: var(--rc-orange);
  color: var(--rc-white);

  transform: translateY(-1px);
}

/* Location Text */

.rc-location-text {
  white-space: nowrap;
}

/* =========================================================
   CONTACT
========================================================= */

.rc-contact {
  display: flex;
  align-items: center;
  gap: 8px;

  font-size: 13px;
  font-weight: 600;
}

.rc-contact i {
  color: var(--rc-orange);
  font-size: 12px;
}

.rc-contact a {
  color: var(--rc-dark);

  transition: var(--rc-transition);
}

.rc-contact a:hover {
  color: var(--rc-orange);
}

/* =========================================================
   MAIN NAVIGATION
========================================================= */

.rc-main-nav {
  width: 100%;
  height: 76px;

  background: var(--rc-white);

  border-bottom: 1px solid var(--rc-border);

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.025);
}

/* Main Navigation Inner */

.rc-main-nav-inner {
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================================================
   LEFT MENU
========================================================= */

.rc-menu {
  display: flex;
  align-items: center;

  height: 100%;

  gap: 4px;
}

/* =========================================================
   NAVIGATION LINKS
========================================================= */

.rc-nav-link {
  position: relative;

  display: inline-flex;
  align-items: center;

  height: 76px;

  padding: 0 15px;

  color: var(--rc-dark);

  font-size: 14px;
  font-weight: 600;

  white-space: nowrap;

  transition: var(--rc-transition);
}

/* Hover */

.rc-nav-link:hover {
  color: var(--rc-green);
}

/* Bottom Hover Line */

.rc-nav-link::after {
  content: "";

  position: absolute;

  left: 15px;
  right: 15px;

  bottom: 0;

  height: 2px;

  background: var(--rc-orange);

  transform: scaleX(0);
  transform-origin: center;

  transition: transform 0.3s ease;
}

.rc-nav-link:hover::after,
.rc-nav-link.active::after {
  transform: scaleX(1);
}

/* Active */

.rc-nav-link.active {
  color: var(--rc-green);
}

/* =========================================================
   DROPDOWN WRAPPER
========================================================= */

.rc-dropdown {
  position: relative;

  height: 100%;

  display: flex;
  align-items: center;
}

/* =========================================================
   DROPDOWN BUTTON
========================================================= */

.rc-dropdown-toggle {
  position: relative;

  height: 76px;

  padding: 0 15px;

  border: none;
  outline: none;

  background: transparent;

  color: var(--rc-dark);

  font-size: 14px;
  font-weight: 600;

  display: inline-flex;
  align-items: center;
  gap: 7px;

  cursor: pointer;

  transition: var(--rc-transition);
}

.rc-dropdown-toggle:hover {
  color: var(--rc-green);
}

/* Dropdown Arrow */

.rc-dropdown-toggle i {
  font-size: 9px;

  transition: transform 0.3s ease;
}

/* Rotate arrow on hover */

.rc-dropdown:hover .rc-dropdown-toggle i {
  transform: rotate(180deg);
}

/* =========================================================
   DROPDOWN ORANGE LINE
========================================================= */

.rc-dropdown-toggle::after {
  content: "";

  position: absolute;

  left: 15px;
  right: 15px;

  bottom: 0;

  height: 2px;

  background: var(--rc-orange);

  transform: scaleX(0);

  transition: transform 0.3s ease;
}

.rc-dropdown:hover .rc-dropdown-toggle::after {
  transform: scaleX(1);
}

/* =========================================================
   DROPDOWN MENU
========================================================= */

.rc-dropdown-menu {
  position: absolute;

  top: calc(100% + 8px);
  left: 0;

  min-width: 245px;

  padding: 8px;

  background: var(--rc-white);

  border: 1px solid rgba(18, 18, 18, 0.07);

  border-radius: 12px;

  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);

  opacity: 0;
  visibility: hidden;

  transform: translateY(8px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

/* Dropdown Hover */

.rc-dropdown:hover .rc-dropdown-menu {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);
}

/* =========================================================
   DROPDOWN LINKS
========================================================= */

.rc-dropdown-menu a {
  position: relative;

  display: flex;
  align-items: center;

  gap: 12px;

  padding: 12px 13px;

  border-radius: 8px;

  color: var(--rc-dark);

  font-size: 13px;
  font-weight: 600;

  transition: var(--rc-transition);
}

/* Dropdown Icon */

.rc-dropdown-menu a i {
  width: 30px;
  height: 30px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 8px;

  background: rgba(27, 143, 58, 0.08);

  color: var(--rc-green);

  font-size: 12px;

  transition: var(--rc-transition);
}

/* Dropdown Hover */

.rc-dropdown-menu a:hover {
  background: rgba(255, 122, 0, 0.07);

  color: var(--rc-green);

  transform: translateX(3px);
}

.rc-dropdown-menu a:hover i {
  background: var(--rc-orange);

  color: var(--rc-white);
}

/* =========================================================
   ROPAR CONNECT BRAND
========================================================= */

.rc-brand {
  position: relative;

  display: inline-flex;
  align-items: center;

  color: var(--rc-green);

  font-size: 24px;
  font-weight: 800;

  letter-spacing: -0.7px;

  white-space: nowrap;

  transition: var(--rc-transition);
}

.rc-brand-name {
  position: relative;
}

/* Orange underline */

.rc-brand-name::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -5px;

  width: 32px;
  height: 3px;

  background: var(--rc-orange);

  border-radius: 20px;

  transition: width 0.3s ease;
}

.rc-brand:hover {
  color: var(--rc-orange);
}

.rc-brand:hover .rc-brand-name::after {
  width: 100%;
}

/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.rc-mobile-toggle {
  display: none;

  width: 42px;
  height: 42px;

  padding: 0;

  border: 1px solid rgba(18, 18, 18, 0.08);

  border-radius: 10px;

  background: var(--rc-white);

  cursor: pointer;

  align-items: center;
  justify-content: center;

  flex-direction: column;

  gap: 5px;
}

/* Hamburger Lines */

.rc-mobile-toggle span {
  display: block;

  width: 20px;
  height: 2px;

  background: var(--rc-dark);

  border-radius: 10px;

  transition: var(--rc-transition);
}

/* =========================================================
   MOBILE ACTIVE BUTTON
========================================================= */

.rc-mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.rc-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.rc-mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {
  .rc-container {
    width: min(100% - 30px, 1100px);
  }

  .rc-nav-link,
  .rc-dropdown-toggle {
    padding-left: 10px;
    padding-right: 10px;

    font-size: 13px;
  }

  .rc-nav-link::after,
  .rc-dropdown-toggle::after {
    left: 10px;
    right: 10px;
  }

  .rc-brand {
    font-size: 21px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 850px) {
  /* Top Bar */

  .rc-topbar {
    height: 42px;
  }

  .rc-location {
    font-size: 12px;
  }

  .rc-contact {
    font-size: 12px;
  }

  /* Main Nav */

  .rc-main-nav {
    height: 68px;
  }

  .rc-main-nav-inner {
    position: relative;
  }

  /* Hide Desktop Menu */

  .rc-menu {
    display: none;
  }

  /* Brand */

  .rc-brand {
    font-size: 22px;
  }

  /* Mobile Button */

  .rc-mobile-toggle {
    display: flex;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 550px) {
  .rc-container {
    width: calc(100% - 24px);
  }

  /* Location */

  .rc-location-text {
    font-size: 11px;
  }

  .rc-location-badge {
    width: 23px;
    height: 23px;

    font-size: 11px;
  }

  /* Contact */

  .rc-contact {
    font-size: 11px;
  }

  .rc-contact i {
    display: none;
  }

  .rc-contact a {
    font-size: 11px;
  }

  /* Brand */

  .rc-brand {
    font-size: 20px;
  }
}

/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 390px) {
  .rc-location-text {
    font-size: 10px;
  }

  .rc-contact a {
    font-size: 10px;
  }

  .rc-brand {
    font-size: 18px;
  }
}
/* Navbar scroll effect */

.rc-navbar-scrolled .rc-main-nav {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.rc-navbar-scrolled .rc-topbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
/* =========================================================
   MOBILE MENU
========================================================= */

.rc-mobile-menu {
  display: none;

  width: 100%;

  background: #ffffff;

  border-top: 1px solid rgba(18, 18, 18, 0.07);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.rc-mobile-menu.active {
  display: block;
}

.rc-mobile-inner {
  padding: 10px 15px 20px;
}

/* Mobile normal link */

.rc-mobile-link {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 10px;

  color: #121212;

  font-size: 14px;
  font-weight: 600;

  border-bottom: 1px solid rgba(18, 18, 18, 0.06);

  transition: all 0.25s ease;
}

.rc-mobile-link i {
  width: 25px;

  color: #1b8f3a;

  font-size: 14px;
}

.rc-mobile-link:hover,
.rc-mobile-link.active {
  color: #1b8f3a;
}

/* Mobile dropdown section */

.rc-mobile-section {
  border-bottom: 1px solid rgba(18, 18, 18, 0.06);
}

/* Mobile dropdown button */

.rc-mobile-dropdown-btn {
  width: 100%;

  padding: 14px 10px;

  border: none;

  background: transparent;

  color: #121212;

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
}

.rc-mobile-dropdown-btn span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rc-mobile-dropdown-btn span i {
  width: 25px;

  color: #1b8f3a;
}

.rc-mobile-dropdown-btn > i {
  font-size: 10px;

  transition: transform 0.3s ease;
}

/* Rotate mobile arrow */

.rc-mobile-section.active .rc-mobile-dropdown-btn > i {
  transform: rotate(180deg);

  color: #ff7a00;
}

/* Mobile submenu */

.rc-mobile-submenu {
  display: none;

  padding: 0 10px 8px 47px;
}

.rc-mobile-section.active .rc-mobile-submenu {
  display: block;
}

.rc-mobile-submenu a {
  display: block;

  padding: 10px 0;

  color: #666666;

  font-size: 13px;
  font-weight: 500;

  transition: all 0.2s ease;
}

.rc-mobile-submenu a:hover,
.rc-mobile-submenu a.active {
  color: #ff7a00;

  transform: translateX(3px);
}

/* Prevent page scrolling when menu open */

body.rc-menu-open {
  overflow: hidden;
}

/* Mobile only */

@media (min-width: 851px) {
  .rc-mobile-menu {
    display: none !important;
  }
}
