/*
Theme Name: Last Candle Studios
Theme URI: https://lastcandlestudios.com
Author: Last Candle Studios
Author URI: https://lastcandlestudios.com
Description: A modern, bold theme for Last Candle Studios - creators of innovative archery technology
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: last-candle
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, portfolio

Last Candle Studios - A theme that breaks the mold with bold design and smooth interactions.
*/

/* ===========================
   CSS VARIABLES - DESIGN SYSTEM
   =========================== */
:root {
  /* Brand Colors - Dark, Bold, Modern */
  --color-primary: #FF6B35;        /* Vibrant Orange - Energy & Innovation */
  --color-primary-dark: #E85A2A;   /* Deeper Orange */
  --color-primary-light: #FF8C5F;  /* Light Orange */
  
  --color-secondary: #004E89;      /* Deep Blue - Trust & Technology */
  --color-secondary-dark: #003D6B;
  --color-secondary-light: #006BB3;
  
  --color-accent: #F7B731;         /* Gold - Achievement */
  --color-accent-dark: #E5A620;
  
  --color-dark: #1A1A2E;           /* Almost Black */
  --color-darker: #0F0F1E;         /* Deeper Black */
  --color-light: #EAEAEA;          /* Off-white */
  --color-white: #FFFFFF;
  
  /* Neutrals */
  --color-gray-100: #F5F5F5;
  --color-gray-200: #E0E0E0;
  --color-gray-300: #BDBDBD;
  --color-gray-400: #9E9E9E;
  --color-gray-500: #757575;
  --color-gray-600: #616161;
  --color-gray-700: #424242;
  --color-gray-800: #2A2A2A;
  --color-gray-900: #1A1A1A;
  
  /* Typography */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 1.5rem;    /* 24px */
  --space-lg: 2rem;      /* 32px */
  --space-xl: 3rem;      /* 48px */
  --space-2xl: 4rem;     /* 64px */
  --space-3xl: 6rem;     /* 96px */
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  --gradient-dark: linear-gradient(135deg, var(--color-dark) 0%, var(--color-darker) 100%);
  --gradient-hero: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* Container Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
}

/* ===========================
   RESET & BASE STYLES
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-dark);
  background: var(--color-white);
  overflow-x: hidden;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1.125rem;
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-gray-700);
}

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

a:hover {
  color: var(--color-primary-dark);
}

strong, b {
  font-weight: 600;
}

/* ===========================
   LAYOUT CONTAINERS
   =========================== */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--container-lg);
}

.container-wide {
  max-width: var(--container-2xl);
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-lg);
  background: rgba(26, 26, 46, 0.98);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  font-family: var(--font-heading);
  transition: transform var(--transition-fast);
}

.site-logo:hover {
  transform: scale(1.05);
  color: var(--color-white);
}

.site-logo .candle-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 10px var(--color-primary));
}

/* Custom Logo Styling */
.site-logo img,
.custom-logo {
  max-height: 50px;
  width: auto;
  display: block;
  transition: transform var(--transition-fast);
}

.custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
  transition: transform var(--transition-fast);
}

.custom-logo-link:hover {
  transform: scale(1.05);
}

/* Main Navigation */
.main-navigation {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  margin: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  color: var(--color-light);
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transform: translateX(-50%);
  transition: width var(--transition-base);
}

.nav-menu a:hover {
  color: var(--color-white);
}

.nav-menu a:hover::after {
  width: 80%;
}

.nav-menu a.current-menu-item {
  color: var(--color-white);
}

.nav-menu a.current-menu-item::after {
  width: 80%;
}

/* CTA Button in Nav */
.nav-cta {
  background: var(--gradient-primary);
  color: var(--color-white) !important;
  padding: var(--space-sm) var(--space-lg) !important;
  border-radius: var(--radius-full);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  transition: all var(--transition-base);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.nav-cta::after {
  display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-xs);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(0, 78, 137, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: var(--space-3xl) 0;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-cta-group {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.8s both;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
  color: var(--color-white);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ===========================
   SECTIONS
   =========================== */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
}

.section-subtitle {
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-description {
  font-size: 1.125rem;
  color: var(--color-gray-600);
}

/* Alternating Section Backgrounds */
.section-dark {
  background: var(--gradient-dark);
  color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: var(--color-white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.85);
}

.section-gray {
  background: var(--color-gray-100);
}

/* ===========================
   FEATURE CARDS
   =========================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--gradient-primary);
  transition: height var(--transition-slow);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
  height: 100%;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
  display: inline-block;
  transition: transform var(--transition-base);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-title {
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

.feature-description {
  color: var(--color-gray-600);
  margin-bottom: 0;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--color-darker);
  color: var(--color-light);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-section h3 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--space-sm);
}

.footer-section ul a {
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
}

.footer-section ul a:hover {
  color: var(--color-primary);
  padding-left: var(--space-xs);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.social-links {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
  color: var(--color-white);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===========================
   RESPONSIVE - MOBILE
   =========================== */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-darker);
    flex-direction: column;
    padding: var(--space-3xl) var(--space-lg);
    transition: right var(--transition-base);
    box-shadow: var(--shadow-xl);
  }
  
  .main-navigation.active {
    right: 0;
  }
  
  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: var(--space-sm);
  }
  
  .nav-menu a {
    display: block;
    padding: var(--space-md);
  }
  
  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  /* Adjust logo size on mobile */
  .custom-logo {
    max-height: 40px;
  }
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--color-primary);
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }

.hidden {
  display: none;
}
