/* ============================================
   MEGIPTV France - Premium Design System
   Modern, SEO-Optimized, Mobile-First
   ============================================ */

/* ============================================
   CSS Variables & Design Tokens
   ============================================ */
:root {
  /* Colors - Premium Palette */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --accent: #f59e0b;
  --accent-dark: #d97706;

  /* Neutrals */
  --dark: #1e293b;
  --dark-light: #334155;
  --gray: #64748b;
  --gray-light: #cbd5e1;
  --light: #f1f5f9;
  --white: #ffffff;

  /* Semantic Colors */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  --gradient-dark: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Typography */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-heading: "Inter", sans-serif;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--dark);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--space-sm);
  color: var(--dark-light);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* ============================================
   Layout & Grid
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: 900px;
}

.container-wide {
  max-width: 1440px;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.flex {
  display: flex;
  gap: var(--space-md);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================
   Header & Navigation
   ============================================ */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--gray-light);
  box-shadow: var(--shadow-sm);
}

/* Mobile Navigation */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(10px);
  z-index: 9999;
  padding: var(--space-xl);
}

.mobile-menu.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  text-align: center;
  align-items: center;
}

.mobile-nav a {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mobile-nav a:hover {
  color: var(--primary-light);
}

.mobile-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.logo-m {
  background: linear-gradient(to right, #002395 0%, #002395 33%, #ffffff 33%, #ffffff 66%, #ED2939 66%, #ED2939 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.75rem;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* UK Logo Variation - Union Jack Colors */
.logo-uk {
  background: linear-gradient(to right, 
    #012169 0%, #012169 20%,     /* Blue */
    #FFFFFF 20%, #FFFFFF 30%,     /* White */
    #C8102E 30%, #C8102E 40%,     /* Red */
    #FFFFFF 40%, #FFFFFF 50%,     /* White */
    #C8102E 50%, #C8102E 60%,     /* Red */
    #FFFFFF 60%, #FFFFFF 70%,     /* White */
    #012169 70%, #012169 100%);   /* Blue */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.75rem;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Spain Logo Variation - Spanish Flag Colors */
.logo-spain {
  background: linear-gradient(to bottom, 
    #AA151B 0%, #AA151B 25%,      /* Red top */
    #F1BF00 25%, #F1BF00 75%,     /* Yellow middle */
    #AA151B 75%, #AA151B 100%);   /* Red bottom */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.75rem;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Netherlands Logo Variation - Dutch Flag Colors */
.logo-netherlands {
  background: linear-gradient(to bottom, 
    #AE1C28 0%, #AE1C28 33%,      /* Red top */
    #FFFFFF 33%, #FFFFFF 66%,     /* White middle */
    #21468B 66%, #21468B 100%);   /* Blue bottom */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.75rem;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-badge {
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.logo-france {
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  color: var(--dark);
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-accent {
  background: var(--gradient-accent);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  padding: var(--space-3xl) 0;
  background: var(--gradient-dark);
  color: white;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(99, 102, 241, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(245, 158, 11, 0.15) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  color: white;
  margin-bottom: var(--space-md);
}

.hero p {
  font-size: 1.25rem;
  color: var(--gray-light);
  margin-bottom: var(--space-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Glass Cards
   ============================================ */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base),
    box-shadow var(--transition-base);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.glass-card-dark {
  background: rgba(30, 41, 59, 0.8);
  color: white;
  border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Features Section
   ============================================ */
.features {
  padding: var(--space-3xl) 0;
}

.feature-item {
  text-align: center;
  padding: var(--space-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.feature-item h3 {
  margin-bottom: var(--space-sm);
}

/* ============================================
   Pricing Cards
   ============================================ */
.pricing-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 2px solid var(--gray-light);
  transition: all var(--transition-base);
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border-color: var(--primary);
  position: relative;
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--gradient-accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  animation: pulse 2s infinite;
}

.tier-premium {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
  border: 2px solid var(--accent);
}

.tier-standard {
  border: 2px solid var(--primary);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin: var(--space-md) 0;
}

.pricing-features {
  list-style: none;
  margin: var(--space-md) 0;
  flex-grow: 1;
}

.pricing-features li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--light);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.pricing-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: bold;
}

/* ============================================
   Footer
   ============================================ */
footer {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #cbd5e1;
  padding: var(--space-3xl) 0 var(--space-lg);
  border-top: 3px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h4 {
  color: white;
  margin-bottom: var(--space-md);
  font-size: 1.125rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  list-style: none;
}

.footer-links a {
  color: #94a3b8;
  display: block;
  padding: var(--space-xs) 0;
  transition: all var(--transition-fast);
  position: relative;
  padding-left: 1rem;
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: 0;
  opacity: 0;
  transition: opacity var(--transition-fast);
  color: var(--primary);
}

.footer-links a:hover {
  color: white;
  padding-left: 1.5rem;
}

.footer-links a:hover::before {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid #334155;
  color: #64748b;
  font-size: 0.875rem;
}

/* ============================================
   Utilities
   ============================================ */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mt-sm {
  margin-top: var(--space-sm);
}
.mt-md {
  margin-top: var(--space-md);
}
.mt-lg {
  margin-top: var(--space-lg);
}
.mt-xl {
  margin-top: var(--space-xl);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}
.mb-md {
  margin-bottom: var(--space-md);
}
.mb-lg {
  margin-bottom: var(--space-lg);
}
.mb-xl {
  margin-bottom: var(--space-xl);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: var(--space-xl) 0;
  }

  .hero-cta {
    flex-direction: column;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    margin-bottom: var(--space-lg);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Testimonials Carousel */


.testimonials-carousel {overflow: hidden; padding: 2rem 0;}
.testimonials-scroll {display: flex; gap: 1.5rem; animation: scroll-testimonials 30s linear infinite;}
.testimonials-scroll:hover {animation-play-state: paused;}
.testimonial-item {flex-shrink: 0; width: 300px; border-radius: 1rem; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: all 0.3s;}
.testimonial-item:hover {transform: scale(1.05); box-shadow: 0 8px 24px rgba(0,0,0,0.15);}
.testimonial-item img {width: 100%; height: auto; display: block;}
@keyframes scroll-testimonials {0% {transform: translateX(0);} 100% {transform: translateX(calc(-1660px));}}
@media (max-width: 768px) {.testimonial-item {width: 250px;} @keyframes scroll-testimonials {0% {transform: translateX(0);} 100% {transform: translateX(calc(-1385px));}}}

/* FAQ Accordion Styles */
.faq-category {
  margin-bottom: var(--space-3xl);
}

.faq-item {
  background: white;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: var(--space-lg);
  background: white;
  border: none;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-base);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
  padding: 0 var(--space-lg);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0 var(--space-lg) var(--space-lg);
}

.faq-answer p {
  color: var(--dark-light);
  line-height: 1.8;
}

.faq-answer ul, .faq-answer ol {
  color: var(--dark-light);
  line-height: 1.8;
}

.faq-answer a {
  color: var(--primary);
  text-decoration: underline;
}

/* ============================================
   WhatsApp Floating Button
   ============================================ */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all var(--transition-base);
  text-decoration: none;
  cursor: pointer;
}

.whatsapp-float:hover {
  background: #20BA5A;
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
  color: white;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  color: white;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    right: 16px;
    bottom: 16px;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* Pulse animation for attention */
@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 
                0 0 0 10px rgba(37, 211, 102, 0.1),
                0 0 0 20px rgba(37, 211, 102, 0.05);
  }
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
}

.whatsapp-float {
  animation: whatsapp-pulse 2s infinite;
}

/* ============================================
   Small Mobile (480px and below)
   ============================================ */
@media (max-width: 480px) {
  /* Typography adjustments */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Container padding */
  .container {
    padding: 0 var(--space-sm);
  }
  
  /* Hero section */
  .hero {
    padding: var(--space-lg) 0;
  }
  
  .hero-content p {
    font-size: 0.95rem;
  }
  
  /* Buttons */
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
  }
  
  .btn-lg {
    padding: 0.875rem 1.5rem;
  }
  
  /* Pricing cards */
  .pricing-card {
    padding: var(--space-md);
  }
  
  .pricing-price {
    font-size: 2rem;
  }
  
  /* Features section */
  .features {
    padding: var(--space-xl) 0;
  }
  
  .feature-icon {
    font-size: 2.5rem;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: var(--space-lg);
  }
  
  /* Glass cards */
  .glass-card {
    padding: var(--space-md);
  }
  
  /* Stats section */
  .grid-2[style*="max-width: 900px"] {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
  
  .grid-2[style*="max-width: 900px"] h3 {
    font-size: 1.75rem !important;
  }
  
  .grid-2[style*="max-width: 900px"] p {
    font-size: 0.85rem;
  }
  
  /* Testimonials */
  .testimonial-item {
    width: 200px;
  }
  
  /* FAQ */
  .faq-question {
    padding: var(--space-md);
    font-size: 1rem;
  }
  
  /* Section titles */
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  /* WhatsApp button */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    right: 12px;
    bottom: 12px;
  }
  
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}
