{% require_css %}
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&family=League+Spartan:wght@300;400;500;600;700&display=swap" rel="stylesheet">
{% end_require_css %}

{% scope_css %}
/* ============================================
   AutomateNow Hero Section Module
   ============================================ */

/* Main Wrapper - Background Image Container */
.pwr-hero__custom-wrapper {
  width: 100%;
  max-width: 1440px;
  min-height: 20vh;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  margin: 0 auto;
}

/* Ensure background elements are behind content */
.pwr-hero__custom-wrapper > *:not(.hero-content-wrapper) {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Content Wrapper - Above Background */
.hero-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100%; /* Minimum height to fill container */
  height: 100%; /* Full height on desktop */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end; /* Wyrównanie do dołu */
  padding-left: 50px;
  padding-right: 50px;
  padding-top: 50px; /* Padding od góry */
  padding-bottom: 50px; /* Padding od dołu */
  box-sizing: border-box;
}

@media (min-width: 1220px) {
  .pwr-hero__custom-wrapper {
    min-height: 971px;
  }

  .hero-content-wrapper {
    padding: 450px 100px 100px 100px;
  }
}

@media (min-width: 1600px) {
  .hero-content-wrapper {
    padding-left: 150px;
    padding-right: 150px;
  }
}

/* LEFT: Main Title */
.hero-content-left {
  display: flex;
  align-items: flex-end; /* Wyrównanie do dołu */
  justify-content: flex-start;
}

.hero-title {
  width: 697px;
  max-width: 100%;
  height: auto;
  min-height: 222px;
  font-family: "League Spartan", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 80px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #FFFFFF;
  margin: 0;
  padding: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

/* RIGHT: Avatar + Text + CTA */
.hero-right {
  display: flex;
  align-items: flex-end; /* Wyrównanie do dołu */
  justify-content: flex-end;
}

.hero-right-inner {
  display: flex;
  flex-direction: row;
  align-items: center; /* Wyśrodkowanie względem obrazka */
  gap: 20px;
  max-width: 500px;
}

/* Avatar and Content Side by Side */
.hero-avatar {
  flex-shrink: 0;
}

.hero-right-content {
  flex: 1;
  min-width: 0;
}

.hero-avatar-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  object-fit: cover;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

/* Right Content - Text and CTA */
.hero-right-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

/* Description Text */
.hero-right-text {
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 58px;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 16px;
  line-height: 125%;
  letter-spacing: 0%;
  color: #FFFFFF;
  margin: 0;
  padding: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-right-text p {
  margin: 0;
  padding: 0;
  color: #FFFFFF;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 125%;
}

.hero-right-text p:last-child {
  margin-bottom: 0;
}

/* CTA Button */
.hero-right-cta {
  margin-top: 0;
}

/* Style HubSpot CTA button */
.hero-right-cta .hs-cta-wrapper,
.hero-right-cta a.hs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 287px;
  height: 35px;
  border-radius: 30px;
  background: #FF6B35 !important;
  color: #FFFFFF !important;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 125%;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  padding: 0 20px;
}

.hero-right-cta .hs-cta-wrapper:hover,
.hero-right-cta a.hs-button:hover {
  background: #E55A2B !important;
  }

/* ============================================
   Responsive Styles
   ============================================ */

/* Tablet */
@media (max-width: 1200px) {
  .pwr-hero__custom-wrapper {
    height: auto;
    max-height: 800px;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
  }

  .hero-content-wrapper {
    height: auto;
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 5px;
    align-items: flex-start; /* Tytuł na górze */
    justify-items: center;
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 470px;
    padding-bottom: 60px;
  }
  
  .hero-content-left {
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .hero-title {
    width: 100%;
    font-size: 60px;
    min-height: auto;
    margin: 0 auto;
  }

  .hero-right {
    align-items: flex-start;
    justify-content: center;
    width: 100%;
  }

  .hero-right-inner {
    flex-direction: row; /* Poziomy układ na mniejszych ekranach */
    align-items: center;
    justify-content: center;
    max-width: 100%;
    gap: 20px;
    flex-wrap: wrap; /* Zawijanie jeśli potrzeba */
  }

  .hero-avatar {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .hero-right-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: auto;
    max-width: 334px;
    gap: 15px;
  }

  .hero-right-text {
    width: 100%;
    max-width: 334px;
    min-height: auto;
    text-align: left;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .pwr-hero__custom-wrapper {
    height: auto;
    max-height: 450px;
    background-size: cover;
    background-position: top center;
    margin-top: 50px;
  }

  .hero-content-wrapper {
    height: auto;
    min-height: auto;
    gap: 5px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 200px;
    padding-bottom: 60px;
    align-items: flex-start; /* Tytuł na górze */
    justify-items: center;
  }

  .hero-content-left {
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .hero-title {
    font-size: 40px;
    line-height: 125%;
    min-height: auto;
    margin: 0 auto;
  }

  .hero-right {
    align-items: flex-start;
    justify-content: center;
    width: 100%;
  }

  .hero-right-inner {
    flex-direction: row; /* Poziomy układ na mobile */
    align-items: center;
    justify-content: center;
    max-width: 100%;
    gap: 15px;
    flex-wrap: wrap;
  }

  .hero-avatar-img {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
  }

  .hero-right-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: auto;
    max-width: 250px;
    gap: 12px;
  }

  .hero-right-text {
    font-size: 14px;
    line-height: 125%;
    min-height: auto;
    text-align: left;
    max-width: 250px;
  }

  .hero-right-cta .hs-cta-wrapper,
  .hero-right-cta a.hs-button {
    width: auto;
    max-width: 200px;
    height: 35px;
    font-size: 14px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .pwr-hero__custom-wrapper {
    height: auto;
    max-height: 400px;
    background-size: cover;
    background-position: center;
  }

  .hero-content-wrapper {
    height: auto;
    min-height: auto;
    gap: 5px;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 225px;
    padding-bottom: 0px;
    align-items: flex-start; /* Tytuł na górze */
    justify-items: center;
  }

  .hero-content-left {
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .hero-title {
    font-size: 32px;
    line-height: 125%;
    margin: 0 auto;
  }

  .hero-right {
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    padding-bottom: 10px;
  }

  .hero-right-inner {
    flex-direction: row; /* Poziomy układ na małych ekranach */
    align-items: center;
    justify-content: center;
    max-width: 100%;
    gap: 12px;
    flex-wrap: wrap;
  }

  .hero-avatar-img {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
  }

  .hero-right-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: auto;
    max-width: 200px;
    gap: 10px;
  }

  .hero-right-text {
    font-size: 14px;
    line-height: 125%;
    max-width: 200px;
    text-align: left;
  }

  .hero-right-cta {
    max-width: 200px;
  }

  .hero-right-cta .hs-cta-wrapper,
  .hero-right-cta a.hs-button {
    width: auto;
    max-width: 180px;
    height: 32px;
    font-size: 13px;
    padding: 0 15px;
  } 
}
{% end_scope_css %}
