/* ==========================================================================
   LYCUS PHARMA — Premium 2026 UI Upgrade Layer
   Loaded after components.css — enhances without rebuilding from scratch
   ========================================================================== */

/* ─── Page Loader ─────────────────────────────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #2E3192 0%, #232575 50%, #1C1E5C 100%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #D01090;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Back to Top ─────────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition-base), visibility var(--transition-base),
              transform var(--transition-base), background var(--transition-fast);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-secondary);
}

/* ─── Transparent Navbar ──────────────────────────────────────────────────── */
.navbar {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background-color var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
}

.navbar.is-scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.97);
}

.navbar--transparent {
  position: fixed;
  left: 0;
  right: 0;
  background-color: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.navbar--transparent .navbar__link {
  color: rgba(255, 255, 255, 0.88);
}

.navbar--transparent .navbar__link:hover,
.navbar--transparent .navbar__link--active {
  color: #fff;
  border-bottom-color: var(--color-secondary);
}

.navbar--transparent .navbar__mobile-toggle {
  color: #fff;
}

.navbar--transparent .btn-primary {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.navbar--transparent.is-scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--color-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.navbar--transparent.is-scrolled .navbar__link {
  color: var(--color-text-muted);
}

.navbar--transparent.is-scrolled .navbar__link:hover,
.navbar--transparent.is-scrolled .navbar__link--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-secondary);
}

.navbar--transparent.is-scrolled .navbar__mobile-toggle {
  color: var(--color-primary);
}

body.has-transparent-nav {
  padding-top: 0;
}

body.has-transparent-nav main {
  margin-top: 0;
}

.navbar__logo {
  height: 44px;
}

.navbar__nav {
  gap: var(--space-5);
}

.navbar__link {
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 6px 0;
}

.navbar__mobile-menu {
  background: linear-gradient(160deg, #2E3192 0%, #232575 100%);
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  border-radius: var(--radius-md);
  letter-spacing: 0.04em;
  padding: 14px 28px;
  box-shadow: none;
  transition: background-color var(--transition-fast), color var(--transition-fast),
              border-color var(--transition-fast), box-shadow var(--transition-fast),
              transform var(--transition-fast);
}

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

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(46, 49, 146, 0.35);
}

.btn-secondary:hover {
  box-shadow: 0 8px 24px rgba(208, 16, 144, 0.35);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 12px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 13px;
}

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero-slider {
  min-height: auto;
  background: linear-gradient(120deg, #232575 0%, #2E3192 55%, #3a3db0 100%);
  border-bottom: none;
}

.hero-slide {
  display: flex;
  align-items: stretch;
}

.hero-slide.is-active {
  min-height: auto;
  background: transparent;
}

.hero-slide__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  width: 100%;
  min-height: min(78vh, 720px);
  max-width: var(--container-max);
  margin: 0 auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-3);
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  max-width: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.hero-slide__inner {
  max-width: 560px;
  margin: 0;
  text-align: left;
  padding-top: 0;
  animation: heroContentIn 0.8s ease 0.15s both;
}

.hero-slide__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border-radius: var(--radius-xl);
  border: none;
  box-shadow: none;
  animation: heroMediaIn 0.8s ease 0.2s both;
}

.hero-slide__product {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-xl);
  filter: none;
}

/* Hide legacy overlay/bg image approach */
.hero-slide__bg,
.hero-slide__overlay {
  display: none !important;
}

@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroMediaIn {
  from { opacity: 0; transform: translateX(24px) scale(0.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.hero-slide__eyebrow {
  background-color: rgba(208, 16, 144, 0.22);
  border: 1px solid rgba(245, 163, 214, 0.45);
  color: #fff;
}

.hero-slide__title {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-slide__title--accent {
  color: #F5A3D6;
  background: linear-gradient(90deg, #F5A3D6, #E83AA8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-slide__subtitle {
  max-width: 500px;
  margin-left: 0;
  margin-right: 0;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-slide__actions {
  justify-content: flex-start;
}

.hero-nav {
  width: 52px;
  height: 52px;
  background-color: rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}

.hero-nav:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: translateY(-50%) scale(1.05);
}

.hero-dot.is-active {
  background-color: var(--color-secondary);
  width: 28px;
  border-radius: var(--radius-pill);
}

/* ─── Cards & Sections ────────────────────────────────────────────────────── */
.section-header__eyebrow {
  color: var(--color-secondary);
}

.section-header__title {
  letter-spacing: -0.025em;
}

.product-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  background: #fff;
  height: 100%;
  transition: box-shadow var(--transition-base), transform var(--transition-base),
              border-color var(--transition-base);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(208, 16, 144, 0.35);
  transform: translateY(-6px);
}

.product-card__image-wrap {
  background: linear-gradient(180deg, #F7F7FB 0%, #EEEFF8 100%);
  padding: 0;
}

.product-card__name {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.product-card__badge.badge-approved,
.badge-approved {
  background: var(--color-accent) !important;
}

.tile-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.tile-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.tile-card__overlay {
  background: linear-gradient(180deg,
    rgba(35, 37, 117, 0.15) 0%,
    rgba(46, 49, 146, 0.85) 100%) !important;
}

.tile-card--cta {
  background: linear-gradient(145deg, var(--color-primary), var(--color-secondary));
  border: none;
}

.tile-card--cta .tile-card__cta-icon,
.tile-card--cta .tile-card__cta-title,
.tile-card--cta .tile-card__cta-desc {
  color: #FFFFFF;
}

.tile-card--cta .tile-card__cta-desc {
  opacity: 0.9;
}

.milestone-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.milestone-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.milestone-card--dark {
  background: linear-gradient(145deg, #2E3192, #232575) !important;
}

.info-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.info-card__icon-wrap {
  background: var(--color-primary-light) !important;
  color: var(--color-primary) !important;
  border-radius: 14px;
}

.info-card__icon-wrap--alt,
.info-card__icon-wrap--secondary {
  background: rgba(208, 16, 144, 0.12) !important;
  color: var(--color-secondary) !important;
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.page-hero {
  background: linear-gradient(135deg, #F7F7FB 0%, #EEEFF8 50%, #F8E7F2 100%);
  min-height: 420px;
  border-bottom: none;
  padding-top: calc(var(--nav-height) + var(--space-8));
}

.page-hero__bg {
  opacity: 0.35;
  mix-blend-mode: multiply;
}

.page-hero__eyebrow {
  color: var(--color-secondary);
  border-bottom-color: var(--color-secondary);
}

.page-hero__title {
  letter-spacing: -0.03em;
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.stat-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-3);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-card__value {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Product search */
.products-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.product-search {
  position: relative;
  flex: 1;
  max-width: 360px;
}

.product-search__input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.product-search__input:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(208, 16, 144, 0.15);
}

.product-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.filters-heading__title {
  color: var(--color-text-heading);
}

.filter-accordion {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.form-check__input:checked {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}

/* Forms */
.form-control {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 12px 16px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(208, 16, 144, 0.15);
  outline: none;
}

.form-label {
  font-weight: 550;
  font-size: var(--text-sm);
  color: var(--color-text-heading);
  margin-bottom: 8px;
}

.contact-info-item__icon {
  color: var(--color-secondary);
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  min-height: 280px;
  background: var(--color-bg-surface);
}

.map-embed iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

.contact-cta-band {
  background: linear-gradient(120deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.contact-cta-band h3 {
  color: #fff;
  margin-bottom: 8px;
}

.contact-cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* ─── Footer Redesign ─────────────────────────────────────────────────────── */
.footer {
  background: linear-gradient(165deg, #1A1B4A 0%, #232575 50%, #1C1E5C 100%);
  border-top: none;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
}

.footer__top {
  padding-top: var(--space-10);
  padding-bottom: var(--space-8);
}

.footer__brand-logo {
  max-width: 160px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer__brand-desc {
  color: rgba(255, 255, 255, 0.65);
  max-width: 280px;
  line-height: 1.7;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.footer__social-link:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
}

.footer__col-title {
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.footer__col-link {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer__col-link:hover {
  color: #fff;
  padding-left: 4px;
}

.footer__contact-icon {
  color: var(--color-secondary);
}

.footer__newsletter {
  margin-top: var(--space-3);
}

.footer__newsletter-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.footer__newsletter-form {
  display: flex;
  gap: 8px;
}

.footer__newsletter-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.footer__newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.footer__newsletter-input:focus {
  outline: none;
  border-color: var(--color-secondary);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.footer__cert-badge {
  border-radius: var(--radius-sm);
  border-color: rgba(208, 16, 144, 0.35);
  color: rgba(255, 255, 255, 0.7);
}

/* Quote card */
.quote-card {
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-secondary);
}

/* Process steps */
.process-step__num {
  color: var(--color-secondary) !important;
}

/* ─── Responsive polish ───────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-slide__grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
    gap: var(--space-4);
  }

  .hero-slide__inner {
    text-align: center;
    margin: 0 auto;
    max-width: 560px;
  }

  .hero-slide__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-slide__actions {
    justify-content: center;
  }

  .hero-slide__media {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
    background: transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: none;
  }

  .hero-slide__product {
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 768px) {
  .stats-strip {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
  }

  .stat-card__value {
    font-size: 28px;
  }

  .hero-slider,
  .hero-slide.is-active {
    min-height: auto;
  }

  .products-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .product-search {
    max-width: none;
  }

  .footer__newsletter-form {
    flex-direction: column;
  }

  .contact-cta-band {
    text-align: center;
    justify-content: center;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .stats-strip {
    grid-template-columns: 1fr;
  }
}

.progress-bar__fill {
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
}

.products-page-wrap {
  padding-top: calc(var(--nav-height) + var(--space-6));
  padding-bottom: var(--space-8);
}

.badge-phase {
  background: var(--color-phase-bg) !important;
  color: var(--color-phase-text) !important;
}

/* Legal / policy content pages */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: var(--text-h2);
  margin-top: 0;
  margin-bottom: var(--space-3);
  color: var(--color-primary);
}

.legal-content h2 {
  font-size: var(--text-h3);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
  color: var(--color-primary);
}

.legal-content h2:first-of-type {
  margin-top: var(--space-4);
}

.legal-content h3 {
  font-size: var(--text-h4);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-2);
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: var(--space-3);
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}


@media (prefers-reduced-motion: reduce) {
  .hero-slide__inner,
  .hero-slide__media {
    animation: none;
  }

  .page-loader__spinner {
    animation: none;
  }

  .btn:hover {
    transform: none;
  }
}

/* --- Final audit polish ---------------------------------------------------- */
.navbar {
  height: 64px;
}

.navbar__logo {
  height: 38px;
}

.navbar.is-scrolled {
  box-shadow: 0 4px 20px rgba(46, 49, 146, 0.08);
}

.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slider::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.35) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 20%, rgba(245,163,214,0.45) 0 2px, transparent 3px),
    radial-gradient(circle at 40% 70%, rgba(255,255,255,0.25) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 85% 65%, rgba(245,163,214,0.35) 0 2px, transparent 3px),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.12' stroke-width='1'%3E%3Cpath d='M40 8l28 16v32L40 72 12 56V24z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, auto, auto, auto, 80px 80px;
  animation: moleculeDrift 28s linear infinite;
}

.hero-slide__grid {
  position: relative;
  z-index: 1;
}

.hero-nav,
.hero-dots,
.hero-counter {
  position: absolute;
  z-index: 20;
  pointer-events: auto;
}

.hero-nav {
  top: 50%;
  transform: translateY(-50%);
}

.hero-nav--prev {
  left: var(--space-3);
}

.hero-nav--next {
  right: var(--space-3);
}

.hero-dots {
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
}

.hero-counter {
  bottom: var(--space-4);
  right: var(--space-3);
}

@keyframes moleculeDrift {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 40px -30px, -20px 40px, 30px 20px, -40px -20px, 80px 40px; }
}

.product-card {
  cursor: pointer;
}

.product-card:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
}

/* Product modal */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.product-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.product-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 27, 74, 0.55);
  backdrop-filter: blur(4px);
}

.product-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(90vh, 860px);
  overflow: auto;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.28s ease;
}

.product-modal.is-open .product-modal__dialog {
  transform: translateY(0) scale(1);
}

.product-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-surface);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.product-modal__close:hover {
  background: var(--color-secondary);
  color: #fff;
}

.product-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-4);
  padding: var(--space-5);
}

.product-modal__media {
  background: linear-gradient(180deg, #F7F7FB, #EEEFF8);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.product-modal__img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.product-modal__category {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-2);
}

.product-modal__title {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: var(--space-2);
  color: var(--color-primary);
}

.product-modal__desc {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.product-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.contact-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.contact-mini-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
}

.contact-mini-card__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.contact-mini-card__value {
  color: var(--color-text-heading);
  font-weight: 500;
  margin: 0;
}

.contact-mini-card__value a {
  color: var(--color-primary);
}

.contact-mini-card__value a:hover {
  color: var(--color-secondary);
}

.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.cert-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--text-sm);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .product-modal__grid {
    grid-template-columns: 1fr;
    padding: var(--space-3);
  }

  .product-modal__media {
    min-height: 200px;
  }
}

/* Accessibility + modal hidden state */
html {
  scroll-behavior: smooth;
}

.product-modal[hidden] {
  display: none !important;
}

.product-modal.is-open[hidden] {
  display: flex !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.navbar__link:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
}

.contact-mini-card__value i {
  color: var(--color-secondary);
  margin-right: 6px;
}

/* --- Zuri Pharma brand chrome -------------------------------------------- */
.navbar__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.navbar__brand-tagline {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  text-transform: none;
  margin-top: 2px;
}

.navbar__brand-text--mobile .navbar__brand-name {
  font-size: 18px;
}

.footer__brand-name {
  font-size: var(--text-h4);
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.footer__brand-tagline {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-2);
}

.form-disclaimer {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.form-notice {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
}

.form-notice--error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

.form-notice--success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}

.form-error {
  display: block;
  color: #DC2626;
  font-size: var(--text-xs);
  margin-top: 6px;
}

.form-control.is-invalid {
  border-color: #DC2626;
}

@media (max-width: 1100px) {
  .navbar__nav {
    gap: var(--space-2);
  }

  .navbar__link {
    font-size: 10px;
    letter-spacing: 0.04em;
  }
}

/* --- Alignment audit ------------------------------------------------------- */

/* Match Bootstrap containers to the design-system width */
.container,
.container-lg,
.container-xl,
.container-xxl {
  max-width: 1200px;
}

/* Sticky header: grow with two-line brand, don't clip */
.navbar {
  height: auto;
  min-height: 72px;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 72px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.navbar__brand {
  flex: 0 1 auto;
  min-width: 0;
}

.navbar__nav {
  flex: 1 1 auto;
  justify-content: center;
}

.navbar__actions {
  flex: 0 0 auto;
}

.navbar__actions .btn-sm {
  padding: 10px 18px;
  white-space: nowrap;
}

.navbar__brand-name {
  font-size: 20px;
}

.navbar__brand-tagline {
  white-space: nowrap;
}

/* Mobile overlay brand must be readable on dark background */
.navbar__mobile-menu .navbar__brand-name {
  color: #fff;
}

.navbar__mobile-menu .navbar__brand-tagline {
  color: rgba(255, 255, 255, 0.72);
}

/* Show hamburger before 6-item nav collides with brand + CTA */
@media (max-width: 1199px) {
  .navbar__nav,
  .navbar__actions .btn {
    display: none !important;
  }

  .navbar__mobile-toggle {
    display: flex !important;
  }

  .navbar__mobile-menu {
    display: flex !important;
  }
}

@media (min-width: 1200px) {
  .navbar__mobile-toggle {
    display: none !important;
  }

  .navbar__mobile-menu {
    display: none !important;
  }
}

/* Hero content uses the same horizontal inset as .container */
.hero-slide__grid {
  padding-left: 12px;
  padding-right: 12px;
}

/* Sticky header already occupies space — don't add a second nav offset */
.page-hero {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  min-height: 0;
}

.products-page-wrap {
  padding-top: var(--space-6);
  padding-bottom: var(--space-8);
}

/* Footer columns share full width */
.footer__brand-desc {
  max-width: none;
}

.footer__brand {
  gap: 8px;
}

.footer__bottom {
  align-items: center;
}

@media (max-width: 768px) {
  .navbar__brand-tagline {
    white-space: normal;
    max-width: 180px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .hero-slide__grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .masonry-grid__item--wide {
    grid-column: span 1;
  }
}

@media (max-width: 992px) {
  .masonry-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
  }

  .masonry-grid__item--wide,
  .masonry-grid__item--tall {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .masonry-grid {
    grid-template-columns: 1fr;
  }

  .masonry-grid__item--wide,
  .masonry-grid__item--tall {
    grid-column: span 1;
  }
}

/* Products infinite scroll */
.product-grid__item--hidden {
  display: none !important;
}

.product-grid__item--visible {
  animation: productFadeIn 0.45s ease both;
}

@keyframes productFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.products-load-wrap {
  width: 100%;
  padding-top: var(--space-4);
}

.products-load-sentinel {
  width: 100%;
  height: 1px;
}

.products-load-status {
  margin: var(--space-3) 0 0;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .product-grid__item--visible {
    animation: none;
  }
}
