/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

/* ===== VARIABLES CSS ===== */
:root {
  --header-height: 5rem;

  /* ========== Colors ========== */
  --primary-color: #0b5182;
  --secondary-color: #2D82B7;
  --light-gray: #12875c;
  --white-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #666666;
  --text-lighter: #999999;

  /* ========== Font and typography ========== */
  --body-font: 'Roboto', sans-serif;
  --title-font: 'Poppins', sans-serif;

  /* Desktop */
  --biggest-font-size: 3rem;
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.813rem;

  /* ========== Font weight ========== */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /* ========== Margins Bottom ========== */
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  /* ========== z index ========== */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;

  /* ========== Transitions ========== */
  --transition: all 0.3s ease;
}

/* Font size for large devices */
@media screen and (max-width: 992px) {
  :root {
    --biggest-font-size: 2.25rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.75rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0 0 var(--header-height) 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--white-color);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: var(--text-dark);
  font-weight: var(--font-semi-bold);
  font-family: var(--title-font);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== REUSABLE CSS CLASSES ===== */
.container {
  max-width: 1200px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.grid {
  display: grid;
}

.section {
  padding: 5rem 0 2rem;
}

.section__title {
  font-size: var(--h1-font-size);
  color: #ffffff ;
  text-align: center;
  margin-bottom: var(--mb-0-75);
  font-family: var(--title-font);
  font-weight: var(--font-bold);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-3);
  text-align: center;
  color: #ffffff ;
}

.button {
  display: inline-block;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: var(--white-color);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(45, 130, 183, 0.3);
}

/* ===== HEADER & NAV ===== */
.header {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.nav {
  max-width: 1200px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--primary-color);
  font-weight: var(--font-bold);
  font-family: var(--title-font);
  font-size: var(--h2-font-size);
}


.nav__menu {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: var(--white-color);
  padding: 2rem 1.5rem 4rem;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.15);
  border-radius: 1.5rem 1.5rem 0 0;
  transition: var(--transition);
}

.nav__list {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--small-font-size);
  color: var(--text-light);
  font-weight: var(--font-medium);
  transition: var(--transition);
}

.nav__link:hover {
  color: var(--secondary-color);
}

.nav__icon {
  font-size: 1.2rem;
}

.nav__close {
  position: absolute;
  right: 1.3rem;
  bottom: 0.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
}

.nav__close:hover {
  color: var(--secondary-color);
}

.nav__toggle {
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--primary-color);
}

.nav__toggle:hover {
  color: var(--secondary-color);
}

/* show menu */
.show-menu {
  bottom: 0;
}

/* Active link */
.active-link {
  color: var(--secondary-color);
}

/* Change background header */
.scroll-header {
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.15);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-gray) 100%);
  background-image: url('../assets/images/hero_background.png');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 38, 71, 0.8) 0%, rgba(245, 245, 245, 0.3) 100%);
}

.hero__container {
  position: relative;
  z-index: 2;
}

.hero__content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero__title {
  font-size: var(--biggest-font-size);
  color: var(--white-color);
  margin-bottom: var(--mb-1);
  font-family: var(--title-font);
  font-weight: var(--font-bold);
  line-height: 1.2;
  animation: fadeInUp 1s ease-out;
}

.hero__subtitle {
  font-size: var(--h3-font-size);
  color: #ffffff ;
  margin-bottom: var(--mb-2-5);
  font-weight: var(--font-regular);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero__cta {
  animation: fadeInUp 1s ease-out 0.4s both;
  font-size: var(--normal-font-size);
  padding: 1.25rem 2.5rem;
}

/* ===== SERVICES ===== */
.services {
  background-color: #0b5182 ;
}

.services__container {
  gap: 2rem;
  /* 4 colunas em desktop */
  grid-template-columns: repeat(4, 1fr);
}

.services__card, .mission__card {
  background-color: var(--white-color);
  padding: 2.5rem 1.5rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.services__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  transform: scaleX(0);
  transition: var(--transition);
}

.services__card:hover::before {
  transform: scaleX(1);
}

.services__card:hover, .mission__card:hover { /* Adicione .mission__card:hover aqui */
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}


.services__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--mb-1);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Estilo para o ícone do Font Awesome */
  background-color: rgba(45, 130, 183, 0.1); /* Fundo sutil */
  border-radius: 50%;
}

.services__icon i {
  font-size: 3rem;
  color: var(--secondary-color); /* Cor dos ícones */
}

.services__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
  color: var(--primary-color);
  font-family: var(--title-font);
}

.services__description {
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== ABOUT ===== */

.about {
  gap: 3rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background-color: #afbf91 ;
}

.about__container {
  gap: 3rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.about__content {
  order: 2;
}

.about__description {
  margin-bottom: var(--mb-2);
  color: var(--text-light);
  line-height: 1.7;
}

.about__values {
  margin-top: var(--mb-2-5);
}

.about__value {
  display: flex;
  align-items: center;
  margin-bottom: var(--mb-1-5);
}

.about__value-icon {
  font-size: 1.5rem;
  color: #10865a ;
  margin-right: var(--mb-1);
  width: 50px;
  height: 50px;
  background: rgba(45, 130, 183, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__value-title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-25);
  color: #0b593c ;
}

.about__value-description {
  color: var(--text-light);
  font-size: var(--small-font-size);
}

.about__image {
  order: 1;
  text-align: center;
}

.about__image img {
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background-color: #0b5182
}

.testimonials__container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonials__wrapper {
  overflow: hidden;
  border-radius: 1rem;
}

.testimonial__card {
  background-color: #ffffff ;
  padding: 3rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.testimonial__card.active {
  display: block;
}

.testimonial__text {
  font-size: var(--normal-font-size);
  color: var(--text-light);
  margin-bottom: var(--mb-2);
  line-height: 1.7;
  font-style: italic;
}

.testimonial__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.testimonial__img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial__info {
  text-align: left;
}

.testimonial__name {
  font-size: var(--h3-font-size);
  color: var(--primary-color);
  margin-bottom: var(--mb-0-25);
}

.testimonial__position {
  font-size: var(--small-font-size);
  color: var(--text-light);
}

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--mb-2);
}

.testimonial__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(45, 130, 183, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.testimonial__dot.active {
  background-color: var(--secondary-color);
}

/* ===== CONTACT ===== */
.contact__container {
  gap: 3rem;
  grid-template-columns: 1fr 1fr;
}

.contact {
  background-color: #afbf91 ;
}

.contact__title {
  font-size: var(--h2-font-size);
  color: #10865a ;
  margin-bottom: var(--mb-1);
}

.contact__description {
  color: var(--text-light);
  margin-bottom: var(--mb-2);
  line-height: 1.6;
}

.contact__details {
  margin-top: var(--mb-2);
}

.contact__detail {
  display: flex;
  align-items: center;
  margin-bottom: var(--mb-1-5);
}

.contact__icon {
  font-size: 1.2rem;
  color: #10865a ;
  margin-right: var(--mb-1);
  width: 40px;
  height: 40px;
  background: rgba(45, 130, 183, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact__detail h4 {
  font-size: var(--normal-font-size);
  color: #10865a ;
  margin-bottom: var(--mb-0-25);
}

.contact__detail span {
  color: var(--text-light);
  font-size: var(--small-font-size);
}

.contact__form {
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: 1rem;
}

.contact__form-group {
  position: relative;
  margin-bottom: var(--mb-2);
}

.contact__input {
  width: 100%;
  background-color: #ffffff ;
  color: var(--text-dark);
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  border: 2px solid transparent;
  outline: none;
  padding: 1rem;
  border-radius: 0.5rem;
  transition: var(--transition);
}

.contact__input:focus {
  border-color: var(--secondary-color);
}

.contact__input:focus + .contact__label,
.contact__input:not(:placeholder-shown) + .contact__label {
  top: -0.5rem;
  left: 0.75rem;
  font-size: var(--small-font-size);
  color: var(--secondary-color);
  background-color: var(--white-color);
  padding: 0 0.5rem;
}

.contact__label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: var(--normal-font-size);
  color: var(--text-light);
  transition: var(--transition);
  pointer-events: none;
}

.contact__textarea {
  resize: none;
  height: 120px;
}

.contact__button {
  width: 100%;
  padding: 1rem;
  font-size: var(--normal-font-size);
}

/* ===== FOOTER ===== */
.footer {
  background-color: #ffe8a9 ;
  padding-top: 3rem;
}

.footer__container {
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer__title {
  font-size: var(--h3-font-size);
  color: #515151 ;
  margin-bottom: var(--mb-1);
}

.footer__description {
  color: #515151 ;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__link {
  color: #515151 ;
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--secondary-color);
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(45, 130, 183, 0.2);
  color: var(--white-color);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: var(--transition);
}

.footer__social-link:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.footer__copy {
  text-align: center;
  font-size: var(--small-font-size);
  color: var(--light-gray);
  margin-top: var(--mb-3);
  padding-top: var(--mb-2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: var(--white-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  z-index: var(--z-tooltip);
  animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* ===== SCROLL UP ===== */
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background-color: var(--secondary-color);
  opacity: 0.8;
  padding: 0 0.3rem;
  border-radius: 0.4rem;
  z-index: var(--z-tooltip);
  transition: var(--transition);
}

.scrollup:hover {
  background-color: var(--primary-color);
}

.scrollup__icon {
  font-size: 1.5rem;
  color: var(--white-color);
}

.show-scroll {
  bottom: 5rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ===== BREAKPOINTS ===== */
/* For large devices */
@media screen and (max-width: 992px) {
  .container {
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
  }

  .about__container,
  .contact__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about__content {
    order: 1;
  }

  .about__image {
    order: 2;
  }

  .services__container {
    /* 2 colunas em tablet */
    grid-template-columns: repeat(2, 1fr);
  }
}

/* For medium devices */
@media screen and (max-width: 768px) {
  .header {
    top: 0;
    bottom: initial;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
    column-gap: 1rem;
  }

  .nav__icon,
  .nav__close,
  .nav__toggle {
    display: none;
  }

  .nav__list {
    display: flex;
    column-gap: 2rem;
  }

  .nav__menu {
    position: initial;
    margin-left: auto;
    transition: none;
    box-shadow: none;
    border-radius: 0;
    background-color: transparent;
    padding: 0;
  }

  .change-theme {
    margin: 0;
  }

  .hero {
    padding-top: calc(var(--header-height) + 2rem);
  }

  .section {
    padding: 3rem 0 2rem;
  }

  .services__container {
    /* 2 colunas em mobile grande */
    grid-template-columns: repeat(2, 1fr);
  }

  .whatsapp-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* For small devices */
@media screen and (max-width: 350px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }

  .hero__title {
    font-size: var(--h1-font-size);
  }

  .services__container {
    /* 1 coluna em mobile pequeno */
    grid-template-columns: 1fr;
  }

  .contact__form {
    padding: 1.5rem;
  }

  .whatsapp-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}
.mission__container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mission .section__title {
  color: #2e2e2e;
}

/* ===== TEAM ===== */
.team {
  background-color: var(--primary-color); /* Fundo azul escuro */
}

.team .section__title, .team .section__subtitle {
  color: var(--white-color);
}

.team__container {
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr); /* 3 colunas em desktop */
}

.team__card {
  background-color: #ffffff; /* Cor de fundo do card (azul escuro) */
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.team__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.team__image {
  width: 100%;
  height: 250px; /* Altura fixa para a imagem */
  overflow: hidden;
}

.team__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.team__card:hover .team__image img {
  transform: scale(1.05);
}

.team__content {
  padding: 1.5rem;
  color: var(--white-color);
}

.team__role {
  font-size: var(--small-font-size);
  font-weight: var(--font-regular);
  margin-bottom: var(--mb-0-25);
  color: var(--secondary-color); /* Cor secundária para o cargo */
}

.team__name {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-1);
  color: #333333;
}

.team__description {
  font-size: var(--smaller-font-size);
  line-height: 1.6;
  color: #333333; /* Cor branca para a descrição */
}

/* Responsividade para a seção do time */
@media screen and (max-width: 992px) {
  .team__container {
    grid-template-columns: repeat(2, 1fr); /* 2 colunas em tablet */
  }
}

@media screen and (max-width: 576px) {
  .team__container {
    grid-template-columns: 1fr; /* 1 coluna em mobile */
  }
}



/* ===== TESTIMONIALS ===== */
.testimonials {
  background-color: var(--light-gray);
}

.testimonials__container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonials__wrapper {
  overflow: hidden;
  border-radius: 1rem;
}

.testimonial__card {
  background-color: var(--white-color);
  padding: 3rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.testimonial__card.active {
  display: block;
}

.testimonial__text {
  font-size: var(--normal-font-size);
  color: var(--text-light);
  margin-bottom: var(--mb-2);
  line-height: 1.7;
  font-style: italic;
}

.testimonial__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.testimonial__img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial__info {
  text-align: left;
}

.testimonial__name {
  font-size: var(--h3-font-size);
  color: var(--primary-color);
  margin-bottom: var(--mb-0-25);
}

.testimonial__position {
  font-size: var(--small-font-size);
  color: var(--text-light);
}

.testimonials__nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.testimonials__nav button {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.testimonials__nav button:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

/* Adicionando o media query para o testimonials */
@media screen and (max-width: 992px) {
  .testimonials__container {
    padding: 0 1rem;
  }
}

@media screen and (max-width: 768px) {
  .testimonial__card {
    padding: 2rem 1rem;
  }
}

@media screen and (max-width: 350px) {
  .testimonial__card {
    padding: 1.5rem 0.5rem;
  }
}
