/* ==========================================================================
   DIGESTEP — COMPONENTS DESIGN SYSTEM
   Awwwards-Level Navigation, Buttons, Drawers, Modals & Footer
   ========================================================================== */

/* ==========================================================================
   Header & Global Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  transition: background-color 0.4s var(--ease-out-expo), 
              border-color 0.4s var(--ease-out-expo), 
              height 0.4s var(--ease-out-expo),
              backdrop-filter 0.4s var(--ease-out-expo);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  height: 72px;
  background-color: rgba(6, 11, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Brand Logo — Unaltered, Preserved in Native Aspect Ratio */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 102;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.02);
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-lime);
  background: rgba(141, 198, 63, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  border: 1px solid rgba(141, 198, 63, 0.25);
  display: none;
}

@media (min-width: 992px) {
  .brand-badge {
    display: inline-block;
  }
}

/* Desktop Nav Links */
.desktop-nav {
  display: none;
}

@media (min-width: 900px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 2.25rem;
  }
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--brand-lime);
  box-shadow: 0 0 8px var(--brand-lime);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover, .nav-link.is-active {
  color: var(--text-pure);
}

.nav-link:hover::after, .nav-link.is-active::after {
  width: 100%;
}

.nav-link-badge {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--brand-lime);
  margin-left: 0.25rem;
  vertical-align: super;
}

/* Header Action Right */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 640px) {
  .header-actions .btn {
    display: none;
  }
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  z-index: 102;
  cursor: pointer;
}

@media (min-width: 900px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--text-pure);
  transition: transform 0.35s var(--ease-out-expo), opacity 0.25s;
}

.mobile-toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  background-color: var(--brand-lime);
}

.mobile-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  background-color: var(--brand-lime);
}

/* Fullscreen Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(5, 8, 17, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 101;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter-x);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo);
}

.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-item {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.25rem);
  font-weight: 700;
  color: var(--text-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.mobile-nav-item span {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--brand-lime);
}

.mobile-nav-item:hover, .mobile-nav-item.is-active {
  color: var(--text-pure);
  transform: translateX(12px);
}

.mobile-drawer-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Buttons & Interactive CTAs
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.75rem 1.625rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out-expo), 
              box-shadow 0.25s var(--ease-out-expo), 
              background-color 0.25s, 
              border-color 0.25s;
}

.btn-primary {
  background-color: var(--brand-lime);
  color: #060B14;
  box-shadow: 0 0 25px rgba(141, 198, 63, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background-color: var(--brand-lime-vibrant);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(141, 198, 63, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-pure);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--brand-lime);
  color: var(--text-pure);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(141, 198, 63, 0.15);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

.btn-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease-out-expo);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* Shimmer Light Sweep Effect for Primary Buttons */
.btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s var(--ease-out-expo);
}

.btn-shimmer:hover::before {
  left: 140%;
}

/* ==========================================================================
   Interactive Product Cards & Showcase Blocks
   ========================================================================== */

.product-monolith-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), 
              border-color 0.4s var(--ease-out-expo), 
              box-shadow 0.4s var(--ease-out-expo);
}

.product-monolith-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(141, 198, 63, 0.07) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.product-monolith-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-lime);
  box-shadow: var(--shadow-card), var(--glow-lime);
}

.product-monolith-card:hover::before {
  opacity: 1;
}

/* Corner Technical Markings (+ [01]) */
.card-coord {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.product-monolith-card:hover .card-coord {
  color: var(--brand-lime);
}

/* Bottle Image Container inside Card */
.monolith-image-wrap {
  position: relative;
  width: 100%;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
}

.monolith-bottle-img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.65));
  transition: transform 0.5s var(--ease-out-expo), filter 0.5s;
}

.product-monolith-card:hover .monolith-bottle-img {
  transform: scale(1.06) rotate(-2deg);
  filter: drop-shadow(0 25px 40px rgba(141, 198, 63, 0.25)) drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7));
}

/* Card Specs Pill List */
.spec-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 1.75rem;
}

.spec-pill {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.625rem;
  border-radius: 2px;
}

/* ==========================================================================
   Interactive Asset Multi-View Modal / Formula Inspector
   ========================================================================== */

.asset-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(4, 7, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out-expo);
}

.asset-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), var(--glow-lime);
  position: relative;
  transform: scale(0.96) translateY(20px);
  transition: transform 0.4s var(--ease-out-expo);
}

.asset-modal.is-active .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(11, 22, 44, 0.5);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-pure);
}

.modal-subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--brand-lime);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-pure);
  border-color: var(--brand-lime);
  background: rgba(141, 198, 63, 0.15);
}

/* Modal Multi-View Tab Switcher */
.modal-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: rgba(8, 14, 26, 0.7);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.modal-tab-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.85rem;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.modal-tab-btn:hover {
  color: var(--text-pure);
  border-color: var(--border-medium);
}

.modal-tab-btn.is-active {
  color: var(--brand-lime);
  background: rgba(141, 198, 63, 0.12);
  border-color: var(--border-lime);
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr 1fr;
  }
}

.modal-asset-display {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1.5rem;
  min-height: 380px;
}

.modal-asset-img {
  max-height: 440px;
  max-width: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.modal-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-info-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Trust & Scientific Verification Standards Badges
   ========================================================================== */

.trust-standards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.trust-standard-badge {
  background: rgba(12, 20, 38, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  position: relative;
  transition: transform 0.3s var(--ease-out-expo), border-color 0.3s;
}

.trust-standard-badge:hover {
  transform: translateY(-4px);
  border-color: var(--border-lime);
}

.badge-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: rgba(141, 198, 63, 0.1);
  border: 1px solid rgba(141, 198, 63, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-lime);
}

.badge-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-pure);
}

.badge-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
  background-color: #03060C;
  border-top: 1px solid var(--border-subtle);
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: 3rem;
  position: relative;
  z-index: 10;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3.5rem;
  }
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.footer-distributor-info {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-distributor-info strong {
  color: var(--text-pure);
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-lime);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-link:hover {
  color: var(--text-pure);
  transform: translateX(4px);
}

/* FDA Disclaimer Box (Mandatory & Professional for Digestive Formulations) */
.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 3rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8125rem;
  color: var(--text-dim);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}
