/* Converting from Tailwind to vanilla CSS with brand colors */
:root {
  --primary-color: #294a60; /* Institutional Blue */
  --accent-color: #ea5b0c; /* Complementary Orange */
  --background-color: #ffffff;
  --text-color: #333333;
  --muted-color: #f8f9fa;
  --border-color: #e9ecef;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --font-family: "Montserrat", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quote-icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary-color);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav {
  display: flex;
  gap: 1.5rem;
}

/* Unifying font family for navigation links */
.nav-link {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font-family);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-color);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 4px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("ptexto.png");
  background-size: 60px 60px;
  background-repeat: repeat;
  background-position: 0, 0, 120px, 120px;
  opacity: 0.08;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-wrap: wrap;
  font-family: var(--font-family);
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: #666;
  margin-bottom: 2rem;
  text-wrap: pretty;
  font-family: var(--font-family);
}

.accent-text {
  color: var(--accent-color);
  font-weight: 600;
}

/* Unifying font family for CTA button */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-family: var(--font-family);
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: scale(1);
}

.cta-button:hover {
  background: var(--accent-color);
  transform: scale(1.05);
}

.chevron-down {
  width: 1.25rem;
  height: 1.25rem;
}

/* About Section */
.about {
  padding: 5rem 0;
  background: var(--muted-color);
  position: relative;
}

/* Adding ptexto icon with opacity to about section */
/*.about::after {*/
/*  content: "";*/
/*  position: absolute;*/
/*  bottom: 10%;*/
/*  left: 5%;*/
/*  width: 120px;*/
/*  height: 120px;*/
/*  background-image: url("ptexto.png");*/
/*  background-size: contain;*/
/*  background-repeat: no-repeat;*/
/*  opacity: 0.08;*/
/*  z-index: 1;*/
/*}*/

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-family: var(--font-family);
}

.about-description {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-family: var(--font-family);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  color: var(--accent-color);
  margin: 0 auto 1rem;
}

/* Fixing "25+ anos" text and reducing spacing between title and description */
.stat-title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem; /* Reduced from 0.5rem */
  font-family: var(--font-family);
}

.stat-description {
  font-size: 0.875rem;
  color: #666;
  font-family: var(--font-family);
}

.team-image {
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
}

/* Services Section */
.services {
  padding: 5rem 0;
  position: relative;
}

/* Adding ptexto icon with opacity to services section */
.services::before {
  content: "";
  position: absolute;
  top: 15%;
  right: 8%;
  width: 100px;
  height: 100px;
  background-image: url("ptexto.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.06;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-description {
  font-size: 1.125rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  font-family: var(--font-family);
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

/* Unifying font family for accordion trigger and adding orange color when active */
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: white;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  transition: background-color 0.3s ease;
}

.accordion-trigger:hover {
  background: var(--muted-color);
}

/* Making accordion title orange when active */
.accordion-title {
  font-size: 1.125rem;
  font-weight: 600;
  text-align: left;
  font-family: var(--font-family);
  transition: color 0.3s ease;
  color: #333 !important; /* Force dark color, not blue */
  text-decoration: none !important; /* Remove any link styling */
}

.accordion-title:link,
.accordion-title:visited,
.accordion-title:hover,
.accordion-title:active {
  color: #333 !important; /* Override all link states */
  text-decoration: none !important;
}

.accordion-item.active .accordion-title {
  color: var(--accent-color) !important; /* Orange when active */
}

.accordion-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
  color: var(--accent-color);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--accent-color);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: white;
}

.accordion-item.active .accordion-content {
  max-height: 200px;
}

/* Unifying font family for accordion content */
.accordion-content p {
  padding: 10px 1.5rem 1.5rem;
  color: #333 !important; /* Changed from #666 to darker and added !important */
  line-height: 1.6;
  font-family: var(--font-family);
}

/* Ensuring accordion content color is consistent across all devices */
@media (max-width: 768px) {
  .accordion-content p {
    color: #333 !important; /* Ensuring text stays dark gray/black, not blue */
    padding: 10px 1.5rem 1.5rem;
  }
}

/* Clients Section */
.clients {
  padding: 5rem 0;
  background: var(--muted-color);
  position: relative;
}

/* Adding ptexto icon with opacity to clients section */
.clients::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 10%;
  width: 80px;
  height: 80px;
  background-image: url("ptexto.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.05;
  z-index: 1;
}

/* Improving client logos layout - organizing in better grid with centered bottom row */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: center;
  background: white;
  padding: 3rem 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 0 auto;
}

.client-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: transparent; /* Changed from white to transparent */
  border-radius: 0.5rem;
  transition: box-shadow 0.3s ease;
  width: calc(25% - 1.5rem);
  height: 120px;
  min-width: 200px;
}

.client-logo {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: none;
  border-radius: 8px; /* Added rounded corners for softer appearance on mobile */
}

.client-card:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  /* Adjusting clients grid for mobile - 2 columns */
  .clients-grid {
    justify-content: center;
    padding: 2rem 1rem;
    max-width: 90%;
  }

  .client-card {
    width: calc(50% - 1rem);
  }

  .hero-content {
    padding: 0 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .cards-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .consultant-card {
    padding: 20px;
  }

  .consultant-photo {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  /* Single column for very small screens */
  .clients-grid {
    justify-content: center;
    padding: 1.5rem 0.75rem;
    max-width: 95%;
  }

  .client-card {
    width: 100%;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }
}

/* Adding proper padding to consultores section */
.consultores-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1rem; /* Added consistent padding like other sections */
  position: relative;
}

/* Adding ptexto icon with opacity to consultores section */
.consultores-section::before {
  content: "";
  position: absolute;
  top: 10%;
  right: 5%;
  width: 90px;
  height: 90px;
  background-image: url("ptexto.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.07;
  z-index: 1;
}

.section-title {
  text-align: center;
  color: #294a60;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 50px;
  position: relative;
  font-family: var(--font-family);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #ea5b0c;
  border-radius: 2px;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.consultant-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(41, 74, 96, 0.1);
  transition: all 0.3s ease;
  border-top: 4px solid #ea5b0c;
  position: relative;
  overflow: hidden;
}

.consultant-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ea5b0c, #294a60);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.consultant-card:hover::before {
  transform: scaleX(1);
}

.consultant-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(41, 74, 96, 0.15);
}

.consultant-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  display: block;
  border: 4px solid #ea5b0c;
  transition: all 0.3s ease;
}

.consultant-card:hover .consultant-photo {
  border-color: #294a60;
  transform: scale(1.05);
}

.consultant-name {
  color: #294a60;
  font-size: 1.4rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  font-family: var(--font-family);
}

.consultant-description {
  color: #666;
  line-height: 1.6;
  text-align: center;
  font-size: 0.95rem;
  font-family: var(--font-family);
}

.highlight {
  color: #ea5b0c;
  font-weight: 600;
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: white;
  padding: 3rem 0;
}

.footer-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-family);
  text-align: center;
}

.footer-slogan {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  font-family: var(--font-family);
  text-align: center;
}

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-family);
  text-align: center;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.8s ease-in-out;
}

.slide-up {
  animation: slideUp 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.client-card:hover .client-logo {
  opacity: 1;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-family: var(--font-family);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent-color);
}

.contact-link {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: var(--font-family);
}

.contact-link:hover {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-form-card {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

/* Unifying font family for form inputs and textarea */
.form-input,
.form-textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-size: 1rem;
  font-family: var(--font-family);
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Unifying font family for form submit button */
.form-submit {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-family: var(--font-family);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-submit:hover {
  background: var(--accent-color);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem; /* dá um respiro nas laterais */
  }
  
 .nav.mobile-active {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--primary-color);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  z-index: 2000;
}

.nav.mobile-active .nav-link {
  color: white;
  font-size: 1.5rem;
}


  .contact-form-card {
    width: 100%;
    padding: 1.5rem;
  }

  .contact-info {
    text-align: center;
  }

  .form-input,
  .form-textarea {
    width: 100%;
  }
}

