/* ==========================================================================
   GLOBAL CALL-TO-ACTION (CTA) COMPONENT STYLES (Figma Spec 1618873347 / 1618873348)
   - Left Navy Card: position absolute left: 80px, top: 80px, width: 728px, height: 335px
   - Gold Accent Box: position absolute left: 63px, top: 107px, width: 560px, height: 324px
   - Worker Image: position absolute right: 0, top: 0, bottom: 0, width: 55vw, max-width: 819px, height: 100%
   ========================================================================== */

.cta-section {
  width: 100%;
  height: 495px;
  background: #FFFFFF;
  padding: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 2;
}

.cta-inner {
  width: 100%;
  height: 100%;
  position: relative;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Worker Image (unsplash:Pj4je7OjrME) - Fills Right Side Completely (Unchanged) */
.cta-image-wrapper {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55vw;
  max-width: 819px;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Gold Accent Rectangle (Rectangle 6111 - left: 63px, top: 107px, width: 560px, height: 324px) */
.cta-gold-accent {
  position: absolute;
  left: 63px;
  top: 107px;
  width: 560px;
  height: 324px;
  background: #B88327;
  z-index: 1;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Main Navy CTA Card (Div [what-we-do-item] - left: 80px, top: 80px, width: 728px, height: 335px) */
.cta-card {
  position: absolute;
  top: 80px;
  left: 80px;
  width: 728px;
  height: 335px;
  background: #061E4A;
  mix-blend-mode: normal;
  border: 1px solid rgba(3, 34, 27, 0.1);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  box-sizing: border-box;
  z-index: 2;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Entrance Animation States (Observer Triggered) */
.anim-fade-in-active .cta-image-wrapper {
  opacity: 1;
  transform: translateX(0);
}

.anim-fade-in-active .cta-gold-accent {
  opacity: 1;
  transform: translateX(0);
}

.anim-fade-in-active .cta-card {
  opacity: 1;
  transform: translateY(0);
}

/* Content Typography */
.cta-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.cta-header-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.cta-title {
  font-family: var(--font-inter);
  font-style: normal;
  font-weight: 600;
  font-size: 36px;
  line-height: 44px;
  color: #FFFFFF;
  margin: 0;
  display: flex;
  align-items: center;
}

.cta-description {
  font-family: var(--font-inter);
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  color: #FFFFFF;
  margin: 0;
}

/* CTA Action Button */
.cta-action {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.btn-cta {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  padding: 12px 20px;
  gap: 9.62px;
  height: 43px;
  background: #B98227;
  color: #FFFFFF;
  font-family: var(--font-inter);
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  text-decoration: none;
  border-radius: 0;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-cta:hover {
  background: #9E6E1F;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(185, 130, 39, 0.4);
}

.btn-cta-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.btn-cta:hover .btn-cta-icon {
  transform: translateX(4px);
}

/* Responsive Media Queries */

/* Laptop / Macbook (1025px - 1440px) */
@media (max-width: 1440px) and (min-width: 1025px) {
  .cta-section {
    height: 450px;
  }
  .cta-image-wrapper {
    width: 50vw;
  }
  .cta-gold-accent {
    left: 48px;
    width: 500px;
    height: 300px;
    top: 90px;
  }
  .cta-card {
    left: 64px;
    top: 65px;
    width: min(660px, 85vw);
    height: 330px;
    padding: 36px;
  }
  .cta-title {
    font-size: 32px;
    line-height: 40px;
  }
  .cta-description {
    font-size: 16px;
  }
}

/* Tablet (641px - 1024px) */
@media (max-width: 1024px) {
  .cta-section {
    height: auto;
    padding: 48px 0;
  }
  .cta-inner {
    padding: 0 24px;
    height: auto;
    display: flex;
    flex-direction: column;
  }
  .cta-gold-accent {
    display: none;
  }
  .cta-card {
    position: relative;
    top: 0;
    left: 0;
    margin-left: 0;
    width: 100%;
    height: auto;
    padding: 36px 28px;
    border-radius: 12px 12px 0 0;
  }
  .cta-image-wrapper {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    height: 300px;
    border-radius: 0 0 12px 12px;
  }
  .cta-title {
    font-size: 28px;
    line-height: 36px;
  }
  .cta-description {
    font-size: 16px;
  }
}

/* Mobile (<= 640px) */
@media (max-width: 640px) {
  .cta-section {
    height: auto;
    padding: 32px 0;
  }
  .cta-inner {
    padding: 0 16px;
  }
  .cta-card {
    padding: 24px 18px;
    border-radius: 8px 8px 0 0;
  }
  .cta-image-wrapper {
    height: 200px;
    border-radius: 0 0 8px 8px;
  }
  .cta-title {
    font-size: 22px;
    line-height: 30px;
  }
  .cta-description {
    font-size: 14px;
    line-height: 21px;
  }
  .cta-action {
    width: 100%;
  }
  .btn-cta {
    width: 100%;
    justify-content: center;
  }
}
