/* ABRAVEC - Estilos Principais */

/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: 220 90% 56%;
  --primary-foreground: 0 0% 100%;
  --secondary: 45 93% 47%;
  --secondary-foreground: 0 0% 0%;
  --background: 0 0% 100%;
  --foreground: 222 47% 11%;
  --muted: 210 40% 96%;
  --muted-foreground: 215 16% 47%;
  --accent: 210 40% 96%;
  --accent-foreground: 222 47% 11%;
  --border: 214 32% 91%;
  --radius: 0.5rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background: linear-gradient(to bottom, hsl(210, 40%, 98%), hsl(0, 0%, 100%));
  min-height: 100vh;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Header */
header {
  background: white;
  border-bottom: 1px solid hsl(var(--border));
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

header img {
  height: 4rem;
  width: auto;
  object-fit: contain;
}

nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  nav {
    display: flex;
  }
}

nav a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(215, 25%, 27%);
  transition: color 0.2s;
}

nav a:hover {
  color: hsl(var(--primary));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
  opacity: 0.9;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, hsl(222, 47%, 11%) 0%, hsl(217, 91%, 20%) 50%, hsl(217, 91%, 35%) 100%);
  padding: 4rem 0;
  text-align: center;
}

.hero img {
  max-width: 600px;
  width: 100%;
  height: auto;
  margin: 0 auto 2rem;
}

.hero h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
}

.hero p {
  font-size: 1rem;
  color: hsl(210, 40%, 85%);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

/* Pricing Card */
.pricing-card {
  background: hsl(217, 33%, 17%);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card h3 {
  font-size: 0.875rem;
  color: hsl(210, 40%, 70%);
  margin-bottom: 0.5rem;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.price-old {
  font-size: 1rem;
  color: hsl(210, 40%, 50%);
  text-decoration: line-through;
}

.price-new {
  font-size: 2.5rem;
  font-weight: 700;
  color: hsl(var(--secondary));
}

.price-period {
  font-size: 1rem;
  color: hsl(210, 40%, 70%);
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(210, 40%, 85%);
}

.feature-icon {
  width: 1rem;
  height: 1rem;
  background: hsl(var(--secondary));
  border-radius: 50%;
  flex-shrink: 0;
}

/* Section */
section {
  padding: 4rem 0;
}

section h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

section .subtitle {
  text-align: center;
  color: hsl(var(--muted-foreground));
  margin-bottom: 3rem;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: white;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.2s;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  background: hsl(var(--primary));
  color: white;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: white;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: hsl(var(--primary));
  color: white;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.service-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, hsl(222, 47%, 11%) 0%, hsl(217, 91%, 20%) 100%);
  padding: 4rem 0;
  text-align: center;
}

.cta-section img {
  height: 8rem;
  width: auto;
  margin: 0 auto 2rem;
}

@media (min-width: 768px) {
  .cta-section img {
    height: 12rem;
  }
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.125rem;
  color: hsl(210, 40%, 85%);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Footer */
footer {
  background: hsl(222, 47%, 11%);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.footer-logo img {
  height: 3rem;
  width: auto;
  margin-bottom: 1rem;
}

.footer-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

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

.footer-section a {
  color: hsl(210, 40%, 85%);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: hsl(var(--secondary));
}

.footer-bottom {
  border-top: 1px solid hsl(217, 33%, 20%);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: hsl(210, 40%, 70%);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 5rem;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid hsl(var(--border));
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem;
  text-decoration: none;
  color: hsl(var(--foreground));
  font-weight: 600;
  border-bottom: 1px solid hsl(var(--border));
}

.mobile-menu a:last-child {
  border-bottom: none;
}

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

.mt-4 {
  margin-top: 1rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.hidden {
  display: none;
}

/* Popup VEM AÍ ABRAVEC */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-in-out;
}

.popup-overlay.show {
  display: flex;
}

.popup-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
}

.popup-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 800px;
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #1e293b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close:hover {
  background: white;
  transform: scale(1.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@media (max-width: 768px) {
  .popup-content {
    max-width: 95%;
  }
  
  .popup-close {
    width: 36px;
    height: 36px;
    font-size: 24px;
    top: 12px;
    right: 12px;
  }
}
