/*
Theme Name: Fellowship & Fitness Pro
Theme URI: https://websitefordemo.online
Author: Fellowship & Fitness
Description: Premium WooCommerce-ready personal trainer theme with modern design, Calendly integration, and professional styling for fitness businesses.
Version: 2.0.0
Text Domain: fellowship-fitness
License: GPL-2.0-or-later
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  --brand: #06c4e7;
  --brand-dark: #059bb7;
  --brand-blue: #0a84ff;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
}

/* ============================================
   GLOBAL RESETS & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand);
  color: var(--slate-900);
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 4px 0;
  z-index: 9999;
}

.skip-link:focus {
  top: 0;
}

.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;
}

.focus\:not-sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ============================================
   CUSTOM ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

.animate-scaleIn {
  animation: scaleIn 0.4s ease-out;
}

.animate-slideInRight {
  animation: slideInRight 0.5s ease-out;
}

/* ============================================
   TYPOGRAPHY ENHANCEMENTS
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1;
  border-radius: 0.75rem;
  background: var(--brand);
  color: var(--slate-900);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px 0 rgba(6, 196, 231, 0.39);
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px 0 rgba(6, 196, 231, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1;
  border-radius: 0.75rem;
  background: var(--slate-900);
  color: white;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--slate-800);
  transform: translateY(-2px);
}

/* ============================================
   CARD STYLES
   ============================================ */
.card {
  border-radius: 1rem;
  background: white;
  border: 1px solid var(--slate-200);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  border-color: var(--brand);
}

.card-feature {
  position: relative;
  overflow: hidden;
}

.card-feature::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(6, 196, 231, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(50%, -50%);
}

/* ============================================
   SECTION UTILITIES
   ============================================ */
.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .section {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

.section-alt {
  background: linear-gradient(to bottom, var(--slate-50) 0%, white 100%);
}

/* ============================================
   CUSTOM GRADIENTS
   ============================================ */
.gradient-overlay {
  background: linear-gradient(135deg, rgba(6, 196, 231, 0.1) 0%, rgba(10, 132, 255, 0.1) 100%);
}

.gradient-border {
  position: relative;
  background: white;
  border-radius: 1rem;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 2px;
  background: linear-gradient(135deg, var(--brand), var(--brand-blue));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* ============================================
   WOOCOMMERCE ENHANCEMENTS
   ============================================ */
.woocommerce-page .product {
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.woocommerce-page .product:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--brand) !important;
  color: var(--slate-900) !important;
  border-radius: 0.75rem !important;
  font-weight: 700 !important;
  padding: 0.875rem 2rem !important;
  border: none !important;
  transition: all 0.2s ease !important;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--brand-dark) !important;
  transform: translateY(-2px);
}

.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--brand) !important;
  background: rgba(6, 196, 231, 0.05) !important;
  border-radius: 0.5rem !important;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 768px) {
  .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
}

/* ============================================
   LOADING STATES
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--slate-100) 25%, var(--slate-200) 50%, var(--slate-100) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ============================================
   FOCUS STATES
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  header,
  footer,
  .no-print {
    display: none !important;
  }
  
  body {
    color: black;
    background: white;
  }
  
  a {
    text-decoration: underline;
  }
}