/**
 * Hnextmove Base Styles & Modern Reset
 */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

body {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(212, 254, 43, 0.07), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 40%, rgba(255, 83, 42, 0.05), transparent 70%);
  background-attachment: fixed;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
    padding-top: var(--header-height);
  }
}

img, svg, video, canvas, iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Universal Grid & Flex containment protection */
.grid-2 > *, .grid-3 > *, .grid-4 > * {
  min-width: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container-narrow {
  max-width: 960px;
}

.container-fluid {
  max-width: 100%;
  padding-inline: var(--space-6);
}

@media (max-width: 768px) {
  .container,
  .container-narrow,
  .container-fluid {
    padding-inline: 16px !important;
  }
}

/* ==========================================================================
   Global Anti-Hyphenation & Word-Integrity System (Desktop & Mobile)
   Completely prevents words from breaking mid-syllable or mid-word.
   ========================================================================== */
*,
*::before,
*::after {
  -webkit-hyphens: none !important;
  -moz-hyphens: none !important;
  -ms-hyphens: none !important;
  hyphens: none !important;
}

/* Headings and UI titles MUST NEVER break words into pieces */
h1, h2, h3, h4, h5, h6,
.section-heading, .section-subheading,
.hero__title, .hero__subtitle,
.product-card__title, .product-card__indication,
.joint-lab-result-title, .joint-lab-option-title,
.btn, .badge, .nav-link, .mobile-nav-link,
.footer-heading, .footer-link,
.mega-cat-title, .mega-cat-desc,
.pdp-title, .cart-drawer-item-title,
.cookie-banner__title, .cookie-modal__header-title,
.cookie-cat-card__title {
  word-break: normal !important;
  overflow-wrap: normal !important;
  -webkit-hyphens: none !important;
  hyphens: none !important;
}

/* Paragraphs & body copy: line-break only at whitespace, never split syllables */
p, span, a, label, li, dt, dd {
  word-break: normal;
  overflow-wrap: break-word; /* wraps only if an entire unbroken token exceeds container width */
  -webkit-hyphens: none !important;
  hyphens: none !important;
}

/* Dedicated code/hash containers that legitimately require breaking */
code, pre, .tracking-searched-code, .break-all {
  word-break: break-all !important;
  overflow-wrap: anywhere !important;
}


/* Section Spacing */
.section {
  padding-block: var(--space-20);
  position: relative;
}

.section-sm {
  padding-block: var(--space-12);
}

.section-title-wrap {
  margin-bottom: var(--space-12);
  position: relative;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: rgba(212, 254, 43, 0.12);
  border: 1px solid var(--border-volt);
  color: var(--color-volt);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.section-badge.tangerine {
  background: rgba(255, 83, 42, 0.12);
  border-color: var(--border-tangerine);
  color: var(--color-tangerine);
}

.section-heading {
  font-size: var(--fs-3xl);
  font-weight: 800;
  margin-bottom: var(--space-3);
}

.section-subheading {
  font-size: var(--fs-md);
  color: var(--text-muted);
  max-width: 640px;
}

.text-center {
  text-align: center;
}

.text-center .section-subheading {
  margin-inline: auto;
}

/* Utilities */
.text-volt { color: var(--color-volt) !important; }
.text-tangerine { color: var(--color-tangerine) !important; }
.text-muted { color: var(--text-muted) !important; }
.bg-surface-1 { background-color: var(--bg-surface-1); }
.bg-surface-2 { background-color: var(--bg-surface-2); }
.glow-volt { filter: drop-shadow(0 0 16px rgba(212, 254, 43, 0.4)); }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-3);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-volt);
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================================================
   Mobile Typography & Proportional Scale Refinements (< 768px & < 480px)
   Prevents oversized text and ensures comfortable readability.
   ========================================================================== */
@media (max-width: 768px) {
  body {
    font-size: 14.5px;
    line-height: 1.55;
  }

  h1 {
    font-size: var(--fs-4xl) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.015em !important;
  }

  h2 {
    font-size: var(--fs-3xl) !important;
    line-height: 1.25 !important;
    letter-spacing: -0.015em !important;
  }

  h3 {
    font-size: var(--fs-2xl) !important;
    line-height: 1.3 !important;
  }

  h4 {
    font-size: var(--fs-xl) !important;
    line-height: 1.35 !important;
  }

  h5 {
    font-size: var(--fs-lg) !important;
    line-height: 1.4 !important;
  }

  h6 {
    font-size: var(--fs-md) !important;
    line-height: 1.4 !important;
  }

  .section-heading {
    font-size: var(--fs-3xl) !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
  }

  .section-subheading {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
  }
}

@media (max-width: 480px) {
  .section-heading {
    font-size: clamp(20px, 5.2vw, 24px) !important;
    line-height: 1.25 !important;
  }

  .section-subheading {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }
}

