/* =====================================================
   GLOBAL STYLES – Helder Labs Nutrition
   Modern, Bold, Premium Design with Strong Red Accent
   Primary brand color: #ff0a06
   ===================================================== */

/* CSS RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --brand-red: #ff0a06;
  --brand-red-dark: #cc0805;
  --brand-red-light: #ff3a37;
  --white: #ffffff;
  --off-white: #fafafa;
  --light-bg: #f5f5f7;
  --dark-text: #1a1a1a;
  --mid-grey: #666666;
  --light-grey: #e0e0e0;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-xxl: 80px;
  --max-width: 1280px;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-red: 0 8px 32px rgba(255, 10, 6, 0.25);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--dark-text);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* BACKGROUND PATTERNS */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 10, 6, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 10, 6, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 10, 6, 0.01) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 100px,
      rgba(255, 10, 6, 0.01) 100px,
      rgba(255, 10, 6, 0.01) 102px
    );
  pointer-events: none;
  z-index: 0;
}

.site-header,
.site-main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
}

h2 {
  font-size: 2.75rem;
  font-weight: 700;
}

h3 {
  font-size: 1.875rem;
  font-weight: 600;
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-lg);
  line-height: 1.9;
  font-size: 1.0625rem;
}

ul, ol {
  margin-bottom: var(--spacing-lg);
  line-height: 1.9;
}

li {
  margin-bottom: var(--spacing-sm);
}

/* SECTION SPACING */
section {
  margin-bottom: var(--spacing-xxl);
}

.page-section {
  padding: var(--spacing-xxl) 0;
  position: relative;
}

a {
  color: var(--brand-red);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--brand-red-dark);
}

/* CONTAINER & LAYOUT */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.site-main {
  min-height: calc(100vh - 200px);
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 1.0625rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255, 10, 6, 0.35);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--brand-red);
  border: 2px solid var(--brand-red);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--brand-red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

/* PAGE HERO (Common for all pages) */
.page-hero {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: var(--white);
  padding: 120px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: var(--spacing-xxl);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 58, 55, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -30px) scale(1.1);
  }
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-hero-icon {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  margin: 0 auto var(--spacing-lg);
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.page-hero h1 {
  font-size: 3.75rem;
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
}

.page-hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  opacity: 0.95;
  line-height: 1.6;
  font-weight: 500;
}

.page-hero-description {
  font-size: 1.125rem;
  line-height: 1.8;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

.page-hero-breadcrumb {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  font-size: 0.9375rem;
  opacity: 0.9;
}

.page-hero-breadcrumb a {
  color: var(--white);
  text-decoration: underline;
  transition: var(--transition);
}

.page-hero-breadcrumb a:hover {
  opacity: 0.8;
}

.page-hero-breadcrumb span {
  opacity: 0.7;
}

/* HEADER */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 10, 6, 0.1);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(255, 10, 6, 0.08);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--dark-text);
  letter-spacing: -0.02em;
}

.logo img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(255, 10, 6, 0.2));
}

.top-nav {
  display: flex;
  gap: var(--spacing-xl);
  align-items: center;
}

.top-nav a {
  color: var(--dark-text);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
}

.top-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-red);
  transition: var(--transition);
}

.top-nav a:hover::after {
  width: 100%;
}

.top-nav a:hover {
  color: var(--brand-red);
}

.top-nav .nav-cta {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: var(--white);
  padding: 10px 28px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-red);
}

.top-nav .nav-cta::after {
  display: none;
}

.top-nav .nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 10, 6, 0.35);
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--brand-red);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu-toggle:hover span {
  background: var(--brand-red-dark);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--white);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  z-index: 1002;
  transition: right 0.3s ease;
  overflow-y: auto;
  display: none;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg) var(--spacing-md);
  border-bottom: 2px solid var(--brand-red);
  background: var(--light-bg);
}

.mobile-nav-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-text);
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--brand-red);
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-nav-close:hover {
  color: var(--brand-red-dark);
  transform: rotate(90deg);
}

.mobile-nav a {
  display: block;
  padding: var(--spacing-md);
  color: var(--dark-text);
  font-weight: 500;
  font-size: 1.0625rem;
  border-bottom: 1px solid var(--light-grey);
  transition: var(--transition);
}

.mobile-nav a:hover {
  background: var(--light-bg);
  color: var(--brand-red);
  padding-left: var(--spacing-lg);
}

.mobile-nav-cta {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: var(--white) !important;
  margin: var(--spacing-md);
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 600;
  border-bottom: none !important;
  box-shadow: var(--shadow-red);
}

.mobile-nav-cta:hover {
  background: linear-gradient(135deg, var(--brand-red-dark) 0%, var(--brand-red) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 10, 6, 0.35);
  padding-left: var(--spacing-md) !important;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: none;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* FOOTER */
.site-footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: var(--white);
  padding: var(--spacing-xxl) 0 var(--spacing-xl);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-red) 0%, var(--brand-red-light) 100%);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  position: relative;
  z-index: 1;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--spacing-xxl);
}

.footer-main h4 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--white);
}

.footer-main p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links h5 {
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--brand-red);
  font-weight: 700;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: var(--transition);
  padding: 4px 0;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
}

/* SECTION DIVIDERS & DECORATIVE ELEMENTS */
.section-divider {
  width: 100%;
  height: 120px;
  position: relative;
  overflow: hidden;
  margin: var(--spacing-xxl) 0;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 10, 6, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--brand-red) 50%, transparent 100%);
}

.section-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.5rem;
  margin: 0 auto var(--spacing-xl);
  box-shadow: var(--shadow-red);
  position: relative;
}

.section-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--brand-red);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.decorative-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.15;
}

.decorative-dots::before,
.decorative-dots::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--brand-red);
  border-radius: 50%;
}

.decorative-dots::before {
  top: 10%;
  left: 5%;
  box-shadow: 
    80px 40px 0 var(--brand-red),
    160px 20px 0 var(--brand-red),
    240px 60px 0 var(--brand-red);
}

.decorative-dots::after {
  bottom: 10%;
  right: 5%;
  box-shadow: 
    -80px -40px 0 var(--brand-red),
    -160px -20px 0 var(--brand-red),
    -240px -60px 0 var(--brand-red);
}

/* UTILITY CLASSES */
.text-center {
  text-align: center;
}

.text-red {
  color: var(--brand-red);
}

.bg-red {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: var(--white);
}

.bg-light {
  background-color: var(--light-bg);
}

.bg-pattern {
  position: relative;
}

.bg-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 60px,
      rgba(255, 10, 6, 0.02) 60px,
      rgba(255, 10, 6, 0.02) 62px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 60px,
      rgba(255, 10, 6, 0.02) 60px,
      rgba(255, 10, 6, 0.02) 62px
    );
  pointer-events: none;
  z-index: 0;
}

.bg-pattern > * {
  position: relative;
  z-index: 1;
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  .page-hero {
    padding: 80px 0 60px;
  }

  .page-hero-icon {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }

  .page-hero-subtitle {
    font-size: 1.25rem;
  }

  .page-hero-description {
    font-size: 1rem;
  }

  .top-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .mobile-menu-overlay {
    display: block;
  }

  .logo span {
    font-size: 1.125rem;
  }

  .logo img {
    height: 40px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .btn {
    padding: 14px 32px;
    font-size: 1rem;
  }
}
