/* =========================================================
   CONC-M — PÁGINA DE PARCEIROS
   1. Espaçamento da página
   2. Faixa animada dos logótipos
   3. Projectos realizados
   4. Faixa final de contacto
   5. Banner de Parceiros
   6. Responsividade
   7. Acessibilidade
========================================================= */

/* =========================================================
   1. ESPAÇAMENTO DA PÁGINA
========================================================= */

main > .section.inner-section:has(.concm-partners-section) {
  margin-top: 0 !important;
  padding-top: 10px !important;
  padding-bottom: 40px !important;
  margin-bottom: 0 !important;
}

/* =========================================================
   2. LOGÓTIPOS EM MOVIMENTO CONTÍNUO
========================================================= */

.concm-partners-section {
  width: 100%;
  margin: 0;
  padding: 12px 0 25px;
  background: #ffffff;
  overflow: hidden;
}

.concm-partners-heading {
  width: 100%;
  margin: 0 auto 10px;
  padding: 0 15px;
  text-align: center;
}

.concm-partners-heading span {
  display: block;
  color: #5479a8;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1.5;
  text-transform: uppercase;
}

.concm-partners-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 5px 0;
}

.concm-partners-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: concm-infinite-scroll 30s linear infinite;
}

.concm-partners-group {
  flex: 0 0 auto;
  width: max-content;
  min-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 35px;
  padding: 0 35px;
  box-sizing: border-box;
}

.concm-partner-logo {
  flex: 0 0 180px;
  width: 180px;
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.concm-partner-logo img {
  display: block;
  max-width: 100%;
  max-height: 75px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transform: scale(0.96);
  transition:
    filter 0.6s ease,
    opacity 0.6s ease,
    transform 0.6s ease;
}

.concm-partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

@keyframes concm-infinite-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   3. PROJECTOS REALIZADOS
========================================================= */

.concm-projects-section {
  width: 100%;
  margin-top: 0 !important;
  padding: 55px 4% 70px;
  background: #f7f8fa;
}

.concm-projects-heading {
  max-width: 900px;
  margin: 0 0 32px;
  text-align: left;
}

.concm-projects-heading > span {
  display: block;
  color: #f47721;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  margin-bottom: 12px;
}

.concm-projects-heading h2 {
  color: #17212b;
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 14px;
}

.concm-projects-heading p {
  color: #66717c;
  font-size: 14px;
  line-height: 1.8;
  max-width: 850px;
  margin: 0;
}

.concm-projects-grid {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.concm-project-card {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-radius: 12px;
  background: #17212b;
  box-shadow: 0 5px 18px rgba(23, 33, 43, 0.1);
}

.concm-project-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.concm-project-card:hover img {
  transform: scale(1.05);
}

.concm-project-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 35px 18px 16px;
  color: #ffffff;
  background: linear-gradient(
    to top,
    rgba(15, 25, 38, 0.95),
    rgba(15, 25, 38, 0.65),
    transparent
  );
}

.concm-project-overlay span {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 7px;
}

.concm-project-overlay p {
  color: #ffffff;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

/* =========================================================
   4. FAIXA FINAL DE CONTACTO
========================================================= */

.concm-projects-cta {
  position: relative;
  width: 100%;
  max-width: 1250px;
  min-height: 125px;
  margin: 0 auto;
  padding: 25px 35px;
  display: flex;
  align-items: center;
  gap: 22px;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(18, 34, 55, 0.98), rgba(18, 34, 55, 0.88)),
    url("../assets/projectos/fundo-industrial.jpg") center/cover no-repeat;
}

.concm-cta-icon {
  width: 68px;
  height: 68px;
  min-width: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f47721;
  color: #ffffff;
}

.concm-cta-icon span {
  font-size: 34px;
  font-weight: 700;
}

.concm-cta-text {
  flex: 1;
}

.concm-cta-text h3 {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 5px;
}

.concm-cta-text p {
  color: #e5eaf0;
  font-size: 13px;
  margin: 0;
}

.concm-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 25px;
  border-radius: 30px;
  background: #f47721;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.concm-cta-button:hover {
  background: #dc5c12;
  transform: translateY(-2px);
}

/* =========================================================
   5. BANNER DA PÁGINA DE PARCEIROS
========================================================= */

main > .inner-hero {
  height: 400px !important;
  min-height: 400px !important;
  max-height: 400px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
}

main > .inner-hero > .inner-hero-content {
  height: 100% !important;
  min-height: 400px !important;
}

main > .inner-hero .inner-page-banner {
  position: relative;
  isolation: isolate;
  height: 400px !important;
  min-height: 400px !important;
  max-height: 400px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background: #172b3d !important;
  text-align: left;
}

/* Fotografia do lado direito */

main > .inner-hero .inner-page-banner::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 43%;
  background-color: #26394b;
  background-image: url("../assets/braco.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 1;
  transform: none;
  filter: none;
}

/* Camada escura sobre o banner */

main > .inner-hero .inner-page-banner::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(8, 25, 43, 0.88) 0%,
    rgba(8, 25, 43, 0.78) 38%,
    rgba(8, 25, 43, 0.48) 65%,
    rgba(8, 25, 43, 0.28) 100%
  );
}

/* Conteúdo do banner */

main > .inner-hero .inner-page-banner-content {
  position: relative;
  top: -20px;
  z-index: 2;
  width: 55%;
  max-width: 720px;
  min-height: 400px;
  margin: 0;
  padding: 0 0 30px clamp(30px, 5.5vw, 90px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  transform: none;
  box-sizing: border-box;
}

/* Título */

main > .inner-hero .inner-page-banner-content h1 {
  position: relative;
  margin: 0;
  padding: 0;
  color: #ffffff !important;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  text-align: left;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);

  opacity: 0;
  animation: partnersTextEntrance 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

/* Parágrafo do banner, caso exista */

main > .inner-hero .inner-page-banner-content p {
  color: #ffffff;
  text-align: left;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);

  opacity: 0;
  animation: partnersTextEntrance 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

/* Animação suave de entrada */

@keyframes partnersTextEntrance {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* =========================================================
   6. RESPONSIVIDADE — TABLETS
========================================================= */

@media (max-width: 1050px) {
  .concm-partner-logo {
    width: 180px;
    margin-right: 65px;
  }

  .concm-partners-track {
    animation-duration: 28s;
  }
}

@media (max-width: 900px) {
  .concm-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .concm-project-card {
    height: 240px;
  }

  .concm-projects-cta {
    flex-wrap: wrap;
  }

  main > .inner-hero .inner-page-banner-content {
    width: 55%;
    padding-left: 35px;
    padding-bottom: 85px;
  }

  main > .inner-hero .inner-page-banner-content h1 {
    font-size: 42px;
  }

  main > .inner-hero .inner-page-banner::before {
    left: 42%;
  }
}

/* =========================================================
   7. RESPONSIVIDADE — TELEMÓVEIS
========================================================= */

@media (max-width: 700px) {
  main > .section.inner-section:has(.concm-partners-section) {
    padding-top: 5px !important;
    padding-bottom: 35px !important;
  }

  .concm-partners-section {
    padding: 10px 0 20px;
  }

  .concm-partners-heading {
    margin-bottom: 8px;
  }

  .concm-partners-heading span {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .concm-partners-track {
    animation-duration: 24s;
  }

  .concm-partners-group {
    gap: 12px;
    padding: 0 12px;
  }

  .concm-partner-logo {
    width: 135px;
    height: 70px;
    margin-right: 38px;
  }

  .concm-partner-logo img {
    max-height: 52px;
  }

  /* Projectos */

  .concm-projects-section {
    padding: 40px 18px 45px;
  }

  .concm-projects-heading h2 {
    font-size: 27px;
  }

  .concm-projects-heading p {
    font-size: 13px;
  }

  .concm-projects-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .concm-project-card {
    height: 230px;
  }

  /* Faixa de contacto */

  .concm-projects-cta {
    padding: 25px 20px;
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .concm-cta-text h3 {
    font-size: 16px;
  }

  .concm-cta-button {
    width: 100%;
  }

  /* Banner em telemóvel */

  main > .inner-hero,
  main > .inner-hero > .inner-hero-content,
  main > .inner-hero .inner-page-banner {
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
  }

  main > .inner-hero .inner-page-banner {
    align-items: center;
  }

  main > .inner-hero .inner-page-banner::before {
    left: 38%;
    background-position: center center;
  }

  main > .inner-hero .inner-page-banner::after {
    background: linear-gradient(
      105deg,
      rgba(8, 25, 43, 0.9) 0%,
      rgba(8, 25, 43, 0.76) 55%,
      rgba(8, 25, 43, 0.45) 100%
    );
  }

  main > .inner-hero .inner-page-banner-content {
    width: 65%;
    min-height: 320px;
    padding: 0 0 65px 22px;
    justify-content: center;
    transform: none;
  }

  main > .inner-hero .inner-page-banner-content h1 {
    font-size: clamp(27px, 6vw, 34px);
    letter-spacing: -1px;
  }
}

/* =========================================================
   8. ECRÃS MUITO PEQUENOS
========================================================= */

@media (max-width: 380px) {
  .concm-partners-heading span {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .concm-partner-logo {
    width: 115px;
    margin-right: 30px;
  }

  main > .inner-hero .inner-page-banner-content {
    width: 68%;
    padding-left: 17px;
    padding-bottom: 55px;
  }

  main > .inner-hero .inner-page-banner-content h1 {
    font-size: 27px;
  }
}

/* =========================================================
   9. ACESSIBILIDADE — MOVIMENTO REDUZIDO
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .concm-partners-track {
    animation: none !important;
  }

  .concm-partner-logo img,
  .concm-project-card img {
    transition: none !important;
  }

  main > .inner-hero .inner-page-banner-content h1,
  main > .inner-hero .inner-page-banner-content p {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }
}
