/* Welcome / home — layout conforme mockup institucional */

#hero-animation.welcome-page .welcome-hero {
  position: relative;
  width: 100%;
  min-height: 720px;
  display: flex;
  align-items: center;
  padding: 3.5rem 0 4rem;
  background: url('/images/background-original.jpg') center 17% / cover no-repeat;
  box-shadow: rgba(0, 0, 0, 0.24) 0 3px 8px;
  overflow: hidden;
}

#hero-animation.welcome-page .welcome-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

#hero-animation.welcome-page .welcome-hero__grid {
  align-items: center;
  row-gap: 2rem;
}

/* —— Botões de categoria —— */
#hero-animation.welcome-page .welcome-categories {
  padding-right: 0.5rem;
}

#hero-animation.welcome-page .welcome-categories__row {
  row-gap: 0.85rem;
}

#hero-animation.welcome-page .col-buttons-transp {
  width: 100%;
  max-width: 385px;
  margin-top: 0;
}

#hero-animation.welcome-page .btn-all-transp {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  max-width: 385px;
  min-height: 62px;
  margin: 0 auto;
  transition: transform 0.2s ease, filter 0.2s ease;
}

#hero-animation.welcome-page .btn-all-transp:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

#hero-animation.welcome-page .btn-left-transp {
  flex: 0 0 60px;
  width: 60px;
  min-width: 60px;
  height: 60px;
  margin-top: 1px;
  border-radius: 50%;
  background-color: #fdd632;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#hero-animation.welcome-page .btn-right-transp {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: -28px;
  padding-left: 36px;
  padding-right: 14px;
  display: flex;
  align-items: center;
  background-color: rgba(8, 45, 78, 0.55);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 0.2s ease;
}

#hero-animation.welcome-page .btn-all-transp:hover .btn-right-transp {
  background-color: rgba(12, 58, 98, 0.65);
}

#hero-animation.welcome-page .btn-right-transp p {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

#hero-animation.welcome-page .index-img-icon {
  width: 52px;
  height: auto;
  margin: 0;
  object-fit: contain;
  display: block;
}

/* —— Card informativo —— */
#hero-animation.welcome-page .welcome-info {
  display: flex;
  justify-content: center;
  padding-left: 0.5rem;
}

#hero-animation.welcome-page .info-card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 2rem 1.75rem;
  background: rgba(232, 244, 252, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.5);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#hero-animation.welcome-page .info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

#hero-animation.welcome-page .card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  background: #fdd632;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #17669b;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

#hero-animation.welcome-page .card-title {
  color: #111;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1rem;
  text-align: center;
}

#hero-animation.welcome-page .card-description {
  color: #1a1a1a;
  font-size: 1rem;
  line-height: 1.55;
  text-align: center;
  margin-bottom: 1.5rem;
}

#hero-animation.welcome-page .card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, #17669b, #0189d3);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#hero-animation.welcome-page .card-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, #0189d3, #17669b);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(23, 102, 155, 0.45);
}

@media (min-width: 992px) {
  #hero-animation.welcome-page .welcome-hero__inner {
    width: 80%;
  }

  #hero-animation.welcome-page .welcome-categories {
    padding-right: 1.5rem;
  }

  #hero-animation.welcome-page .welcome-info {
    justify-content: flex-end;
    padding-left: 1rem;
  }

  #hero-animation.welcome-page .info-card {
    margin-right: 0;
    margin-left: auto;
  }
}

@media (min-width: 1200px) {
  #hero-animation.welcome-page .welcome-hero {
    min-height: 750px;
    padding-top: 4rem;
  }
}

@media (max-width: 991.98px) {
  #hero-animation.welcome-page .welcome-hero {
    min-height: auto;
    padding: 2.5rem 0 3rem;
    background-position: center center;
  }

  #hero-animation.welcome-page .welcome-categories,
  #hero-animation.welcome-page .welcome-info {
    padding-left: 0;
    padding-right: 0;
  }

  #hero-animation.welcome-page .info-card {
    max-width: 560px;
  }
}

/* Tablet: grade 2 colunas fluida (768px – 1199px) */
@media (min-width: 768px) and (max-width: 1199.98px) {
  #hero-animation.welcome-page .welcome-categories {
    padding-left: 0;
    padding-right: 0;
  }

  #hero-animation.welcome-page .welcome-categories__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(0.65rem, 2vw, 1.15rem);
    row-gap: clamp(0.6rem, 1.4vh, 0.85rem);
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  #hero-animation.welcome-page .welcome-categories__item {
    flex: none;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #hero-animation.welcome-page .col-buttons-transp,
  #hero-animation.welcome-page .btn-all-transp {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  #hero-animation.welcome-page .btn-all-transp {
    min-height: 58px;
  }

  #hero-animation.welcome-page .btn-left-transp {
    flex: 0 0 54px;
    width: 54px;
    min-width: 54px;
    height: 54px;
    margin-top: 2px;
  }

  #hero-animation.welcome-page .btn-right-transp {
    margin-left: -24px;
    padding-left: 30px;
    padding-right: 10px;
    min-height: 54px;
    border-radius: 10px;
  }

  #hero-animation.welcome-page .btn-right-transp p {
    font-size: clamp(0.8rem, 1.6vw, 0.95rem);
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
  }

  #hero-animation.welcome-page .index-img-icon {
    width: 46px;
    max-width: 88%;
  }
}

/* Tablet empilhado: categorias em largura total acima do card */
@media (min-width: 768px) and (max-width: 991.98px) {
  #hero-animation.welcome-page .welcome-categories {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  #hero-animation.welcome-page .welcome-categories__row {
    column-gap: 1rem;
    row-gap: 0.8rem;
  }

  #hero-animation.welcome-page .btn-left-transp {
    flex: 0 0 58px;
    width: 58px;
    min-width: 58px;
    height: 58px;
  }

  #hero-animation.welcome-page .btn-right-transp {
    margin-left: -26px;
    padding-left: 34px;
    min-height: 58px;
  }

  #hero-animation.welcome-page .btn-right-transp p {
    font-size: clamp(0.875rem, 1.8vw, 1rem);
  }

  #hero-animation.welcome-page .index-img-icon {
    width: 50px;
  }
}

/* Tablet/desktop estreito: categorias ao lado do card (coluna mais estreita) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  #hero-animation.welcome-page .welcome-categories {
    padding-right: 0.75rem;
  }

  #hero-animation.welcome-page .welcome-categories__row {
    column-gap: 0.55rem;
    row-gap: 0.55rem;
  }

  #hero-animation.welcome-page .btn-all-transp {
    min-height: 52px;
  }

  #hero-animation.welcome-page .btn-left-transp {
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    height: 48px;
  }

  #hero-animation.welcome-page .btn-right-transp {
    margin-left: -20px;
    padding-left: 26px;
    padding-right: 8px;
    min-height: 48px;
    border-radius: 8px;
  }

  #hero-animation.welcome-page .btn-right-transp p {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  #hero-animation.welcome-page .index-img-icon {
    width: 40px;
  }
}

/* Mobile: uma coluna de categorias */
@media (max-width: 767.98px) {
  #hero-animation.welcome-page .welcome-categories__row {
    row-gap: 0.75rem;
  }

  #hero-animation.welcome-page .col-buttons-transp,
  #hero-animation.welcome-page .btn-all-transp {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  #hero-animation.welcome-page .btn-left-transp {
    flex: 0 0 60px;
    width: 60px;
    min-width: 60px;
    height: 60px;
  }

  #hero-animation.welcome-page .btn-right-transp {
    margin-left: -24px;
    padding-left: 32px;
    min-height: 58px;
  }

  #hero-animation.welcome-page .btn-right-transp p {
    font-size: 1rem;
  }

  #hero-animation.welcome-page .index-img-icon {
    width: 50px;
  }
}

@media (max-width: 575.98px) {
  #hero-animation.welcome-page .welcome-hero__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  #hero-animation.welcome-page .card-title {
    font-size: 1.15rem;
  }

  #hero-animation.welcome-page .card-description {
    font-size: 0.95rem;
  }

  #hero-animation.welcome-page .btn-left-transp {
    flex: 0 0 56px;
    width: 56px;
    min-width: 56px;
    height: 56px;
  }

  #hero-animation.welcome-page .index-img-icon {
    width: 46px;
  }
}

/* Acessibilidade — tamanho de fonte aumentado */
body.font-increase-1 #hero-animation.welcome-page .btn-right-transp p {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
}

body.font-increase-2 #hero-animation.welcome-page .btn-right-transp p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}
