/* =========================================================
   CONC-M — PÁGINA SOBRE NÓS
   ========================================================= */

:root {
  --about-blue: #092b49;
  --about-orange: #f47721;
  --about-ink: #17212b;
  --about-muted: #66717c;
  --about-light: #f5f7f9;
}

/* =========================================================
   1. BANNER — SOBRE NÓS
   ========================================================= */

.inner-page-banner {
  position: relative;
  width: 100%;
  height: 400px;
  min-height: 400px;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  overflow: hidden;

  background-image:
    linear-gradient(rgba(5, 22, 37, 0.48), rgba(5, 22, 37, 0.55)),
    var(--page-image);

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  text-align: left;
}

.inner-page-banner-content {
  position: relative;
  z-index: 2;
  top: 25px;

  width: min(600px, 52%);
  max-width: 600px;

  margin: 0 0 0 clamp(28px, 7vw, 110px);
  padding: 25px 20px;

  text-align: left;
}

.inner-page-banner-content h1 {
  margin: 0 0 15px;
  color: #ffffff;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;

  opacity: 0;
  animation: partnersTextEntrance 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.inner-page-banner-content p {
  max-width: 560px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(15px, 1.5vw, 21px);
  font-weight: 600;
  line-height: 1.7;

  opacity: 0;
  animation: partnersTextEntrance 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

/* ANIMAÇÃO DE ENTRADA */

@keyframes partnersTextEntrance {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* =========================================================
   2. ESTATÍSTICAS
   ========================================================= */

.company-stats {
  width: 100%;
  padding: 35px 25px 45px;
  background: #fff;
  overflow: hidden;
}

.company-stats-container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

/* CARTÕES */

.stat-card {
  position: relative;
  min-height: 225px;
  padding: 25px 28px 23px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  isolation: isolate;

  color: #fff;
  background: var(--about-blue);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    background 0.4s ease;
}

/* CÍRCULOS DECORATIVOS */

.stat-card::before,
.stat-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 210px;
  height: 210px;
  right: -105px;
  bottom: -150px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  transition: transform 0.7s ease;
}

.stat-card::after {
  width: 270px;
  height: 270px;
  right: -135px;
  bottom: -190px;
  border-color: rgba(255, 255, 255, 0.04);
}

.stat-card:hover {
  transform: translateY(-5px);
  background: #0c3557;
  box-shadow: 0 15px 35px rgba(5, 35, 61, 0.14);
}

.stat-card:hover::before {
  transform: scale(1.16);
  border-color: rgba(244, 119, 33, 0.3);
}

/* TOPO DOS CARTÕES */

.stat-card-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}

/* ÍCONES */

.stat-icon {
  width: 51px;
  height: 51px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--about-orange);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(244, 119, 33, 0.4);
  border-radius: 14px;
  transition:
    transform 0.4s ease,
    background 0.4s ease;
}

.stat-icon svg {
  width: 26px;
  height: 26px;
}

.stat-card:hover .stat-icon {
  transform: rotate(-5deg) scale(1.08);
  background: rgba(244, 119, 33, 0.12);
}

/* CATEGORIA */

.stat-category {
  color: #afc1d2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

/* NÚMEROS */

.stat-number {
  display: flex;
  align-items: baseline;
  margin-bottom: 4px;
  color: #fff;
  font-size: clamp(43px, 4vw, 57px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -3px;
  font-variant-numeric: tabular-nums;
}

.stat-plus {
  margin-left: 4px;
  color: var(--about-orange);
  font-size: 32px;
  font-weight: 800;
}

/* TÍTULO */

.stat-card h3 {
  margin: 8px 0 7px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

/* DESCRIÇÃO */

.stat-card p {
  max-width: 390px;
  margin: 0 0 12px;
  color: #bdcddd;
  font-size: 12px;
  line-height: 1.7;
}

/* LINHA LARANJA */

.stat-line {
  display: block;
  width: 48px;
  height: 4px;
  margin-top: auto;
  background: var(--about-orange);
  border-radius: 10px;
  transition: width 0.4s ease;
}

.stat-card:hover .stat-line {
  width: 75px;
}

/* ANIMAÇÃO DOS CARTÕES */

.company-stats.reveal-ready .stat-card {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.company-stats.reveal-ready.is-visible .stat-card {
  opacity: 1;
  transform: translateY(0);
}

.company-stats.reveal-ready.is-visible .stat-card:nth-child(2) {
  transition-delay: 0.15s;
}

/* =========================================================
   3. QUEM SOMOS
   ========================================================= */

.inner-section {
  width: 100%;
  padding: 35px 25px 75px;
  background: #fff;
}

.inner-content {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

.about-intro {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 55px;
}

.about-intro-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--about-ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.about-intro-content h2 {
  margin: 0 0 18px;
  color: var(--about-ink);
  font-size: clamp(32px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
}

.about-intro-content p {
  max-width: 520px;
  margin: 0 0 13px;
  color: #354454;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.85;
}

.about-button {
  min-height: 45px;
  margin-top: 13px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  border-radius: 3px;
  color: #fff;
  background: var(--about-orange);
  font-size: 12px;
  font-weight: 700;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.about-button:hover {
  background: #dc5c12;
  transform: translateY(-3px);
}

.about-button span {
  transition: transform 0.3s ease;
}

.about-button:hover span {
  transform: translateX(5px);
}

/* IMAGEM */

.about-intro-image {
  width: 100%;
  height: 340px;
  overflow: hidden;
  border-radius: 17px;
  background: #e9edf0;
}

.about-intro-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-intro-image:hover img {
  transform: scale(1.045);
}

/* ANIMAÇÃO QUEM SOMOS */

.about-intro.reveal-ready .about-intro-content,
.about-intro.reveal-ready .about-intro-image {
  opacity: 0;
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-intro.reveal-ready .about-intro-content {
  transform: translateX(-35px);
}

.about-intro.reveal-ready .about-intro-image {
  transform: translateX(35px);
}

.about-intro.reveal-ready.is-visible .about-intro-content,
.about-intro.reveal-ready.is-visible .about-intro-image {
  opacity: 1;
  transform: translate(0);
}

.about-intro.reveal-ready.is-visible .about-intro-image {
  transition-delay: 0.15s;
}

/* =========================================================
   4. LEGISLAÇÃO DO SECTOR
   ========================================================= */

.legislation-section {
  width: 100%;
  padding: 75px 25px 65px;
  background: #f5f7f9;
}

.legislation-container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

/* CABEÇALHO DA SECÇÃO */

.legislation-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 32px;
}

.legislation-eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--about-orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.legislation-heading-text h2 {
  margin: 0 0 10px;
  color: #12365b;
  font-size: clamp(27px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.8px;
}

.legislation-heading-text h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 12px;
  background: var(--about-orange);
  border-radius: 5px;
}

.legislation-heading-text p {
  max-width: 540px;
  margin: 0;
  color: #78828d;
  font-size: 12px;
  line-height: 1.8;
}

/* LIGAÇÃO CONHECER DIPLOMAS */

.legislation-view-all {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 5px;
  color: #12365b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  transition: color 0.3s ease;
}

.legislation-view-all span {
  color: var(--about-orange);
  font-size: 20px;
  transition: transform 0.3s ease;
}

.legislation-view-all:hover {
  color: var(--about-orange);
}

.legislation-view-all:hover span {
  transform: translateX(4px);
}

/* GRELHA */

.legislation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* CARTÕES */

.legislation-card {
  min-width: 0;
  min-height: 265px;
  padding: 23px 22px 21px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #edf0f3;
  border-radius: 11px;
  box-shadow: 0 5px 20px rgba(15, 39, 62, 0.035);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.legislation-card:hover {
  transform: translateY(-5px);
  border-color: rgba(244, 119, 33, 0.3);
  box-shadow: 0 13px 30px rgba(15, 39, 62, 0.08);
}

/* PARTE SUPERIOR */

.legislation-card-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.legislation-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #123d6b;
  border-radius: 5px;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.legislation-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legislation-card:hover .legislation-icon {
  background: var(--about-orange);
  transform: translateY(-2px);
}

.legislation-number {
  color: #dce4eb;
  font-size: 19px;
  font-weight: 800;
}

/* TEXTO DOS CARTÕES */

.legislation-card h3 {
  margin: 0 0 8px;
  color: #12365b;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.legislation-law {
  display: block;
  margin-bottom: 12px;
  color: var(--about-orange);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
}

/* PARÁGRAFO DA LEGISLAÇÃO NOS CARTÕES */

.legislation-card p {
  margin: 0 0 18px;
  color: #455463;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.8;
}

/* LINK DO DIPLOMA */

.legislation-card > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: #12365b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.4px;
  transition: color 0.3s ease;
}

.legislation-card > a span {
  color: var(--about-orange);
  font-size: 17px;
  transition: transform 0.3s ease;
}

.legislation-card > a:hover {
  color: var(--about-orange);
}

.legislation-card > a:hover span {
  transform: translateX(4px);
}

/* RODAPÉ DA LEGISLAÇÃO */

.legislation-footer {
  margin-top: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.legislation-footer p {
  margin: 0;
  color: #89939d;
  font-size: 10px;
  text-align: center;
}

.legislation-footer-line {
  width: 55px;
  height: 1px;
  background: #dce1e6;
}

/* =========================================================
   5. RESPONSIVIDADE — TABLETS
   ========================================================= */

@media (max-width: 1000px) {
  .company-stats-container {
    max-width: 850px;
  }

  .about-intro {
    gap: 30px;
  }

  .about-intro-image {
    height: 300px;
  }

  .legislation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .inner-page-banner {
    height: 390px;
    min-height: 390px;
  }

  .inner-page-banner-content {
    width: min(560px, 65%);
    margin-left: 5vw;
    top: 25px;
  }

  .inner-page-banner-content h1 {
    font-size: 42px;
  }

  .inner-page-banner-content p {
    font-size: 15px;
  }
}

@media (max-width: 800px) {
  .company-stats {
    padding: 28px 22px 35px;
  }

  .company-stats-container {
    gap: 16px;
  }

  .stat-card {
    min-height: 220px;
    padding: 23px 21px;
  }

  .stat-category {
    font-size: 9px;
    letter-spacing: 0.8px;
  }

  .stat-card h3 {
    font-size: 15px;
  }

  .stat-card p {
    font-size: 11px;
  }

  .inner-section {
    padding: 30px 25px 60px;
  }

  .about-intro {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .about-intro-content h2 {
    font-size: 30px;
  }

  .about-intro-content p {
    font-size: 12px;
  }

  .about-intro-image {
    height: 280px;
  }

  .legislation-section {
    padding: 60px 25px;
  }
}

/* =========================================================
   6. RESPONSIVIDADE — TELEMÓVEIS
   ========================================================= */

@media (max-width: 700px) {
  .inner-page-banner {
    height: 310px;
    min-height: 310px;
    justify-content: center;
    text-align: center;
  }

  .inner-page-banner-content {
    top: 20px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 25px 20px;
    text-align: center;
  }

  .inner-page-banner-content h1 {
    font-size: 36px;
    text-align: center;
  }

  .inner-page-banner-content p {
    font-size: 14px;
    text-align: center;
  }
}

@media (max-width: 650px) {
  /* ESTATÍSTICAS */

  .company-stats {
    padding: 25px 20px 35px;
  }

  .company-stats-container {
    max-width: 430px;
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .stat-card {
    min-height: 205px;
    padding: 23px 23px;
    border-radius: 15px;
  }

  .stat-card-top {
    margin-bottom: 15px;
  }

  .stat-icon {
    width: 47px;
    height: 47px;
  }

  .stat-icon svg {
    width: 24px;
    height: 24px;
  }

  .stat-number {
    font-size: 49px;
  }

  .stat-plus {
    font-size: 31px;
  }

  .stat-card h3 {
    font-size: 16px;
  }

  .stat-card p {
    font-size: 11px;
    line-height: 1.7;
  }

  /* QUEM SOMOS */

  .inner-section {
    padding: 25px 20px 50px;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .about-kicker {
    font-size: 15px;
  }

  .about-intro-content h2 {
    font-size: 32px;
  }

  .about-intro-content p {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.85;
  }

  .about-button {
    margin-top: 8px;
  }

  .about-intro-image {
    height: 260px;
    border-radius: 13px;
  }

  /* LEGISLAÇÃO */

  .legislation-section {
    padding: 50px 20px;
  }

  .legislation-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
  }

  .legislation-heading-text h2 {
    font-size: 27px;
  }

  .legislation-heading-text p {
    font-size: 11px;
  }

  .legislation-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .legislation-card {
    min-height: 235px;
    padding: 21px;
  }

  .legislation-card h3 {
    font-size: 15px;
  }

  .legislation-card p {
    font-size: 11px;
  }

  .legislation-footer {
    gap: 10px;
    margin-top: 28px;
  }

  .legislation-footer p {
    font-size: 9px;
  }

  .legislation-footer-line {
    width: 25px;
  }
}

/* =========================================================
   7. ECRÃS MUITO PEQUENOS
   ========================================================= */

@media (max-width: 380px) {
  .stat-card {
    padding: 20px;
  }

  .stat-category {
    font-size: 8px;
  }

  .about-intro-content h2 {
    font-size: 28px;
  }

  .legislation-heading-text h2 {
    font-size: 24px;
  }
}

/* =========================================================
   8. ACESSIBILIDADE — REDUZIR MOVIMENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .stat-card,
  .stat-card::before,
  .stat-card::after,
  .stat-icon,
  .stat-line,
  .about-button,
  .about-button span,
  .about-intro-image img,
  .legislation-card,
  .legislation-icon,
  .legislation-card > a span,
  .legislation-view-all span {
    transition: none !important;
  }

  .company-stats.reveal-ready .stat-card,
  .about-intro.reveal-ready .about-intro-content,
  .about-intro.reveal-ready .about-intro-image {
    opacity: 1;
    transform: none;
  }

  .inner-page-banner-content h1,
  .inner-page-banner-content p {
    opacity: 1;
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }
}
