/* ======================= Tunable via style fields ======================= */
.m-welcome {
  /* Spacing */
  --welcome-pad-top: ;
  --welcome-pad-bottom: ;
  --welcome-side-width: ;
  --welcome-gap: ;
  --welcome-title-gap: ;
  --welcome-description-gap: ;

  /* Background */
  {% if module.style.background.background_type == "solid" %}
    --welcome-bg: ;
  {% elif module.style.background.background_type == "gradient" %}
    --welcome-bg: linear-gradient(
      deg,
       0%,
       100%
    );
  {% elif module.style.background.background_type == "image" %}
    --welcome-bg: url('');
  {% else %}
    --welcome-bg: none;
  {% endif %}

  /* Gradient for description */
  {% if module.style.typography.use_gradient_title %}
    --welcome-text-gradient: linear-gradient(
      deg,
      ,
      
    );
  {% endif %}
}

/* ======================= Layout & background ======================= */
.m-welcome {
  position: relative;
  background: var(--welcome-bg, none);
  padding-top: var(--welcome-pad-top);
  padding-bottom: var(--welcome-pad-bottom);
}

.m-welcome__container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 20px;
}

.m-welcome__grid {
  display: grid;
  grid-template-columns: var(--welcome-side-width) 1fr;
  column-gap: clamp(24px, 5vw, 56px);
  row-gap: var(--welcome-gap);
  align-items: start;
}

/* ========================== Side title ========================= */
.m-welcome__side {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.m-welcome__side-title {
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  font-weight: 600;          /* bold */
  color: #1b2240;            /* fixed color */
  writing-mode: horizontal-tb;
  transform: none;
}

/* ============================ Main content ========================== */
.m-welcome__content {
  max-width: 80ch;
}

.m-welcome__title {
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.1;
  margin: 0 0 var(--welcome-title-gap) 0;
  max-width: 24ch;
  color: #1b2240; /* ensure solid title color */
}

.m-welcome__description {
  font-size: clamp(16px, 1.2vw, 20px);
  margin: 0 0 var(--welcome-description-gap) 0;
  color: #334155; /* fallback when no gradient */
}

/* Gradient text (applies to description only) */
.m-welcome__description.gradient-text {
  {% if module.style.typography.use_gradient_title %}
    background: var(--welcome-text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  {% endif %}
}

/* ============================== Button ============================== */
.m-welcome__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.m-welcome__actions a,
.m-welcome__actions .btn,
.m-welcome__actions .c-btn {
  border-radius: 999px;
  padding: 12px 20px;
}

/* ============================ Responsive ============================ */
@media (max-width: 900px) {
  .m-welcome__grid {
    grid-template-columns: 1fr;
  }
  .m-welcome__side-title {
    margin-bottom: 8px;
  }
}
