.homepage-maincontent-wrapper{
	float: left;
	width: 100%;
}

.homepage-body {
	margin: 0 200px 0 200px;
	border-left: 2px solid #eeeeee;
	border-right: 2px solid #eeeeee;
}

/* ADMIN SECTIONS STYLING */
.esc-homepage-section-connect {
  padding: 30px 0;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.esc-homepage-connect-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: center;
  gap: 10px;
}

/* enforce left visual, right content on desktop */
.esc-homepage-connect-visual { order: 1; }
.esc-homepage-connect-content { order: 2; }

.esc-homepage-connect-content {
  flex: 1;
  padding-left: 50px;
  position: relative;
  z-index: 2;
}

.esc-homepage-connect-title {
  font-size: 2.8rem;
  margin-bottom: 25px;
  color: #333;
  line-height: 1.2;
}

.esc-homepage-highlight {
  color: #a91313;
  position: relative;
}

.esc-homepage-highlight:after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(169,19,19,0.2);
  z-index: -1;
}

.esc-homepage-connect-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 30px;
}

.esc-homepage-connect-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.esc-homepage-feature {
  display: flex;
  align-items: center;
  background: rgba(169,19,19,0.05);
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 600;
  backdrop-filter: saturate(120%) blur(2px);
}

.esc-homepage-feature-icon {
  width: 28px;
  height: 28px;
  background: #a91313;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-size: 16px;
}

.esc-homepage-connect-visual {
  flex: 1;
  position: relative;
  height: 420px;
  min-width: 300px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.08));
}

.esc-homepage-connect-visual:before {
  content: '';
  position: absolute;
  inset: -10% -20% -10% -20%;
  background: radial-gradient(600px 300px at 20% 30%, rgba(169,19,19,0.08), transparent 60%),
              radial-gradient(400px 250px at 80% 70%, rgba(169,19,19,0.06), transparent 60%);
  z-index: -1;
}

.esc-homepage-visual-element {
  position: absolute;
  border-radius: 20px;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1), opacity 700ms cubic-bezier(.2,.7,.2,1);
  will-change: transform, opacity;
}

/* main image tile */
.esc-homepage-element-main {
  width: 320px;
  height: 320px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.95;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(169,19,19,0.15);
  background-color: #fff;
}

/* floating accents stay dynamic without interfering with parallax */
.esc-homepage-element-secondary {
  width: 180px;
  height: 180px;
  background: conic-gradient(from 0deg, rgba(169,19,19,0.35), rgba(169,19,19,0.1));
  top: 12%;
  right: 2%;
  animation: floatY 9s ease-in-out infinite, slowSpin 18s linear infinite;
  filter: blur(.3px);
}

.esc-homepage-element-accent {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at 30% 30%, rgba(169,19,19,0.25), rgba(169,19,19,0.08));
  bottom: 8%;
  left: 8%;
  animation: floatY 7s ease-in-out infinite reverse;
  box-shadow: inset 0 0 20px rgba(255,255,255,0.35);
}

/* STEPS SECTION */
.esc-homepage-section-steps {
  padding: 30px 20px;
  background: white;
  text-align: center;
}

.esc-homepage-steps-header {
  font-size: 2.5rem;
  margin-bottom: 70px;
  color: #333;
}

.esc-homepage-steps-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 30px;
  align-items: start;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.esc-homepage-step-card {
  background: white;
  padding: 40px 25px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  width: 100%;
  position: relative;
  z-index: 2;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.esc-homepage-step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(169,19,19,0.12);
}

.esc-homepage-step-number {
  width: 60px;
  height: 60px;
  background: #a91313;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 auto 25px;
  position: relative;
}

.esc-homepage-step-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #333;
}

.esc-homepage-step-card p {
  color: #666;
  line-height: 1.7;
}

.esc-homepage-step-decoration {
  width: 50px;
  height: 3px;
  background: #a91313;
  margin: 25px auto 0;
}

/* connector line for wide screens only */
.esc-homepage-step-connector {
  height: 3px;
  background: linear-gradient(90deg, rgba(169,19,19,0.15), rgba(169,19,19,0.05));
  border-radius: 3px;
  align-self: center;
  width: 100%;
}

/* STANDOUT SECTION */
.esc-homepage-section-standout {
  padding: 30px 0;
  background: #ffffff;
}

.esc-homepage-standout-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 10px;
}

.esc-homepage-standout-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #333;
  padding: 20px

}

.esc-homepage-standout-header p {
  font-size: 1.1rem;
  color: #666;
  padding: 20px
}

.esc-homepage-standout-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 30px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.esc-homepage-standout-card {
  background: white;
  padding: 50px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 400ms ease, box-shadow 400ms ease;
  border: 1px solid #f0f0f0;
}

.esc-homepage-standout-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(169,19,19,0.12);
}

.esc-homepage-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 30px;
}

/* SCROLL REVEAL BASE */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: transform 700ms cubic-bezier(.2,.7,.2,1), opacity 700ms cubic-bezier(.2,.7,.2,1);
  will-change: transform, opacity;
}

.reveal[data-anim="left"] { transform: translateX(-56px); }
.reveal[data-anim="right"] { transform: translateX(56px); }
.reveal[data-anim="up"] { transform: translateY(56px); }

.reveal.in {
  opacity: 1;
  transform: translate3d(0,0,0);
}

.reveal[data-delay="100"] { transition-delay: 0.10s; }
.reveal[data-delay="150"] { transition-delay: 0.15s; }
.reveal[data-delay="200"] { transition-delay: 0.20s; }
.reveal[data-delay="300"] { transition-delay: 0.30s; }
.reveal[data-delay="400"] { transition-delay: 0.40s; }
.reveal[data-delay="450"] { transition-delay: 0.45s; }
.reveal[data-delay="500"] { transition-delay: 0.50s; }
.reveal[data-delay="600"] { transition-delay: 0.60s; }
.reveal[data-delay="750"] { transition-delay: 0.75s; }

/* ANIMATIONS */
@keyframes floatY {
  0% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
  100% { transform: translateY(0); }
}

@keyframes slowSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* draw connectors without taking grid columns on desktop */
@media all and (min-width: 1311px) {
  .esc-homepage-step-connector { display: none; }
  .esc-homepage-steps-container { gap: 30px; }
  .esc-homepage-step-card { position: relative; }
  .esc-homepage-step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -40px;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, rgba(169,19,19,0.15), rgba(169,19,19,0.05));
    border-radius: 3px;
    transform: translateY(-50%);
  }
  .esc-homepage-step-card:not(:last-child)::before {
    content: '→';
    position: absolute;
    top: 50%;
    right: -56px;
    transform: translateY(-50%);
    color: #a91313;
    font-size: 22px;
    line-height: 1;
  }
}

/* RESPONSIVE */
@media all and (max-width: 1310px) {
  .homepage-maincontent-wrapper {
    float: none;
  }

  .homepage-maincontent-wrapper {
    float: left;
    width: 100%;
  }

  .homepage-body {
    margin: 0;
  }

  .esc-homepage-connect-container {
    flex-direction: column;
    text-align: center;
  }
  
  /* on mobile stack content first, visual second */
  .esc-homepage-connect-content { order: 1; padding-left: 0; margin-bottom: 30px; }
  .esc-homepage-connect-visual { order: 2; }

  .esc-homepage-connect-features {
    justify-content: center;
  }

  .esc-homepage-element-main { width: 280px; height: 280px; }
  .esc-homepage-element-secondary { width: 150px; height: 150px; right: 6%; top: 8%; }
  .esc-homepage-element-accent { width: 110px; height: 110px; left: 10%; bottom: 6%; }
  
  .esc-homepage-steps-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .esc-homepage-step-connector {
    display: none;
  }

  .esc-homepage-standout-features {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  
}

/* mobile-specific motion polish */
.is-mobile .reveal[data-mobile-anim="up"] { transform: translateY(48px) scale(0.98); }
.is-mobile .reveal.in[data-mobile-anim="up"] { transform: translateY(0) scale(1); }

/* reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .esc-homepage-visual-element,
  .esc-homepage-step-card,
  .esc-homepage-standout-card {
    transition: none !important;
    animation: none !important;
  }
}


@media all and (max-width: 1310px) {
  .esc-homepage-connect-content { margin-bottom: 0; }
  .esc-homepage-connect-visual { order: 2; margin-top: 32px; height: auto; min-height: 360px; }
  .esc-homepage-connect-visual .esc-element-main {
    position: relative;
    top: 40%;
    left: 50%;
    transform: translateX( -50% );
    margin: 12px 0;
    width: 280px;
    height: 280px;
  }
}