/* EST Impact Systems Consulting — institutional overlay (loads after style.css) */

:root {
  --est-navy: #0f172a;
  --est-slate: #334155;
  --est-accent: #0c4a6e;
  --est-line: rgba(255, 255, 255, 0.12);
}

/*
  One sticky shell (utility bar + nav) stays pinned on scroll. At top: nav row is
  transparent over hero; after scroll: solid bar like reference (content slides under).
*/
header#stickyTop.est-header-shell {
  z-index: 1040 !important;
  padding: 0 !important;
  margin: 0;
  background: transparent !important;
  border-bottom: none !important;
}

.est-nav-bar {
  padding-top: 19px;
  padding-bottom: 19px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent !important;
}

header#stickyTop .navbar,
header#stickyTop .navbar .container {
  background: transparent !important;
}

header#stickyTop.stickyBg {
  background: #21242e !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}

header#stickyTop.stickyBg .est-nav-bar {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

header#stickyTop:not(.stickyBg) .navbar .nav-link,
header#stickyTop:not(.stickyBg) .est-brand-sub {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.65);
}

header#stickyTop:not(.stickyBg) .est-brand-name {
  filter: drop-shadow(0 1px 14px rgba(0, 0, 0, 0.55));
}

@media (max-width: 991px) {
  header#stickyTop.est-header-shell {
    background: transparent !important;
  }

  header#stickyTop.stickyBg {
    background: #21242e !important;
  }
}

/* Hero must sit fully behind transparent nav (stacked brand + top bar spacing). !important beats style.css mobile margin-top:0 */
.banner_wrap {
  position: relative;
  z-index: 1;
  margin-top: -168px !important;
}

@media (min-width: 576px) {
  .banner_wrap {
    margin-top: -215px !important;
  }
}

/* Entiresoft logo on top; EST Impact Systems Consulting below */
.est-brand {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.45rem 0;
  max-width: min(100%, 720px);
}

.est-brand-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  min-width: 0;
  text-align: left;
  width: 100%;
}

/*
  Match logo feel: display sans (Chakra Petch ≈ tech wordmark) + blue/orange gradients.
  Catamaran remains fallback.
*/
.est-brand-name {
  font-family: "Chakra Petch", "Catamaran", system-ui, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: clamp(1.35rem, 4.2vw, 2.15rem);
  letter-spacing: 0.065em;
  line-height: 1.12;
  display: inline-block;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
}

/* Header + footer: “Consulting” on its own line under “EST Impact Systems” */
.est-brand-name--stacked {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  gap: 0.08em;
}

.est-brand-name--stacked .est-logo-blue,
.est-brand-name--stacked .est-logo-orange {
  display: block;
}

.est-brand-name--stacked .est-logo-orange {
  font-size: 0.88em;
  letter-spacing: 0.12em;
  margin-top: 0.02em;
}

.est-brand-name .est-logo-blue {
  background: linear-gradient(
    165deg,
    #9fd4ff 0%,
    #4a9dee 28%,
    #1a6ec9 62%,
    #0d4a8f 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.est-brand-name .est-logo-orange {
  background: linear-gradient(
    165deg,
    #ffe0a8 0%,
    #ffb04a 35%,
    #ff8124 70%,
    #e25419 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .est-brand-name .est-logo-blue {
    color: #3d8ee8;
    -webkit-text-fill-color: #3d8ee8;
  }
  .est-brand-name .est-logo-orange {
    color: #e25419;
    -webkit-text-fill-color: #e25419;
  }
}

.est-brand-sub {
  font-size: clamp(0.6rem, 1.5vw, 0.7rem);
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  margin-top: 0.35rem;
  letter-spacing: 0.02em;
  max-width: 26rem;
}

.est-parent-mark {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  line-height: 0;
  background: transparent;
  box-shadow: none;
}

.est-parent-logo {
  display: block;
  height: auto;
  width: auto;
  background: transparent;
  mix-blend-mode: normal;
  max-height: 26px;
  max-width: min(132px, 44vw) !important;
  object-fit: contain;
}

@media (max-width: 575px) {
  .est-brand {
    gap: 0.35rem;
  }

  .est-parent-logo {
    max-height: 22px !important;
    max-width: min(112px, 62vw) !important;
  }

  .est-brand-sub {
    max-width: none;
  }
}

@media (min-width: 1200px) {
  .est-brand-name {
    font-size: 2.35rem;
    letter-spacing: 0.07em;
  }

  .est-brand-name--stacked .est-logo-orange {
    font-size: 0.86em;
  }

  .est-parent-logo {
    max-height: 32px;
    max-width: 148px !important;
  }
}

/* Slightly tighter nav for 6 links */
header .navbar .navbar-nav .nav-item a.nav-link {
  margin: 0 12px;
  font-size: 16px;
}

@media (max-width: 1399px) {
  header .navbar .navbar-nav .nav-item a.nav-link {
    margin: 0 8px;
    font-size: 15px;
  }
}

/* Content sections */
.section-est {
  padding: 4.5rem 0;
}

.section-est-tight {
  padding: 3rem 0;
}

.est-lead {
  font-size: 1.125rem;
  color: var(--est-slate);
  max-width: 52rem;
}

.est-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--est-accent);
  background: rgba(12, 74, 110, 0.08);
  border: 1px solid rgba(12, 74, 110, 0.15);
  padding: 0.35rem 0.65rem;
  margin-bottom: 0.75rem;
}

.est-card-minimal {
  background: #fff;
  border: 1px solid #e8eaef;
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.est-card-minimal:hover {
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  border-color: #dce0e8;
}

.est-card-minimal h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.est-card-minimal .est-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(226, 84, 25, 0.12), rgba(12, 74, 110, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e25419;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.est-list-check {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.est-list-check li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

.est-list-check li::before {
  content: "\f00c";
  font-family: FontAwesome;
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-size: 0.85rem;
  color: #0c4a6e;
}

.est-case {
  border: 1px solid #e8eaef;
  padding: 2rem;
  margin-bottom: 1.5rem;
  background: #fafbfc;
}

.est-case h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.est-case .row-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.est-muted {
  color: #64748b;
  font-size: 0.95rem;
}

.service-detail-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #e8eaef;
}

.service-detail-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.inn_services_info .services_info h2,
.serv_card_description h2 {
  line-height: 1.2;
}

/* Homepage: replace dense testimonial map feel */
.home_testimonials.est-trust {
  position: relative;
}

.home_testimonials.est-trust .testimonial_content {
  padding-bottom: 2rem;
}

/* Banner readability */
.banner_wrap .carousel .carousel-inner .carousel-item .carousel_info h1 {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.banner_wrap .carousel .carousel-inner .carousel-item .carousel_info p {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  max-width: 40rem;
}

/* Homepage hero: sit headline + body copy slightly lower (was 50% + translateY -50%) */
.banner_wrap:not(.in_page_banner) .carousel .carousel-inner .carousel-item .carousel_info {
  top: 56%;
  transform: translateY(-50%);
}

@media (max-width: 767px) {
  .banner_wrap:not(.in_page_banner) .carousel .carousel-inner .carousel-item .carousel_info {
    top: 62%;
  }
}

/* CTA strip */
.est-cta-strip {
  background: linear-gradient(120deg, #0f172a 0%, #0c4a6e 100%);
  color: #fff;
  padding: 3rem 0;
}

.est-cta-strip h2 {
  color: #fff;
}

.est-cta-strip h2 span {
  color: #fdba74;
}

.est-cta-strip p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0;
}

.est-cta-strip .btn-outline-light {
  border-width: 2px;
}

.est-cta-strip .btn-outline-light:hover {
  color: #0f172a;
  background: #fff;
}

/* Selected systems & interfaces (homepage + case studies) */
.est-systems-showcase .project_content {
  max-width: 100%;
}

.est-systems-showcase .est-systems-grid {
  margin-top: 0.5rem;
}

.est-system-card {
  display: block;
  height: 100%;
  color: inherit;
  border: 1px solid #e8eaef;
  padding: 0;
  background: #fff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.est-system-card:hover {
  border-color: #dce3ee;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.1);
  color: inherit;
}

.est-system-shot {
  overflow: hidden;
  background: #0f172a;
}

.est-system-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.est-system-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1rem 1.1rem 0.35rem;
  color: #0f172a;
}

.est-system-caption {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 1.1rem 0.5rem;
  line-height: 1.45;
}

.est-system-cta {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #e25419;
  margin: 0 1.1rem 1.1rem;
}

.est-system-card:hover .est-system-cta {
  text-decoration: underline;
}

.est-case-anchor {
  scroll-margin-top: 120px;
}

.est-case-shot {
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #e8eaef;
  background: #0f172a;
}

.est-case-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.est-case-gallery .est-case-thumb {
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #e8eaef;
  background: #0f172a;
}

.est-case-gallery .est-case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.est-case-gallery figcaption {
  font-size: 0.78rem;
  margin-top: 0.4rem;
  color: #64748b;
  line-height: 1.35;
}

/* Footer logo: same scale as header .est-parent-logo */
footer.main_footer .footer_logo img {
  max-height: 26px !important;
  width: auto;
  max-width: min(132px, 44vw) !important;
  height: auto;
  object-fit: contain;
}

@media (max-width: 575px) {
  footer.main_footer .footer_logo img {
    max-height: 22px !important;
    max-width: min(112px, 62vw) !important;
  }
}

@media (min-width: 1200px) {
  footer.main_footer .footer_logo img {
    max-height: 32px !important;
    max-width: 148px !important;
  }
}

footer.main_footer .footer_brand {
  margin-bottom: 18px;
  max-width: 32rem;
}

footer.main_footer .est-brand-name--footer {
  font-size: clamp(1.3rem, 3.8vw, 2.05rem);
  letter-spacing: 0.065em;
}

@media (min-width: 1200px) {
  footer.main_footer .est-brand-name--footer {
    font-size: 2.2rem;
  }
}

footer.main_footer .est-brand-sub--footer {
  display: block;
  margin-top: 0.45rem;
  max-width: 24rem;
}

.copyright_section .copyright-line {
  line-height: 1.6;
}

.copyright_section .est-brand-name--copyright {
  display: inline;
  font-family: "Chakra Petch", "Catamaran", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.18em;
  letter-spacing: 0.06em;
  vertical-align: baseline;
  -webkit-font-smoothing: antialiased;
}

.copyright_section .est-brand-name--copyright .est-logo-blue,
.copyright_section .est-brand-name--copyright .est-logo-orange {
  display: inline;
}

/* Footer link active state fix */
.footer_menu ul li a.active {
  color: #e25419;
}
