/* ========================================
   SEÇÃO DE TRATAMENTOS
======================================== */

.treatments {
    position: relative;
    overflow: hidden;
    min-height: 590px;
    padding: 38px 20px 58px;
    font-family: "Poppins", Arial, sans-serif;
  
    background:
      linear-gradient(
        180deg,
        #448ec0 0%,
        #579ab0 21%,
        #70aa90 48%,
        #88ba69 70%,
        #a7d63e 100%
      );
  }
  
  .treatments__container {
    width: min(895px, 100%);
    margin: 0 auto;
  }
  
  /* Cabeçalho */
  
  .treatments__header {
    text-align: center;
    color: #ffffff;
  }
  
  .treatments__header h2 {
    margin: 0;
    font-size: 31px;
    line-height: 1.2;
    font-weight: 400;
    text-transform: uppercase;
  }
  
  .treatments__line {
    display: block;
    width: 395px;
    max-width: 70%;
    height: 1px;
    margin: 27px auto 22px;
    background-color: #c8fb5e;
  }
  
  .treatments__header p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
  }
  
  /* Grade */
  
  .treatments__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 68px;
  }
  
  /* Cards */
  
  .treatment-card {
    --accent-color: #ff1717;
  
    position: relative;
    height: 182px;
    padding-right: 12px;
    overflow: hidden;
    background-color: transparent;
    filter: drop-shadow(0 7px 11px rgba(0, 0, 0, 0.12));
  }
  
  .treatment-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 100%;
    border-radius: 0 17px 17px 0;
    background-color: var(--accent-color);
    z-index: 0;
  }
  
  .treatment-card__content {
    position: relative;
    z-index: 1;
  
    display: flex;
    height: 100%;
    align-items: center;
    flex-direction: column;
    justify-content: center;
  
    border-radius: 15px 0 15px 0;
    background: rgba(255, 255, 255, 0.96);
  }
  
  .treatment-card__icon {
    width: 26px;
    height: 26px;
    margin-bottom: 13px;
    fill: #258ef4;
  }
  
  .treatment-card__icon--outline {
    fill: none;
    stroke: #258ef4;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  
  .treatment-card h3 {
    margin: 0 10px 12px;
    color: #868686;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
  }
  
  .treatment-card__link {
    display: inline-flex;
    min-width: 95px;
    height: 32px;
    align-items: center;
    justify-content: center;
  
    border-radius: 2px;
    background: #ffffff;
    box-shadow: 0 1px 9px rgba(0, 0, 0, 0.025);
  
    color: #0069be;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
  
    transition:
      color 180ms ease,
      background-color 180ms ease,
      transform 180ms ease,
      box-shadow 180ms ease;
  }
  
  .treatment-card__link:hover {
    color: #ffffff;
    background-color: #0878df;
    box-shadow: 0 6px 16px rgba(0, 92, 184, 0.22);
    transform: translateY(-2px);
  }
  
  /* Cores laterais dos cards */
  
  .treatment-card--red {
    --accent-color: #ff1010;
  }
  
  .treatment-card--yellow {
    --accent-color: #ffc400;
  }
  
  .treatment-card--green {
    --accent-color: #9be900;
  }
  
  .treatment-card--blue {
    --accent-color: #006cec;
  }
  
  .treatment-card--pink {
    --accent-color: #ff00ac;
  }
  
  .treatment-card--purple {
    --accent-color: #7e00ff;
  }
  
  /* Botão Ver todos */
  
  .treatments__button {
    display: flex;
    width: 135px;
    height: 36px;
    margin: 47px auto 0;
    align-items: center;
    justify-content: center;
    gap: 5px;
  
    border-radius: 8px;
    background-color: #0879e7;
    box-shadow: 0 5px 13px rgba(0, 77, 159, 0.14);
  
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
  
    transition:
      transform 180ms ease,
      background-color 180ms ease,
      box-shadow 180ms ease;
  }
  
  .treatments__button:hover {
    background-color: #0067cb;
    box-shadow: 0 8px 18px rgba(0, 77, 159, 0.25);
    transform: translateY(-2px);
  }
  
  .treatments__button-icon {
    display: inline-flex;
    width: 13px;
    height: 13px;
    align-items: center;
    justify-content: center;
  
    border-radius: 50%;
    background-color: #ffffff;
    color: #0879e7;
    font-size: 9px;
    line-height: 1;
  }

  /* animação */
.treatment-card,
.treatment-card__content,
.treatment-card h3,
.treatment-card__icon,
.treatment-card__link {
    transition: .35s ease;
}

/* fundo inteiro recebe a cor */
.treatment-card:hover .treatment-card__content{
    background: var(--accent-color);
}

/* título */
.treatment-card:hover h3{
    color:#fff;
}

/* ícones preenchidos */
.treatment-card:hover .treatment-card__icon{
    fill:#fff;
}

/* ícones outline */
.treatment-card:hover .treatment-card__icon--outline{
    fill:none;
    stroke:#fff;
}

/* botão */
.treatment-card:hover .treatment-card__link{
    background:#fff;
    color:var(--accent-color);
}

/* leve efeito de levantar */
.treatment-card:hover{
    transform:translateY(-6px);
}
  
  /* ========================================
     RESPONSIVIDADE
  ======================================== */
  
  @media (max-width: 900px) {
    .treatments {
      padding-inline: 28px;
    }
  
    .treatments__grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 620px) {
    .treatments {
      padding: 52px 20px 60px;
    }
  
    .treatments__header h2 {
      font-size: 25px;
    }
  
    .treatments__header p {
      font-size: 13px;
    }
  
    .treatments__line {
      margin-block: 20px 17px;
    }
  
    .treatments__grid {
      grid-template-columns: 1fr;
      gap: 14px;
      margin-top: 42px;
    }
  
    .treatment-card {
      height: 175px;
    }
  
    .treatments__button {
      margin-top: 35px;
    }
  }