/* ========================================================================== 
   ESPO 2.5.1.123.38 — Contrast & Visibility Fix
   Targeted correction for Home / Why ESPO and Projects card numbering.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Home — Why ESPO
   The featured card must remain legible before hover. Recent global card
   surface rules made the feature card light while its text remained white.
   Restore an intentional ESPO-blue feature surface and explicit text colors.
   -------------------------------------------------------------------------- */
body:is(.home, .espo-home-context) .espo-why-card {
  color: #142536;
}

body:is(.home, .espo-home-context) .espo-why-card:not(.espo-why-card--feature) {
  background: linear-gradient(180deg, #fffefb 0%, #f7fafc 100%) !important;
  border-color: rgba(17, 55, 82, .10) !important;
}

body:is(.home, .espo-home-context) .espo-why-card:not(.espo-why-card--feature) .espo-why-card__body h3 {
  color: #142536 !important;
}

body:is(.home, .espo-home-context) .espo-why-card:not(.espo-why-card--feature) .espo-why-card__body p {
  color: #5f6f7e !important;
}

body:is(.home, .espo-home-context) .espo-why-card:not(.espo-why-card--feature) .espo-why-card__number {
  color: #0b6da8 !important;
  opacity: .86;
}

body:is(.home, .espo-home-context) .espo-why-card--feature {
  color: #fff !important;
  background:
    radial-gradient(circle at 88% 8%, rgba(216, 187, 102, .16), transparent 31%),
    linear-gradient(135deg, #143b59 0%, #0f6fa9 58%, #0b5e91 100%) !important;
  border-color: rgba(255,255,255,.16) !important;
  box-shadow: 0 20px 46px rgba(11, 88, 135, .18) !important;
}

body:is(.home, .espo-home-context) .espo-why-card--feature:hover {
  background:
    radial-gradient(circle at 88% 8%, rgba(224, 199, 121, .20), transparent 34%),
    linear-gradient(135deg, #174866 0%, #0f7fc5 58%, #0b6da8 100%) !important;
  border-color: rgba(216,187,102,.28) !important;
  box-shadow: 0 24px 54px rgba(11, 88, 135, .23) !important;
}

body:is(.home, .espo-home-context) .espo-why-card--feature .espo-why-card__body h3 {
  color: #fff !important;
}

body:is(.home, .espo-home-context) .espo-why-card--feature .espo-why-card__body p {
  color: rgba(255,255,255,.80) !important;
}

body:is(.home, .espo-home-context) .espo-why-card--feature .espo-why-card__number {
  color: #f1d98e !important;
  opacity: 1;
}

body:is(.home, .espo-home-context) .espo-why-card--feature .espo-why-card__icon {
  color: #f1d98e !important;
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.17) !important;
}

body:is(.home, .espo-home-context) .espo-why-card--feature:hover .espo-why-card__icon {
  color: #14314a !important;
  background: #e0c579 !important;
  border-color: #e0c579 !important;
}

body:is(.home, .espo-home-context) .espo-why-card--feature .espo-why-card__line {
  background: linear-gradient(90deg, #e0c579, #f1d98e) !important;
}

/* --------------------------------------------------------------------------
   Projects — project number badge
   Keep the number readable on every project image without relying on hover.
   Use a warm ivory / gold badge with deep ESPO blue type.
   -------------------------------------------------------------------------- */
.espo-projects-page .espo-project-card__number,
body.post-type-archive-espo_project .espo-project-card__number {
  color: #12314a !important;
  background: linear-gradient(135deg, #fffdf7 0%, #ead7a2 100%) !important;
  border-color: rgba(194,154,70,.48) !important;
  box-shadow: 0 10px 24px rgba(17,28,39,.16), inset 0 1px 0 rgba(255,255,255,.88) !important;
  font-weight: 800 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.espo-projects-page .espo-project-card:hover .espo-project-card__number,
body.post-type-archive-espo_project .espo-project-card:hover .espo-project-card__number {
  color: #fff !important;
  background: linear-gradient(135deg, #0f7fc5 0%, #0b6da8 100%) !important;
  border-color: rgba(255,255,255,.30) !important;
  box-shadow: 0 12px 28px rgba(11,109,168,.26) !important;
}

@media (max-width: 767px) {
  body:is(.home, .espo-home-context) .espo-why-card--feature {
    box-shadow: 0 16px 34px rgba(11, 88, 135, .16) !important;
  }

  .espo-projects-page .espo-project-card__number,
  body.post-type-archive-espo_project .espo-project-card__number {
    min-width: 2.4rem;
    min-height: 2.4rem;
    font-size: .7rem !important;
  }
}

/* ========================================================================== 
   ESPO 2.5.1.123.53 — Home hero + header refinement
   Targeted, home-only polish. Keeps the approved page identity and structure.
   ========================================================================== */

@media (min-width: 1024px) {
  body:is(.home, .espo-home-context) {
    --espo-floating-header-top: 12px;
    --espo-floating-header-h: 76px;
    --espo-floating-header-h-scrolled: 66px;
  }

  body:is(.home, .espo-home-context) .site-header.espo-floating-header .espo-header-shell {
    padding-inline: clamp(16px, 1.6vw, 24px) !important;
    border-radius: 19px !important;
    box-shadow: 0 14px 38px rgba(18,27,36,.082), inset 0 1px 0 rgba(255,255,255,.94) !important;
  }

  body:is(.home, .espo-home-context) .site-header.espo-floating-header .espo-custom-logo-image {
    height: 50px !important;
  }

  body:is(.home, .espo-home-context) .site-header.espo-floating-header.is-scrolled .espo-custom-logo-image {
    height: 45px !important;
  }

  body:is(.home, .espo-home-context) .site-header.espo-floating-header .espo-primary-nav {
    padding: .22rem .32rem;
  }

  body:is(.home, .espo-home-context) .site-header.espo-floating-header .espo-primary-nav > a,
  body:is(.home, .espo-home-context) .site-header.espo-floating-header .espo-services-menu > a {
    min-height: 36px;
    padding: .54rem .65rem !important;
  }

  body:is(.home, .espo-home-context) .site-header.espo-floating-header .espo-header-utilities {
    gap: .40rem !important;
  }

  body:is(.home, .espo-home-context) .site-header.espo-floating-header .espo-search-toggle,
  body:is(.home, .espo-home-context) .site-header.espo-floating-header .espo-language-dropdown--header .espo-language-dropdown__toggle {
    height: 39px !important;
    min-height: 39px !important;
  }

  body:is(.home, .espo-home-context) .site-header.espo-floating-header .espo-search-toggle {
    width: 39px !important;
  }

  body:is(.home, .espo-home-context) .site-header.espo-floating-header .espo-btn {
    min-height: 39px !important;
    padding: .66rem .92rem !important;
    border-radius: 12px !important;
  }
}

body:is(.home, .espo-home-context) .espo-premium-hero {
  background:
    radial-gradient(circle at 11% 13%, rgba(11,109,168,.050), transparent 27rem),
    radial-gradient(circle at 92% 21%, rgba(193,154,73,.045), transparent 22rem),
    linear-gradient(180deg, #fff 0%, #fbfaf7 100%);
}

body:is(.home, .espo-home-context) .espo-premium-hero::before {
  opacity: .20;
  background-size: 82px 82px;
}

body:is(.home, .espo-home-context) .espo-premium-hero__ambient span:first-child {
  width: 22rem;
  height: 22rem;
  right: -9rem;
  top: 5.5rem;
  opacity: .58;
}

body:is(.home, .espo-home-context) .espo-premium-hero__ambient span:last-child {
  display: none;
}

body:is(.home, .espo-home-context) .espo-premium-hero__inner {
  min-height: calc(100svh - 174px);
  padding-top: clamp(2.1rem, 3.5vw, 3.4rem);
  padding-bottom: clamp(2.65rem, 4vw, 3.9rem);
  gap: clamp(2rem, 3.5vw, 3.8rem);
}

body:is(.home, .espo-home-context) .espo-premium-hero__content {
  max-width: 37rem;
}

body:is(.home, .espo-home-context) .espo-premium-hero__brand {
  font-size: clamp(2.15rem, 3.25vw, 3.35rem);
  line-height: 1;
  font-weight: 640;
}

body:is(.home, .espo-home-context) .espo-premium-hero__slogan {
  max-width: 10.5ch;
  margin-top: clamp(.58rem, .9vw, .82rem);
  font-size: clamp(3rem, 4.6vw, 4.95rem);
  line-height: .92;
  letter-spacing: -.064em;
}

body:is(.home, .espo-home-context) .espo-premium-hero__copy {
  max-width: 50ch;
  margin-top: 1.18rem;
  font-size: clamp(.98rem, 1.06vw, 1.08rem);
  line-height: 1.68;
}

body:is(.home, .espo-home-context) .espo-premium-hero__actions {
  margin-top: 1.48rem;
  gap: .64rem;
}

body:is(.home, .espo-home-context) .espo-premium-hero__actions .espo-btn {
  min-height: 2.9rem;
  padding-inline: 1.16rem !important;
  border-radius: 12px !important;
  box-shadow: none;
}

body:is(.home, .espo-home-context) .espo-premium-hero__secondary,
body:is(.home, .espo-home-context) .espo-premium-hero__secondary.espo-btn--dark {
  color: #18222c !important;
  border: 1px solid rgba(24,34,44,.15) !important;
  background: rgba(255,255,255,.76) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82) !important;
}

body:is(.home, .espo-home-context) .espo-premium-hero__secondary:hover,
body:is(.home, .espo-home-context) .espo-premium-hero__secondary:focus-visible,
body:is(.home, .espo-home-context) .espo-premium-hero__secondary.espo-btn--dark:hover,
body:is(.home, .espo-home-context) .espo-premium-hero__secondary.espo-btn--dark:focus-visible {
  color: #0b6da8 !important;
  border-color: rgba(11,109,168,.32) !important;
  background: #fff !important;
  box-shadow: 0 9px 22px rgba(18,33,50,.08) !important;
}

body:is(.home, .espo-home-context) .espo-premium-hero__event-link {
  min-height: 2.9rem;
  padding-inline: .18rem;
  font-size: .82rem;
  font-weight: 680;
  background-size: 1.55rem 1.5px;
}

body:is(.home, .espo-home-context) .espo-premium-hero__visual-wrap {
  width: 103.5%;
  max-width: none;
  margin-inline-start: -1.4%;
  padding: .7rem 0 2rem;
}

body:is(.home, .espo-home-context) .espo-premium-hero__halo {
  inset: 8% -2% 8% 8%;
  opacity: .66;
  filter: blur(22px);
}

body:is(.home, .espo-home-context) .espo-premium-hero__visual {
  padding: .38rem;
  border-color: rgba(18,33,50,.085);
  border-radius: 1.35rem;
  background: rgba(255,255,255,.92);
  box-shadow: 0 22px 56px rgba(18,33,50,.115), 0 2px 8px rgba(18,33,50,.045), 0 0 0 4px rgba(255,255,255,.64);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body:is(.home, .espo-home-context) .espo-premium-hero__visual:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 26px 62px rgba(18,33,50,.13), 0 3px 10px rgba(18,33,50,.05), 0 0 0 4px rgba(255,255,255,.72) !important;
}

body:is(.home, .espo-home-context) .espo-premium-hero__image {
  border-radius: 1.02rem;
}

body:is(.home, .espo-home-context) .espo-premium-hero__corner {
  right: 1.75rem;
  width: 4.8rem;
  height: 2px;
  box-shadow: none;
  opacity: .88;
}

html[dir="rtl"] body:is(.home, .espo-home-context) .espo-premium-hero__corner {
  right: auto;
  left: 1.75rem;
}

body:is(.home, .espo-home-context) .espo-premium-hero__stats {
  left: -.55rem;
  bottom: -.10rem;
  width: min(18.75rem, 62%);
  grid-template-columns: repeat(2, minmax(6.5rem, 1fr));
  border: 1px solid rgba(18,33,50,.075);
  border-radius: .82rem;
  background: rgba(255,255,255,.95);
  box-shadow: 0 12px 28px rgba(18,33,50,.105);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[dir="rtl"] body:is(.home, .espo-home-context) .espo-premium-hero__stats {
  left: auto;
  right: -.55rem;
}

body:is(.home, .espo-home-context) .espo-premium-hero__stats:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(18,33,50,.12);
}

body:is(.home, .espo-home-context) .espo-premium-hero__stat {
  padding: .78rem .92rem;
}

body:is(.home, .espo-home-context) .espo-premium-hero__stat strong {
  font-size: clamp(1.32rem, 1.75vw, 1.68rem);
  letter-spacing: -.04em;
}

body:is(.home, .espo-home-context) .espo-premium-hero__stat span {
  margin-top: .30rem;
  font-size: .56rem;
  line-height: 1.25;
  letter-spacing: .065em;
}

body:is(.home, .espo-home-context) .espo-cohesive-about {
  padding-top: 3.5rem !important;
}

@media (max-width: 1180px) and (min-width: 1024px) {
  body:is(.home, .espo-home-context) .espo-premium-hero__slogan {
    font-size: clamp(2.75rem, 4.2vw, 4rem);
  }
  body:is(.home, .espo-home-context) .espo-premium-hero__visual-wrap {
    width: 101.5%;
    margin-inline-start: -.5%;
  }
}

@media (max-width: 1023px) {
  body:is(.home, .espo-home-context) .espo-premium-hero__inner {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 3.15rem;
    gap: 1.9rem;
  }
  body:is(.home, .espo-home-context) .espo-premium-hero__visual-wrap {
    width: 100%;
    margin-inline-start: 0;
    padding-bottom: 2.25rem;
  }
  body:is(.home, .espo-home-context) .espo-premium-hero__slogan {
    max-width: 12ch;
  }
  body:is(.home, .espo-home-context) .espo-cohesive-about {
    padding-top: 3.2rem !important;
  }
}

@media (max-width: 767px) {
  body:is(.home, .espo-home-context) .espo-premium-hero__brand {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
  }
  body:is(.home, .espo-home-context) .espo-premium-hero__slogan {
    font-size: clamp(2.45rem, 12vw, 3.65rem);
    line-height: .95;
  }
  body:is(.home, .espo-home-context) .espo-premium-hero__copy {
    max-width: 38rem;
    margin-top: 1rem;
    line-height: 1.62;
  }
  body:is(.home, .espo-home-context) .espo-premium-hero__actions {
    margin-top: 1.3rem;
  }
  body:is(.home, .espo-home-context) .espo-premium-hero__stats {
    width: min(18rem, calc(100% - 1rem));
    left: .5rem;
    bottom: -.25rem;
  }
  html[dir="rtl"] body:is(.home, .espo-home-context) .espo-premium-hero__stats {
    left: auto;
    right: .5rem;
  }
}


/* =========================================================
   ESPO 2.5.1.123.107 — Home Hero / Building Confidence
   Purpose: clearer hierarchy, stronger slogan, tighter rhythm.
   ========================================================= */
body:is(.home, .espo-home-context) .espo-premium-hero__inner {
  grid-template-columns: repeat(12,minmax(0,1fr));
  min-height: min(760px, calc(100svh - 126px));
  padding-top: clamp(2.75rem, 4vw, 4.4rem);
  padding-bottom: clamp(3rem, 4.4vw, 4.8rem);
  gap: clamp(2.7rem, 4.6vw, 5.4rem);
}
body:is(.home, .espo-home-context) .espo-premium-hero__content {
  max-width: 39rem;
}
body:is(.home, .espo-home-context) .espo-premium-hero__title {
  margin: 0;
}
body:is(.home, .espo-home-context) .espo-premium-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-size: clamp(.82rem, .95vw, .98rem);
  line-height: 1;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #526274;
}
body:is(.home, .espo-home-context) .espo-premium-hero__brand::before {
  content: "";
  width: 2.2rem;
  height: 3px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #ffdd00;
}
html[dir="rtl"] body:is(.home, .espo-home-context) .espo-premium-hero__brand {
  letter-spacing: .02em;
}
body:is(.home, .espo-home-context) .espo-premium-hero__slogan {
  display: block;
  max-width: 9.6ch;
  margin-top: clamp(1rem, 1.35vw, 1.35rem);
  font-size: clamp(3.6rem, 5.65vw, 6.25rem);
  line-height: .88;
  font-weight: 860;
  letter-spacing: -.072em;
  color: #12263b;
  text-wrap: balance;
}
body:is(.home, .espo-home-context) .espo-premium-hero__slogan::after {
  content: "";
  display: block;
  width: clamp(3.8rem, 6vw, 6.3rem);
  height: 5px;
  margin-top: clamp(1rem, 1.35vw, 1.35rem);
  border-radius: 999px;
  background: linear-gradient(90deg,#0072bc 0 72%,#ffdd00 72% 100%);
  transform: none;
}
body:is(.home, .espo-home-context) .espo-premium-hero__content:hover .espo-premium-hero__slogan::after {
  width: clamp(4.4rem, 7vw, 7.4rem);
}
body:is(.home, .espo-home-context) .espo-premium-hero__copy {
  max-width: 48ch;
  margin-top: clamp(1.35rem, 1.7vw, 1.7rem);
  font-size: clamp(1rem, 1.03vw, 1.08rem);
  line-height: 1.75;
  color: #617184;
}
body:is(.home, .espo-home-context) .espo-premium-hero__actions {
  margin-top: clamp(1.55rem, 2vw, 2rem);
  gap: .7rem;
}
body:is(.home, .espo-home-context) .espo-premium-hero__actions .espo-btn {
  min-height: 3.15rem;
  padding-inline: 1.4rem !important;
  border-radius: 14px !important;
  font-size: .88rem;
  font-weight: 780;
}
body:is(.home, .espo-home-context) .espo-premium-hero__event-link {
  min-height: 3.15rem;
  font-size: .84rem;
  font-weight: 760;
}
body:is(.home, .espo-home-context) .espo-premium-hero__visual-wrap {
  width: 105%;
  margin-inline-start: -2%;
  padding: .25rem 0 2.2rem;
}
body:is(.home, .espo-home-context) .espo-premium-hero__visual {
  border-radius: 1.55rem;
  padding: .44rem;
  box-shadow: 0 28px 68px rgba(18,33,50,.13), 0 3px 11px rgba(18,33,50,.045), 0 0 0 1px rgba(18,33,50,.04);
}
body:is(.home, .espo-home-context) .espo-premium-hero__image {
  border-radius: 1.18rem;
}
body:is(.home, .espo-home-context) .espo-premium-hero__stats {
  bottom: -.35rem;
  width: min(19.5rem, 62%);
  border-radius: 1rem;
  box-shadow: 0 16px 34px rgba(18,33,50,.11);
}
body:is(.home, .espo-home-context) .espo-premium-hero__stat {
  padding: .9rem 1rem;
}
body:is(.home, .espo-home-context) .espo-premium-hero__stat strong {
  font-size: clamp(1.4rem, 1.9vw, 1.82rem);
}

/* The brand line stays consistent across site languages; the new slogan is intentionally brand-owned English. */
html:lang(fa) body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
html:lang(ar) body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
html:lang(tr) body:is(.home, .espo-home-context) .espo-premium-hero__slogan {
  max-width: 9.6ch;
  font-size: clamp(3.6rem, 5.65vw, 6.25rem);
  line-height: .88;
  font-weight: 860;
  letter-spacing: -.072em;
}
html:lang(fa) body:is(.home, .espo-home-context) .espo-premium-hero__brand,
html:lang(ar) body:is(.home, .espo-home-context) .espo-premium-hero__brand,
html:lang(tr) body:is(.home, .espo-home-context) .espo-premium-hero__brand {
  font-size: clamp(.82rem, .95vw, .98rem);
}

@media (max-width: 1180px) and (min-width: 1024px) {
  body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
  html:lang(fa) body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
  html:lang(ar) body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
  html:lang(tr) body:is(.home, .espo-home-context) .espo-premium-hero__slogan {
    font-size: clamp(3.25rem, 5.1vw, 4.6rem);
  }
  body:is(.home, .espo-home-context) .espo-premium-hero__visual-wrap {
    width: 102%;
    margin-inline-start: -1%;
  }
}
@media (max-width: 1023px) {
  body:is(.home, .espo-home-context) .espo-premium-hero__inner {
    min-height: auto;
    padding-top: 2.6rem;
    padding-bottom: 3.8rem;
    gap: 2.4rem;
  }
  body:is(.home, .espo-home-context) .espo-premium-hero__content {
    max-width: 44rem;
  }
  body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
  html:lang(fa) body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
  html:lang(ar) body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
  html:lang(tr) body:is(.home, .espo-home-context) .espo-premium-hero__slogan {
    max-width: 11ch;
    font-size: clamp(3.4rem, 9vw, 5rem);
  }
  body:is(.home, .espo-home-context) .espo-premium-hero__visual-wrap {
    width: 100%;
    margin-inline-start: 0;
  }
}
@media (max-width: 767px) {
  body:is(.home, .espo-home-context) .espo-premium-hero__inner {
    padding-top: 2.1rem;
    padding-bottom: 3.25rem;
    gap: 1.8rem;
  }
  body:is(.home, .espo-home-context) .espo-premium-hero__brand,
  html:lang(fa) body:is(.home, .espo-home-context) .espo-premium-hero__brand,
  html:lang(ar) body:is(.home, .espo-home-context) .espo-premium-hero__brand,
  html:lang(tr) body:is(.home, .espo-home-context) .espo-premium-hero__brand {
    font-size: .76rem;
    letter-spacing: .145em;
  }
  body:is(.home, .espo-home-context) .espo-premium-hero__brand::before {
    width: 1.7rem;
    height: 2px;
  }
  body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
  html:lang(fa) body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
  html:lang(ar) body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
  html:lang(tr) body:is(.home, .espo-home-context) .espo-premium-hero__slogan {
    max-width: 10.5ch;
    margin-top: .9rem;
    font-size: clamp(3rem, 15vw, 4.2rem);
    line-height: .9;
    letter-spacing: -.066em;
  }
  body:is(.home, .espo-home-context) .espo-premium-hero__slogan::after {
    height: 4px;
    margin-top: .9rem;
  }
  body:is(.home, .espo-home-context) .espo-premium-hero__copy {
    margin-top: 1.1rem;
    font-size: .98rem;
    line-height: 1.67;
  }
  body:is(.home, .espo-home-context) .espo-premium-hero__actions {
    margin-top: 1.4rem;
  }
  body:is(.home, .espo-home-context) .espo-premium-hero__actions .espo-btn {
    min-height: 3rem;
    padding-inline: 1.08rem !important;
  }
  body:is(.home, .espo-home-context) .espo-premium-hero__visual {
    border-radius: 1.2rem;
  }
  body:is(.home, .espo-home-context) .espo-premium-hero__image {
    border-radius: .92rem;
  }
  body:is(.home, .espo-home-context) .espo-premium-hero__stats {
    width: min(18.2rem, calc(100% - 1rem));
  }
}


/* ESPO 2.5.1.123.108 — preserve descenders in Building Confidence. */
body:is(.home, .espo-home-context) .espo-premium-hero__title,
body:is(.home, .espo-home-context) .espo-premium-hero__slogan {
  overflow: visible !important;
}
body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
html:lang(fa) body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
html:lang(ar) body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
html:lang(tr) body:is(.home, .espo-home-context) .espo-premium-hero__slogan {
  line-height: .98 !important;
  padding-bottom: .08em;
}
@media (max-width: 767px) {
  body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
  html:lang(fa) body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
  html:lang(ar) body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
  html:lang(tr) body:is(.home, .espo-home-context) .espo-premium-hero__slogan {
    line-height: 1 !important;
    padding-bottom: .1em;
  }
}


/* ESPO 2.5.1.123.109 — Mobile / tablet Hero grid repair.
   The .107 twelve-column desktop layout was applying below lg (1024px),
   while lg:col-span-* children only get their spans on desktop.
   Stack both children in a single full-width column at smaller widths. */
@media (max-width: 1023px) {
  body:is(.home, .espo-home-context) .espo-premium-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  body:is(.home, .espo-home-context) .espo-premium-hero__inner > .espo-premium-hero__content,
  body:is(.home, .espo-home-context) .espo-premium-hero__inner > .espo-premium-hero__visual-wrap {
    grid-column: 1 / -1;
    min-width: 0;
    max-width: 100%;
  }
}
@media (max-width: 767px) {
  body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
  html:lang(fa) body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
  html:lang(ar) body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
  html:lang(tr) body:is(.home, .espo-home-context) .espo-premium-hero__slogan {
    font-size: clamp(2.35rem, 11.5vw, 3.6rem);
    overflow-wrap: anywhere;
  }
}


/* ESPO 2.5.1.123.110 — One complete brand headline per language.
   The ESPO wordmark remains in the header; Home Hero only uses the full slogan.
   The text is sourced from the ESPO Core locale-specific settings, never CSS. */
body:is(.home, .espo-home-context) .espo-premium-hero__title {
  width: 100%;
  min-width: 0;
}
body:is(.home, .espo-home-context) .espo-premium-hero__slogan {
  display: block;
  max-width: 15ch !important;
  margin-top: .45rem !important;
  font-size: clamp(2.45rem, 3.65vw, 4.45rem) !important;
  font-weight: 790 !important;
  line-height: 1.13 !important;
  letter-spacing: -.045em !important;
  padding-bottom: .12em !important;
  overflow-wrap: normal !important;
  word-break: normal;
  text-wrap: balance;
}
/* Arabic and Persian require more glyph headroom than Latin lettering. */
html:lang(fa) body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
html:lang(ar) body:is(.home, .espo-home-context) .espo-premium-hero__slogan {
  max-width: 17ch !important;
  font-size: clamp(2.25rem, 3.5vw, 4.2rem) !important;
  font-weight: 780 !important;
  line-height: 1.47 !important;
  letter-spacing: 0 !important;
  padding-block: .05em .22em !important;
}
html:lang(tr) body:is(.home, .espo-home-context) .espo-premium-hero__slogan {
  max-width: 18ch !important;
  font-size: clamp(2.35rem, 3.45vw, 4.15rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -.03em !important;
}
@media (min-width: 1024px) and (max-width: 1180px) {
  body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
  html:lang(fa) body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
  html:lang(ar) body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
  html:lang(tr) body:is(.home, .espo-home-context) .espo-premium-hero__slogan {
    font-size: clamp(2.25rem, 3.25vw, 3.6rem) !important;
  }
}
@media (max-width: 1023px) {
  /* Preserve the single-column mobile fix introduced in .109. */
  body:is(.home, .espo-home-context) .espo-premium-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
  html:lang(tr) body:is(.home, .espo-home-context) .espo-premium-hero__slogan {
    max-width: 20ch !important;
    font-size: clamp(2.35rem, 6.4vw, 4.25rem) !important;
  }
  html:lang(fa) body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
  html:lang(ar) body:is(.home, .espo-home-context) .espo-premium-hero__slogan {
    max-width: 22ch !important;
    font-size: clamp(2.2rem, 5.9vw, 3.8rem) !important;
  }
}
@media (max-width: 767px) {
  body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
  html:lang(tr) body:is(.home, .espo-home-context) .espo-premium-hero__slogan {
    max-width: 100% !important;
    font-size: clamp(2rem, 8.7vw, 2.75rem) !important;
    line-height: 1.22 !important;
    letter-spacing: -.03em !important;
    overflow-wrap: normal !important;
  }
  html:lang(fa) body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
  html:lang(ar) body:is(.home, .espo-home-context) .espo-premium-hero__slogan {
    max-width: 100% !important;
    font-size: clamp(2.05rem, 8.2vw, 2.65rem) !important;
    line-height: 1.53 !important;
    letter-spacing: 0 !important;
    padding-bottom: .24em !important;
  }
}
@media (max-width: 375px) {
  body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
  html:lang(tr) body:is(.home, .espo-home-context) .espo-premium-hero__slogan {
    font-size: 1.93rem !important;
  }
  html:lang(fa) body:is(.home, .espo-home-context) .espo-premium-hero__slogan,
  html:lang(ar) body:is(.home, .espo-home-context) .espo-premium-hero__slogan {
    font-size: 1.98rem !important;
  }
}
