/* JUS DIGITAL | Página inicial no layout visual aprovado | 10.11.2026
   Escopo apenas da homepage, sem modificar portal, CRM, login e serviços. */
@media (min-width: 900px) {
  .site-head .head-row {
    width: min(1480px, calc(100% - 96px)) !important;
    height: 72px;
  }
  .site-head .brand-logo {
    width: 48px !important;
    height: 48px !important;
  }
}
.jus-home-hero {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  color: #fff;
  min-height: 322px;
  background: linear-gradient(108deg, #032c64 0%, #08458d 56%, #0a55b2 100%) !important;
}
.jus-home-hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  background:
    radial-gradient(ellipse 37% 21% at 81% 101%, rgba(27,158,255,.22), transparent 78%),
    url("/jus-hero-wave.svg?v=unified20261110") center bottom / 100% 100% no-repeat !important;
}
.jus-home-hero::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  right: clamp(18px, 4vw, 90px) !important;
  transform: translateY(-50%) !important;
  width: clamp(290px, 30vw, 470px) !important;
  height: clamp(290px, 30vw, 470px) !important;
  border-radius: 0 !important;
  aspect-ratio: 1 !important;
  opacity: 1 !important;
  filter: brightness(1.07) saturate(1.12) drop-shadow(0 0 17px rgba(61,182,255,.42)) !important;
  background: url("/jus-globe-watermark.webp?v=unified20261110") center / contain no-repeat !important;
  z-index: 0 !important;
  pointer-events: none !important;
}
.jus-home-hero > .wrap {
  position: relative;
  z-index: 1;
  width: min(1480px, calc(100% - 96px)) !important;
  min-height: 322px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 35px clamp(310px, 32vw, 520px) 31px 0 !important;
  box-sizing: border-box;
}
.jus-home-hero .jus-home-kicker {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  color: #d9ecff;
  margin: 0 0 8px;
}
.jus-home-hero h1 {
  max-width: 960px !important;
  margin: 0 0 11px;
  font-size: clamp(31px, 3.08vw, 46px) !important;
  line-height: 1.1 !important;
  letter-spacing: -.035em;
}
.jus-home-hero p {
  max-width: 825px !important;
  margin: 0 0 19px !important;
  color: #dfeafa;
  font-size: clamp(13px, 1.12vw, 16px);
  line-height: 1.5;
}
.jus-home-search {
  box-sizing: border-box;
  width: 100% !important;
  min-height: 58px;
  border-radius: 17px;
  padding: 6px 7px 6px 20px;
  box-shadow: 0 12px 26px rgba(1, 24, 60, .12);
}
.jus-home-search span { font-size: 15px; }
.jus-home-search button { width: 48px; height: 48px; border-radius: 13px; cursor: pointer; }
.jus-popular { margin-top: 14px; gap: 8px; }
.jus-popular a { padding: 7px 12px; }

.jus-featured-categories {
  background: #fff !important;
  padding: 36px 0 40px !important;
}
.jus-featured-categories > .wrap {
  width: min(1480px, calc(100% - 96px)) !important;
  padding: 0 !important;
}
.jus-featured-categories .jus-home-title { margin-bottom: 18px; }
.jus-featured-categories .jus-home-title h2 {
  font-size: 27px;
  color: #082957;
  letter-spacing: -.025em;
}
.jus-featured-categories .jus-home-title p { font-size: 12px; }
.jus-featured-categories .jus-category {
  min-height: 121px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  border-color: #d8e3f0;
  box-shadow: 0 5px 16px rgba(13, 56, 100, .035);
}
.jus-featured-categories .jus-category .icon {
  width: 42px;
  height: 42px;
  background: #eaf3ff;
  color: #0755ad;
  border-radius: 12px;
}
.jus-featured-categories .jus-category b { font-size: 12px; margin-top: 10px; }
.jus-featured-categories .jus-category small { font-size: 9px; }

@media (min-width: 761px) and (max-width: 1049px) {
  .jus-home-hero > .wrap { padding-right: clamp(260px, 31vw, 330px) !important; }
  .jus-home-hero h1 { font-size: clamp(28px, 3.15vw, 38px) !important; }
  .jus-home-hero::after { right: -22px !important; width: 34vw !important; height: 34vw !important; }
}
@media (max-width: 760px) {
  .jus-home-hero { min-height: 0; }
  .jus-home-hero > .wrap {
    width: 100% !important;
    min-height: 0;
    padding: 37px 16px 34px !important;
    display: block;
  }
  .jus-home-hero::after {
    top: 17px !important;
    right: -37px !important;
    transform: none !important;
    width: 185px !important;
    height: 185px !important;
    opacity: .23 !important;
    filter: none !important;
  }
  .jus-home-hero h1 {
    font-size: clamp(28px, 7vw, 36px) !important;
    max-width: 100% !important;
  }
  .jus-home-hero p { font-size: 14px; max-width: 100% !important; }
  .jus-home-search { min-height: 56px; padding-left: 15px; }
  .jus-featured-categories { padding: 30px 0 35px !important; }
  .jus-featured-categories > .wrap {
    width: 100% !important;
    padding: 0 16px !important;
  }
  .jus-featured-categories .jus-home-title { align-items: flex-start; }
  .jus-featured-categories .jus-home-title h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .jus-featured-categories .jus-category { transition: none; }
}

/* Editable homepage search field */
.jus-home-search input[type="search"] {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0 4px;
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
  color: #14263b;
  font: 400 15px/1.4 Inter, "Segoe UI", Arial, sans-serif;
  cursor: text;
  -webkit-appearance: none;
  appearance: none;
}
.jus-home-search input[type="search"]::placeholder { color: #6c7c8e; opacity: 1; }
.jus-home-search button { flex-shrink: 0; }
.jus-home-search:focus-within { outline: 3px solid rgba(168, 210, 253, .85); outline-offset: 2px; }
@media(max-width:760px) { .jus-home-search input[type="search"] { font-size: 16px; } }


/* Header brand: improve JUS DIGITAL readability without enlarging the navigation. */
.site-head .brand-text b {
  display: block;
  font-size: 23px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  letter-spacing: .005em !important;
  white-space: nowrap;
}
.site-head .brand-text small {
  display: block;
  font-size: 10px !important;
  line-height: 1.4 !important;
}
@media (max-width: 760px) {
  .site-head .brand-text b { font-size: 18px !important; }
  .site-head .brand-text small { font-size: 9px !important; }
}
