/*
Theme Name: Enfusion Nutrition
Theme URI: https://enfusionnutrition.com
Author: Future Proof Team
Author URI: https://enfusionnutrition.com
Description: Custom WordPress/WooCommerce theme for Enfusion Nutrition. Pixel-perfect translation from the Next.js React frontend.
Version: 1.0.0
Text Domain: enfusion
Tags: custom, woocommerce, tailwind, enfusion
*/

/* 
 * NOTE: The actual Tailwind styles will be compiled and injected via the pipeline.
 * Below are the custom fonts and raw CSS overrides needed for the theme.
 */

@font-face {
  font-family: 'Helvetica Neue LT Pro';
  src: url('./assets/fonts/HelveticaNeueLTPro-Lt.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Helvetica Neue LT Pro';
  src: url('./assets/fonts/HelveticaNeueLTPro-Roman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Helvetica Neue LT Pro';
  src: url('./assets/fonts/HelveticaNeueLTPro-Blk.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Ardela Edge';
  src: url('./assets/fonts/ArdelaEdge-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: 'Ardela Edge';
  src: url('./assets/fonts/ArdelaEdge-ItalicVariable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
}

@font-face {
  font-family: 'SkySports';
  src: url('./assets/fonts/SkySports-RegularItalic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

:root {
  --font-sans: 'Helvetica Neue LT Pro', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Helvetica Neue LT Pro', var(--font-sans);
  --font-accent: 'Ardela Edge', var(--font-sans);
  --font-quote: 'SkySports', serif;
  --color-brand-primary: #820206;
  --color-primary: var(--color-brand-primary);
  --color-primary-foreground: #ffffff;
  
  --background: #FCFAEE;
  --foreground: #000000;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #000000;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #f1f5f9;
  --accent-foreground: #0f172a;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  overflow-x: hidden;
}

/* Crisp SVG rendering — prevent browser anti-aliasing blur on scaled images */
img[src$=".svg"] {
  image-rendering: optimizeQuality;
  -webkit-font-smoothing: antialiased;
  shape-rendering: geometricPrecision;
}

/* MusclePharm-inspired button hover swipe effect */
.hover-swipe {
  background-image: 
    linear-gradient(178deg, transparent, transparent 10%, rgba(0, 0, 0, 0.15) 10%, rgba(0, 0, 0, 0.15) 100%);
  background-size: 100% 200%;
  background-position: 100% -100%;
  background-repeat: no-repeat;
  transition: background-position 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.hover-swipe:hover {
  background-position: 100% 100%;
}

/* Word reveal wrapper */
.word-wrap {
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
}

/* Ken Burns for champion image */
@keyframes kenBurns {
  from { transform: scale(1.05); }
  to   { transform: scale(1.0);  }
}
.ken-burns {
  animation: kenBurns 8s ease-out forwards;
}

/* Scroll hint pulse */
@keyframes scrollPulse {
  0%, 100% { transform: translateY(0);    opacity: 1; }
  50%       { transform: translateY(6px); opacity: 0.5; }
}
.scroll-hint-arrow {
  animation: scrollPulse 1.4s ease-in-out infinite;
}

/* Accordion slide (Vanilla fallback equivalent for WP) */
.accordion-content {
  overflow: hidden;
  transition: height 0.25s ease-out;
}

/* Email input glow */
@keyframes inputGlow {
  0%   { box-shadow: 0 0 0 0px rgba(230,57,70,0); }
  50%  { box-shadow: 0 0 0 3px rgba(230,57,70,0.35); }
  100% { box-shadow: 0 0 0 0px rgba(230,57,70,0); }
}
.input-glow-once {
  animation: inputGlow 0.8s ease-in-out 1;
}

/* Viewport height utility */
.h-svh {
  height: 100svh;
}
.min-h-svh {
  min-height: 100svh;
}

/* Strict 16:9 Letterbox Canvas */
.letterbox-canvas {
  width: 100%;
  height: 100%;
  max-width: calc(100svh * 1.7778);
  max-height: calc(100vw * 0.5625);
  margin: auto;
  position: relative;
}

/* Horizontal Testimonial Slider */
@keyframes x-slider {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-x-slider {
  animation: x-slider 80s linear infinite;
}

/* Stable Red Pulse Overlay */
@keyframes red-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}
.animate-red-pulse {
  background: linear-gradient(135deg, #820206, #111111);
  animation: red-pulse 12s ease-in-out infinite;
  will-change: opacity;
}

/* Hero entrance animation */
@keyframes rise {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Custom Red Gradient Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #0A0A0A;
  border-left: 1px solid #2b2b2b;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #790706, #dc2626);
  border-radius: 0px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #dc2626, #790706);
}

/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #dc2626 #0A0A0A;
}

/* ── WordPress Admin Bar Compensation ── */
/* When admin bar is visible, reduce hero viewport height so trust bar fits */
.admin-bar .enfusion-hero-desktop {
  height: calc(100svh - 32px) !important;
}
@media screen and (max-width: 782px) {
  .admin-bar .enfusion-hero-desktop {
    height: calc(100svh - 46px) !important;
  }
}

