/* pwa/assets/css/style.css */
:root {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #10b981;
  --primary-gradient: linear-gradient(135deg, #059669, #10b981);
  --secondary: #1e293b;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --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);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--gray-200);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  text-decoration: none;
}

.logo i {
  color: var(--primary);
  font-size: 28px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray-700);
  cursor: pointer;
  padding: 4px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  color: var(--gray-600);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: var(--transition);
  font-size: 14px;
}

.nav-menu a:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.nav-menu a.active {
  background: var(--primary-gradient);
  color: white;
}

.nav-menu a.btn-login {
  background: var(--primary-gradient);
  color: white;
}

.nav-menu a.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== HERO ===== */
.hero {
  padding: 60px 0 80px 0;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(5, 150, 105, 0.05);
  border-radius: 50%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text .hero-badge {
  display: inline-block;
  background: rgba(5, 150, 105, 0.1);
  color: var(--primary);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.hero-text h1 .highlight {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 18px;
  color: var(--gray-600);
  margin-bottom: 24px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--gray-700);
  border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-large {
  padding: 16px 36px;
  font-size: 18px;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

/* ===== SECTIONS ===== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.section-header h2 span {
  color: var(--primary);
}

.section-header p {
  font-size: 16px;
  color: var(--gray-500);
}

/* ===== FEATURES ===== */
.features {
  padding: 60px 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px;
  text-align: center;
  background: var(--gray-50);
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-icon {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--gray-500);
  font-size: 14px;
}

/* ===== PRODUCTS ===== */
.destaques {
  padding: 60px 0;
  background: var(--gray-50);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card .product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gray-100);
}

.product-card .product-body {
  padding: 16px 20px 20px;
}

.product-card .product-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-card .product-body .product-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin: 8px 0;
}

.product-card .product-body .btn {
  width: 100%;
  justify-content: center;
}

/* ===== DEPOIMENTOS ===== */
.depoimentos {
  padding: 60px 0;
  background: white;
}

.depoimentos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.depoimento-card {
  padding: 24px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.depoimento-card:hover {
  box-shadow: var(--shadow-md);
}

.depoimento-stars {
  color: #f59e0b;
  margin-bottom: 12px;
}

.depoimento-card p {
  font-size: 15px;
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: 12px;
}

.depoimento-autor strong {
  display: block;
  font-size: 14px;
  color: var(--gray-900);
}

.depoimento-autor span {
  font-size: 12px;
  color: var(--gray-500);
}

/* ===== CTA ===== */
.cta {
  padding: 80px 0;
  background: var(--primary-gradient);
  color: white;
}

.cta-content {
  text-align: center;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}

.cta-content p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 24px;
}

.cta-content .btn {
  background: white;
  color: var(--primary);
}

.cta-content .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--secondary);
  color: white;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 12px;
}

.footer-brand p {
  opacity: 0.7;
  font-size: 14px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-links h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: white;
}

.footer-contact ul {
  list-style: none;
}

.footer-contact ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-contact ul li i {
  width: 20px;
  color: var(--primary-light);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.pwa-badge {
  background: rgba(255,255,255,0.05);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
}

/* ===== INSTALL BANNER ===== */
.install-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 12px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  max-width: 500px;
  width: 90%;
  border: 1px solid var(--gray-200);
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.install-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.install-icon {
  font-size: 32px;
  color: var(--primary);
}

.install-text {
  flex: 1;
}

.install-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
}

.install-text p {
  font-size: 12px;
  color: var(--gray-500);
}

.install-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-install {
  padding: 6px 16px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-install:hover {
  transform: scale(1.05);
}

.btn-close {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
}

.btn-close:hover {
  color: var(--gray-700);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image {
    order: -1;
  }
  
  .hero-image img {
    max-width: 400px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--gray-200);
  }
  
  .nav-menu.open {
    display: flex;
  }
  
  .nav-menu a {
    padding: 12px 16px;
    width: 100%;
  }
  
  .hero-text h1 {
    font-size: 32px;
  }
  
  .section-header h2 {
    font-size: 28px;
  }
  
  .features-grid,
  .products-grid,
  .depoimentos-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .install-content {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 26px;
  }
  
  .hero {
    padding: 40px 0 60px;
  }
  
  .cta-content h2 {
    font-size: 26px;
  }
  
  .btn {
    font-size: 14px;
    padding: 10px 20px;
  }
}