/**
 * Smort CTA Block Styles
 */

.smort-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--border-radius-smort);
}

/* Height variants */
.smort-cta-small {
  min-height: 300px;
}

.smort-cta-medium {
  min-height: 400px;
}

.smort-cta-large {
  min-height: 500px;
}

.smort-cta-xlarge {
  min-height: 600px;
}

/* Overlay */
.smort-cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: black;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
}

/* Container */
.smort-cta-container {
  position: relative;
  width: 100%;
  padding: 3rem 1rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  overflow: hidden;
  border-radius: inherit;
  border-radius: var(--border-radius-smort);
}

/* Content */
.smort-cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
}

.smort-cta-logo {
  display: block;
  width: auto;
  max-width: min(12rem, 70vw);

  object-fit: contain;
}

/* Text alignment variants */
.smort-cta-left .smort-cta-content {
  align-items: flex-start;
  text-align: left;
  margin-right: auto;
}

.smort-cta-center .smort-cta-content {
  align-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.smort-cta-right .smort-cta-content {
  align-items: flex-end;
  text-align: right;
  margin-left: auto;
}

/* Subtitle */
.smort-cta-subtitle {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  opacity: 0.9;
  letter-spacing: 0.05em;
}

/* Title */
.smort-cta-title {
  font-size: 2rem;
  font-weight: var(--font-weight-heading);
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

/* Button */
.smort-cta-button-wrapper {
  margin-top: 0.5rem;
}

.smort-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: #f59e0b;
  color: #ffffff;
  font-size: 1rem;
  font-weight: var(--font-weight-heading);
  text-decoration: none;
  border-radius: var(--border-radius-smort);
  transition:
    background 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.smort-cta-button:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.smort-cta-button-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

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

/* Tablet and up */
@media (min-width: 768px) {
  .smort-cta-small {
    min-height: 350px;
  }

  .smort-cta-medium {
    min-height: 450px;
  }

  .smort-cta-large {
    min-height: 550px;
  }

  .smort-cta-xlarge {
    min-height: 650px;
  }

  .smort-cta-container {
    padding: 10rem 2rem;
  }

  .smort-cta-subtitle {
    font-size: 1rem;
  }

  .smort-cta-title {
    font-size: 4rem;
  }

  .smort-cta-button {
    font-size: 1.0625rem;
    padding: 1rem 2rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .smort-cta-small {
    min-height: 400px;
  }

  .smort-cta-medium {
    min-height: 500px;
  }

  .smort-cta-large {
    min-height: 600px;
  }

  .smort-cta-xlarge {
    min-height: 700px;
  }

  .smort-cta-title {
    font-size: 5rem;
  }
}

/* smort-cta unified heading scale */
.smort-cta h1 {
  font-size: var(--h1-lg-size);
  line-height: var(--h1-lg-height);
}

.smort-cta h2 {
  font-size: var(--h2-lg-size);
  line-height: var(--h2-lg-height);
}

.smort-cta h3 {
  font-size: var(--h3-lg-size);
  line-height: var(--h3-lg-height);
}

.smort-cta h4 {
  font-size: var(--h4-lg-size);
  line-height: var(--h4-lg-height);
}

@media (width <= 768px) {
  .smort-cta h1 {
    font-size: var(--h1-sm-size);
    line-height: var(--h1-sm-height);
  }

  .smort-cta h2 {
    font-size: var(--h2-sm-size);
    line-height: var(--h2-sm-height);
  }

  .smort-cta h3 {
    font-size: var(--h3-sm-size);
    line-height: var(--h3-sm-height);
  }

  .smort-cta h4 {
    font-size: var(--h4-sm-size);
    line-height: var(--h4-sm-height);
  }
}
