/* =============================================================================
   components.css — Vynovis UI Components
   All reusable component styles for the Vynovis website
   ============================================================================= */

/*
 * =============================================================================
 * CANONICAL HTML — Copy these snippets verbatim into every page
 * =============================================================================
 *
 * ---- SITE HEADER / NAV -------------------------------------------------------
 *
 * <header class="site-header" role="banner">
 *   <nav class="nav container" aria-label="Main navigation">
 *     <a href="/" class="nav__logo" aria-label="Vynovis home">
 *       <img src="/images/logo.png" alt="Vynovis" width="140" height="40">
 *     </a>
 *     <button class="nav__toggle" aria-expanded="false" aria-controls="nav-menu" aria-label="Open navigation menu">
 *       <span class="nav__toggle-bar"></span>
 *       <span class="nav__toggle-bar"></span>
 *       <span class="nav__toggle-bar"></span>
 *     </button>
 *     <ul class="nav__list" id="nav-menu" role="list">
 *       <li class="nav__item nav__item--dropdown">
 *         <button class="nav__link nav__link--parent" aria-expanded="false" aria-haspopup="true">
 *           Products <span class="nav__chevron" aria-hidden="true">▾</span>
 *         </button>
 *         <ul class="nav__dropdown" role="list">
 *           <li><a href="/products/vynocal.html" class="nav__dropdown-link">VYNOCAL</a></li>
 *           <li><a href="/products/vynofol.html" class="nav__dropdown-link">VYNOFOL</a></li>
 *           <li><a href="/products/vynovit.html" class="nav__dropdown-link">VYNOVIT</a></li>
 *           <li><a href="/products/vynofer.html" class="nav__dropdown-link">VYNOFER</a></li>
 *         </ul>
 *       </li>
 *       <li class="nav__item"><a href="/about.html" class="nav__link">About</a></li>
 *       <li class="nav__item"><a href="/contact.html" class="nav__link">Contact</a></li>
 *     </ul>
 *   </nav>
 * </header>
 *
 * ---- SITE FOOTER -------------------------------------------------------------
 *
 * <footer class="site-footer" role="contentinfo">
 *   <div class="footer__main container">
 *     <div class="footer__brand">
 *       <a href="/" class="footer__logo" aria-label="Vynovis home">
 *         <img src="/images/logo.png" alt="Vynovis" width="120" height="34" loading="lazy">
 *       </a>
 *       <p class="footer__tagline">Not just medicine. A commitment to better health.</p>
 *     </div>
 *     <nav class="footer__nav" aria-label="Footer navigation">
 *       <div class="footer__nav-col">
 *         <h3 class="footer__nav-heading">Products</h3>
 *         <ul role="list">
 *           <li><a href="/products/vynocal.html">VYNOCAL</a></li>
 *           <li><a href="/products/vynofol.html">VYNOFOL</a></li>
 *           <li><a href="/products/vynovit.html">VYNOVIT</a></li>
 *           <li><a href="/products/vynofer.html">VYNOFER</a></li>
 *         </ul>
 *       </div>
 *       <div class="footer__nav-col">
 *         <h3 class="footer__nav-heading">Company</h3>
 *         <ul role="list">
 *           <li><a href="/about.html">About Us</a></li>
 *           <li><a href="/contact.html">Contact</a></li>
 *         </ul>
 *       </div>
 *     </nav>
 *   </div>
 *   <div class="footer__bottom container">
 *     <p class="footer__copyright">&copy; 2026 Vynovis. All rights reserved.</p>
 *     <p class="footer__disclaimer">This website is intended for healthcare professionals and patients. Always consult your doctor before starting any medication.</p>
 *   </div>
 * </footer>
 *
 * =============================================================================
 */

/* =============================================================================
   1. SITE HEADER & NAV
   ============================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--color-header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-header-border);
  transition:
    box-shadow var(--transition-base),
    background var(--transition-base),
    border-color var(--transition-base);
}

.site-header--scrolled {
  box-shadow: var(--shadow-elevated);
}

/* Nav wrapper */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-8);
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.nav__logo img {
  display: block;
  width: 174px;
  height: 56px;
  object-fit: contain;
  object-position: left center;
}

/* Responsive logo sizing */
@media (max-width: 1023px) {
  .nav__logo img {
    width: 150px;
    height: 48px;
  }
}

@media (max-width: 767px) {
  .nav__logo img {
    width: 110px;
    height: 31px;
  }
}

/* Nav list — mobile: hidden drawer, desktop: horizontal */
.nav__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;

  /* Mobile: off-screen drawer */
  position: fixed;
  inset: 72px 0 0 0;
  background-color: var(--color-surface);
  padding: var(--space-6) var(--container-padding);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  border-top: 1px solid var(--color-neutral-100);
  height: calc(100vh - 72px);
}

/* Open state (toggled by JS on .site-header) */
.site-header.nav--open .nav__list {
  transform: translateX(0);
}

/* Desktop layout */
@media (min-width: 1024px) {
  .nav {
    justify-content: flex-start;
  }

  .nav__list {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--space-2);
    transform: none;
    background: none;
    padding: 0;
    overflow: visible;
    border: none;
    inset: auto;
    margin-left: auto;
  }
}

/* Nav items */
.nav__item {
  position: relative;
}

/* Nav links — shared base */
.nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-primary);
  text-decoration: none;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--color-brand-primary);
  background-color: var(--color-neutral-50);
}

.nav__link--active,
.nav__link[aria-current="page"] {
  color: var(--color-brand-primary);
  font-weight: 600;
}

/* Parent dropdown button */
.nav__link--parent {
  color: var(--color-text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav__link--parent:hover {
  color: var(--color-brand-primary);
  transform: translateY(-1px);
}

.nav__link--parent[aria-expanded="true"] {
  color: var(--color-brand-primary);
}

/* Chevron icon */
.nav__chevron {
  font-size: 0.75em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  margin-left: var(--space-1);
}

.nav__link--parent[aria-expanded="true"] .nav__chevron {
  transform: rotate(180deg) scale(1.1);
  color: var(--color-brand-primary);
}

/* ---------------------------------------------------------------------------
   Dropdown menu
   --------------------------------------------------------------------------- */
.nav__dropdown {
  list-style: none;
  background-color: var(--color-dropdown-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-dropdown-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);

  /* Mobile: stack below parent */
  max-height: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(-10px);
}

.nav__item--dropdown[data-open] .nav__dropdown {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.nav__dropdown-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 126, 234, 0.1),
    transparent
  );
  transition: left 0.4s;
}

.nav__dropdown-link:hover::before {
  left: 100%;
}

.nav__dropdown-link:hover {
  color: var(--color-brand-primary);
  background-color: rgba(102, 126, 234, 0.05);
  transform: translateX(4px);
}

/* Desktop dropdown — absolute card */
@media (min-width: 1024px) {
  .nav__dropdown {
    position: absolute;
    top: calc(100% + var(--space-2));
    left: 0;
    min-width: 220px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-10px) scale(0.95);
    z-index: var(--z-nav);
  }

  .nav__item--dropdown[data-open] .nav__dropdown {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav__dropdown-link {
    padding: var(--space-3) var(--space-4);
  }
}

/* ---------------------------------------------------------------------------
   Hamburger toggle button
   --------------------------------------------------------------------------- */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
  transition: background-color var(--transition-fast);
  /* Mobile: hamburger sits after theme toggle on the far right */
  order: 10;
}

@media (min-width: 1024px) {
  .nav__toggle {
    order: 0;
  }
}

.nav__toggle:hover {
  background-color: var(--color-neutral-100);
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-neutral-900);
  border-radius: var(--radius-pill);
  transition:
    transform var(--transition-base),
    opacity var(--transition-base),
    width var(--transition-base);
  transform-origin: center;
}

/* Animate to X when open */
.site-header.nav--open .nav__toggle .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.nav--open .nav__toggle .nav__toggle-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.site-header.nav--open .nav__toggle .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hide hamburger on desktop */
@media (min-width: 1024px) {
  .nav__toggle {
    display: none;
  }
}

/* ---------------------------------------------------------------------------
   Theme toggle button (sun / moon)
   --------------------------------------------------------------------------- */
.nav__theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-primary);
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
  flex-shrink: 0;
  /* Mobile: push this cluster (theme toggle + hamburger) to the right */
  margin-left: auto;
  order: 9;
}

@media (min-width: 1024px) {
  .nav__theme-toggle {
    margin-left: 0;
    order: 0;
  }
}

.nav__theme-toggle:hover {
  background-color: var(--color-neutral-100);
  transform: rotate(15deg);
}

.theme-icon {
  width: 20px;
  height: 20px;
  display: block;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

/* Show sun in dark mode, moon in light mode */
.theme-icon--sun  { display: none; }
.theme-icon--moon { display: block; }

[data-theme="dark"] .theme-icon--sun  { display: block; }
[data-theme="dark"] .theme-icon--moon { display: none; }

/* =============================================================================
   2. SITE FOOTER
   ============================================================================= */

.site-footer {
  background-color: var(--color-neutral-900);
  color: var(--color-text-on-dark);
}

/* Footer is intentionally always dark — restore original neutral values in dark mode */
[data-theme="dark"] .site-footer {
  --color-neutral-900: #1A1A2E;
  --color-neutral-800: #2D2D44;
  --color-neutral-700: #4A4A6A;
  --color-neutral-500: #7A7A9A;
}

/* Main footer area */
.footer__main {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  padding-block: var(--space-16);
}

@media (min-width: 768px) {
  .footer__main {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-16);
  }
}

/* Brand column */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 300px;
}

.footer__logo {
  display: inline-block;
  text-decoration: none;
}

.footer__logo img {
  /* Invert logo for dark background — remove if logo is already suitable */
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-neutral-500);
  line-height: 1.6;
  max-width: 100%;
  font-style: italic;
}

/* Footer navigation */
.footer__nav {
  display: flex;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 120px;
}

.footer__nav-heading {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-brand-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  /* Override heading defaults */
  line-height: 1.4;
}

.footer__nav-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
}

.footer__nav-col a {
  font-size: var(--text-sm);
  color: var(--color-neutral-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__nav-col a:hover {
  color: var(--color-text-on-dark);
}

/* Footer bottom bar */
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-neutral-800);
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-8);
  }
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--color-neutral-500);
  max-width: 100%;
}

.footer__disclaimer {
  font-size: var(--text-xs);
  color: var(--color-neutral-700);
  line-height: 1.5;
  max-width: 60ch;
}

/* =============================================================================
   3. BUTTONS
   ============================================================================= */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
  outline: none;
  -webkit-user-select: none;
  user-select: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-brand-primary);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(1px);
}

/* Primary */
.btn--primary {
  background-color: var(--color-brand-primary);
  color: var(--color-text-on-dark);
  border-color: var(--color-brand-primary);
}

.btn--primary:hover {
  background-color: var(--color-brand-primary-dark);
  border-color: var(--color-brand-primary-dark);
  color: var(--color-text-on-dark);
  box-shadow: var(--shadow-card);
}

/* Secondary (outlined) */
.btn--secondary {
  background-color: transparent;
  color: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
}

.btn--secondary:hover {
  background-color: var(--color-brand-primary);
  color: var(--color-text-on-dark);
}

/* Ghost (for dark backgrounds) */
.btn--ghost {
  background-color: transparent;
  color: var(--color-text-on-dark);
  border-color: var(--color-text-on-dark);
}

.btn--ghost:hover {
  background-color: var(--color-text-on-dark);
  color: var(--color-brand-primary-dark);
}

.btn--ghost:focus-visible {
  outline-color: var(--color-text-on-dark);
}

/* Small size modifier */
.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
}

/* =============================================================================
   4. HERO
   ============================================================================= */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--space-10);
  padding-block: var(--space-16);
  min-height: 560px;
  background-color: var(--color-surface-muted);
  background-image: linear-gradient(
    135deg,
    var(--color-surface-muted) 0%,
    var(--color-neutral-100) 100%
  );
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    min-height: 640px;
    gap: var(--space-16);
  }
}

/* Content */
.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: 600px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-brand-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero__heading {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  color: var(--color-neutral-900);
  line-height: 1.15;
}

.hero__heading strong {
  color: var(--color-brand-primary);
  font-weight: 700;
}

.hero__subheading {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 55ch;
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* Image */
.hero__image {
  display: flex;
  align-items: center;
  justify-content: center;
  order: -1; /* Image above content on mobile */
}

@media (min-width: 768px) {
  .hero__image {
    order: 0;
  }
}

.hero__image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--radius-xl);
  object-fit: cover;
}

/* Overlay variant — image as background */
.hero--overlay {
  position: relative;
  color: var(--color-text-on-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(26, 26, 46, 0.8) 0%,
    rgba(26, 26, 46, 0.4) 60%,
    transparent 100%
  );
  z-index: 1;
}

.hero--overlay .hero__content {
  position: relative;
  z-index: 2;
}

.hero--overlay .hero__heading,
.hero--overlay .hero__subheading {
  color: var(--color-text-on-dark);
}

.hero--overlay .hero__image {
  display: none;
}

/* =============================================================================
   5. PRODUCT CARD
   ============================================================================= */

.product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.07),
    0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--color-card-border);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 16px 48px rgba(94, 58, 110, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Image area */
.product-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-6);
  background: linear-gradient(
    145deg,
    var(--color-surface-muted) 0%,
    var(--color-card-image-end) 100%
  );
  aspect-ratio: 4 / 3;
}

.product-card__image img {
  width: 100%;
  max-width: 240px;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.product-card:hover .product-card__image img {
  transform: scale(1.06) translateY(-4px);
}

/* Content */
.product-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  flex: 1;
}

.product-card__badge {
  display: inline-block;
  align-self: flex-start;
  padding: var(--space-1) var(--space-3);
  background-color: var(--color-brand-primary);
  color: var(--color-text-on-dark);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
}

.product-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-neutral-900);
  line-height: 1.3;
}

.product-card__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-brand-primary);
  text-decoration: none;
  transition:
    gap var(--transition-fast),
    color var(--transition-fast);
}

.product-card__cta::after {
  content: "\2192"; /* → */
}

.product-card__cta:hover {
  text-decoration: underline;
  gap: var(--space-3);
  color: var(--color-brand-primary-dark);
}

/* =============================================================================
   6. INGREDIENT TABLE / LIST
   ============================================================================= */

/* Table variant */
.ingredient-table {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: var(--text-sm);
}

.ingredient-table thead {
  background-color: var(--color-brand-primary);
  color: var(--color-text-on-dark);
}

.ingredient-table th {
  padding: var(--space-3) var(--space-5);
  text-align: left;
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ingredient-table td {
  padding: var(--space-3) var(--space-5);
  vertical-align: top;
}

.ingredient-table tbody tr:nth-child(even) {
  background-color: var(--color-surface-muted);
}

.ingredient-table tbody tr:nth-child(odd) {
  background-color: var(--color-surface);
}

.ingredient-table tbody tr:hover {
  background-color: var(--color-neutral-100);
}

.ingredient-table .ingredient-table__name {
  font-weight: 600;
  color: var(--color-text-primary);
}

.ingredient-table .ingredient-table__amount {
  color: var(--color-brand-primary);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

/* Mobile: stack columns */
@media (max-width: 599px) {
  .ingredient-table thead {
    display: none;
  }

  .ingredient-table tbody tr {
    display: flex;
    flex-direction: column;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--color-neutral-100);
  }

  .ingredient-table td {
    padding: var(--space-1) 0;
    text-align: left !important;
  }

  .ingredient-table .ingredient-table__amount {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-weight: 500;
  }
}

/* Definition list variant */
.ingredient-list {
  display: grid;
  gap: 0;
}

.ingredient-list__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-neutral-100);
}

.ingredient-list__item:nth-child(even) {
  background-color: var(--color-surface-muted);
}

.ingredient-list__item:last-child {
  border-bottom: none;
}

.ingredient-list__name {
  font-weight: 600;
  color: var(--color-text-primary);
}

.ingredient-list__amount {
  color: var(--color-brand-primary);
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 599px) {
  .ingredient-list__item {
    flex-direction: column;
    gap: var(--space-1);
  }

  .ingredient-list__amount {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-weight: 500;
  }
}

/* =============================================================================
   7. BENEFITS GRID
   ============================================================================= */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
}

.benefit-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

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

.benefit-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(155, 111, 174, 0.12); /* brand-primary-light at 12% */
  font-size: 1.5rem;
  flex-shrink: 0;
}

.benefit-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-brand-primary);
  flex-shrink: 0;
}

.benefit-card__heading {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-neutral-900);
  line-height: 1.3;
}

.benefit-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 100%;
}

/* =============================================================================
   8. SECTION HEADING
   ============================================================================= */

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  max-width: 680px;
  margin-inline: auto;
}

.section-heading__eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-brand-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-heading__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-neutral-900);
  line-height: 1.2;
}

.section-heading__lead {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 60ch;
}

/* Decorative underline */
.section-heading--underline .section-heading__title {
  position: relative;
  padding-bottom: var(--space-4);
}

.section-heading--underline .section-heading__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background-color: var(--color-brand-primary);
  border-radius: var(--radius-pill);
}

/* =============================================================================
   9. FAQ ACCORDION
   ============================================================================= */

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq__item {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-neutral-100);
}

.faq__item:last-child {
  border-bottom: none;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.faq__question:hover {
  background-color: var(--color-surface-muted);
  color: var(--color-brand-primary);
}

.faq__question:focus-visible {
  outline: 2px solid var(--color-brand-primary);
  outline-offset: -2px;
}

/* Chevron */
.faq__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-brand-primary);
  transition: transform var(--transition-base);
  font-size: 1.2rem;
}

.faq__item--open .faq__chevron {
  transform: rotate(180deg);
}

.faq__item--open .faq__question {
  color: var(--color-brand-primary);
  background-color: var(--color-surface-muted);
}

/* Answer — hidden by default, max-height transition */
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq__item--open .faq__answer {
  max-height: 800px;
}

.faq__answer-inner {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.faq__answer-inner p + p {
  margin-top: var(--space-4);
}

/* =============================================================================
   10. FORM COMPONENTS
   ============================================================================= */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

.form-label--required::after {
  content: " *";
  color: var(--color-error);
}

/* Shared input base */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background-color: var(--color-surface);
  border: 1.5px solid var(--color-neutral-300);
  border-radius: var(--radius-md);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--color-neutral-500);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 3px rgba(123, 79, 142, 0.12);
}

/* Select — custom chevron */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7A9A' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
  cursor: pointer;
}

/* Textarea */
.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

/* Error state */
.form-input--error,
.form-select--error,
.form-textarea--error {
  border-color: var(--color-error);
}

.form-input--error:focus,
.form-select--error:focus,
.form-textarea--error:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

/* Error & success messages */
.form-error {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-error);
}

.form-success {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  background-color: rgba(39, 174, 96, 0.08);
  border: 1px solid rgba(39, 174, 96, 0.25);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-success);
}

/* Help text */
.form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* =============================================================================
   11. BADGE
   ============================================================================= */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  line-height: 1.4;
}

.badge--primary {
  background-color: rgba(123, 79, 142, 0.12);
  color: var(--color-brand-primary);
}

.badge--success {
  background-color: rgba(39, 174, 96, 0.1);
  color: var(--color-success);
}

.badge--muted {
  background-color: var(--color-neutral-100);
  color: var(--color-text-muted);
}

.badge--solid {
  background-color: var(--color-brand-primary);
  color: var(--color-text-on-dark);
}

/* =============================================================================
   12. FOUNDERS GRID
   ============================================================================= */

.founders-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 640px) {
  .founders-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.founder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  padding: var(--space-8);
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* Photo or placeholder */
.founder-card__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--color-neutral-100);
}

.founder-card__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-color: var(--color-brand-primary);
  color: var(--color-text-on-dark);
  font-size: var(--text-2xl);
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.04em;
  user-select: none;
}

.founder-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-neutral-900);
  line-height: 1.3;
}

.founder-card__title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.founder-card__bio {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 45ch;
}

/* =============================================================================
   13. CTA BANNER
   ============================================================================= */

.cta-banner {
  background-color: var(--color-brand-primary);
  color: var(--color-text-on-dark);
  text-align: center;
  padding-block: 80px;
}

.cta-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  max-width: 640px;
  margin-inline: auto;
}

.cta-banner__heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-text-on-dark);
  line-height: 1.25;
}

.cta-banner__text {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
  max-width: 50ch;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-2);
}

/* =============================================================================
   14. PILLARS GRID
   ============================================================================= */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-6);
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-neutral-100);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.pillar:hover {
  border-color: var(--color-brand-primary-light);
  box-shadow: var(--shadow-card);
}

.pillar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: rgba(123, 79, 142, 0.08);
}

.pillar__icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-brand-primary);
}

.pillar__heading {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-neutral-900);
  line-height: 1.3;
}

.pillar__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* =============================================================================
   15. PAGE HERO (Interior pages)
   ============================================================================= */

.page-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding-block: var(--space-16);
  background: linear-gradient(
    135deg,
    var(--color-brand-primary) 0%,
    var(--color-brand-primary-dark) 100%
  );
  color: var(--color-text-on-dark);
  text-align: center;
  overflow: hidden;
}

.page-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  max-width: 640px;
}

.page-hero__eyebrow {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-brand-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.page-hero__heading {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--color-text-on-dark);
  line-height: 1.2;
}

.page-hero__subheading {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
  max-width: 50ch;
}

/* =============================================================================
   16. UPDATE BANNER (PWA new-version notification)
   ============================================================================= */

.update-banner {
  position: fixed;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-neutral-900);
  color: var(--color-text-on-dark);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-elevated);
  font-size: var(--text-sm);
  white-space: nowrap;
  transition: transform var(--transition-slow);
}

.update-banner--visible {
  transform: translateX(-50%) translateY(0);
}

.update-banner__btn {
  padding: var(--space-1) var(--space-4);
  background: var(--color-brand-primary);
  color: var(--color-text-on-dark);
  border: none;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.update-banner__btn:hover {
  background: var(--color-brand-primary-light);
}

.update-banner__close {
  background: none;
  border: none;
  color: var(--color-neutral-500);
  cursor: pointer;
  font-size: var(--text-base);
  line-height: 1;
  padding: 0 var(--space-1);
  transition: color var(--transition-fast);
}

.update-banner__close:hover {
  color: var(--color-text-on-dark);
}

/* =============================================================================
   17. DARK MODE — Premium component refinements
   ============================================================================= */

/* Header: deeper glass with brand-purple accent border */
[data-theme="dark"] .site-header--scrolled {
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(123, 79, 142, 0.08),
    inset 0 -1px 0 rgba(123, 79, 142, 0.25);
}

/* Product cards: rich dark gradient + brand glow on hover */
[data-theme="dark"] .product-card {
  background-image: linear-gradient(145deg, #0E0D22 0%, #13112C 100%);
}

[data-theme="dark"] .product-card:hover {
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(123, 79, 142, 0.2);
}

/* Product card image area: luxurious dark purple gradient */
[data-theme="dark"] .product-card__image {
  background: linear-gradient(145deg, #14112A 0%, var(--color-card-image-end) 100%);
}

/* Product card name and text */
[data-theme="dark"] .product-card__name {
  color: var(--color-neutral-900);
}

/* Form inputs: dark surface with purple accent border */
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea {
  background-color: var(--color-neutral-100);
  border-color: var(--color-neutral-300);
  color: var(--color-text-primary);
}

[data-theme="dark"] .form-input:hover,
[data-theme="dark"] .form-select:hover,
[data-theme="dark"] .form-textarea:hover {
  border-color: var(--color-neutral-500);
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-textarea:focus {
  border-color: var(--color-brand-primary-light);
  box-shadow: 0 0 0 3px rgba(155, 111, 174, 0.2);
}

/* Select chevron: lighter stroke for dark bg */
[data-theme="dark"] .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ADA6C0' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Dropdown: darker glass */
[data-theme="dark"] .nav__dropdown {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 32px rgba(123, 79, 142, 0.1);
}

/* Nav link hover bg in dark mode */
[data-theme="dark"] .nav__link:hover {
  background-color: rgba(123, 79, 142, 0.12);
}

/* Section headings: subtle purple shimmer under the underline */
[data-theme="dark"] .section-heading__title::after {
  opacity: 0.8;
  filter: brightness(1.2);
}

/* Trust/badge cards */
[data-theme="dark"] .trust-badge {
  background-color: rgba(123, 79, 142, 0.1);
  border: 1px solid rgba(123, 79, 142, 0.2);
}

/* Subtle glow on focus-visible in dark mode */
[data-theme="dark"] :focus-visible {
  outline-color: var(--color-brand-primary-light);
  box-shadow: 0 0 0 4px rgba(155, 111, 174, 0.2);
}
