/*
Theme Name: Level Up Motorsport
Theme URI: https://levelupmotorsport.com
Author: Level Up Motorsport
Author URI: https://levelupmotorsport.com
Description: Premium WordPress theme for Level Up Motorsport - Moto3 World Championship Team. Features multilingual support (EN, IT, FR, DE, ES, PT, AR) with RTL support, modern racing design, and commercial partnership focus.
Version: 1.0.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: levelup-motorsport
Tags: motorsport, racing, moto3, multilingual, rtl-language-support, responsive-layout, custom-colors

Level Up Motorsport - Where Passion Meets Performance
*/

/* ==========================================================================
   CSS Variables - Racing Color Palette
   ========================================================================== */
:root {
  --color-racing-red: #E30613;
  --color-racing-orange: #FF6B35;
  --color-racing-yellow: #FFD23F;
  --color-dark: #1a1a1a;
  --color-gray-dark: #2c2c2c;
  --color-gray-medium: #666666;
  --color-gray-light: #f5f5f5;
  --color-white: #ffffff;
  
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Montserrat', 'Inter', sans-serif;
  
  --transition-speed: 0.3s;
  --border-radius: 8px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Global Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-racing-red);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--color-racing-orange);
}

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

/* ==========================================================================
   Container & Layout
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  width: 100%;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all var(--transition-speed);
  border-bottom: 2px solid var(--color-racing-red);
}

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

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 50px;
  width: auto;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: var(--color-white);
  font-weight: 500;
  padding: 10px 0;
  display: block;
  transition: color var(--transition-speed);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-racing-red);
}

.language-switcher {
  display: flex;
  gap: 10px;
  margin-left: 2rem;
  padding-left: 2rem;
  border-left: 1px solid rgba(255,255,255,0.2);
}

.language-switcher a {
  color: var(--color-white);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition-speed);
}

.language-switcher a:hover,
.language-switcher a.active {
  background: var(--color-racing-red);
  color: var(--color-white);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(227, 6, 19, 0.85) 0%, rgba(26, 26, 26, 0.9) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--color-white);
  max-width: 900px;
  padding: 0 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-racing-yellow);
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.95;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed);
  cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--color-racing-red);
  color: var(--color-white);
  border-color: var(--color-racing-red);
}

.btn-primary:hover {
  background: var(--color-racing-orange);
  border-color: var(--color-racing-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

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

/* ==========================================================================
   Vision Section
   ========================================================================== */
.vision-section {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-gray-dark) 100%);
  color: var(--color-white);
}

.vision-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.vision-motto {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--color-racing-yellow);
  margin-bottom: 3rem;
  font-weight: 500;
}

.vision-content h2 {
  color: var(--color-white);
  margin-bottom: 2rem;
  font-size: 3rem;
}

.vision-text {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.vision-accent {
  display: inline-block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-racing-red), var(--color-racing-orange));
  margin: 2rem auto;
  border-radius: 2px;
}

/* ==========================================================================
   Cards & Features
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed);
  border-top: 4px solid var(--color-racing-red);
}

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

.feature-icon {
  font-size: 3rem;
  color: var(--color-racing-red);
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.feature-description {
  color: var(--color-gray-medium);
  line-height: 1.6;
}

/* ==========================================================================
   Partners Section
   ========================================================================== */
.partners-section {
  text-align: center;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.partner-card {
  background: var(--color-white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}

.partner-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 60px 0 30px;
}

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

.footer-section h3 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

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

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: rgba(255,255,255,0.8);
  transition: color var(--transition-speed);
}

.footer-section a:hover {
  color: var(--color-racing-red);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 1rem;
}

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

.social-links a:hover {
  background: var(--color-racing-red);
  transform: translateY(-3px);
}

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

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

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 968px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-menu.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    padding: 20px;
    gap: 1rem;
  }
  
  .language-switcher {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 1rem;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .btn {
    padding: 12px 30px;
    font-size: 0.9rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   RTL Support for Arabic
   ========================================================================== */
[dir="rtl"] .site-header {
  direction: rtl;
}

[dir="rtl"] .header-container {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-menu {
  flex-direction: row-reverse;
}

[dir="rtl"] .language-switcher {
  margin-left: 0;
  margin-right: 2rem;
  padding-left: 0;
  padding-right: 2rem;
  border-left: none;
  border-right: 1px solid rgba(255,255,255,0.2);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
