/* ==========================================================================
   E-HOP Modern - Global White Design System & Navigation Styles
   ========================================================================== */

/* Layout Container */
.ehop-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.ehop-container-fluid {
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ehop-font-heading);
  color: var(--ehop-text-main);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

p {
  color: var(--ehop-text-muted);
  line-height: 1.7;
}

/* Gradient Text Accent */
.ehop-gradient-text {
  background: linear-gradient(135deg, var(--ehop-primary) 0%, var(--ehop-accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.ehop-eco-gradient-text {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* Badges & Pills */
.ehop-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ehop-bg-white);
  border: 1px solid rgba(0, 29, 167, 0.15);
  box-shadow: 0 2px 8px rgba(0, 29, 167, 0.06);
  padding: 6px 14px;
  border-radius: var(--ehop-radius-full);
  font-family: var(--ehop-font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ehop-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ehop-badge-pill.eco {
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--ehop-accent-green);
  background: rgba(16, 185, 129, 0.04);
}

.ehop-dot-live {
  width: 8px;
  height: 8px;
  background-color: var(--ehop-accent-green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: ehopPulse 2s infinite;
}

@keyframes ehopPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.ehop-pill-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--ehop-accent-green-light);
  color: var(--ehop-accent-green);
  border-radius: var(--ehop-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Button System */
.ehop-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ehop-primary);
  color: #ffffff !important;
  font-family: var(--ehop-font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--ehop-radius-full);
  box-shadow: 0 8px 20px -4px rgba(0, 29, 167, 0.35);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--ehop-transition-base);
  text-decoration: none;
}

.ehop-btn-primary:hover {
  background: var(--ehop-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(0, 29, 167, 0.45);
}

.ehop-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ehop-bg-white);
  color: var(--ehop-text-main) !important;
  font-family: var(--ehop-font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--ehop-radius-full);
  box-shadow: var(--ehop-shadow-sm);
  border: 1px solid var(--ehop-border-light);
  cursor: pointer;
  transition: all var(--ehop-transition-base);
  text-decoration: none;
}

.ehop-btn-secondary:hover {
  background: var(--ehop-bg-subtle);
  border-color: var(--ehop-primary);
  color: var(--ehop-primary) !important;
  transform: translateY(-2px);
  box-shadow: var(--ehop-shadow-md);
}

.ehop-btn-white {
  background: #ffffff !important;
  color: #001da7 !important;
  font-weight: 800 !important;
  padding: 14px 28px !important;
  border-radius: var(--ehop-radius-full) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px;
  text-decoration: none !important;
  transition: all var(--ehop-transition-base);
}

.ehop-btn-white span {
  color: #001da7 !important;
  font-weight: 800 !important;
}

.ehop-btn-white svg {
  stroke: #001da7 !important;
}

.ehop-btn-white:hover {
  background: #f0f4ff !important;
  color: #0a2ebf !important;
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.ehop-btn-white:hover span {
  color: #0a2ebf !important;
}

.ehop-btn-white:hover svg {
  stroke: #0a2ebf !important;
}

.ehop-btn-block {
  width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.ehop-topbar {
  background: #0f172a;
  color: #ffffff;
  padding: 8px 0;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ehop-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ehop-topbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ehop-live-pulse {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  animation: ehopPulse 1.8s infinite;
}

.ehop-topbar-extra {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ehop-topbar-link {
  color: #38bdf8 !important;
  font-weight: 600;
  text-decoration: none;
}

.ehop-topbar-link:hover {
  color: #7dd3fc !important;
  text-decoration: underline;
}

/* Sticky Main Header */
.ehop-header-wrap {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--ehop-transition-base);
}

.ehop-header-wrap.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
}

.ehop-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.ehop-brand-logo {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  height: 100% !important;
  max-height: 72px !important;
  position: relative !important;
  z-index: 100 !important;
}

.ehop-brand-logo a,
.ehop-brand-logo .ehop-logo-link,
.ehop-brand-logo .custom-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  height: 100% !important;
  line-height: 1;
}

.ehop-brand-logo img,
.ehop-brand-logo .custom-logo,
.ehop-logo-img {
  height: 52px !important;
  min-height: 46px !important;
  max-height: 54px !important;
  width: auto !important;
  max-width: 62px !important;
  object-fit: contain !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Nav Desktop */
.ehop-nav-desktop {
  display: flex;
  align-items: center;
}

.ehop-nav-desktop .ehop-menu-list {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.ehop-menu-item {
  white-space: nowrap;
}

.ehop-menu-item a {
  font-family: var(--ehop-font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ehop-text-main);
  padding: 8px 0;
  position: relative;
  transition: color var(--ehop-transition-fast);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.ehop-menu-item a::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: var(--ehop-primary);
  border-radius: 2px;
  transition: width var(--ehop-transition-base);
}

.ehop-menu-item:hover a,
.ehop-menu-item.current-menu-item a {
  color: var(--ehop-primary);
}

.ehop-menu-item:hover a::after,
.ehop-menu-item.current-menu-item a::after {
  width: 100%;
}

.ehop-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.ehop-header-actions .ehop-badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--ehop-radius-full);
  font-family: var(--ehop-font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--ehop-bg-white);
  border: 1.5px solid rgba(0, 29, 167, 0.18);
  box-shadow: 0 2px 6px rgba(0, 29, 167, 0.04);
  box-sizing: border-box;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  transition: all var(--ehop-transition-base);
}

.ehop-header-actions .ehop-badge-pill:hover {
  border-color: var(--ehop-primary);
  background: rgba(0, 29, 167, 0.04);
}

.ehop-header-actions .ehop-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border-radius: var(--ehop-radius-full);
  font-family: var(--ehop-font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  box-sizing: border-box;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--ehop-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 29, 167, 0.28);
  line-height: 1;
  border: 1.5px solid transparent;
  transition: all var(--ehop-transition-base);
}

.ehop-header-actions .ehop-header-btn:hover {
  background: var(--ehop-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 29, 167, 0.38);
}

.ehop-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.ehop-mobile-toggle .bar {
  width: 100%;
  height: 2.5px;
  background: var(--ehop-text-main);
  border-radius: 2px;
  transition: all var(--ehop-transition-base);
}

.ehop-mobile-toggle.active .bar-1 {
  transform: translateY(10px) rotate(45deg);
}

.ehop-mobile-toggle.active .bar-2 {
  opacity: 0;
}

.ehop-mobile-toggle.active .bar-3 {
  transform: translateY(-10px) rotate(-45deg);
}

/* Mobile Drawer */
.ehop-mobile-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  height: calc(100vh - 72px);
  background: #ffffff;
  padding: 32px 24px;
  z-index: 998;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.ehop-mobile-drawer.open {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.ehop-mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ehop-mobile-link {
  font-family: var(--ehop-font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ehop-text-main) !important;
  padding: 10px 0;
  border-bottom: 1px solid var(--ehop-border-light);
}

.ehop-mobile-link:hover {
  color: var(--ehop-primary) !important;
}

.ehop-mobile-drawer-cta {
  margin-top: 32px;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.ehop-footer-wrap {
  background: #ffffff;
  border-top: 1px solid var(--ehop-border-light);
  padding: 80px 0 40px;
}

.ehop-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.1fr 1.8fr;
  gap: 36px;
  margin-bottom: 60px;
}

.ehop-footer-logo-img {
  height: 68px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  margin-bottom: 18px;
  display: block;
}

.ehop-footer-desc {
  font-size: 0.95rem;
  color: var(--ehop-text-muted);
  max-width: 320px;
  margin-bottom: 24px;
}

.ehop-footer-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ehop-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ehop-bg-subtle);
  border: 1px solid var(--ehop-border-light);
  padding: 6px 14px;
  border-radius: var(--ehop-radius-full);
  font-size: 0.85rem;
  color: var(--ehop-text-main);
  width: fit-content;
}

.ehop-footer-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ehop-text-main);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.ehop-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ehop-footer-links a {
  color: var(--ehop-text-muted);
  font-size: 0.95rem;
  transition: color var(--ehop-transition-fast);
}

.ehop-footer-links a:hover {
  color: var(--ehop-primary);
  padding-left: 4px;
}

.ehop-footer-subtext {
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.ehop-footer-store-buttons {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  margin-bottom: 20px;
  max-width: 100%;
}

.ehop-footer-store-buttons .ehop-store-btn {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
}

.ehop-footer-store-buttons .ehop-store-btn img {
  height: 38px !important;
  width: auto !important;
  max-width: 125px !important;
  object-fit: contain !important;
  display: block !important;
}

.ehop-store-btn img {
  border-radius: 8px;
  box-shadow: var(--ehop-shadow-sm);
  transition: transform var(--ehop-transition-fast);
}

.ehop-store-btn:hover img {
  transform: translateY(-2px);
  box-shadow: var(--ehop-shadow-md);
}

.ehop-fleet-pill-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 6px 14px;
  border-radius: var(--ehop-radius-full);
  font-size: 0.82rem;
  color: var(--ehop-accent-green);
}

.ehop-live-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--ehop-accent-green);
  border-radius: 50%;
  animation: ehopPulse 1.8s infinite;
}

.ehop-footer-bottom {
  border-top: 1px solid var(--ehop-border-light);
  padding-top: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ehop-text-subtle);
  width: 100%;
}

.ehop-copyright {
  text-align: center;
  width: 100%;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .ehop-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 880px) {
  .ehop-brand-logo img,
  .ehop-brand-logo .custom-logo,
  .ehop-logo-img {
    height: 54px !important;
    max-height: 56px !important;
    max-width: 68px !important;
  }

  .ehop-nav-desktop,
  .ehop-header-actions .ehop-badge-pill,
  .ehop-header-actions .ehop-header-btn {
    display: none;
  }
  
  .ehop-mobile-toggle {
    display: flex;
  }
  
  .ehop-topbar-extra {
    display: none;
  }

  .ehop-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .ehop-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
