/* Reset Moderno */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
}

:root {
  --primary: #333;
  --secondary: #1f4746;
  --accent: #4299e1;
  --cta: #1f4746;
  --text: #333;
  --border: #e2e8f0;
}

body {
  background: #f7fafc;
  color: var(--text);
  line-height: 1.6;
}

h1 {
  line-height: 1.2;
}

/* Banner Slide */
.ad-slide {
  height: 140px;
  background: #2c3e50;
  color: white;
  display: flex;
  margin: 0 0.5rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: auto;
}

.ad-slide .slide-link {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 1s ease-in-out,
    pointer-events 1s ease-in-out;
  z-index: 10;
}

.ad-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.ad-slide img.active {
  opacity: 1;
}

.ad-slide img.active ~ .slide-link,
.ad-slide .slide-link:has(> img.active) {
  opacity: 1;
  pointer-events: auto;
}

/* Header Responsivo */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  background: white;
  padding: 1rem 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.logo a {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.cta-header {
  background: var(--cta);
  color: white !important;
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
}

/* Conteúdo Principal */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.hero-section {
  text-align: center;
  padding: 2rem 0;
  background-size: cover;
  border-radius: 8px;
}

.hero-section h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.usp-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/*Toggle filter*/
.filters-toggle {
  display: none;
  padding: 10px 15px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 10px;
}

.filters-container {
  display: block;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-group select {
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.filter-button {
  padding: 8px 15px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.filters-toggle.showing-close {
  border: 1px solid red;
}

/* Filtros e Listagens */
.filters {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1em;
}

.filter-button {
  background: var(--secondary);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.filter-button:hover {
  background: #2a5f5d;
}

/* Banner Estático */
.static-banner {
  background: var(--secondary);
  /* background: #2c3e50; */
  color: white;
  text-align: center;
  padding: 1rem;
  margin: 2rem 0;
  border-radius: 8px;
}

/* Listings */
.listing-card {
  background: white;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: transform 0.2s;
}

.listing-card:hover {
  transform: translateY(-2px);
}

.cards {
  display: flex;
  margin-right: 2rem;
}

.cards {
  display: flex;
  width: 100%;
  gap: 20px; /* Adjust gap between cards as needed */
}

.card-image img {
  width: 200px;
  /* width: 150px; */
  height: 200px;
  /* height: 150px; */
  border-radius: 8px;
  overflow: hidden;
}

.card-content {
  flex: 1;
}

.card-content p {
  margin-top: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fabricante-premium {
  background: linear-gradient(135deg, #4e54c8, #8f94fb); /* Purple gradient */
  color: #ffffff; /* White text for contrast */
  border: 1px solid #4e54c8; /* Dark purple border for emphasis */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.fabricante-gold {
  background: #ffdb58;
  color: #47007a;
}

.fabricante-gold-2 {
  background: linear-gradient(135deg, #ffd700, #ffa500); /* Gold gradient */
  color: #ffffff; /* White text for contrast */
  border: 1px solid #ffa500; /* Orange border for emphasis */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.fabricante {
  background: #ebf8ff;
  color: #3182ce;
}

.aplicador {
  background: #f0fff4;
  color: #38a169;
}

.aplicador-gold {
  background: linear-gradient(135deg, #ffd700, #ffa500); /* Gold gradient */
  color: #ffffff; /* White text for contrast */
  border: 1px solid #ffa500; /* Orange border for emphasis */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Silver Tier */
.aplicador-silver {
  background: linear-gradient(135deg, #c0c0c0, #a8a8a8); /* Silver gradient */
  color: #ffffff; /* White text */
  border-color: #a8a8a8; /* Silver border */
}

/* Basic Tier */
.aplicador-basic {
  background: #e2e8f0; /* Light gray */
  color: #4a5568; /* Dark gray text */
  border-color: #cbd5e0; /* Gray border */
}

.company {
  font-size: 1.25rem;
  color: var(--primary);
  margin: 0.5rem 0;
}

.details {
  display: flex;
  gap: 1.5rem;
  /* color: #718096; */
  margin: 0.5rem 0;
}

.short-description-company h2 {
  margin-top: 2rem;
}

.contacts {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.contacts a {
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contacts a[href*="whatsapp"] {
  color: #25d366;
}

.info-button {
  background: var(--cta);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
}

.info-button:hover {
  background: #2a5f5d;
}

/* Section CTA */
.cta-section {
  background: var(--secondary);
  color: white;
  padding: 4rem 1rem;
  margin: 4rem 0;
  text-align: center;
  border-radius: 8px;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
}

.cta-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 8px;
  transition: transform 0.2s;
  text-decoration: none;
  color: white;
}

.cta-card:hover {
  transform: translateY(-5px);
}

/**CTA SIMULAR MATRICULA**/
.image-cta-card {
  text-align: center;
  width: 100%;
  align-items: center;
  background: white;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.preview-image {
  margin-bottom: 28px;
}

.preview-image a {
  display: inline-block;
}

.preview-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.preview-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.cta-message {
  color: #333;
  font-size: 1.05rem;
  line-height: 1.6;
}

.cta-message a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.cta-message a:hover {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
}

/*Banner*/
.ad-banner-tag {
  text-align: center;
  margin-bottom: 10px;
}

#static-banner {
  width: 100%;
  z-index: 100;
  display: flex; /* Enable Flexbox */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
}

#static-banner img {
  width: 75%; /* Or a specific width if you want */
  height: 120px; /* Set your desired height here */
  align-content: center;
  border-radius: 8px;
  display: block;
  max-width: 100%; /* Prevents image from overflowing its container */
  object-fit: fill;
}

/*Social share*/

.follow-us {
  margin-top: 10px;
}

.follow-us p {
  display: inline;
  margin-right: 10px;
}

.social-icon {
  color: white;
  margin: 0 5px;
  font-size: 16px;
  text-decoration: none;
}

.social-icon:hover {
  color: #fff;
}

.share-buttons {
  margin-top: 20px;
}

.share-buttons p {
  margin-bottom: 10px;
}

.share-icons {
  display: flex;
  gap: 20px;
  margin-top: 0.5rem;
}

.share-icons a {
  color: #007bff;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.share-icons a:hover {
  color: #0056b3;
}

.popup {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  display: none;
}

.popup::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #333;
}

/* Footer */
footer {
  background: var(--secondary);
  color: white;
  padding: 2rem 1rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-container p {
  margin-top: 1rem;
}

.footer-contact-info a {
  margin-right: 1rem;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  margin-left: 2rem;
}

.footer-nav-social a {
  color: white;
  text-decoration: none;
  margin-left: 2rem;
}

@media (max-width: 900px) {
  .listing-card {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none; /* Hide nav links by default on mobile */
    flex-direction: column;
    position: absolute;
    top: 60px; /* Adjust based on header height */
    right: 1rem;
    background-color: #f8f8f8;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .hero-section h1 {
    font-size: 1.8rem;
  }

  .info-button {
    width: 100%;
    text-align: center;
  }

  .cards {
    flex-direction: column;
  }

  .card-content.first-card,
  .card-content.second-card {
    width: 100%;
  }

  .listing-card {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-nav,
  .footer-nav-social,
  .footer-contact-info {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }

  .footer-contact-info a {
    margin: 0 0.5rem;
  }

  .footer-nav a {
    margin: 0 0.5rem;
  }

  .footer-nav-social a {
    margin: 0 0.5rem;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
}

@media (max-width: 574px) {
  .filters-toggle {
    display: block;
  }

  .filters-container {
    display: none;
  }

  .filters-container.show {
    display: block;
  }

  /* .filters {
    flex-direction: column;
  } */
}

@media (max-width: 425px) {
  .usp-grid {
    display: none;
  }

  #static-banner img {
    width: 100%;
  }

  .ad-banner img {
    height: 120px;
  }
  .hero-section {
    padding: 1rem 1rem;
  }

  .card-image {
    gap: 10px;
  }

  .card-image img {
    display: flex;
    margin: 0 auto;
    padding-bottom: 5px;
  }

  /* Responsive Banner */
  .ad-slide {
    height: 70px;
    margin: 0 0.25rem;
  }
}

@media (max-width: 574px) and (min-width: 426px) {
  .ad-slide {
    height: 80px;
  }
}

@media (max-width: 768px) and (min-width: 575px) {
  .ad-slide {
    height: 100px;
  }
}

@media (max-width: 900px) and (min-width: 769px) {
  .ad-slide {
    height: 120px;
  }
}
