/*=============== GOOGLE FONTS ===============*/
/* Importado via HTML */

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

  /*========== Colors ==========*/
  --first-color: hsl(38, 69%, 59%); /* Dourado */
  --first-color-alt: hsl(38, 69%, 45%); 
  --title-color: hsl(210, 8%, 15%); /* Cinza Carvão */
  --text-color: hsl(210, 8%, 45%);
  --text-color-light: hsl(210, 4%, 55%);
  --body-color: hsl(0, 0%, 98%); /* Branco Gelo / Fundo */
  --container-color: hsl(0, 0%, 100%); /* Branco */
  --border-color: hsl(210, 15%, 90%);

  /*========== Font and typography ==========*/
  --body-font: 'Poppins', sans-serif;
  --title-font: 'Playfair Display', serif;
  
  --biggest-font-size: 2.5rem;
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: .875rem;
  --smaller-font-size: .813rem;

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

  /*========== z-index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
  
  /*========== Transition ==========*/
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media screen and (min-width: 1024px) {
  :root {
    --biggest-font-size: 4.5rem;
    --h1-font-size: 3rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.5rem;
    --normal-font-size: 1.125rem;
    --small-font-size: .938rem;
    --smaller-font-size: .875rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1140px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

.section__title-container {
    text-align: center;
    margin-bottom: 3rem;
}

.section__title {
  font-size: var(--h2-font-size);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--first-color);
  font-family: var(--body-font);
  font-weight: var(--font-medium);
}

/*=============== BUTTONS ===============*/
.button {
    display: inline-block;
    background-color: var(--first-color);
    color: white;
    padding: 1rem 2.5rem;
    font-weight: var(--font-medium);
    border-radius: 50px;
    transition: var(--transition);
    border: 2px solid var(--first-color);
}
.button:hover {
    background-color: var(--first-color-alt);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px var(--first-color);
}

.button--secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}
.button--secondary:hover {
    background-color: white;
    color: var(--title-color);
}
.button--white {
    background-color: white;
    color: var(--title-color);
}
.button--white:hover {
    background-color: var(--body-color);
    box-shadow: 0 10px 20px -10px hsla(210, 8%, 15%, 0.4);
}

/*=============== HEADER & NAV ===============*/
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: transparent;
  transition: var(--transition);
}

.header.scrolled, .header-internal {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px hsla(0, 0%, 0%, 0.05);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav__logo {
  color: var(--title-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: var(--font-semi-bold);
  font-family: var(--title-font);
  font-size: 1.25rem;
}
.nav__logo i {
  color: var(--first-color);
  font-size: 1.5rem;
}

.header.scrolled .nav__logo,
.header.scrolled .nav__link,
.header.scrolled .nav__toggle,
.header-internal .nav__logo,
.header-internal .nav__link,
.header-internal .nav__toggle {
    color: var(--title-color);
}

/* Quando header não tem scroll, na hero, links ficam brancos */
.header:not(.scrolled):not(.header-internal) .nav__logo, 
.header:not(.scrolled):not(.header-internal) .nav__link, 
.header:not(.scrolled):not(.header-internal) .nav__toggle {
    color: white;
}
.header.scrolled .nav__link:hover, .header-internal .nav__link:hover {
  color: var(--first-color) !important;
}

.nav__link {
    font-weight: var(--font-medium);
    transition: color 0.3s;
    position: relative;
    padding-bottom: 0.5rem;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--first-color);
    transition: var(--transition);
}
.nav__link:hover, .nav__link.active-link {
    color: var(--first-color) !important;
}
.nav__link:hover::after, .nav__link.active-link::after {
    width: 70%;
}

@media screen and (max-width: 1023px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background-color: var(--container-color);
    padding: 6rem 2rem 2rem;
    box-shadow: -2px 0 10px hsla(0, 0%, 0%, 0.1);
    transition: var(--transition);
  }
  .nav__list {
      display: flex;
      flex-direction: column;
      gap: 2rem;
  }
  .nav__link {
      color: var(--title-color) !important; /* Sempre escuro no mobile */
  }
  .nav__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--title-color);
  }
  .nav__toggle {
      font-size: 1.5rem;
      cursor: pointer;
  }
  .show-menu {
    right: 0;
  }
}

/* Mega Dropdown */
.nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--container-color);
    box-shadow: 0 10px 20px hsla(0,0%,0%,.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}
.nav__dropdown-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 2rem;
    gap: 2rem;
    max-width: 1140px;
    margin: 0 auto;
}
.nav__dropdown-title {
    font-size: var(--small-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--text-color-light);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: .5rem;
    margin-bottom: 1rem;
    display: block;
}
.nav__dropdown-link {
    display: block;
    padding: .5rem 0;
    color: var(--text-color);
    transition: color .3s;
}
.nav__dropdown-link strong {
    color: var(--title-color);
    display: block;
    margin-bottom: .25rem;
}
.nav__dropdown-link p {
    font-size: var(--smaller-font-size);
}
.nav__dropdown-link:hover,
.nav__dropdown-link:hover strong {
    color: var(--first-color);
}
.nav__dropdown-item:hover .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav__dropdown-item .nav__link i {
    transition: .3s;
}
.nav__dropdown-item:hover .nav__link i {
    transform: rotate(180deg);
}


/*=============== HERO & PAGE HERO ===============*/
.hero {
    position: relative;
    height: 100vh;
    display: grid;
    align-items: center;
    overflow: hidden;
}
.hero__video, .hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.hero__video img, .hero__video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero__overlay {
    background-color: hsla(0, 0%, 0%, 0.4);
}
.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
}
.hero__title {
    font-size: clamp(2rem, 6vw, var(--biggest-font-size));
    color: white;
    margin-bottom: 1rem;
}
.hero__subtitle {
    font-size: clamp(1rem, 2.5vw, var(--h3-font-size));
    color: rgba(255,255,255,0.8);
    font-weight: var(--font-light);
    margin-bottom: 2rem;
}
.hero__buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.hero__scroll {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--small-font-size);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}
.hero__scroll i {
    font-size: 1.5rem;
}

.page-hero {
    background-color: hsl(40, 20%, 95%);
    padding: 8rem 0 4rem;
    text-align: center;
}
.page-hero__title {
    font-size: clamp(2rem, 5vw, var(--h1-font-size));
    margin-bottom: 1rem;
}
.page-hero__subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-color-light);
}

/*=============== ABOUT (QUEM SOMOS) ===============*/
.about__grid {
    display: grid;
    gap: 3rem;
    align-items: flex-start;
}

.about__manifesto p {
    line-height: 1.8;
    margin-bottom: 2rem;
}
.mvv__buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.mvv__button {
    background: none;
    border: none;
    padding: .75rem 0;
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    color: var(--text-color-light);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}
.mvv__button.active-mvv {
    color: var(--first-color);
}
.mvv__button.active-mvv::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--first-color);
}

.mvv__text {
    display: none;
    animation: fadeIn .4s;
}
.mvv__text.active-mvv {
    display: block;
}

.about__timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--border-color);
}
.timeline__item {
    position: relative;
    padding-bottom: 2.5rem;
}
.timeline__item:last-child {
    padding-bottom: 0;
}
.timeline__item::before {
    content: '';
    position: absolute;
    left: -2.8rem;
    top: 0.1rem;
    width: 16px;
    height: 16px;
    background-color: var(--first-color);
    border: 3px solid var(--body-color);
    border-radius: 50%;
    z-index: 1;
}
.timeline__year {
    font-size: var(--normal-font-size);
    font-weight: var(--font-bold);
    color: var(--first-color);
    margin-bottom: .25rem;
}

/*=============== SERVICES & MODAL ===============*/
.services__container {
    padding-top: 1rem;
}
.services__filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.filter__button {
    background-color: var(--container-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: .75rem 1.5rem;
    font-weight: var(--font-medium);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}
.filter__button:hover,
.filter__button.active-filter {
    background-color: var(--title-color);
    color: white;
    border-color: var(--title-color);
}

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

.service__card {
    background-color: var(--container-color);
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    text-align: center;
    transition: var(--transition);
}
.service__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px hsla(210, 8%, 15%, 0.1);
}
.service__icon {
    font-size: 3rem;
    color: var(--first-color);
    margin-bottom: 1rem;
}
.service__title {
    font-size: var(--h3-font-size);
    margin-bottom: .5rem;
}
.service__description {
    margin-bottom: 1.5rem;
    font-size: var(--small-font-size);
}
.service__link {
    color: var(--first-color);
    font-weight: var(--font-medium);
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    cursor: pointer;
    background: none;
    border: none;
    font-size: var(--small-font-size);
    font-family: var(--body-font);
}
.service__link i {
    transition: transform .3s;
}
.service__link:hover i {
    transform: translateX(5px);
}
.modal__container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: hsla(0, 0%, 0%, 0.5);
    z-index: var(--z-modal);
    display: grid;
    place-items: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal__content {
    position: relative;
    background-color: var(--container-color);
    padding: 2.5rem;
    border-radius: 1rem;
    max-width: 650px;
    width: 100%;
    text-align: center;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal__container.active-modal {
    opacity: 1;
    visibility: visible;
}

.modal__container.active-modal .modal__content {
    transform: scale(1);
}

.modal__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--title-color);
    cursor: pointer;
}
.modal__img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}
.modal__title {
    font-size: var(--h2-font-size);
    margin-bottom: 1rem;
}
.modal__details {
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: var(--normal-font-size);
}


/*=============== TESTIMONIALS ===============*/
.testimonials__section {
    background-color: hsl(40, 20%, 95%);
    clip-path: polygon(0 10%, 100% 0, 100% 90%, 0% 100%);
    padding: 8rem 0;
}
.testimonials__container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}
.testimonials__wrapper {
    display: flex;
    transition: transform .5s ease-in-out;
}
.testimonial__card {
    flex: 0 0 100%;
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    margin: 1rem;
    box-shadow: 0 5px 15px hsla(0, 0%, 0%, .05);
}
.testimonial__img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--first-color);
}
.testimonial__name {
    font-size: var(--h3-font-size);
    margin-bottom: .25rem;
}
.testimonial__location {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin-bottom: 1rem;
}
.testimonial__rating {
    color: var(--first-color);
    margin-bottom: 1rem;
}
.testimonial__text {
    font-style: italic;
    line-height: 1.6;
}
.testimonial__nav {
    position: absolute;
    top: 50%;
    width: calc(100% + 4rem); /* Maior que o container para ficar fora */
    left: -2rem;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
}
.testimonial-prev, .testimonial-next {
    background: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--title-color);
    cursor: pointer;
    box-shadow: 0 4px 10px hsla(0,0%,0%,.1);
    transition: var(--transition);
}
.testimonial-prev:hover, .testimonial-next:hover {
    background: var(--title-color);
    color: white;
}

/*=============== RESULTS (BEFORE/AFTER) ===============*/
.results__gallery {
    display: grid;
    gap: 2rem;
    align-items: center;
}
.before-after-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: auto;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 16/10;
    box-shadow: 0 10px 30px hsla(0,0%,0%, .1);
    cursor: ew-resize;
}
.before-after__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.before-after__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.after-image {
    width: 50%;
}
.before-after__slider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    z-index: 2;
    pointer-events: none;
}
.before-after__slider::before, .before-after__slider::after {
    content: '';
    position: absolute;
    color: var(--first-color);
    font-size: 1.25rem;
}
.before-after__slider::before {
    content: '\25c0'; /* Left arrow */
    left: 8px;
}
.before-after__slider::after {
    content: '\25b6'; /* Right arrow */
    right: 8px;
}
.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: white;
    z-index: 1;
    pointer-events: none;
}
.results__description h3 { font-size: var(--h3-font-size); margin-bottom: 0.5rem; }

/*=============== UNIDADES ===============*/
.units__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.unit__card {
    background: var(--container-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 24px hsla(0, 0%, 0%, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.unit__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px hsla(0, 0%, 0%, 0.12);
}
.unit__image-container {
    position: relative;
    height: 220px;
}
.unit__image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.unit__region {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--first-color);
    color: white;
    padding: .25rem .75rem;
    font-size: var(--smaller-font-size);
    font-weight: var(--font-medium);
    border-radius: 50px;
}
.unit__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.unit__title {
    font-size: var(--h3-font-size);
    margin-bottom: 0.5rem;
}
.unit__address {
    color: var(--text-color-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.unit__button {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/*=============== PÁGINA DE DETALHE DA UNIDADE ===============*/
.unit-detail__grid {
    display: grid;
    gap: 3rem;
}
.unit-detail__section-title {
    font-size: var(--h2-font-size);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}
.unit-detail__section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--first-color);
}
.info__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.info__item i {
    font-size: 1.5rem;
    color: var(--first-color);
    margin-top: .25rem;
}
.info__item p {
    line-height: 1.6;
}
.info__item strong {
    color: var(--title-color);
    display: block;
}
.unit-detail__info .button {
    margin-top: 1rem;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.gallery__grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: transform .3s;
}
.gallery__grid img:hover {
    transform: scale(1.05);
}

/*=============== CONTACT PAGE ===============*/
.contact__grid {
    display: grid;
    gap: 3rem;
}
.contact__field {
    position: relative;
    margin-bottom: 2rem;
}
.contact__input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: var(--normal-font-size);
    outline: none;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
}
.contact__input:focus {
    border-color: var(--first-color);
    box-shadow: 0 0 0 3px hsla(38, 69%, 59%, 0.2);
}

.contact__label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-color-light);
    pointer-events: none;
    transition: var(--transition);
    background-color: var(--body-color);
    padding: 0 .25rem;
}
.contact__input:focus + .contact__label,
.contact__input:not(:placeholder-shown):not([value=""]) + .contact__label {
    top: -0.75rem;
    left: .75rem;
    font-size: var(--small-font-size);
    color: var(--first-color);
}
.contact__input:invalid { /* Keeps label up on prefilled invalid fields */
    color: var(--text-color);
}

.contact__map {
    width: 100%;
    height: 400px;
    border-radius: 1rem;
    overflow: hidden;
    margin-top: 1rem;
}
.contact__map iframe {
    width: 100%;
    height: 100%;
}

.form-error-message {
    font-size: var(--small-font-size);
    color: hsl(0, 76%, 50%);
    display: none;
    margin-top: .25rem;
}
.contact__field.invalid .contact__input {
    border-color: hsl(0, 76%, 50%);
}
.contact__field.invalid .form-error-message {
    display: block;
}

.form-status-message {
    margin-top: 1.5rem;
    font-weight: 500;
    min-height: 1.5em;
}
.form-status-message.success {
    color: hsl(145, 63%, 42%);
}
.form-status-message.error {
    color: hsl(0, 76%, 50%);
}


/*=============== CTA ===============*/
.cta__section {
    padding: 6rem 0;
    background: linear-gradient(45deg, hsl(38, 70%, 55%), hsl(38, 80%, 45%));
    text-align: center;
    color: white;
}
.cta__content {
    max-width: 700px;
}
.cta__title {
    font-size: clamp(2rem, 5vw, var(--h1-font-size));
    color: white;
    margin-bottom: 1rem;
}
.cta__text {
    margin-bottom: 2rem;
    opacity: 0.9;
}

/*=============== FOOTER ===============*/
.footer {
    background-color: var(--title-color);
    color: var(--text-color-light);
    padding: 5rem 0 2rem;
}
.footer__container {
    display: grid;
    gap: 3rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.footer__logo {
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: var(--font-semi-bold);
    font-family: var(--title-font);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.footer__logo i {
    color: var(--first-color);
    font-size: 1.5rem;
}
.footer__description {
    font-size: var(--small-font-size);
}
.footer__social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
.footer__social-link {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-color-light);
    border-radius: 50%;
    color: var(--text-color-light);
    font-size: 1.25rem;
    transition: var(--transition);
}
.footer__social-link:hover {
    background-color: var(--first-color);
    color: white;
    border-color: var(--first-color);
}
.footer__title {
    color: white;
    font-size: var(--h3-font-size);
    margin-bottom: 1.5rem;
}
.footer__link {
    color: var(--text-color-light);
    display: block;
    padding: .5rem 0;
    transition: var(--transition);
}
.footer__link:hover {
    color: var(--first-color);
    transform: translateX(5px);
}
.footer__form {
    display: flex;
    border: 1px solid var(--text-color-light);
    border-radius: 50px;
    padding: .25rem;
}
.footer__input {
    background: none;
    border: none;
    outline: none;
    color: white;
    width: 100%;
    padding: 0 .75rem;
}
.footer__input::placeholder {
    color: var(--text-color-light);
}
.button--form {
    background: var(--first-color);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    transition: .3s;
    flex-shrink: 0;
}
.button--form:hover {
    background: var(--first-color-alt);
}
.footer__copy {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--text-color-light);
    text-align: center;
    font-size: var(--small-font-size);
}

/*=============== SCROLL REVEAL & BAR ===============*/
.reveal {
  position: relative;
  transform: translateY(100px);
  opacity: 0;
  transition: all 1s cubic-bezier(0.215, 0.610, 0.355, 1);
}
.reveal.active {
  transform: translateY(0);
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

::-webkit-scrollbar {
  width: .60rem;
  background-color: hsl(210, 8%, 85%);
  border-radius: .5rem;
}
::-webkit-scrollbar-thumb {
  background-color: hsl(210, 8%, 65%);
  border-radius: .5rem;
}
::-webkit-scrollbar-thumb:hover {
  background-color: hsl(210, 8%, 55%);
}

/*=============== MEDIA QUERIES ===============*/
@media screen and (min-width: 768px) {
    .about__grid {
        grid-template-columns: repeat(2, 1fr);
    }
     .results__gallery {
        grid-template-columns: 2fr 1fr;
    }
    .contact__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (min-width: 1024px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
  .header {
    --header-height: 5rem;
  }
  .nav__menu {
      width: auto;
      margin-left: auto;
      position: static;
      background: none;
      box-shadow: none;
      padding: 0;
  }
  .nav__list {
      display: flex;
      flex-direction: row;
      gap: 2.5rem;
  }
  .nav__toggle, .nav__close {
      display: none;
  }
  
  .hero__scroll {
      bottom: 2rem;
  }
  .testimonial__nav {
    display: none;
  }
  .unit-detail__grid {
      grid-template-columns: 1fr 1fr;
      align-items: flex-start;
  }
}

/*=============== ABOUT PAGE - DIFERENCIAIS ===============*/
.diferenciais__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.diferencial__card {
    background: var(--container-color);
    padding: 2.5rem 2rem;
    border: 1px solid transparent; /* Inicia transparente */
    border-radius: 1rem;
    text-align: center;
    transition: var(--transition);
}
.diferencial__card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color);
    box-shadow: 0 15px 30px hsla(210, 8%, 15%, 0.07);
}
.diferencial__icon {
    font-size: 3rem;
    color: var(--first-color);
    margin-bottom: 1rem;
}
.diferencial__title {
    font-size: var(--h3-font-size);
    margin-bottom: .5rem;
}
.diferencial__description {
    font-size: var(--small-font-size);
    line-height: 1.7;
}


/*=============== ABOUT PAGE - EQUIPE ===============*/
.team__section {
    background-color: hsl(40, 20%, 95%);
    /* Utiliza a cor de fundo do hero para criar um bloco de cor na página */
}
.team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}
.team__card {
    background: var(--container-color);
    border-radius: 1rem;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 8px 24px hsla(0, 0%, 0%, 0.08);
    transition: var(--transition);
}
.team__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 32px hsla(0, 0%, 0%, 0.12);
}
.team__image-wrapper {
    height: 320px;
    width: 100%;
    overflow: hidden;
}
.team__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Garante que o rosto fique visível */
}
.team__content {
    padding: 2rem 1.5rem;
}
.team__name {
    font-size: var(--h3-font-size);
    margin-bottom: 0.25rem;
}
.team__role {
    display: block;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    color: var(--first-color);
    margin-bottom: 1rem;
}
.team__bio {
    font-size: var(--small-font-size);
    line-height: 1.6;
}

/*=============== CAROUSEL GENÉRICO (para Diferenciais) ===============*/
.carousel__container {
    position: relative;
    width: 100%;
    padding: 0 40px; /* Espaço para as setas */
    margin: 0 auto;
}

.diferenciais__carousel {
    overflow: hidden;
}

.carousel__wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel__slide {
    flex: 0 0 100%; /* Em telas pequenas, mostra 1 slide */
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Os cards que já existiam, agora dentro do slide */
.diferencial__card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid var(--border-color); /* Adiciona uma borda sutil */
}

.carousel__button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid var(--border-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--title-color);
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px hsla(0,0%,0%,.1);
    transition: var(--transition);
    display: grid;
    place-items: center;
}

.carousel__button:hover {
    background: var(--first-color);
    color: white;
    border-color: var(--first-color);
}

.carousel__button--prev {
    left: 0px;
}
.carousel__button--next {
    right: 0px;
}

.carousel__button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel__pagination {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.carousel__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.carousel__dot.active {
    background-color: var(--first-color);
    transform: scale(1.2);
}

/* Responsividade do Carrossel */
@media screen and (min-width: 768px) {
    .carousel__slide {
        flex-basis: 50%; /* Mostra 2 slides em tablets */
    }
}

@media screen and (min-width: 1024px) {
    .carousel__slide {
        flex-basis: 33.333%; /* Mostra 3 slides em desktops */
    }
}

@media screen and (max-width: 576px) {
    /* Em telas muito pequenas, as setas podem ficar menores */
    .carousel__container {
        padding: 0;
    }
    .carousel__button {
        bottom: -3.5rem;
        top: auto;
        transform: translateY(0);
        width: 40px;
        height: 40px;
    }
     .carousel__button--prev {
        left: 30%;
        transform: translateX(-50%);
    }
    .carousel__button--next {
        right: 30%;
        transform: translateX(50%);
    }
    .carousel__pagination {
        margin-top: 1rem;
    }
}