/* ---- VARIÁVEIS GLOBAIS E RESET ---- */
:root {
  --primary-color: #330101; /* Azul Corporativo */
  --secondary-color: #f4f4f4e1; /* Cinza Claro para fundos */
  --dark-color: #3f3f3f;
  --light-color: #fff;
  --golden-color: #a07f53; /* Dourado */
  --font-family: "Poppins", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  background-color: var(--light-color);
  color: var(--dark-color);
}

.initial-logo {
  position: absolute;
  top: 50%;
  left: 2%; /* Ajuste a distância da esquerda conforme necessário */
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  width: var(--logo-width-initial);
  z-index: 1001;
  transition: opacity 0.3s, transform 0.3s, font-size 0.3s;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  color: var(--dark-color);
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

#mainLogo {
  width: 150px;
  height: auto;
  transition: transform 0.3s;
}

/* ---- CABEÇALHO E NAVEGAÇÃO ---- */
.main-header {
  background: var(--light-color);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav ul li {
  margin-left: 20px;
}

.main-nav ul li a {
  color: var(--dark-color);
  font-weight: 600;
  transition: color 0.3s;
}

.main-nav ul li a:hover {
  color: var(--primary-color);
}

/* ---- SEÇÃO HERO ---- */
.hero-section {
  background: url("../images/main_logo.png") no-repeat center center;
  background-size: 90%;
  background-color: var(--primary-color);
  color: var(--light-color);
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: left;
  text-align: left;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  width: 50vw;
}

.hero-content p {
  text-align: left;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem 0;
}

.rosana-img {
  width: 36em;
  max-width: 620px;
  right: -100px;
  bottom: -18rem;
  position: absolute;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.btn-primary {
  display: inline-block;
  background-color: var(--golden-color);
  color: var(--light-color);
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  border: 2px solid var(--light-color);
  transition: background-color 0.3s, color 0.3s;
}

.btn-primary:hover {
  background: var(--light-color);
  color: var(--golden-color);
  border: 2px solid var(--golden-color);
}

.btn-secondary {
  display: inline-block;
  background-color: var(--golden-color);
  color: var(--light-color);
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  border: 2px solid var(--golden-color);
  transition: background-color 0.3s, color 0.3s;
}

.btn-secondary:hover {
  background: transparent;
  color: var(--golden-color);
  border: 2px solid var(--golden-color);
}

/* ---- SEÇÕES GERAIS ---- */
section {
  padding: 60px 0;
}

.services-section,
.team-section {
  background-color: var(--secondary-color);
}

/* ---- SERVIÇOS ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.service-card {
  background: var(--light-color);
  padding: 30px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.service-card ion-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* ---- EQUIPE ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 3rem;
  text-align: center;
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--primary-color);
}

.team-member h3 {
  margin-bottom: 0.2rem;
}

.team-member p {
  font-style: italic;
  color: #666;
}

/* ---- CONTATO ---- */
.contact-section {
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 2rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: var(--font-family);
}

.contact-form button {
  cursor: pointer;
  border-radius: 5px;
}

/* ---- RODAPÉ ---- */
.main-footer {
  background: var(--dark-color);
  color: var(--light-color);
  text-align: center;
  padding: 20px 0;
}

/* ---- ANIMAÇÕES DE SCROLL ---- */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in {
  transform: translateY(20px);
}

.fade-in-up {
  transform: translateY(50px);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- MEDIA QUERIES PARA RESPONSIVIDADE ---- */
@media (max-width: 768px) {
  h2 {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .main-header .container {
    flex-direction: column;
    gap: 10px;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
  }
}

#whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-size: 3.5em;
  transition: box-shadow 0.2s;
  text-decoration: none;
}
#whatsapp-float:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  background: #128c7e;
}
#whatsapp-float ion-icon {
  font-size: 1em;
}

#sobre .about-desc {
  background: none;
  color: inherit;
  position: static;
  padding: 0;
  border-radius: 0;
}

.team-carousel-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
  padding: 32px 0;
}
.team-carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  position: relative;
  height: 340px;
}
.team-member {
  transition: transform 0.4s, opacity 0.4s;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 250px;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0.5;
  z-index: 1;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding: 16px;
}
.team-member.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 3;
}
.team-member.next {
  transform: translate(calc(-50% + 180px), -50%) scale(0.8);
  opacity: 0.7;
  z-index: 2;
}
.team-member.prev {
  transform: translate(calc(-50% - 180px), -50%) scale(0.8);
  opacity: 0.7;
  z-index: 2;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #a07f53;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2em;
  cursor: pointer;
  z-index: 10;
  opacity: 0.8;
}
.carousel-btn.prev-btn {
  left: 0;
}
.carousel-btn.next-btn {
  right: 0;
}
@media (max-width: 600px) {
  .team-carousel {
    height: 270px;
  }
  .team-member {
    width: 180px;
    padding: 8px;
  }
  .team-member.next,
  .team-member.prev {
    transform: translate(calc(-50% + 110px), -50%) scale(0.7);
  }
  .team-member.prev {
    transform: translate(calc(-50% - 110px), -50%) scale(0.7);
  }
}
