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

body {
  font-family: 'Poppins', 'Roboto', 'Raleway', Arial, sans-serif;
  background: #f7f7f9;
  color: #222;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  z-index: 1000;
}

.navbar-brand {
  font-weight: bold;
  color: #003366;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.nav-link {
  color: #003366;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #25d366;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #003366 0%, #004080 100%);
  color: #fff;
  padding: 120px 0 60px;
  text-align: center;
  margin-top: 56px;
}

.hero-section h1 {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.2rem;
  opacity: 0.95;
}

/* Sections */
section {
  padding: 60px 0;
}

.section-title {
  color: #003366;
  font-weight: bold;
  margin-bottom: 2rem;
  text-align: center;
}

/* Cards */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,51,102,0.15);
}

.card-hover {
  transition: transform 0.3s, box-shadow 0.3s;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,51,102,0.15);
}

/* Buttons */
.btn-primary {
  background-color: #003366;
  border-color: #003366;
  padding: 10px 30px;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-primary:hover {
  background-color: #25d366;
  border-color: #25d366;
  transform: translateY(-2px);
}

.btn-success {
  background-color: #25d366;
  border-color: #25d366;
  padding: 10px 30px;
  border-radius: 25px;
  font-weight: 500;
}

.btn-success:hover {
  background-color: #128c7e;
  border-color: #128c7e;
}

/* Forms */
.form-control {
  border-radius: 8px;
  border: 1px solid #b3c6e0;
  padding: 10px 15px;
}

.form-control:focus {
  border-color: #25d366;
  box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.25);
}

/* Footer */
footer {
  background: #003366;
  color: #fff;
  padding: 30px 0;
  text-align: center;
}

footer .dev {
  color: #b3c6e0;
  font-size: 0.9em;
}

/* Social Links */
.social-links a {
  color: #003366;
  font-size: 1.5rem;
  margin: 0 10px;
  transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
  color: #25d366;
  transform: scale(1.2);
}

.social-instagram {
  color: #E4405F;
}

.social-facebook {
  color: #1877F3;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Blog */
.blog-post {
  margin-bottom: 40px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.blog-post img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.blog-post-content {
  padding: 25px;
}

.blog-post-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* Blog Sidebar */
.blog-sidebar {
  align-self: flex-start;
  height: fit-content;
}

/* Garantir que a row do blog não force alinhamento de altura */
section.py-5 .row {
  align-items: flex-start;
}

.blog-sidebar .card {
  margin-bottom: 1rem;
}

.blog-sidebar .card:last-child {
  margin-bottom: 0;
}

.blog-sidebar .card-body {
  padding: 1rem;
}

.blog-sidebar .card-body h5 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.blog-sidebar .list-unstyled {
  margin-bottom: 0;
}

.blog-sidebar .list-unstyled li {
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.blog-sidebar .list-unstyled li:last-child {
  margin-bottom: 0;
}

.blog-sidebar .mb-3.pb-3,
.blog-sidebar .mb-2.pb-2 {
  margin-bottom: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.blog-sidebar .mb-3.pb-3:last-of-type,
.blog-sidebar .mb-2.pb-2:last-of-type {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

.blog-sidebar h6 {
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.blog-sidebar small {
  font-size: 0.8rem;
}

.blog-sidebar .input-group {
  margin-bottom: 0;
}

.blog-sidebar p {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

/* Product Catalog */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card-body {
  padding: 20px;
}

.product-card-title {
  color: #003366;
  font-weight: bold;
  margin-bottom: 10px;
}

.product-card-price {
  color: #25d366;
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 10px;
}

/* Filter */
.filter-section {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filter-btn.active {
  background-color: #003366;
  border-color: #003366;
  color: #fff;
}

/* Contact */
.contact-info {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-info-item i {
  font-size: 1.5rem;
  color: #003366;
  margin-right: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .gallery-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* Utilities */
.text-primary {
  color: #003366 !important;
}

.bg-light {
  background-color: #f7f7f9 !important;
}

.shadow-sm {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

/* Segmentos Pages */
.segment-hero {
  background: linear-gradient(135deg, #003366 0%, #004080 100%);
  color: #fff;
}

.filters-sidebar {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.filter-checkboxes {
  max-height: 200px;
  overflow-y: auto;
}

.filter-checkboxes .form-check {
  margin-bottom: 8px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 0;
}

.segment-product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.segment-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,51,102,0.15);
}

.segment-product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.segment-product-card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.segment-product-card-title {
  color: #003366;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.segment-product-card-manufacturer {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.segment-product-card-description {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.segment-product-card-btn {
  margin-top: auto;
}

/* Modal Detalhes */
.modal-product-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.modal-product-title {
  color: #003366;
  font-weight: bold;
  margin-bottom: 10px;
}

.modal-product-manufacturer {
  color: #666;
  font-size: 1rem;
  margin-bottom: 20px;
}

.modal-product-section {
  margin-bottom: 25px;
}

.modal-product-section h6 {
  color: #003366;
  font-weight: bold;
  margin-bottom: 10px;
}

.modal-product-specs {
  list-style: none;
  padding: 0;
}

.modal-product-specs li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.modal-product-specs li:last-child {
  border-bottom: none;
}

.modal-product-specs strong {
  color: #003366;
  margin-right: 8px;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
  font-size: 30px;
}

/* Responsive Segmentos */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .filters-sidebar {
    position: static;
    max-height: none;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-float i {
    font-size: 24px;
  }
}

