/* ============================================
   MEGIPTV Portugal - Design System
   Cores da Bandeira Portuguesa
   ============================================ */

:root {
  /* Portugal Brand Colors */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #006600; /* Portuguese Green */
  --accent: #FF0000; /* Portuguese Red */
  --success: #10b981;
  --dark: #1e293b;
  --gray: #64748b;
  --light: #f1f5f9;
  --white: #ffffff;
  
  /* Portugal Flag Colors */
  --portugal-green: #006600;
  --portugal-red: #FF0000;
  --portugal-yellow: #FFD700;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-portugal: linear-gradient(90deg, #006600 0%, #006600 40%, #FF0000 40%, #FF0000 100%);
  --gradient-accent: linear-gradient(135deg, #006600 0%, #FF0000 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;
  
  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
}

/* Typography */
h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; }
h2 { font-size: 2rem; font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.4; }
p { margin-bottom: 1rem; }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--dark);
}

.logo-m-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.logo:hover .logo-m-img {
  transform: scale(1.05);
}

.logo-badge {
  background: var(--secondary);
  color: white;
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  margin-left: 0.25rem;
  vertical-align: top;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background: var(--gradient-accent);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: white;
  color: var(--secondary);
}

.btn-secondary:hover {
  background: var(--light);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards */
.card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light);
  transition: all 0.3s;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Pricing Cards */
.pricing-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: visible;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 550px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pricing-card > .btn {
  margin-top: auto;
  width: 100%;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.15);
  border-color: var(--primary);
}

.pricing-card.featured {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #fafaff 100%);
}

.pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin: 1rem 0;
  display: block;
}

.pricing-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--gradient-primary);
  color: white;
  padding: 0.4rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 20px;
  z-index: 10;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: 1.5rem 0;
  flex-grow: 1;
}

.pricing-features li {
  padding: 0.6rem 0;
  position: relative;
  padding-left: 1.75rem;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
  font-size: 1.1rem;
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--dark);
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--gray);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-links {
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

@keyframes pulse {
  0%, 100% { 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); }
}

/* Info Box */
.info-box {
  background: var(--light);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
}

.info-box h3 {
  margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .container { padding: 0 1rem; }
  .hero { padding: 3rem 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .pricing-price { font-size: 2.5rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  .btn { width: 100%; }
  .whatsapp-float {
    width: 50px;
    height: 50px;
  }
}
