/**
 * Smort Retail Hero Block Styles - Split Screen Layout
 */

.smort-hero-retail-bg {
}

.smort-hero-retail {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Campaign Banner */
.smort-hero-retail-campaign {
  padding: 1rem 0;
  position: relative;
}

.smort-hero-retail-campaign-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.smort-hero-retail-campaign-content {
  flex: 1;
}

.smort-hero-retail-campaign-text {
  color: white;
  font-weight: var(--font-weight-heading);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.smort-hero-retail-campaign-highlight {
  color: var(--primary);
  font-weight: var(--font-weight-heading);
  font-style: italic;
}

.smort-hero-retail-campaign-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  text-decoration: none;
  font-weight: var(--font-weight-heading);
  font-size: 0.875rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.smort-hero-retail-campaign-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.smort-hero-retail-campaign-button:hover {
  opacity: 0.9;
}

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

/* Responsive Campaign Banner */
@media (max-width: 768px) {
  .smort-hero-retail-campaign-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .smort-hero-retail-campaign-text {
    font-size: 0.8rem;
  }

  .smort-hero-retail-campaign-button {
    font-size: 0.8rem;
  }

  .smort-hero-retail-campaign-icon {
    width: 28px;
    height: 28px;
  }
}

.smort-hero-retail-grid {
  display: grid;
  grid-template-columns: 5fr 3fr;
  min-height: 500px;
  margin-top: 0.5rem;
}

/* Left and Right Sections */
.smort-hero-retail-left,
.smort-hero-retail-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 3rem 2rem;
  min-height: 600px;
}

/* Overlay for better text readability */
.smort-hero-retail-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.smort-hero-retail-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
  animation: fadeInUp 0.8s ease-out;
}

.smort-hero-retail-left .smort-hero-retail-content {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
}

/* Typography */
.smort-hero-retail-title {
  line-height: 1.1;
  margin-bottom: 1rem;
  font-family: var(--heading-font);
  color: white;
  font-weight: var(--font-weight-heading);
}

.smort-hero-retail-left .smort-hero-retail-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.smort-hero-retail-left .smort-hero-retail-title-top {
  font-size: 7rem;
  font-weight: var(--font-weight-body);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 0;
}

.smort-hero-retail-left .smort-hero-retail-title-bottom {
  font-size: 7rem;
  font-weight: var(--font-weight-body);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 0;
  margin-left: 16.5rem;
  margin-top: 1rem;
}

.smort-hero-retail-left .smort-hero-retail-description {
  max-width: 250px;
  font-size: 14px;
  line-height: 1.6;

  @media (max-width: 768px) {
    margin-top: 0;
  }
}

.smort-hero-retail-description {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: white;
  opacity: 0.9;
}

.smort-hero-retail-button-wrapper {
  margin-top: 1.5rem;
}

/* Responsive - Mobile Stack */
@media (max-width: 768px) {
  .smort-hero-retail-grid {
    grid-template-columns: 1fr;
  }

  .smort-hero-retail-left,
  .smort-hero-retail-right {
    min-height: 400px;
    padding: 2rem 1.5rem;
  }

  .smort-hero-retail-title {
    font-size: 2rem;
  }

  .smort-hero-retail-left .smort-hero-retail-title {
    font-size: 2.5rem;
  }

  .smort-hero-retail-description {
    font-size: 0.875rem;
  }

  .smort-hero-retail-left .smort-hero-retail-title-top {
    font-size: 3.5rem;
  }

  .smort-hero-retail-left .smort-hero-retail-title-bottom {
    font-size: 3.5rem;
    margin-left: 3rem;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .smort-hero-retail-left,
  .smort-hero-retail-right {
    padding: 2.5rem 2rem;
  }

  .smort-hero-retail-title {
    font-size: 3rem;
  }

  .smort-hero-retail-left .smort-hero-retail-title {
    font-size: 3rem;
  }
}

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

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

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

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

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

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

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

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

/* Rubriker i heron bryts aldrig mitt i ett ord (inga break-word/anywhere/bindestreck).
   Långa rubriker skalas i stället ner med clamp() via modifierklasserna nedan (sätts i PHP). */
.smort-hero-retail-title {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

/* Vänster rubrik med mycket långa ord (> 11 tecken, t.ex. "Träningsredskap"): bredare textyta + skalad storlek */
.smort-hero-retail--long-words .smort-hero-retail-left .smort-hero-retail-content {
  right: 2rem;
  max-width: 640px;
}

.smort-hero-retail--long-words .smort-hero-retail-left h1.smort-hero-retail-title {
  font-size: clamp(1.75rem, 3.6vw, var(--h1-lg-size));
}

/* Högerrutan: textytan får hela kolumnens bredd (max 26rem) i stället för 2/3, så att långa ord
   (t.ex. "AVTALSKUND") inte sticker ut ur textytan på 1024–1280px. */
.smort-hero-retail-right .smort-hero-retail-content.w-2\/3 {
  width: min(100%, 26rem);
}

/* Lång högerrubrik (> 22 tecken): lite mindre typsnitt så att rubrik och knapp får luft */

.smort-hero-retail--long-right .smort-hero-retail-right h2.smort-hero-retail-title {
  font-size: clamp(1.75rem, 2.6vw, var(--h2-lg-size));
}

.smort-hero-retail--long-right .smort-hero-retail-right .smort-hero-retail-button-wrapper {
  margin-top: var(--space-4);
}

@media (max-width: 768px) {
  .smort-hero-retail-left .smort-hero-retail-content {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
  }

  .smort-hero-retail--long-words .smort-hero-retail-left .smort-hero-retail-content {
    max-width: none;
  }

  .smort-hero-retail--long-words .smort-hero-retail-left h1.smort-hero-retail-title {
    font-size: clamp(1.5rem, 7.6vw, var(--h1-sm-size));
  }
}
