/* ==========================================================================
   BIOPEP GLOBAL STYLE SHEET — MOBILE FIRST + STICKY FOOTER
   Version: 5.0.0 — Dark Navy / Teal Cyber Theme
   Author: Arcta Studio | BioPep (Pty) Ltd
   ========================================================================== */

/* ─── CSS RESET & BASE STYLES ───────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:focus-visible {
  outline: 3px solid #00d4a8; /* Teal focus ring */
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── DESIGN TOKENS & VARIABLES ───────────────────────── */
:root {
  /* ── New Primary Palette ── */
  --color-ink: #0a0f1a;           /* Main background */
  --color-ink-2: #1e2a3a;         /* Secondary depth */
  --color-text: #e8eef5;          /* Primary text */
  --color-text-muted: #8a9bb0;    /* Secondary / descriptions */
  
  --color-teal: #00d4a8;          /* Primary accent */
  --color-blue: #0066ff;          /* Electric blue */
  --color-purple: #7c3aed;        /* Violet */

  /* Core Colours */
  --color-primary: var(--color-teal);
  --color-primary-dark: #00b38f;
  --color-accent: var(--color-blue);
  --color-secondary: var(--color-purple);

  /* Surfaces */
  --surface-bg: var(--color-ink);
  --surface-card: var(--color-ink-2);
  --surface-elevated: #25344a;

  /* Text System */
  --text-primary: var(--color-text);
  --text-secondary: #c5d1e0;
  --text-muted: var(--color-text-muted);
  --text-accent: var(--color-teal);

  /* Glass & Effects */
  --glass-bg: rgba(30, 42, 58, 0.70);           /* rgba(20, 32, 50, 0.7) adjusted */
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-backdrop: blur(16px) saturate(180%);

  /* Gradients */
  --gradient-hero: linear-gradient(90deg, #00d4a8, #0066ff);
  --gradient-topbar: linear-gradient(to right, #00d4a8, #0066ff);

  /* Shadows & Radius */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 212, 168, 0.12);
  --shadow-lg: 0 10px 30px rgba(0, 102, 255, 0.15);
  --shadow-teal: 0 0 25px rgba(0, 212, 168, 0.25);
  --shadow-blue: 0 0 25px rgba(0, 102, 255, 0.18);

  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --transition-fast: 180ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 280ms cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xxs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Safe areas */
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* ─── FULL-HEIGHT FLEX LAYOUT ─────────────────────────── */
html, body {
  height: 100%;
  margin: 0;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--surface-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
  padding-top: var(--safe-area-top);
  padding-bottom: var(--safe-area-bottom);
  -webkit-tap-highlight-color: transparent;
}

/* Background decoration — radial glows */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 102, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(0, 212, 168, 0.08) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.05) 0%, transparent 60%);
  z-index: -2;
  pointer-events: none;
}

/* ─── MAIN CONTENT AREA ─────────────────── */
.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────── */
p, li, .hero-lead, .section-subtitle, .card__description, .product-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2.25rem, 8vw, 3.75rem);
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(1.75rem, 6vw, 2.8rem);
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -0.6rem;
  left: 0;
  width: 3.5rem;
  height: 3px;
  background: var(--gradient-hero);
  border-radius: var(--radius-full);
}

h3 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
h4 { font-size: clamp(1.25rem, 4vw, 1.8rem); }

/* Muted text */
.text-muted {
  color: var(--text-muted) !important;
}

/* ─── LAYOUT COMPONENTS ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: var(--space-md);
  overflow-x: hidden;
}

.section {
  padding-block: var(--space-xl);
  width: 100%;
}

/* Glass cards / content blocks */
.hero-content,
.section > .container,
.card__content,
.footer__content,
.modal-content,
.form-container {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  color: var(--text-primary);
  overflow-x: hidden;
  word-wrap: break-word;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
  max-width: 100%;
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  background: var(--gradient-hero) !important;
  color: #0a0f1a !important;           /* Dark text on bright gradient */
  box-shadow: 0 4px 20px rgba(0, 212, 168, 0.35);
  font-weight: 700;
}

.btn--primary:active {
  transform: scale(0.97);
  filter: brightness(1.05);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-blue);
}

.btn--secondary:hover {
  background: rgba(0, 102, 255, 0.1);
}

/* Cards */
.card {
  background: var(--surface-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: rgba(0, 212, 168, 0.25);
  box-shadow: var(--shadow-teal);
  transform: translateY(-4px);
}

/* Top bar accent line on hovered product cards */
.card:hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-topbar);
}

/* ─── FOOTER ─────────────────────────────────────────────────────────── */
.footer {
  background: var(--color-ink-2);
  color: var(--color-text);
  padding-block: var(--space-xl);
  margin-top: auto;
  width: 100%;
  border-top: 1px solid rgba(0, 212, 168, 0.15);
}

.footer * {
  color: inherit;
}

/* ─── TABLET + DESKTOP ENHANCEMENTS ──────────────────────────────────── */
@media (min-width: 768px) {
  .container {
    width: min(92%, 720px);
    padding-inline: var(--space-lg);
  }
  .section {
    padding-block: var(--space-2xl);
  }
  .hero-content,
  .section > .container,
  .card__content,
  .form-container {
    padding: clamp(1.5rem, 4vw, 2.5rem);
  }
  .btn {
    width: auto;
    padding: 0.95rem 2.25rem;
  }

  @media (hover: hover) {
    .btn--primary:hover:not(:disabled) {
      transform: translateY(-3px);
      box-shadow: 0 12px 30px rgba(0, 212, 168, 0.45);
    }
    .card:hover {
      transform: translateY(-8px);
      box-shadow: var(--shadow-lg);
    }
  }
}

@media (min-width: 1024px) {
  .container {
    width: min(92%, 1200px);
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn, button, a[role="button"] {
    min-height: 48px;
    min-width: 48px;
  }
  input[type="text"], input[type="email"], input[type="password"] {
    font-size: 16px;
  }
}