/* As <img> têm width/height no HTML (reserva de espaço, evita "pulos" no carregamento).
   Estas regras mantêm a proporção quando o CSS define só a largura ou só a altura. */
img { height: auto; }
.navbar-brand img { width: auto; }

/* Imagens dos cards (projetos e blog): proporção 3:2, recorte sem distorcer */
.project-image img,
.blog-image img,
.post-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Logo do rodapé (logo-claro.svg, quadrada) */
.footer-logo { height: 48px; width: auto; }

/* Definição da paleta de cores baseada no logotipo */
:root {
  --primary-blue: #0052a5;
  --primary-orange: #ff6b00;
  --light-blue: #3a7bd5;
  --light-orange: #ff9d4d;
  --dark-blue: #003c7d;
  --dark-orange: #cc5500;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #343a40;
  --white: #ffffff;
  --black: #212529;
}

/* Estilos Gerais */
body {
  font-family: 'Roboto', sans-serif;
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--dark-blue);
}

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

.btn-primary:hover {
  background-color: var(--dark-blue);
  border-color: var(--dark-blue);
}

.btn-secondary {
  background-color: var(--primary-orange);
  border-color: var(--primary-orange);
}

.btn-secondary:hover {
  background-color: var(--dark-orange);
  border-color: var(--dark-orange);
}

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

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

.section-padding {
  padding: 80px 0;
}

.section-title {
  margin-bottom: 50px;
  text-align: center;
}

.section-title h2 {
  font-size: 2.5rem;
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-blue), var(--primary-orange));
}

.section-title p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--dark-gray);
}

/* Navbar */
.navbar {
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar-brand img {
  height: 50px;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--dark-gray);
  font-weight: 500;
  padding: 8px 15px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary-blue);
}

.navbar-light .navbar-toggler {
  border-color: transparent;
}

.navbar-scrolled {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue)) no-repeat center center;
  background-size: cover;
  padding: 150px 0;
  color: var(--white);
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Serviços */
.services .card {
  border: none;
  transition: all 0.3s ease;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.services .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.services .card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary-blue);
}

.services .card-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.services .card-body {
  padding: 30px;
}

/* Sobre */
.about-image img {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-content {
  padding: 30px 0;
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 20px;
}

/* Portfólio */
.portfolio .filter-buttons {
  margin-bottom: 30px;
  text-align: center;
}

.portfolio .filter-btn {
  background: transparent;
  border: 1px solid var(--medium-gray);
  padding: 8px 20px;
  margin: 0 5px 10px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.portfolio .filter-btn:hover,
.portfolio .filter-btn.active {
  background-color: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

.portfolio .project-card {
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.portfolio .project-image {
  position: relative;
  overflow: hidden;
}

.portfolio .project-image img {
  width: 100%;
  transition: all 0.5s ease;
}

.portfolio .project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 82, 165, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.5s ease;
}

.portfolio .project-card:hover .project-overlay {
  opacity: 1;
}

.portfolio .project-card:hover .project-image img {
  transform: scale(1.1);
}

.portfolio .project-links a {
  width: 45px;
  height: 45px;
  background: var(--white);
  color: var(--primary-blue);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.portfolio .project-card:hover .project-links a {
  transform: translateY(0);
  opacity: 1;
}

.portfolio .project-links a:hover {
  background: var(--primary-orange);
  color: var(--white);
}

.portfolio .project-info {
  padding: 20px;
  background: var(--white);
}

.portfolio .project-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.portfolio .project-tags .tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--light-gray);
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 5px;
  margin-bottom: 5px;
}

/* Depoimentos */
.testimonials .testimonial-card {
  background: var(--white);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.testimonials .testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonials .testimonial-content {
  margin-bottom: 20px;
}

.testimonials .testimonial-rating {
  color: var(--primary-orange);
  margin-bottom: 15px;
}

.testimonials .testimonial-text {
  font-style: italic;
}

/* Autor do depoimento: avatar redondo de 60px à esquerda, nome e cargo à direita.
   Sem escopo .testimonials para valer em index, depoimentos e erp. */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-image {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.author-info p {
  color: var(--dark-gray);
  margin: 0;
  font-size: 0.9rem;
}

/* Blog: posts recentes da barra lateral (miniatura ao lado do título) */
.recent-post {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.post-thumb {
  flex-shrink: 0;
}

.post-thumb img {
  display: block;
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

/* Sobre: avatar da equipe (redondo na img; o contêiner também guarda os ícones sociais) */
.member-image img {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 15px;
}

/* Blog */
.blog .blog-card {
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.blog .blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog .blog-image {
  position: relative;
}

.blog .blog-image img {
  width: 100%;
}

.blog .blog-category {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--primary-blue);
  color: var(--white);
  padding: 5px 15px;
  font-size: 0.8rem;
}

.blog .blog-content {
  padding: 20px;
}

.blog .blog-meta {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--dark-gray);
}

.blog .blog-meta span {
  margin-right: 15px;
}

.blog .blog-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.blog .blog-excerpt {
  margin-bottom: 15px;
}

.blog .blog-read-more {
  font-weight: 500;
  color: var(--primary-blue);
}

.blog .blog-read-more:hover {
  color: var(--primary-orange);
}

/* Contato */
.contact-info .contact-card {
  text-align: center;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.contact-info .contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-info .contact-icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.contact-info .contact-card h3 {
  margin-bottom: 15px;
}

.contact-form .form-control {
  border-radius: 0;
  border: 1px solid var(--medium-gray);
  padding: 12px 15px;
  margin-bottom: 20px;
}

.contact-form .form-control:focus {
  box-shadow: none;
  border-color: var(--primary-blue);
}

.map-container {
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
}

/* Sistema ERP */
.erp-features .feature-card {
  text-align: center;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.erp-features .feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.erp-features .feature-icon {
  font-size: 3rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.erp-dashboard img {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.erp-pricing .pricing-card {
  text-align: center;
  padding: 40px 30px;
  margin-bottom: 30px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.erp-pricing .pricing-card.featured {
  transform: scale(1.05);
  z-index: 1;
  border: 2px solid var(--primary-blue);
}

.erp-pricing .pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.erp-pricing .pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.erp-pricing .pricing-header {
  margin-bottom: 30px;
}

.erp-pricing .pricing-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.erp-pricing .pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.erp-pricing .pricing-period {
  color: var(--dark-gray);
}

.erp-pricing .pricing-features {
  margin-bottom: 30px;
  list-style: none;
  padding: 0;
}

.erp-pricing .pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--light-gray);
}

.erp-pricing .pricing-features li:last-child {
  border-bottom: none;
}

/* CTA Section */
.cta {
  background: linear-gradient(to right, var(--primary-blue), var(--primary-orange));
  padding: 80px 0;
  color: var(--white);
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn {
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Footer */
footer {
  background: var(--dark-gray);
  color: var(--white);
  padding: 80px 0 0;
}

footer h4 {
  color: var(--white);
  margin-bottom: 25px;
  font-size: 1.3rem;
}

footer p, footer a {
  color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
  color: var(--white);
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul li {
  margin-bottom: 10px;
}

footer ul li a {
  transition: all 0.3s ease;
}

footer ul li a:hover {
  padding-left: 5px;
}

footer .social-icons {
  margin-top: 20px;
}

footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  margin-right: 10px;
  transition: all 0.3s ease;
}

footer .social-icons a:hover {
  background: var(--primary-blue);
  transform: translateY(-5px);
}

footer .copyright {
  text-align: center;
  padding: 20px 0;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsividade */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 60px 0;
  }
  
  .hero {
    padding: 100px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .cta h2 {
    font-size: 1.8rem;
  }
  
  .cta p {
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .section-padding {
    padding: 50px 0;
  }
  
  .hero {
    padding: 80px 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .portfolio .filter-btn {
    margin-bottom: 10px;
  }
}
