/*
 Theme Name: Divi Child — Lipogon Lab Series
 Theme URI: https://lipogonlabseries.co.za
 Description: Child theme for Lipogon Lab Series. All custom CSS lives here. Never edit the Divi parent theme.
 Author: Esserri Brand Group and Manufacturing (Pty) Ltd
 Author URI: https://lipogonlabseries.co.za
 Template: Divi
 Version: 1.0.0
 Text Domain: divi-child
*/

/* ============================================================
   LIPOGON LAB SERIES — MASTER CSS
   All custom styles go below this line.
   DO NOT edit the Divi parent theme. Ever.
   Version: 1.0.0 · March 2026
   ============================================================ */

/* ── COLOUR TOKENS ─────────────────────────────────────────── */
:root {
  --navy:        #003471;
  --teal:        #00C8AA;
  --magenta:     #ED1651;
  --orange:      #FF7A00;
  --light-blue:  #36A7E9;
  --yellow:      #FFF008;
  --green:       #62BB46;
  --white:       #FFFFFF;
  --body-grey:   #4A5568;
  --border:      #D8E4F0;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
body,
h1, h2, h3, h4, h5, h6,
p, a, button, input, select, textarea {
  font-family: "DM Sans", sans-serif !important;
}

h1 {
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

h3 {
  font-weight: 700;
}

p, .et_pb_text {
  font-weight: 300;
  line-height: 1.7;
}

/* Eyebrow label style */
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ── ANIMATION TOKENS ───────────────────────────────────────── */
:root {
  --dur-micro:    80ms;
  --dur-fast:     150ms;
  --dur-normal:   250ms;
  --dur-medium:   350ms;
  --dur-slow:     500ms;
  --dur-cinematic: 800ms;
  --ease-default:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:    cubic-bezier(0.4, 0, 0.6, 1);
}

/* Respect reduced motion — always */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── IRIDESCENT LINE ────────────────────────────────────────── */
.iris-line {
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--navy)      0%,
    var(--teal)      18%,
    var(--light-blue) 32%,
    var(--magenta)   52%,
    var(--orange)    70%,
    var(--yellow)    85%,
    var(--green)     100%
  );
}

/* ── LIQUID GLASS ORBS ──────────────────────────────────────── */
.liquid-glass-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.liquid-orb {
  position: absolute;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  filter: blur(48px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}

.orb-teal   { background: var(--teal); }
.orb-magenta { background: var(--magenta); }
.orb-orange  { background: var(--orange); }

@keyframes morphOrb1 {
  0%,100% { border-radius: 60% 40% 30% 70%/60% 30% 70% 40%; transform: translate(0,0) scale(1); }
  33%     { border-radius: 30% 70% 70% 30%/30% 30% 70% 70%; transform: translate(20px,-15px) scale(1.06); }
  66%     { border-radius: 50% 50% 20% 80%/50% 70% 30% 50%; transform: translate(-10px,10px) scale(0.95); }
}
@keyframes morphOrb2 {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(-20px,25px) scale(1.1); }
}
@keyframes morphOrb3 {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  50%     { transform: translate(15px,-20px) rotate(20deg) scale(1.08); }
}

/* ── SCROLL ENTRANCE ANIMATIONS ────────────────────────────── */
[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity  var(--dur-slow) var(--ease-default),
    transform var(--dur-slow) var(--ease-default);
}
[data-animate="fade-up"].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-stagger] > * {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition:
    opacity   var(--dur-normal) var(--ease-default),
    transform var(--dur-normal) var(--ease-spring);
}
[data-stagger].visible > *:nth-child(1) { transition-delay: 0ms;   opacity: 1; transform: none; }
[data-stagger].visible > *:nth-child(2) { transition-delay: 60ms;  opacity: 1; transform: none; }
[data-stagger].visible > *:nth-child(3) { transition-delay: 120ms; opacity: 1; transform: none; }
[data-stagger].visible > *:nth-child(4) { transition-delay: 180ms; opacity: 1; transform: none; }
[data-stagger].visible > *:nth-child(5) { transition-delay: 240ms; opacity: 1; transform: none; }
[data-stagger].visible > *:nth-child(6) { transition-delay: 300ms; opacity: 1; transform: none; }
[data-stagger].visible > *:nth-child(7) { transition-delay: 360ms; opacity: 1; transform: none; }
[data-stagger].visible > *:nth-child(8) { transition-delay: 420ms; opacity: 1; transform: none; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  background: var(--teal);
  color: var(--navy);
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform  var(--dur-fast) var(--ease-spring),
    box-shadow var(--dur-fast) var(--ease-default);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,200,170,0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-default);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* ── RANGE COLOUR BADGES ────────────────────────────────────── */
.badge-trimfx   { background: var(--magenta);    color: var(--white); }
.badge-firmfx   { background: var(--teal);        color: var(--navy); }
.badge-fusion   { background: var(--green);       color: var(--white); }
.badge-xtreme   { background: var(--orange);      color: var(--white); }
.badge-shakes   { background: var(--light-blue);  color: var(--white); }
.badge-standalone { background: var(--navy);      color: var(--white); }

.range-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}

/* ── PRODUCT CARDS ──────────────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,52,113,0.06);
  overflow: hidden;
  transition:
    transform  var(--dur-normal) var(--ease-default),
    box-shadow var(--dur-normal) var(--ease-default);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,52,113,0.14);
}
.product-card .card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.product-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-normal) var(--ease-default);
}
.product-card:hover .card-image img {
  transform: scale(1.04);
}

/* ── ACCORDIONS ─────────────────────────────────────────────── */
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: border-left var(--dur-fast) var(--ease-default);
}
.accordion-header.open {
  border-left: 3px solid var(--teal);
  padding-left: 17px;
}
.accordion-chevron {
  transition: transform var(--dur-normal) var(--ease-in-out);
}
.accordion-header.open .accordion-chevron {
  transform: rotate(180deg);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-medium) var(--ease-in-out),
              opacity    var(--dur-medium) var(--ease-in-out);
  opacity: 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--body-grey);
  padding: 0 20px;
}
.accordion-content.open {
  max-height: 1000px;
  opacity: 1;
  padding: 16px 20px;
}

/* ── MOBILE NAV DRAWER ──────────────────────────────────────── */
.et_mobile_menu_container {
  position: fixed;
  top: 0; left: -100vw;
  width: 100vw; height: 100vh;
  background: var(--navy);
  z-index: 99999;
  transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}
.et_mobile_menu_container.open {
  left: 0;
}
body.mobile-menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* ── STICKY MOBILE ATC BAR ──────────────────────────────────── */
.sticky-atc-bar {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  height: 64px;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0,52,113,0.12);
  z-index: 9998;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  transform: translateY(100%);
  transition: transform var(--dur-medium) var(--ease-out-expo);
}
.sticky-atc-bar.visible {
  transform: translateY(0);
}

/* ── FORMS ──────────────────────────────────────────────────── */
input, select, textarea {
  font-size: 16px !important; /* Prevents iOS zoom on focus */
  border: 1px solid var(--border);
  border-radius: 8px;
  transition:
    border-color var(--dur-fast) var(--ease-default),
    box-shadow   var(--dur-fast) var(--ease-default);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,200,170,0.2);
}
input.error, select.error, textarea.error {
  border-color: var(--magenta);
  animation: formShake 300ms ease;
}
@keyframes formShake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-4px); }
  40%     { transform: translateX(4px); }
  60%     { transform: translateX(-3px); }
  80%     { transform: translateX(3px); }
}

/* ── WOOCOMMERCE OVERRIDES ──────────────────────────────────── */
/* Force DM Sans on all WooCommerce elements */
.woocommerce,
.woocommerce-page,
.woocommerce button,
.woocommerce input,
.woocommerce select {
  font-family: "DM Sans", sans-serif !important;
}

/* Add to Cart button */
.single_add_to_cart_button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button {
  font-family: "DM Sans", sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  border-radius: 8px !important;
  height: 52px !important;
  transition:
    transform  var(--dur-fast) var(--ease-spring),
    box-shadow var(--dur-fast) var(--ease-default) !important;
}
.single_add_to_cart_button:hover {
  transform: translateY(-2px) !important;
}

/* Price display */
.woocommerce .price {
  font-family: "DM Sans", sans-serif !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
}
.woocommerce .price del {
  color: #9AA5B4 !important;
}
.woocommerce .price ins {
  color: var(--magenta) !important;
  text-decoration: none !important;
}

/* ── CHECKOUT ───────────────────────────────────────────────── */
#place_order,
.woocommerce #payment #place_order {
  background: var(--navy) !important;
  color: var(--white) !important;
  font-family: "DM Sans", sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  height: 56px !important;
  border-radius: 8px !important;
  width: 100% !important;
}

/* ── UTILITY CLASSES ────────────────────────────────────────── */
.text-navy    { color: var(--navy); }
.text-teal    { color: var(--teal); }
.text-magenta { color: var(--magenta); }
.text-white   { color: var(--white); }
.bg-navy      { background-color: var(--navy); }
.bg-teal      { background-color: var(--teal); }
.bg-white     { background-color: var(--white); }

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