/* main.css - Estilos para a ConectaPages */

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

body {
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* Botões */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 400;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-outline-light {
  border-color: white;
  color: white;
}

.btn-outline-light:hover {
  background-color: white;
  color: var(--primary);
}

.btn-light {
  background-color: white;
  color: var(--primary);
}

.btn-light:hover {
  background-color: var(--gray-light);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background: var(--hero-background);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.hero .lead {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.product {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.product h2 {
  font-size: 1.5rem;
  line-height: 1.3;
}

.product h2 a:hover {
  color: var(--primary);
}

.product p {
  color: var(--gray);
}

.products-small {
  margin-top: 1.5rem;
}

.products-small .product {
  padding: 1.25rem 1.5rem;
  box-shadow: none;
  border: 1px solid var(--gray-light);
}

.products-small h3 {
  font-size: 1.15rem;
  line-height: 1.35;
}

.product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  margin-top: auto;
}

.product-price strong {
  color: var(--dark);
  font-size: 1.25rem;
}

.product-price small {
  color: var(--gray);
  font-size: 0.95rem;
}

.product-price span::before {
  content: "✓ ";
  color: var(--success);
}

.also {
  margin-top: 1.5rem;
  color: var(--gray);
}

.also a {
  color: var(--primary);
  text-decoration: underline;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.section-title span {
  color: var(--primary);
}

.section-subtitle {
  color: var(--gray);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* About Section */
.about-content {
  max-width: var(--reading-width);
  margin-inline: auto;
}

.about-content p {
  margin-bottom: 1rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-block: 1px solid var(--gray-light);
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray);
}

/* Blog Preview */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.view-all {
  color: var(--primary);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-all:hover {
  text-decoration: underline;
}

/* CTA Section */
.cta-section {
  background-color: var(--primary);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Responsividade */
@media (max-width: 992px) {
  .hero {
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero .lead {
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .products {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 2rem 0;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .product {
    padding: 1.25rem;
  }
}
