/* Final public-site overrides for a cleaner institutional experience. */

#topbar {
  display: none !important;
}

body.home-page #header {
  position: fixed !important;
  top: 0 !important;
  height: 88px !important;
  background: linear-gradient(180deg, rgba(3, 23, 36, 0.58), rgba(3, 23, 36, 0.18) 72%, rgba(3, 23, 36, 0)) !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: background 0.22s ease, height 0.22s ease, box-shadow 0.22s ease !important;
}

body.home-page #header.header-scrolled {
  height: 76px !important;
  background: rgba(6, 36, 54, 0.94) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 14px 34px rgba(2, 20, 32, 0.18) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

body.home-page #header .container {
  height: 100%;
}

body.home-page #header #logo img {
  width: 282px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.24));
  transition: width 0.22s ease, filter 0.22s ease;
}

body.home-page #header.header-scrolled #logo img {
  width: 236px;
  filter: none;
}

body.home-page .nav-menu a {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

body.home-page .nav-menu > .menu-active > a,
body.home-page .nav-menu a:hover,
body.home-page .nav-menu li:hover > a {
  color: #84b82f !important;
}

body.home-page #mobile-nav-toggle i {
  color: #ffffff;
}

#intro,
#intro #intro-carousel .item {
  min-height: 760px !important;
  height: 86vh !important;
}

#intro #intro-carousel.hero-carousel-ready {
  position: absolute !important;
  inset: 0;
  overflow: hidden;
}

#intro #intro-carousel.hero-carousel-ready .item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

#intro #intro-carousel.hero-carousel-ready .item.is-active {
  opacity: 1;
  visibility: visible;
}

#intro .intro-content {
  padding-top: 96px !important;
}

#intro #intro-carousel .item {
  background-size: cover !important;
  background-position: center center !important;
}

.hero-carousel-dots {
  position: absolute;
  right: 0;
  bottom: 26px;
  left: 0;
  z-index: 12;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-carousel-dot {
  width: 11px;
  height: 11px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  padding: 0;
  transition: width 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.hero-carousel-dot.is-active {
  width: 30px;
  background: #84b82f;
  border-color: #84b82f;
}

.wow,
.fadeIn,
.fadeInUp,
.fadeInLeft,
.fadeInRight {
  visibility: visible !important;
  animation: none !important;
  animation-name: none !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

#services,
.trust-band,
.segments-section,
#clients,
#servicoss,
#contact {
  scroll-margin-top: 86px;
}

#services {
  padding: 58px 0 48px !important;
}

#services .institutional-header {
  align-items: flex-start;
  gap: 48px;
}

.institutional-copy--compact {
  max-width: 700px;
  color: #526775;
  font-size: 17px;
  line-height: 1.62;
}

.institutional-copy--compact p {
  margin: 0 0 14px;
}

.institutional-copy--compact p:last-child {
  margin-bottom: 0;
}

.trust-item,
.segment-item,
.client-logo-card,
.contact-panel,
.contact-form-card,
.specialized-services__media {
  border-radius: 8px !important;
}

.segment-item,
.contact-action,
#contact .form input[type="submit"],
.institutional-cta__button,
.site-footer__cta {
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease !important;
}

.back-to-top {
  width: 42px;
  height: 42px;
  right: 18px;
  bottom: 18px;
  padding: 0 !important;
  align-items: center;
  justify-content: center;
  line-height: 42px;
  text-align: center;
  border-radius: 4px;
  background: #84b82f !important;
  color: #ffffff !important;
}

.back-to-top:hover,
.back-to-top:focus {
  background: #0d6b8f !important;
}

.back-to-top i {
  line-height: 42px;
}

#contact {
  background: #eef4f8 !important;
  padding: 56px 0 44px !important;
}

#contact .contact-heading {
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
}

#contact .contact-heading p {
  margin-bottom: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: start;
}

.contact-panel,
.contact-form-card {
  border: 1px solid #d7e3ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(8, 45, 72, 0.08);
}

.contact-panel {
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.contact-panel__header span,
.contact-form-card__header span {
  display: block;
  margin-bottom: 8px;
  color: #0d6b8f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-panel__header h3,
.contact-form-card__header h3 {
  margin: 0 0 10px;
  color: #082d48;
  font-size: 24px;
  font-weight: 800;
}

.contact-panel__header p {
  margin: 0 0 18px;
  color: #526775;
  line-height: 1.55;
}

.contact-actions {
  display: grid;
  gap: 10px;
}

.contact-action {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 12px;
  border: 1px solid #dbe7ed;
  border-radius: 8px;
  background: #f8fbfc;
  color: #183244;
  padding: 11px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.contact-action:hover {
  border-color: #9fc3d2;
  box-shadow: 0 12px 24px rgba(8, 45, 72, 0.08);
  color: #082d48;
  text-decoration: none;
  transform: translateY(-2px);
}

.contact-action i {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  border-radius: 50%;
  background: #eaf4f7;
  color: #0d6b8f;
  font-size: 21px;
}

.contact-action strong {
  display: block;
  margin-bottom: 2px;
  color: #082d48;
}

.contact-action--whatsapp {
  border-color: rgba(132, 184, 47, 0.35);
  background: #f5fbef;
}

.contact-action--whatsapp i {
  background: #1f9d55;
  color: #ffffff;
}

.contact-form-card {
  padding: 26px 28px;
}

#contact .form {
  width: auto;
  margin: 0;
}

#contact .form .form-row {
  margin-right: -6px;
  margin-left: -6px;
}

#contact .form .form-row > [class*="col-"] {
  padding-right: 6px;
  padding-left: 6px;
}

#contact .form .form-group {
  margin-bottom: 12px;
}

#contact .form .form-control,
#contact .form textarea {
  min-height: 50px;
  border: 1px solid #cfdee7;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
}

#contact .form textarea {
  min-height: 112px;
}

#contact .form .text-center {
  text-align: left !important;
  margin-top: 4px;
}

#contact .form input[type="submit"] {
  min-width: 190px;
  border-radius: 6px;
}

#contact .form .validation,
#contact .form span[style*="color:Red"],
#contact .form span[style*="color:#FF3300"] {
  display: inline-block;
  margin: 8px 10px 0 0;
  font-size: 12px;
}

@media (max-width: 991px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  #intro,
  #intro #intro-carousel .item {
    min-height: 720px !important;
    height: 82vh !important;
  }
}

@media (max-width: 767px) {
  body.home-page #header {
    height: 76px !important;
  }

  body.home-page #header #logo img {
    width: 218px;
  }

  body.home-page #header.header-scrolled #logo img {
    width: 198px;
  }

  #intro,
  #intro #intro-carousel .item {
    min-height: 690px !important;
    height: 84vh !important;
  }

  #intro .intro-content {
    padding-top: 92px !important;
  }
}

#clients {
  background: #f7fafc !important;
  padding: 58px 0 64px !important;
}

#clients .section-header {
  max-width: 780px;
  margin: 0 auto 28px;
  text-align: center;
}

.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.client-logo-card {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce7ee;
  background: #ffffff;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(8, 45, 72, 0.05);
}

.client-logo-card img {
  display: block;
  width: auto !important;
  max-width: 100%;
  max-height: 68px;
  object-fit: contain;
  opacity: 0.92 !important;
  filter: grayscale(0.15);
  transition: filter 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.client-logo-card:hover img {
  opacity: 1 !important;
  filter: none;
  transform: translateY(-1px);
}

@media (max-width: 991px) {
  .client-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .client-logo-grid {
    grid-template-columns: 1fr;
  }
}

#footer.site-footer {
  padding: 50px 0 0;
  background: #082d48 !important;
  color: #d9e7ed;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) minmax(180px, 0.9fr) minmax(210px, 1fr) minmax(150px, 0.7fr);
  gap: 44px;
  align-items: start;
}

.site-footer__brand img {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
  margin: 0 0 18px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.site-footer p {
  margin: 0 0 12px;
  color: #d9e7ed;
  line-height: 1.7;
}

.site-footer h3 {
  margin: 4px 0 16px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.site-footer strong {
  color: #ffffff;
}

.site-footer__column a {
  display: block;
  width: fit-content;
  margin-bottom: 10px;
  color: #d9e7ed;
  font-weight: 700;
  line-height: 1.35;
}

.site-footer__column a:hover {
  color: #84b82f;
}

.site-footer__cta {
  display: inline-flex !important;
  width: auto !important;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 0 16px;
  border-radius: 4px;
  background: #84b82f;
  color: #082d48 !important;
  text-align: center;
}

.site-footer__cta:hover {
  background: #ffffff;
  color: #082d48 !important;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 38px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #b9ccd5;
  font-size: 13px;
}

@media (max-width: 991px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 42px;
  }
}

@media (max-width: 575px) {
  #footer.site-footer {
    padding-top: 42px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .site-footer__brand img {
    width: 230px;
  }

  .site-footer__bottom {
    flex-direction: column;
  }
}

/* Products page polish */

body.products-page {
  background: #f4f8fb;
}

body.products-page #header {
  position: sticky !important;
  top: 0 !important;
  height: 82px !important;
  background: rgba(6, 36, 54, 0.96) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 16px 36px rgba(8, 45, 72, 0.16) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.products-page #header .container {
  height: 100%;
}

body.products-page #header #logo img {
  width: 250px;
  max-height: 58px;
  object-fit: contain;
}

body.products-page .nav-menu a {
  color: #ffffff !important;
  text-shadow: none;
}

body.products-page .nav-menu > .menu-active > a,
body.products-page .nav-menu a:hover,
body.products-page .nav-menu li:hover > a {
  color: #84b82f !important;
}

body.products-page #mobile-nav-toggle i {
  color: #ffffff;
}

body.products-page main {
  background: #f4f8fb;
}

body.products-page .products-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 72px;
  background:
    linear-gradient(120deg, rgba(8, 45, 72, 0.98), rgba(8, 85, 103, 0.94) 58%, rgba(89, 139, 35, 0.92)),
    url("../img/intro-carousel/2.jpg") center center / cover no-repeat;
  color: #ffffff;
}

body.products-page .products-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -42% 44%;
  height: 240px;
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(-6deg);
}

body.products-page .products-hero .container {
  position: relative;
  z-index: 1;
}

body.products-page .products-hero span,
.product-category-heading span {
  display: block;
  margin-bottom: 10px;
  color: #9dd23c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.products-page .products-hero h1 {
  max-width: 820px;
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.12;
}

body.products-page .products-hero p {
  max-width: 720px;
  margin: 0;
  color: #dcebf0;
  font-size: 18px;
  line-height: 1.65;
}

.products-hero__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.products-hero__nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 0 16px;
  font-weight: 800;
}

.products-hero__nav a:hover {
  border-color: #84b82f;
  background: #84b82f;
  color: #082d48;
  text-decoration: none;
}

.product-category-section {
  padding: 60px 0;
  background: #ffffff;
  scroll-margin-top: 96px;
}

.product-category-section--alt {
  background: #edf4f7;
}

.product-category-heading {
  max-width: 820px;
  margin: 0 0 26px;
}

.product-category-heading h2 {
  margin: 0 0 12px;
  color: #082d48;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
}

.product-category-heading h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  margin-top: 14px;
  background: #84b82f;
}

.product-category-heading p {
  max-width: 680px;
  margin: 0;
  color: #526775;
  font-size: 16px;
  line-height: 1.65;
}

body.products-page .container > .row:has(.portfolio-item) {
  row-gap: 24px;
}

body.products-page .portfolio-item.box {
  min-height: 0;
  border: 1px solid #d6e4eb;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(8, 45, 72, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.products-page .portfolio-item.box:hover {
  border-color: rgba(13, 107, 143, 0.35);
  box-shadow: 0 22px 44px rgba(8, 45, 72, 0.13);
}

body.products-page .portfolio-item.box a.portfolio-popup,
body.products-page .portfolio-item.box a.product-card-media {
  height: 180px;
  background: #f7fafc;
  padding: 18px;
}

body.products-page .portfolio-item.box a.portfolio-popup img,
body.products-page .portfolio-item.box img {
  max-width: 210px;
  height: 138px;
}

body.products-page .portfolio-item.box .title {
  color: #082d48;
  font-size: 18px;
  font-weight: 800;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.products-page .portfolio-item.box .description {
  color: #526775;
  display: -webkit-box;
  max-height: 46px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.products-page .portfolio-item.box .product-details-button {
  background: #0d6b8f;
  box-shadow: 0 10px 22px rgba(13, 107, 143, 0.18);
  margin-bottom: 18px;
}

body.products-page .portfolio-item.box .product-details-button:hover {
  background: #84b82f;
  color: #082d48;
}

body.products-page .product-modal__category {
  color: #0d6b8f;
}

body.products-page .product-modal__content h3 {
  color: #082d48;
}

body.products-page .product-modal__features li::before {
  background: #84b82f;
}

body.products-page .product-modal__cta {
  border-radius: 4px;
  background: #0d6b8f;
}

body.products-page .product-modal__cta:hover {
  background: #84b82f;
  color: #082d48;
}

body.products-page .portfolio-container {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin-right: -14px;
  margin-left: -14px;
  row-gap: 34px;
}

body.products-page .portfolio-container .portfolio-item {
  display: flex !important;
  flex: 0 0 calc(33.333333% - 28px);
  flex-direction: column;
  max-width: calc(33.333333% - 28px);
  height: auto !important;
  min-height: 520px;
  margin: 0 14px 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #d6e4eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(8, 45, 72, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.products-page .portfolio-container .portfolio-item:hover {
  border-color: rgba(13, 107, 143, 0.35);
  box-shadow: 0 22px 44px rgba(8, 45, 72, 0.13);
  transform: translateY(-2px);
}

body.products-page .portfolio-container .portfolio-item .product-card-media,
body.products-page .portfolio-container .portfolio-item .portfolio-popup {
  display: flex !important;
  width: 100%;
  height: 210px !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 210px;
  background: #f7fafc;
  padding: 22px;
}

body.products-page .portfolio-container .portfolio-item .product-card-media img,
body.products-page .portfolio-container .portfolio-item .portfolio-popup img,
body.products-page .portfolio-container .portfolio-item > img {
  display: block;
  width: 100% !important;
  max-width: 260px !important;
  height: 166px !important;
  max-height: 166px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

body.products-page .portfolio-container .portfolio-item .portfolio-info {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 26px 22px 0 !important;
  text-align: left;
}

body.products-page .portfolio-container .portfolio-item .title {
  min-height: 58px;
  margin: 0 0 12px !important;
  color: #082d48;
  font-size: 21px !important;
  font-weight: 800;
  line-height: 1.25 !important;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.products-page .portfolio-container .portfolio-item .description {
  position: relative;
  min-height: 116px;
  max-height: 116px;
  margin: 0 !important;
  color: #526775;
  font-size: 15px !important;
  line-height: 1.45 !important;
  overflow: hidden;
}

body.products-page .portfolio-container .portfolio-item .description::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 42px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.82) 58%,
    #ffffff 100%
  );
}

body.products-page .portfolio-container .portfolio-item .product-details-button {
  align-self: flex-start;
  margin: auto 22px 24px !important;
  border: 0;
  border-radius: 4px;
  background: #0d6b8f;
  color: #ffffff;
  padding: 9px 14px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(13, 107, 143, 0.18);
}

body.products-page .portfolio-container .portfolio-item .product-details-button:hover {
  background: #84b82f;
  color: #082d48;
}

@media (max-width: 991px) {
  body.products-page .portfolio-container .portfolio-item {
    flex-basis: calc(50% - 28px);
    max-width: calc(50% - 28px);
  }
}

@media (max-width: 575px) {
  body.products-page .portfolio-container {
    margin-right: 0;
    margin-left: 0;
    row-gap: 24px;
  }

  body.products-page .portfolio-container .portfolio-item {
    flex-basis: 100%;
    max-width: 100%;
    min-height: 500px;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 991px) {
  body.products-page #header {
    height: 76px !important;
  }

  body.products-page #header #logo img {
    width: 218px;
  }

  body.products-page .products-hero {
    padding: 64px 0 54px;
  }

  body.products-page .products-hero h1 {
    font-size: 36px;
  }
}

@media (max-width: 575px) {
  body.products-page #header #logo img {
    width: 194px;
  }

  body.products-page .products-hero {
    padding: 46px 0 42px;
  }

  body.products-page .products-hero h1 {
    font-size: 29px;
  }

  body.products-page .products-hero p,
  .product-category-heading p {
    font-size: 15px;
  }

  .products-hero__nav a {
    width: 100%;
    justify-content: center;
  }

  .product-category-section {
    padding: 46px 0;
  }

  .product-category-heading h2 {
    font-size: 26px;
  }
}
