/*
 * Components
 * Reusable UI components for the website
 */

/* ===== HEADER / NAVIGATION ===== */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-gray-800);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-lg);
  background: rgba(13, 17, 23, 0.98);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  gap: var(--space-4);
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-brand:hover {
  color: var(--color-accent);
}

/* Mobile menu toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-2);
  cursor: pointer;
  z-index: var(--z-fixed);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition-base);
  border-radius: var(--radius-full);
}

/* Hamburger animation */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.nav-link {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-300);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-link.active {
  color: var(--color-white);
  font-weight: var(--font-weight-semibold);
}

/* Mobile navigation */
@media (max-width: 767px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-primary-light);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-20) var(--space-6);
    box-shadow: var(--shadow-2xl);
    transition: right var(--transition-slow);
    z-index: var(--z-modal);
    border-left: 1px solid var(--color-gray-800);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-link {
    font-size: var(--font-size-lg);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-gray-100);
    width: 100%;
  }

  .nav-cta {
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

/* Mobile menu overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-modal-backdrop);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  color: var(--color-white);
  overflow: hidden;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-title {
  color: var(--color-white);
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-gray-100);
  margin-bottom: var(--space-8);
  line-height: var(--line-height-relaxed);
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding: var(--space-16) 0;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-cta {
    flex-direction: column;
  }
}

/* ===== CARD COMPONENT ===== */
.card {
  background: var(--color-primary-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-gray-800);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-gray-700);
}

.card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-3xl);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.card-description {
  color: var(--color-gray-300);
  line-height: var(--line-height-relaxed);
  flex-grow: 1;
}

/* Feature card variant */
.feature-card {
  text-align: center;
  border: 2px solid var(--color-gray-800);
}

.feature-card .card-icon {
  margin-left: auto;
  margin-right: auto;
}

.feature-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
}

/* Product card variant */
.product-card {
  border: 2px solid var(--color-gray-800);
}

.product-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  background: var(--color-gray-800);
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-12);
}

.section-tag {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.section-title {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.section-description {
  font-size: var(--font-size-lg);
  color: var(--color-gray-400);
  line-height: var(--line-height-relaxed);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
  color: var(--color-white);
}

.footer-description {
  color: var(--color-gray-300);
  line-height: var(--line-height-relaxed);
}

.footer-section-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-4);
  color: var(--color-white);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  color: var(--color-gray-300);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--color-gray-400);
  font-size: var(--font-size-sm);
}

/* ===== CONTACT FORM ===== */
.contact-form {
  background: var(--color-primary-light);
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-gray-800);
}

.contact-form-title {
  font-size: var(--font-size-3xl);
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.contact-form-subtitle {
  color: var(--color-gray-400);
  margin-bottom: var(--space-8);
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-primary {
  background: var(--color-primary-light);
  color: var(--color-white);
  border: 1px solid var(--color-gray-700);
}

.badge-accent {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.badge-success {
  background: var(--color-success);
  color: var(--color-white);
}

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

/* ===== PRICE TAG ===== */
.price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.price-currency {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
}

.price-amount {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-black);
  color: var(--color-accent);
  line-height: 1;
}

.price-period {
  font-size: var(--font-size-lg);
  color: var(--color-gray-400);
}

/* ===== FEATURE LIST ===== */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.feature-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.negative-left-3 {
  margin-left: -0.75rem;
}

.feature-list-item:hover {
  background: var(--color-gray-900);
}

.feature-list-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-success);
  color: var(--color-white);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
}

.feature-list-text {
  color: var(--color-gray-300);
  line-height: var(--line-height-relaxed);
}

/* ===== FAQ / ACCORDION ===== */
.faq-item {
  border-bottom: 1px solid var(--color-gray-800);
}

.faq-item:last-child {
  border-bottom: none;
}

details.faq-item {
  padding: var(--space-6) 0;
}

summary.faq-question {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  user-select: none;
}

summary.faq-question::-webkit-details-marker {
  display: none;
}

summary.faq-question::after {
  content: '+';
  font-size: var(--font-size-2xl);
  color: var(--color-accent);
  transition: transform var(--transition-base);
}

details[open] summary.faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  margin-top: var(--space-4);
  color: var(--color-gray-300);
  line-height: var(--line-height-relaxed);
  padding-right: var(--space-12);
}

/* ===== STATS / METRICS ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-black);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--font-size-base);
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  background: #25D366;
  color: var(--color-white);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  text-decoration: none;
}

.whatsapp-btn:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.whatsapp-icon {
  font-size: var(--font-size-xl);
}
