/* ==========================================================================
   REOSPARK HERBAL — GLOBAL STYLESHEET
   Synced with RSColor & TStyle / PjsStyle Design System
   ========================================================================== */

:root {
  --rs-primary-dark: #00386A;
  --rs-primary: #068B7B;
  --rs-primary-soft: #006C60;
  --rs-primary-light: #26A69A;
  --rs-primary-extra-soft: #EFF3FC;
  --rs-font-color: #003D67;
  --rs-success: #16AE26;
  --rs-warning: #EB8600;
  --rs-error: #D00E0E;
  --rs-grey: #ABA8A8;
  --rs-border: #E2E8F0;
  --rs-white: #FFFFFF;
}

/* ==========================================================================
   1. BASE RESET & TYPOGRAPHY
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--rs-white);
  color: var(--rs-font-color);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* Ensure TStyle / PjsStyle custom font names render cleanly in browser */
[style*="League"],
[style*="PlusJakartaSans"],
[style*="Gopher"] {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Custom Subtle Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--rs-primary);
}

/* ==========================================================================
   2. APP SHELL & CONTAINER LAYOUT
   ========================================================================== */
.main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.page-body {
  flex: 1;
  width: 100%;
}

.rs-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   3. HEADER NAVIGATION & PRODUCT CARD HOVERS
   ========================================================================== */
.rs-nav-link {
  transition: color 0.2s ease, background-color 0.2s ease;
}

.rs-nav-link:hover span {
  color: var(--rs-primary) !important;
}

.rs-product-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.rs-product-card:hover {
  transform: translateY(-4px);
  border-color: #B2DFDB !important;
  box-shadow: 0 14px 28px rgba(0, 56, 106, 0.08);
}

/* ==========================================================================
   4. WORKOBSERVERS STYLE EXPANDING HERO ACCORDION SLIDER
   ========================================================================== */
.hero-container {
  display: flex;
  width: 100%;
  max-width: 1240px;
  height: 465px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 12px;
}

.hero-tab {
  position: relative;
  flex: 0 0 72px;
  height: 100%;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  transition: flex 0.55s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 10px 26px rgba(0, 22, 45, 0.22);
}

.hero-tab.active {
  flex: 1;
  cursor: default;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 22px 48px rgba(0, 20, 42, 0.36);
}

.hero-active-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    rgba(0, 32, 64, 0.90) 0%,
    rgba(0, 56, 106, 0.58) 54%,
    rgba(6, 139, 123, 0.18) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 36px 32px 44px 32px;
}

.hero-active-caption {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-active-pill {
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #A7F3D0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.hero-active-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--rs-success);
  color: var(--rs-white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(22, 174, 38, 0.38);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-active-cta:hover {
  background: #139620;
  transform: translateY(-1px);
}

.hero-secondary-cta {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--rs-white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.hero-secondary-cta:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-nav-arrows {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.hero-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 32, 64, 0.55);
  backdrop-filter: blur(6px);
  color: var(--rs-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-arrow-btn:hover {
  background: var(--rs-primary);
  border-color: var(--rs-white);
}

/* Collapsed Vertical Tabs */
.tab-collapsed-content {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  background: linear-gradient(180deg, rgba(0, 28, 56, 0.78) 0%, rgba(0, 56, 106, 0.90) 100%);
  backdrop-filter: blur(4px);
  transition: background 0.25s ease;
}

.hero-tab:not(.active):hover .tab-collapsed-content {
  background: linear-gradient(180deg, rgba(6, 139, 123, 0.85) 0%, rgba(0, 56, 106, 0.94) 100%);
}

.tab-top-ring {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2.5px solid rgba(167, 243, 208, 0.9);
}

.vertical-text-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.vertical-tab-title {
  color: var(--rs-white);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.icon-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
  color: var(--rs-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-tab:not(.active):hover .icon-circle-btn {
  background: var(--rs-white);
  color: var(--rs-primary-dark);
  transform: scale(1.08);
}

/* Auto-Slide Progress Bar */
.progress-bar-container {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 4px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  overflow: hidden;
  z-index: 4;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rs-success), #A7F3D0);
  border-radius: 999px;
  animation: heroProgressFill 6s linear forwards;
}

.progress-bar-fill.paused {
  animation-play-state: paused;
}

@keyframes heroProgressFill {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* ==========================================================================
   5. RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================================================== */
.rs-desktop-only {
  display: flex;
}

.rs-mobile-only {
  display: none;
}

@media (max-width: 820px) {
  .rs-desktop-only {
    display: none !important;
  }

  .rs-mobile-only {
    display: inline-flex !important;
  }

  .hero-container {
    height: 390px;
    gap: 8px;
  }

  .hero-tab {
    flex: 0 0 44px;
    border-radius: 16px;
  }

  .hero-active-overlay {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px 18px 36px 18px;
  }

  .hero-nav-arrows {
    align-self: flex-end;
  }

  .vertical-tab-title {
    font-size: 12px;
  }

  .icon-circle-btn {
    width: 28px;
    height: 28px;
  }
}