/* ===================================================
   Layout: Hero section
   File:   template-parts/flexible/hero_section/hero_section.css
=================================================== */

.hero-section {
  background: linear-gradient(180deg, #fefefd 0%, #fbfaf2 100%);
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 600px;
  max-width: 45vw;
  height: auto;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

.hero-section-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 580px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-bricolage, "Bricolage Grotesque", sans-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-18, #282828);
  margin-bottom: 22px;
}

.hero-kicker img {
  width: 22px;
  height: 22px;
  display: block;
}

.hero-title {
  font-family: var(--font-bricolage, "Bricolage Grotesque", sans-serif);
  font-weight: 800;
  font-size: 48px;
  text-transform: capitalize;
  color: var(--color-18);
}

.hero-desc {
  padding-top: 24px;
  margin-bottom: 36px;
}

.hero-btn-container {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-btn-container .primary-btn {
  min-width: 144px;
  padding: 13px 30px;
  font-size: 15px;
}

/* Right column masked graphic */
.hero-mask-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mask-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating stat cards */
.hero-floating-card {
  position: absolute;
  background: #ffffff;
  border-radius: 10px;
  padding: 24px;
  height: 120px;
  width: 220px;
  min-width: 200px;
  z-index: 5;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hero-floating-card__number {
  font-family: var(--font-bricolage, "Bricolage Grotesque", sans-serif);
  font-weight: 800;
  font-size: 38px;
  line-height: 1;
  color: var(--color-18, #282828);
  letter-spacing: -0.02em;
}

.hero-floating-card__label {
  font-family: var(--font-dm-sans, "DM Sans", sans-serif);
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.25;
  color: var(--color-20, #707070);
  white-space: nowrap;
}

@media (min-width: 1200px) and (max-width: 1400px) {
.hero-content{
max-width: 90%;
}
}

/* Desktop layout matching screenshot */
@media (min-width: 992px) {
  .hero-section {
    height: 100vh;
    min-height: 680px;
    max-height: 940px;
    padding: 0;
  }

  .hero-right-col {
    position: static;
  }

  .hero-mask-wrapper {
    position: absolute;
    top: -1%;
    right: -20%;
    bottom: -1%;
    width: 55vw;
    max-width: 1060px;
    height: 102%;
    justify-content: flex-end;
    align-items: center;
    pointer-events: none;
    overflow: visible;
  }

  .hero-mask-svg {
    width: auto;
    height: 643px;
    min-width: 100%;
    max-width: none;
    transform: scale(1.22) translate(1.5%, 0);
    transform-origin: 85% 45%;
  }

  /* Card 1: 18+ Years of Experience */
  .hero-floating-card--1 {
    left: -18%;
    top: 20%;
  }

  /* Card 2: 170+ Creative Seats Deployed */
  .hero-floating-card--2 {
    left: 38.5%;
    bottom: 12%;
  }
}

/* Mobile & Tablet responsiveness */
@media (max-width: 991px) {
  .hero-section {
    min-height: auto;
    padding: 60px 0 50px;
    overflow: visible;
  }

  .hero-mask-wrapper {
    margin-top: 110px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
  }

  .hero-title {
    font-size: clamp(24px, 6.5vw, 42px);
    line-height: 150%;
  }

  .hero-title .change-text-item {
    height: 10px;
    left: 7px;
  }

  .hero-title .change-text {
    display: inline !important;
  }

  .hero-floating-card {
    flex: 1 1 calc(50% - 10px);
    padding: 16px 20px;
    margin-top: 20px;
    width: 140px;
    height: 115px;
    gap: 15px;
    padding-top: 24px;
  }

  .hero-floating-card__number {
    font-size: 30px;
  }

  .hero-floating-card__label {
    font-size: 12px;
  }

  .hero-floating-card--1 {
    bottom: 38%;
    left: 0;
  }
  .hero-floating-card--2 {
    bottom: -20%;
    right: 0;
  }
  .hero-mask-wrapper svg {
    scale: 1.5;
  }
}


/* text animation  */
.hero-title .change-text {
  display: inline-block;
  position: relative;
  height: 1.1em;
  overflow: hidden;
  vertical-align: bottom;
  white-space: nowrap;
  min-width: 420px;
}

.hero-title .change-text-item {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  white-space: nowrap;
  line-height: 1.1;
}
