/* =========================================
   ÁREAS DE ATUAÇÃO
   CARROSSEL PREMIUM / EDITORIAL
   ========================================= */

.areas {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 3rem;
  padding-bottom: var(--space-2xl);
  overflow: hidden;
}

.areas__header {
  max-width: 760px;
  margin-bottom: 2.8rem;
}

.areas__title {
  margin-top: var(--space-md);
  margin-bottom:5;
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--color-text);
}

.areas__subtitle {
  margin-top: 1.0rem;
  max-width: 650px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.areas__header::after {
  content: "";
  display: block;
  width: 58px;
  height: 1px;
  margin-top: 1.4rem;
  background: linear-gradient(
    90deg,
    var(--color-gold),
    rgba(212, 161, 63, 0)
  );
}


/* =========================================
   CARROSSEL
   ========================================= */

.areas-carousel {
  position: relative;
  width: 100%;
}

.areas-carousel__viewport {
  position: relative;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}

.areas-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: 1.25rem;

  position: relative;
  left: 0;
  transform: none !important;
  transition: none !important;
  will-change: auto;

  cursor: grab;
  scroll-snap-type: none;
}

.areas-carousel__track:active {
  cursor: grabbing;
}

.areas-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.area-card {
  scroll-snap-align: start;
}


/* =========================================
   CARD
   ========================================= */

.area-card {
  position: relative;
  flex: 0 0 min(760px, 70vw);
  width: min(760px, 70vw);
  height: 470px;

  overflow: hidden;

  border-radius: 12px;

  border: 1px solid rgba(201, 154, 74, 0.24);

  background: var(--color-bg-secondary);

  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.28);

  isolation: isolate;

  transition:
    transform 450ms var(--ease-standard),
    border-color 450ms ease,
    box-shadow 450ms ease;
}


/* =========================================
   FOTO
   ========================================= */

.area-card__image {
  position: absolute;
  inset: 0;
  z-index: 0;

  overflow: hidden;

  background: var(--color-bg-secondary);
}

.area-card__image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition:
    transform 900ms var(--ease-standard);
}


/* =========================================
   GRADIENTE
   ========================================= */

.area-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      90deg,
      rgba(10, 8, 6, 0.94) 0%,
      rgba(10, 8, 6, 0.78) 30%,
      rgba(10, 8, 6, 0.45) 60%,
      rgba(10, 8, 6, 0.14) 100%
    ),
    linear-gradient(
      0deg,
      rgba(10, 8, 6, 0.94) 0%,
      rgba(10, 8, 6, 0.40) 45%,
      transparent 75%
    );
}


/* =========================================
   CONTEÚDO
   ========================================= */

.area-card__content {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: min(590px, 82%);
  padding: 2.5rem 2.5rem 3.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


/* =========================================
   NÚMERO
   ========================================= */

.area-card__index {
  position: absolute;

  top: 2rem;
  left: 2.5rem;

  font-family: var(--font-display);

  font-size: 0.74rem;

  letter-spacing: 0.14em;

  color: var(--color-gold-light);

  opacity: 0.90;
}


/* =========================================
   EYEBROW
   ========================================= */

.area-card__eyebrow {
  display: block;

  margin-bottom: 0.55rem;

  font-size: 0.66rem;

  font-weight: 700;

  letter-spacing: 0.16em;

  text-transform: uppercase;

  color: var(--color-gold-light);
}


/* =========================================
   TÍTULO
   ========================================= */

.area-card__title {
  margin: 0 0 0.8rem;

  font-size: clamp(1.8rem, 2.5vw, 2.65rem);

  line-height: 1.08;

  letter-spacing: -0.025em;

  color: #fff8e8;
}


/* =========================================
   DESCRIÇÃO
   ========================================= */

.area-card__desc {
  max-width: 52ch;

  margin: 0 0 1.35rem;

  color: rgba(255, 248, 232, 0.76);

  font-size: 0.95rem;

  line-height: 1.7;
}


/* =========================================
   LINK
   ========================================= */

.area-card__link {
  display: inline-flex;

  align-items: center;

  gap: 0.5rem;

  color: var(--color-gold-light);

  font-size: 0.88rem;

  font-weight: 700;

  text-decoration: none;

  transition:
    gap 300ms ease,
    color 300ms ease;
}

.area-card__link svg {
  width: 15px;
  height: 15px;

  flex-shrink: 0;

  transition:
    transform 300ms ease;
}


/* =========================================
   HOVER
   ========================================= */

.area-card:hover {
  transform: translateY(-5px);

  border-color: rgba(201, 154, 74, 0.48);

  box-shadow:
    0 28px 65px rgba(0, 0, 0, 0.36);
}

.area-card:hover .area-card__image img {
  transform: scale(1.035);
}

.area-card:hover .area-card__link {
  gap: 0.7rem;
}

.area-card:hover .area-card__link svg {
  transform: translateX(3px);
}


/* =========================================
   CONTROLES
   ========================================= */

.areas-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.8rem;
  margin-bottom: 1.4rem;
}


/* =========================================
   SETAS
   ========================================= */

.areas-carousel__arrow {
  width: 46px;
  height: 46px;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid rgba(201, 154, 74, 0.30);

  border-radius: 50%;

  background: transparent;

  color: var(--color-gold-light);

  cursor: pointer;

  transition:
    background 300ms ease,
    border-color 300ms ease,
    transform 300ms ease,
    opacity 300ms ease;
}

.areas-carousel__arrow svg {
  width: 19px;
  height: 19px;

  stroke: currentColor;

  stroke-width: 1.5;
}

.areas-carousel__arrow:hover {
  border-color: var(--color-gold);

  background: rgba(201, 154, 74, 0.08);

  transform: translateY(-2px);
}

.areas-carousel__arrow:disabled {
  opacity: 0.30;

  cursor: default;

  transform: none;
}


/* =========================================
   PROGRESSO
   ========================================= */

.areas-carousel__progress {
  display: flex;

  align-items: center;

  gap: 0.75rem;

  color: var(--color-gold-light);

  font-family: var(--font-display);

  font-size: 0.72rem;

  letter-spacing: 0.10em;
}

.areas-carousel__progress-line {
  width: 48px;

  height: 1px;

  background: linear-gradient(
    90deg,
    var(--color-gold),
    rgba(201, 154, 74, 0.15)
  );
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1000px) {

  .area-card {
    flex-basis: 78vw;
    width: 78vw;
  }

}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 760px) {

  .areas {
    padding-top: 2.5rem;
  }

  .areas__header {
    margin-bottom: 2rem;
  }

  .areas__title {
    font-size: 2rem;
  }

  .areas-carousel__viewport {
    padding-top: 0.25rem;
    padding-bottom: 1rem;
  }

  .areas-carousel__track {
    gap: 0.85rem;
  }

  .area-card {
    flex: 0 0 86vw;
    width: 88vw;
    height: 430px;

    border-radius: 10px;
  }

  .area-card__overlay {
    background:
      linear-gradient(
        90deg,
        rgba(10, 8, 6, 0.90),
        rgba(10, 8, 6, 0.48)
      ),
      linear-gradient(
        0deg,
        rgba(10, 8, 6, 0.96),
        transparent 70%
      );
  }
.areas-category__header {
  margin-bottom: 1.8rem;
}
  .area-card__content {
  width: 100%;
  padding: 1.7rem 1.7rem 2.4rem;
}

  .area-card__index {
    top: 1.5rem;
    left: 1.7rem;
  }

  .area-card__title {
    font-size: 1.8rem;
  }

  .area-card__desc {
    font-size: 0.90rem;
    line-height: 1.65;
  }

  .areas-carousel__controls {
  justify-content: space-between;
  margin-top: 2.8rem;
}

  .areas-carousel__arrow {
    width: 42px;
    height: 42px;
  }

}


/* =========================================
   ACESSIBILIDADE
   ========================================= */

@media (prefers-reduced-motion: reduce) {

  .areas-carousel__track,
  .area-card,
  .area-card__image img,
  .area-card__link,
  .area-card__link svg,
  .areas-carousel__arrow {
    transition: none;
  }

  .area-card:hover {
    transform: none;
  }

}
